1 2022-12-16 Tobias Burnus <tobias@codesourcery.com>
4 * testsuite/libgomp.fortran/allocate-4.f90: Remove
5 accidentally added file.
7 2022-12-15 Tobias Burnus <tobias@codesourcery.com>
10 * testsuite/libgomp.fortran/allocate-4.f90: New file.
12 2022-12-14 Julian Brown <julian@codesourcery.com>
14 * testsuite/libgomp.fortran/combined-directive-splitting-1.f90: New
17 2022-12-10 Tobias Burnus <tobias@codesourcery.com>
19 * libgomp.h (struct target_mem_desc): Predeclare; move
20 below after 'reverse_splay_tree_node' and add rev_array
22 (struct reverse_splay_tree_key_s, reverse_splay_compare): New.
23 (reverse_splay_tree_node, reverse_splay_tree,
24 reverse_splay_tree_key): New typedef.
25 (struct gomp_device_descr): Add mem_map_rev member.
26 * oacc-host.c (host_dispatch): NULL init .mem_map_rev.
27 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Claim
28 support for GOMP_REQUIRES_REVERSE_OFFLOAD.
29 * splay-tree.h (splay_tree_callback_stop): New typedef; like
30 splay_tree_callback but returning int not void.
31 (splay_tree_foreach_lazy): Define; like splay_tree_foreach but
32 taking splay_tree_callback_stop as argument.
33 * splay-tree.c (splay_tree_foreach_internal_lazy,
34 splay_tree_foreach_lazy): New; but early exit if callback returns
36 * target.c: Instatiate splay_tree_c with splay_tree_prefix 'reverse'.
37 (gomp_map_lookup_rev): New.
38 (gomp_load_image_to_device): Handle reverse-offload function
40 (gomp_unload_image_from_device): Free devicep->mem_map_rev.
41 (struct gomp_splay_tree_rev_lookup_data, gomp_splay_tree_rev_lookup,
42 gomp_map_rev_lookup, struct cpy_data, gomp_map_cdata_lookup_int,
43 gomp_map_cdata_lookup): New auxiliary structs and functions for
45 (gomp_target_rev): Implement reverse offloading and its mapping.
46 (gomp_target_init): Init current_device.mem_map_rev.root.
47 * testsuite/libgomp.fortran/reverse-offload-2.f90: New test.
48 * testsuite/libgomp.fortran/reverse-offload-3.f90: New test.
49 * testsuite/libgomp.fortran/reverse-offload-4.f90: New test.
50 * testsuite/libgomp.fortran/reverse-offload-5.f90: New test.
51 * testsuite/libgomp.fortran/reverse-offload-5a.f90: New test without
52 mapping of on-device allocated variables.
54 2022-12-09 Tobias Burnus <tobias@codesourcery.com>
56 * libgomp.texi (5.1 Impl. Status): Split allocate clause/directive
57 item about 'align'; mark clause as 'Y' and directive as 'N'.
58 * testsuite/libgomp.fortran/allocate-2.f90: New test.
59 * testsuite/libgomp.fortran/allocate-3.f90: New test.
61 2022-12-06 Marcel Vollweiler <marcel@codesourcery.com>
63 * config/gcn/icv-device.c (omp_get_teams_thread_limit): Added to
64 allow processing of device-specific values.
65 (omp_set_teams_thread_limit): Likewise.
67 * config/nvptx/icv-device.c (omp_get_teams_thread_limit): Likewise.
68 (omp_set_teams_thread_limit): Likewise.
70 * icv-device.c (omp_get_teams_thread_limit): Likewise.
72 (omp_set_teams_thread_limit): Likewise.
73 * icv.c (omp_set_teams_thread_limit): Removed.
74 (omp_get_teams_thread_limit): Likewise.
76 * libgomp.texi: Updated documentation for nvptx and gcn corresponding
77 to the limitation of the number of teams.
78 * plugin/plugin-gcn.c (limit_teams): New helper function that limits
79 the number of teams by twice the number of compute units.
80 (parse_target_attributes): Limit the number of teams on gcn offload
82 * target.c (get_gomp_offload_icvs): Added teams_thread_limit_var
84 (gomp_load_image_to_device): Added a size check for the ICVs struct
86 (gomp_copy_back_icvs): New function that is used in GOMP_target_ext to
87 copy back the ICV values from device to host.
88 (GOMP_target_ext): Update the number of teams and threads in the kernel
89 args also considering device-specific values.
90 * testsuite/libgomp.c-c++-common/icv-4.c: Fixed an error in the reading
91 of OMP_TEAMS_THREAD_LIMIT from the environment.
92 * testsuite/libgomp.c-c++-common/icv-5.c: Extended.
93 * testsuite/libgomp.c-c++-common/icv-6.c: Extended.
94 * testsuite/libgomp.c-c++-common/icv-7.c: Extended.
95 * testsuite/libgomp.c-c++-common/icv-9.c: New test.
96 * testsuite/libgomp.fortran/icv-5.f90: New test.
97 * testsuite/libgomp.fortran/icv-6.f90: New test.
99 2022-12-06 Tobias Burnus <tobias@codesourcery.com>
101 * libgomp.texi (OpenMP 5.2): Add missing 'the'.
102 (TR11): Add missing '@tab N @tab'.
104 2022-11-30 Tobias Burnus <tobias@codesourcery.com>
106 * libgomp.texi (OpenMP Context Selectors): Add 'gfx803' to gcn's isa.
108 2022-11-30 Paul-Antoine Arras <pa@codesourcery.com>
110 * testsuite/libgomp.c/declare-variant-4-fiji.c: New test.
111 * testsuite/libgomp.c/declare-variant-4-gfx803.c: New test.
112 * testsuite/libgomp.c/declare-variant-4-gfx900.c: New test.
113 * testsuite/libgomp.c/declare-variant-4-gfx906.c: New test.
114 * testsuite/libgomp.c/declare-variant-4-gfx908.c: New test.
115 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: New test.
116 * testsuite/libgomp.c/declare-variant-4.h: New header file.
118 2022-11-28 Tobias Burnus <tobias@codesourcery.com>
120 * libgomp.texi (OpenMP 5.2): Mark end-directive as Y.
122 2022-11-25 Sandra Loosemore <sandra@codesourcery.com>
124 * testsuite/lib/libgomp.exp: Load scanoffloadipa.exp library.
125 * testsuite/libgomp.c/target-simd-clone-1.c: New.
126 * testsuite/libgomp.c/target-simd-clone-2.c: New.
127 * testsuite/libgomp.c/target-simd-clone-3.c: New.
129 2022-11-25 Tobias Burnus <tobias@codesourcery.com>
131 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Use unsigned int
132 for 'i' to match 'fn_entries'; regard absent GOMP_REV_OFFLOAD_VAR
133 as valid and the code having no reverse-offload code.
134 * testsuite/libgomp.c-c++-common/reverse-offload-2.c: New test.
136 2022-11-25 Tobias Burnus <tobias@codesourcery.com>
138 * libgomp.texi (OpenMP Implementation Status): Add three 5.1 items
139 and status for Technical Report (TR) 11.
141 2022-11-21 Tobias Burnus <tobias@codesourcery.com>
143 * config/gcn/libgomp-gcn.h (struct output):
144 Remove 'msg_u64' from the union, change
145 value_u64[2] to value_u64[6].
146 * config/gcn/target.c (GOMP_target_ext): Update accordingly.
147 * plugin/plugin-gcn.c (process_reverse_offload, console_output):
150 2022-11-19 Tobias Burnus <tobias@codesourcery.com>
152 * config/gcn/libgomp-gcn.h: New file; contains
153 struct output, declared previously in plugin-gcn.c.
154 * config/gcn/target.c: Include it.
155 (GOMP_ADDITIONAL_ICVS): Declare as extern var.
156 (GOMP_target_ext): Handle reverse offload.
157 * plugin/plugin-gcn.c: Include libgomp-gcn.h.
158 (struct kernargs): Replace struct def by the one
159 from libgomp-gcn.h for output_data.
160 (process_reverse_offload): New.
161 (console_output): Call it.
163 2022-11-16 Tobias Burnus <tobias@codesourcery.com>
164 Andrew Stubbs <ams@codesourcery.com>
166 * config/gcn/team.c (gomp_gcn_enter_kernel): Use
167 __builtin_gcn_kernarg_ptr instead of asm ("s8").
169 2022-11-14 Martin Liska <mliska@suse.cz>
172 2022-11-14 Martin Liska <mliska@suse.cz>
174 * doc/amd-radeon-gcn.rst: New file.
175 * doc/conf.py: New file.
176 * doc/copyright.rst: New file.
177 * doc/cuda-streams-usage.rst: New file.
178 * doc/enabling-openacc.rst: New file.
179 * doc/enabling-openmp.rst: New file.
180 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
181 * doc/first-invocation-openacc-library-api.rst: New file.
182 * doc/funding.rst: New file.
183 * doc/general-public-license-3.rst: New file.
184 * doc/gnu-free-documentation-license.rst: New file.
185 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
186 * doc/index.rst: New file.
187 * doc/indices-and-tables.rst: New file.
188 * doc/introduction.rst: New file.
189 * doc/memory-allocation-with-libmemkind.rst: New file.
190 * doc/nvptx.rst: New file.
191 * doc/offload-target-specifics.rst: New file.
192 * doc/openacc-environment-variables.rst: New file.
193 * doc/openacc-environment-variables/accdevicenum.rst: New file.
194 * doc/openacc-environment-variables/accdevicetype.rst: New file.
195 * doc/openacc-environment-variables/accproflib.rst: New file.
196 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
197 * doc/openacc-introduction.rst: New file.
198 * doc/openacc-library-and-environment-variables.rst: New file.
199 * doc/openacc-library-interoperability.rst: New file.
200 * doc/openacc-profiling-interface.rst: New file.
201 * doc/openacc-runtime-library-routines.rst: New file.
202 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
203 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
204 * doc/openacc-runtime-library-routines/accattach.rst: New file.
205 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
206 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
207 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
208 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
209 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
210 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
211 * doc/openacc-runtime-library-routines/accfree.rst: New file.
212 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
213 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
214 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
215 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
216 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
217 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
218 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
219 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
220 * doc/openacc-runtime-library-routines/accinit.rst: New file.
221 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
222 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
223 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
224 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
225 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
226 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
227 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
228 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
229 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
230 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
231 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
232 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
233 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
234 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
235 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
236 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
237 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
238 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
239 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
240 * doc/openacc-runtime-library-routines/accwait.rst: New file.
241 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
242 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
243 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
244 * doc/openmp-context-selectors.rst: New file.
245 * doc/openmp-environment-variables.rst: New file.
246 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
247 * doc/openmp-environment-variables/gompdebug.rst: New file.
248 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
249 * doc/openmp-environment-variables/gompspincount.rst: New file.
250 * doc/openmp-environment-variables/gompstacksize.rst: New file.
251 * doc/openmp-environment-variables/ompcancellation.rst: New file.
252 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
253 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
254 * doc/openmp-environment-variables/ompdynamic.rst: New file.
255 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
256 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
257 * doc/openmp-environment-variables/ompnested.rst: New file.
258 * doc/openmp-environment-variables/ompnumteams.rst: New file.
259 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
260 * doc/openmp-environment-variables/ompplaces.rst: New file.
261 * doc/openmp-environment-variables/ompprocbind.rst: New file.
262 * doc/openmp-environment-variables/ompschedule.rst: New file.
263 * doc/openmp-environment-variables/ompstacksize.rst: New file.
264 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
265 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
266 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
267 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
268 * doc/openmp-implementation-specifics.rst: New file.
269 * doc/openmp-implementation-status.rst: New file.
270 * doc/openmp-implementation-status/openmp-45.rst: New file.
271 * doc/openmp-implementation-status/openmp-50.rst: New file.
272 * doc/openmp-implementation-status/openmp-51.rst: New file.
273 * doc/openmp-implementation-status/openmp-52.rst: New file.
274 * doc/openmp-runtime-library-routines.rst: New file.
275 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
276 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
277 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
278 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
279 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
280 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
281 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
282 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
283 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
284 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
285 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
286 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
287 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
288 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
289 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
290 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
291 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
292 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
293 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
294 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
295 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
296 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
297 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
298 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
299 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
300 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
301 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
302 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
303 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
304 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
305 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
306 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
307 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
308 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
309 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
310 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
311 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
312 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
313 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
314 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
315 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
316 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
317 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
318 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
319 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
320 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
321 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
322 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
323 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
324 * doc/reporting-bugs.rst: New file.
325 * doc/the-libgomp-abi.rst: New file.
326 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
327 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
328 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
329 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
331 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
332 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
333 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
334 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
335 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
336 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
337 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
338 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
339 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
340 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
341 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
343 2022-11-14 Martin Liska <mliska@suse.cz>
346 2022-11-14 Martin Liska <mliska@suse.cz>
348 * Makefile.in: Support Sphinx based documentation.
350 2022-11-14 Martin Liska <mliska@suse.cz>
353 2022-11-14 Martin Liska <mliska@suse.cz>
355 * libgomp.texi: Removed.
357 2022-11-14 Martin Liska <mliska@suse.cz>
360 2022-11-14 Martin Liska <mliska@suse.cz>
362 * Makefile.in: Support --with-sphinx-build.
363 * configure.ac: Likewise..
364 * configure: Regenerate.
366 2022-11-14 Martin Liska <mliska@suse.cz>
369 2022-11-09 Martin Liska <mliska@suse.cz>
371 * Makefile.in: Build info pages conditionally.
373 2022-11-14 Martin Liska <mliska@suse.cz>
376 2022-11-14 Martin Liska <mliska@suse.cz>
378 * doc/amd-radeon-gcn.rst:
379 Add trailing newline.
381 Add trailing newline.
382 * doc/cuda-streams-usage.rst:
383 Add trailing newline.
384 * doc/enabling-openacc.rst:
385 Add trailing newline.
386 * doc/enabling-openmp.rst:
387 Add trailing newline.
388 * doc/first-invocation-nvidia-cublas-library-api.rst:
389 Add trailing newline.
390 * doc/first-invocation-openacc-library-api.rst:
391 Add trailing newline.
393 Add trailing newline.
394 * doc/general-public-license-3.rst:
395 Add trailing newline.
396 * doc/gnu-free-documentation-license.rst:
397 Add trailing newline.
398 * doc/implementation-status-and-implementation-defined-behavior.rst:
399 Add trailing newline.
401 Add trailing newline.
402 * doc/indices-and-tables.rst:
403 Add trailing newline.
404 * doc/introduction.rst:
405 Add trailing newline.
406 * doc/memory-allocation-with-libmemkind.rst:
407 Add trailing newline.
409 Add trailing newline.
410 * doc/offload-target-specifics.rst:
411 Add trailing newline.
412 * doc/openacc-environment-variables.rst:
413 Add trailing newline.
414 * doc/openacc-environment-variables/accdevicenum.rst:
415 Add trailing newline.
416 * doc/openacc-environment-variables/accdevicetype.rst:
417 Add trailing newline.
418 * doc/openacc-environment-variables/accproflib.rst:
419 Add trailing newline.
420 * doc/openacc-environment-variables/gccaccnotify.rst:
421 Add trailing newline.
422 * doc/openacc-introduction.rst:
423 Add trailing newline.
424 * doc/openacc-library-and-environment-variables.rst:
425 Add trailing newline.
426 * doc/openacc-library-interoperability.rst:
427 Add trailing newline.
428 * doc/openacc-profiling-interface.rst:
429 Add trailing newline.
430 * doc/openacc-runtime-library-routines.rst:
431 Add trailing newline.
432 * doc/openacc-runtime-library-routines/accasynctest.rst:
433 Add trailing newline.
434 * doc/openacc-runtime-library-routines/accasynctestall.rst:
435 Add trailing newline.
436 * doc/openacc-runtime-library-routines/accattach.rst:
437 Add trailing newline.
438 * doc/openacc-runtime-library-routines/acccopyin.rst:
439 Add trailing newline.
440 * doc/openacc-runtime-library-routines/acccopyout.rst:
441 Add trailing newline.
442 * doc/openacc-runtime-library-routines/acccreate.rst:
443 Add trailing newline.
444 * doc/openacc-runtime-library-routines/accdelete.rst:
445 Add trailing newline.
446 * doc/openacc-runtime-library-routines/accdetach.rst:
447 Add trailing newline.
448 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
449 Add trailing newline.
450 * doc/openacc-runtime-library-routines/accfree.rst:
451 Add trailing newline.
452 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
453 Add trailing newline.
454 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
455 Add trailing newline.
456 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
457 Add trailing newline.
458 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
459 Add trailing newline.
460 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
461 Add trailing newline.
462 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
463 Add trailing newline.
464 * doc/openacc-runtime-library-routines/accgetproperty.rst:
465 Add trailing newline.
466 * doc/openacc-runtime-library-routines/acchostptr.rst:
467 Add trailing newline.
468 * doc/openacc-runtime-library-routines/accinit.rst:
469 Add trailing newline.
470 * doc/openacc-runtime-library-routines/accispresent.rst:
471 Add trailing newline.
472 * doc/openacc-runtime-library-routines/accmalloc.rst:
473 Add trailing newline.
474 * doc/openacc-runtime-library-routines/accmapdata.rst:
475 Add trailing newline.
476 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
477 Add trailing newline.
478 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
479 Add trailing newline.
480 * doc/openacc-runtime-library-routines/accondevice.rst:
481 Add trailing newline.
482 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
483 Add trailing newline.
484 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
485 Add trailing newline.
486 * doc/openacc-runtime-library-routines/accproflookup.rst:
487 Add trailing newline.
488 * doc/openacc-runtime-library-routines/accprofregister.rst:
489 Add trailing newline.
490 * doc/openacc-runtime-library-routines/accprofunregister.rst:
491 Add trailing newline.
492 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
493 Add trailing newline.
494 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
495 Add trailing newline.
496 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
497 Add trailing newline.
498 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
499 Add trailing newline.
500 * doc/openacc-runtime-library-routines/accshutdown.rst:
501 Add trailing newline.
502 * doc/openacc-runtime-library-routines/accunmapdata.rst:
503 Add trailing newline.
504 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
505 Add trailing newline.
506 * doc/openacc-runtime-library-routines/accupdateself.rst:
507 Add trailing newline.
508 * doc/openacc-runtime-library-routines/accwait.rst:
509 Add trailing newline.
510 * doc/openacc-runtime-library-routines/accwaitall.rst:
511 Add trailing newline.
512 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
513 Add trailing newline.
514 * doc/openacc-runtime-library-routines/accwaitasync.rst:
515 Add trailing newline.
516 * doc/openmp-context-selectors.rst:
517 Add trailing newline.
518 * doc/openmp-environment-variables.rst:
519 Add trailing newline.
520 * doc/openmp-environment-variables/gompcpuaffinity.rst:
521 Add trailing newline.
522 * doc/openmp-environment-variables/gompdebug.rst:
523 Add trailing newline.
524 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
525 Add trailing newline.
526 * doc/openmp-environment-variables/gompspincount.rst:
527 Add trailing newline.
528 * doc/openmp-environment-variables/gompstacksize.rst:
529 Add trailing newline.
530 * doc/openmp-environment-variables/ompcancellation.rst:
531 Add trailing newline.
532 * doc/openmp-environment-variables/ompdefaultdevice.rst:
533 Add trailing newline.
534 * doc/openmp-environment-variables/ompdisplayenv.rst:
535 Add trailing newline.
536 * doc/openmp-environment-variables/ompdynamic.rst:
537 Add trailing newline.
538 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
539 Add trailing newline.
540 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
541 Add trailing newline.
542 * doc/openmp-environment-variables/ompnested.rst:
543 Add trailing newline.
544 * doc/openmp-environment-variables/ompnumteams.rst:
545 Add trailing newline.
546 * doc/openmp-environment-variables/ompnumthreads.rst:
547 Add trailing newline.
548 * doc/openmp-environment-variables/ompplaces.rst:
549 Add trailing newline.
550 * doc/openmp-environment-variables/ompprocbind.rst:
551 Add trailing newline.
552 * doc/openmp-environment-variables/ompschedule.rst:
553 Add trailing newline.
554 * doc/openmp-environment-variables/ompstacksize.rst:
555 Add trailing newline.
556 * doc/openmp-environment-variables/omptargetoffload.rst:
557 Add trailing newline.
558 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
559 Add trailing newline.
560 * doc/openmp-environment-variables/ompthreadlimit.rst:
561 Add trailing newline.
562 * doc/openmp-environment-variables/ompwaitpolicy.rst:
563 Add trailing newline.
564 * doc/openmp-implementation-specifics.rst:
565 Add trailing newline.
566 * doc/openmp-implementation-status.rst:
567 Add trailing newline.
568 * doc/openmp-implementation-status/openmp-45.rst:
569 Add trailing newline.
570 * doc/openmp-implementation-status/openmp-50.rst:
571 Add trailing newline.
572 * doc/openmp-implementation-status/openmp-51.rst:
573 Add trailing newline.
574 * doc/openmp-implementation-status/openmp-52.rst:
575 Add trailing newline.
576 * doc/openmp-runtime-library-routines.rst:
577 Add trailing newline.
578 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
579 Add trailing newline.
580 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
581 Add trailing newline.
582 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
583 Add trailing newline.
584 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
585 Add trailing newline.
586 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
587 Add trailing newline.
588 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
589 Add trailing newline.
590 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
591 Add trailing newline.
592 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
593 Add trailing newline.
594 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
595 Add trailing newline.
596 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
597 Add trailing newline.
598 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
599 Add trailing newline.
600 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
601 Add trailing newline.
602 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
603 Add trailing newline.
604 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
605 Add trailing newline.
606 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
607 Add trailing newline.
608 * doc/openmp-runtime-library-routines/ompgetnested.rst:
609 Add trailing newline.
610 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
611 Add trailing newline.
612 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
613 Add trailing newline.
614 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
615 Add trailing newline.
616 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
617 Add trailing newline.
618 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
619 Add trailing newline.
620 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
621 Add trailing newline.
622 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
623 Add trailing newline.
624 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
625 Add trailing newline.
626 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
627 Add trailing newline.
628 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
629 Add trailing newline.
630 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
631 Add trailing newline.
632 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
633 Add trailing newline.
634 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
635 Add trailing newline.
636 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
637 Add trailing newline.
638 * doc/openmp-runtime-library-routines/ompinfinal.rst:
639 Add trailing newline.
640 * doc/openmp-runtime-library-routines/ompinitlock.rst:
641 Add trailing newline.
642 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
643 Add trailing newline.
644 * doc/openmp-runtime-library-routines/ompinparallel.rst:
645 Add trailing newline.
646 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
647 Add trailing newline.
648 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
649 Add trailing newline.
650 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
651 Add trailing newline.
652 * doc/openmp-runtime-library-routines/ompsetlock.rst:
653 Add trailing newline.
654 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
655 Add trailing newline.
656 * doc/openmp-runtime-library-routines/ompsetnested.rst:
657 Add trailing newline.
658 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
659 Add trailing newline.
660 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
661 Add trailing newline.
662 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
663 Add trailing newline.
664 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
665 Add trailing newline.
666 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
667 Add trailing newline.
668 * doc/openmp-runtime-library-routines/omptestlock.rst:
669 Add trailing newline.
670 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
671 Add trailing newline.
672 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
673 Add trailing newline.
674 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
675 Add trailing newline.
676 * doc/reporting-bugs.rst:
677 Add trailing newline.
678 * doc/the-libgomp-abi.rst:
679 Add trailing newline.
680 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
681 Add trailing newline.
682 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
683 Add trailing newline.
684 * doc/the-libgomp-abi/implementing-critical-construct.rst:
685 Add trailing newline.
686 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
687 Add trailing newline.
688 * doc/the-libgomp-abi/implementing-flush-construct.rst:
689 Add trailing newline.
690 * doc/the-libgomp-abi/implementing-for-construct.rst:
691 Add trailing newline.
692 * doc/the-libgomp-abi/implementing-master-construct.rst:
693 Add trailing newline.
694 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
695 Add trailing newline.
696 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
697 Add trailing newline.
698 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
699 Add trailing newline.
700 * doc/the-libgomp-abi/implementing-private-clause.rst:
701 Add trailing newline.
702 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
703 Add trailing newline.
704 * doc/the-libgomp-abi/implementing-sections-construct.rst:
705 Add trailing newline.
706 * doc/the-libgomp-abi/implementing-single-construct.rst:
707 Add trailing newline.
708 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
709 Add trailing newline.
711 2022-11-14 Martin Liska <mliska@suse.cz>
714 2022-11-09 Martin Liska <mliska@suse.cz>
716 * Makefile.in: Add missing HAS_SPHINX_BUILD.
718 2022-11-14 Martin Liska <mliska@suse.cz>
721 2022-11-14 Martin Liska <mliska@suse.cz>
723 * doc/conf.py: Add newline at last line.
725 2022-11-14 Martin Liska <mliska@suse.cz>
728 2022-11-14 Martin Liska <mliska@suse.cz>
731 * configure: Regenerate.
732 * configure.ac: Always set sphinx-build.
734 2022-11-13 Martin Liska <mliska@suse.cz>
737 * configure: Regenerate.
738 * configure.ac: Always set sphinx-build.
740 2022-11-12 Jakub Jelinek <jakub@redhat.com>
743 * env.c (parse_unsigned_long): Cast params[2] to uintptr_t rather than
744 unsigned long. Change type of upper from unsigned to unsigned long.
746 2022-11-10 Martin Liska <mliska@suse.cz>
748 * doc/conf.py: Add newline at last line.
750 2022-11-09 Martin Liska <mliska@suse.cz>
752 * Makefile.in: Add missing HAS_SPHINX_BUILD.
754 2022-11-09 Martin Liska <mliska@suse.cz>
756 * doc/amd-radeon-gcn.rst:
757 Add trailing newline.
759 Add trailing newline.
760 * doc/cuda-streams-usage.rst:
761 Add trailing newline.
762 * doc/enabling-openacc.rst:
763 Add trailing newline.
764 * doc/enabling-openmp.rst:
765 Add trailing newline.
766 * doc/first-invocation-nvidia-cublas-library-api.rst:
767 Add trailing newline.
768 * doc/first-invocation-openacc-library-api.rst:
769 Add trailing newline.
771 Add trailing newline.
772 * doc/general-public-license-3.rst:
773 Add trailing newline.
774 * doc/gnu-free-documentation-license.rst:
775 Add trailing newline.
776 * doc/implementation-status-and-implementation-defined-behavior.rst:
777 Add trailing newline.
779 Add trailing newline.
780 * doc/indices-and-tables.rst:
781 Add trailing newline.
782 * doc/introduction.rst:
783 Add trailing newline.
784 * doc/memory-allocation-with-libmemkind.rst:
785 Add trailing newline.
787 Add trailing newline.
788 * doc/offload-target-specifics.rst:
789 Add trailing newline.
790 * doc/openacc-environment-variables.rst:
791 Add trailing newline.
792 * doc/openacc-environment-variables/accdevicenum.rst:
793 Add trailing newline.
794 * doc/openacc-environment-variables/accdevicetype.rst:
795 Add trailing newline.
796 * doc/openacc-environment-variables/accproflib.rst:
797 Add trailing newline.
798 * doc/openacc-environment-variables/gccaccnotify.rst:
799 Add trailing newline.
800 * doc/openacc-introduction.rst:
801 Add trailing newline.
802 * doc/openacc-library-and-environment-variables.rst:
803 Add trailing newline.
804 * doc/openacc-library-interoperability.rst:
805 Add trailing newline.
806 * doc/openacc-profiling-interface.rst:
807 Add trailing newline.
808 * doc/openacc-runtime-library-routines.rst:
809 Add trailing newline.
810 * doc/openacc-runtime-library-routines/accasynctest.rst:
811 Add trailing newline.
812 * doc/openacc-runtime-library-routines/accasynctestall.rst:
813 Add trailing newline.
814 * doc/openacc-runtime-library-routines/accattach.rst:
815 Add trailing newline.
816 * doc/openacc-runtime-library-routines/acccopyin.rst:
817 Add trailing newline.
818 * doc/openacc-runtime-library-routines/acccopyout.rst:
819 Add trailing newline.
820 * doc/openacc-runtime-library-routines/acccreate.rst:
821 Add trailing newline.
822 * doc/openacc-runtime-library-routines/accdelete.rst:
823 Add trailing newline.
824 * doc/openacc-runtime-library-routines/accdetach.rst:
825 Add trailing newline.
826 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
827 Add trailing newline.
828 * doc/openacc-runtime-library-routines/accfree.rst:
829 Add trailing newline.
830 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
831 Add trailing newline.
832 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
833 Add trailing newline.
834 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
835 Add trailing newline.
836 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
837 Add trailing newline.
838 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
839 Add trailing newline.
840 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
841 Add trailing newline.
842 * doc/openacc-runtime-library-routines/accgetproperty.rst:
843 Add trailing newline.
844 * doc/openacc-runtime-library-routines/acchostptr.rst:
845 Add trailing newline.
846 * doc/openacc-runtime-library-routines/accinit.rst:
847 Add trailing newline.
848 * doc/openacc-runtime-library-routines/accispresent.rst:
849 Add trailing newline.
850 * doc/openacc-runtime-library-routines/accmalloc.rst:
851 Add trailing newline.
852 * doc/openacc-runtime-library-routines/accmapdata.rst:
853 Add trailing newline.
854 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
855 Add trailing newline.
856 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
857 Add trailing newline.
858 * doc/openacc-runtime-library-routines/accondevice.rst:
859 Add trailing newline.
860 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
861 Add trailing newline.
862 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
863 Add trailing newline.
864 * doc/openacc-runtime-library-routines/accproflookup.rst:
865 Add trailing newline.
866 * doc/openacc-runtime-library-routines/accprofregister.rst:
867 Add trailing newline.
868 * doc/openacc-runtime-library-routines/accprofunregister.rst:
869 Add trailing newline.
870 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
871 Add trailing newline.
872 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
873 Add trailing newline.
874 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
875 Add trailing newline.
876 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
877 Add trailing newline.
878 * doc/openacc-runtime-library-routines/accshutdown.rst:
879 Add trailing newline.
880 * doc/openacc-runtime-library-routines/accunmapdata.rst:
881 Add trailing newline.
882 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
883 Add trailing newline.
884 * doc/openacc-runtime-library-routines/accupdateself.rst:
885 Add trailing newline.
886 * doc/openacc-runtime-library-routines/accwait.rst:
887 Add trailing newline.
888 * doc/openacc-runtime-library-routines/accwaitall.rst:
889 Add trailing newline.
890 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
891 Add trailing newline.
892 * doc/openacc-runtime-library-routines/accwaitasync.rst:
893 Add trailing newline.
894 * doc/openmp-context-selectors.rst:
895 Add trailing newline.
896 * doc/openmp-environment-variables.rst:
897 Add trailing newline.
898 * doc/openmp-environment-variables/gompcpuaffinity.rst:
899 Add trailing newline.
900 * doc/openmp-environment-variables/gompdebug.rst:
901 Add trailing newline.
902 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
903 Add trailing newline.
904 * doc/openmp-environment-variables/gompspincount.rst:
905 Add trailing newline.
906 * doc/openmp-environment-variables/gompstacksize.rst:
907 Add trailing newline.
908 * doc/openmp-environment-variables/ompcancellation.rst:
909 Add trailing newline.
910 * doc/openmp-environment-variables/ompdefaultdevice.rst:
911 Add trailing newline.
912 * doc/openmp-environment-variables/ompdisplayenv.rst:
913 Add trailing newline.
914 * doc/openmp-environment-variables/ompdynamic.rst:
915 Add trailing newline.
916 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
917 Add trailing newline.
918 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
919 Add trailing newline.
920 * doc/openmp-environment-variables/ompnested.rst:
921 Add trailing newline.
922 * doc/openmp-environment-variables/ompnumteams.rst:
923 Add trailing newline.
924 * doc/openmp-environment-variables/ompnumthreads.rst:
925 Add trailing newline.
926 * doc/openmp-environment-variables/ompplaces.rst:
927 Add trailing newline.
928 * doc/openmp-environment-variables/ompprocbind.rst:
929 Add trailing newline.
930 * doc/openmp-environment-variables/ompschedule.rst:
931 Add trailing newline.
932 * doc/openmp-environment-variables/ompstacksize.rst:
933 Add trailing newline.
934 * doc/openmp-environment-variables/omptargetoffload.rst:
935 Add trailing newline.
936 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
937 Add trailing newline.
938 * doc/openmp-environment-variables/ompthreadlimit.rst:
939 Add trailing newline.
940 * doc/openmp-environment-variables/ompwaitpolicy.rst:
941 Add trailing newline.
942 * doc/openmp-implementation-specifics.rst:
943 Add trailing newline.
944 * doc/openmp-implementation-status.rst:
945 Add trailing newline.
946 * doc/openmp-implementation-status/openmp-45.rst:
947 Add trailing newline.
948 * doc/openmp-implementation-status/openmp-50.rst:
949 Add trailing newline.
950 * doc/openmp-implementation-status/openmp-51.rst:
951 Add trailing newline.
952 * doc/openmp-implementation-status/openmp-52.rst:
953 Add trailing newline.
954 * doc/openmp-runtime-library-routines.rst:
955 Add trailing newline.
956 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
957 Add trailing newline.
958 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
959 Add trailing newline.
960 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
961 Add trailing newline.
962 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
963 Add trailing newline.
964 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
965 Add trailing newline.
966 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
967 Add trailing newline.
968 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
969 Add trailing newline.
970 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
971 Add trailing newline.
972 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
973 Add trailing newline.
974 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
975 Add trailing newline.
976 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
977 Add trailing newline.
978 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
979 Add trailing newline.
980 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
981 Add trailing newline.
982 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
983 Add trailing newline.
984 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
985 Add trailing newline.
986 * doc/openmp-runtime-library-routines/ompgetnested.rst:
987 Add trailing newline.
988 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
989 Add trailing newline.
990 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
991 Add trailing newline.
992 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
993 Add trailing newline.
994 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
995 Add trailing newline.
996 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
997 Add trailing newline.
998 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
999 Add trailing newline.
1000 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
1001 Add trailing newline.
1002 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
1003 Add trailing newline.
1004 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
1005 Add trailing newline.
1006 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
1007 Add trailing newline.
1008 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
1009 Add trailing newline.
1010 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
1011 Add trailing newline.
1012 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
1013 Add trailing newline.
1014 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
1015 Add trailing newline.
1016 * doc/openmp-runtime-library-routines/ompinfinal.rst:
1017 Add trailing newline.
1018 * doc/openmp-runtime-library-routines/ompinitlock.rst:
1019 Add trailing newline.
1020 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
1021 Add trailing newline.
1022 * doc/openmp-runtime-library-routines/ompinparallel.rst:
1023 Add trailing newline.
1024 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
1025 Add trailing newline.
1026 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
1027 Add trailing newline.
1028 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
1029 Add trailing newline.
1030 * doc/openmp-runtime-library-routines/ompsetlock.rst:
1031 Add trailing newline.
1032 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
1033 Add trailing newline.
1034 * doc/openmp-runtime-library-routines/ompsetnested.rst:
1035 Add trailing newline.
1036 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
1037 Add trailing newline.
1038 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
1039 Add trailing newline.
1040 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
1041 Add trailing newline.
1042 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
1043 Add trailing newline.
1044 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
1045 Add trailing newline.
1046 * doc/openmp-runtime-library-routines/omptestlock.rst:
1047 Add trailing newline.
1048 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
1049 Add trailing newline.
1050 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
1051 Add trailing newline.
1052 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
1053 Add trailing newline.
1054 * doc/reporting-bugs.rst:
1055 Add trailing newline.
1056 * doc/the-libgomp-abi.rst:
1057 Add trailing newline.
1058 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
1059 Add trailing newline.
1060 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
1061 Add trailing newline.
1062 * doc/the-libgomp-abi/implementing-critical-construct.rst:
1063 Add trailing newline.
1064 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1065 Add trailing newline.
1066 * doc/the-libgomp-abi/implementing-flush-construct.rst:
1067 Add trailing newline.
1068 * doc/the-libgomp-abi/implementing-for-construct.rst:
1069 Add trailing newline.
1070 * doc/the-libgomp-abi/implementing-master-construct.rst:
1071 Add trailing newline.
1072 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
1073 Add trailing newline.
1074 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
1075 Add trailing newline.
1076 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
1077 Add trailing newline.
1078 * doc/the-libgomp-abi/implementing-private-clause.rst:
1079 Add trailing newline.
1080 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
1081 Add trailing newline.
1082 * doc/the-libgomp-abi/implementing-sections-construct.rst:
1083 Add trailing newline.
1084 * doc/the-libgomp-abi/implementing-single-construct.rst:
1085 Add trailing newline.
1086 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
1087 Add trailing newline.
1089 2022-11-09 Martin Liska <mliska@suse.cz>
1091 * Makefile.in: Build info pages conditionally.
1093 2022-11-09 Martin Liska <mliska@suse.cz>
1095 * Makefile.in: Support --with-sphinx-build.
1096 * configure.ac: Likewise..
1097 * configure: Regenerate.
1099 2022-11-09 Martin Liska <mliska@suse.cz>
1101 * libgomp.texi: Removed.
1103 2022-11-09 Martin Liska <mliska@suse.cz>
1105 * Makefile.in: Support Sphinx based documentation.
1107 2022-11-09 Martin Liska <mliska@suse.cz>
1109 * doc/amd-radeon-gcn.rst: New file.
1110 * doc/conf.py: New file.
1111 * doc/copyright.rst: New file.
1112 * doc/cuda-streams-usage.rst: New file.
1113 * doc/enabling-openacc.rst: New file.
1114 * doc/enabling-openmp.rst: New file.
1115 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
1116 * doc/first-invocation-openacc-library-api.rst: New file.
1117 * doc/funding.rst: New file.
1118 * doc/general-public-license-3.rst: New file.
1119 * doc/gnu-free-documentation-license.rst: New file.
1120 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
1121 * doc/index.rst: New file.
1122 * doc/indices-and-tables.rst: New file.
1123 * doc/introduction.rst: New file.
1124 * doc/memory-allocation-with-libmemkind.rst: New file.
1125 * doc/nvptx.rst: New file.
1126 * doc/offload-target-specifics.rst: New file.
1127 * doc/openacc-environment-variables.rst: New file.
1128 * doc/openacc-environment-variables/accdevicenum.rst: New file.
1129 * doc/openacc-environment-variables/accdevicetype.rst: New file.
1130 * doc/openacc-environment-variables/accproflib.rst: New file.
1131 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
1132 * doc/openacc-introduction.rst: New file.
1133 * doc/openacc-library-and-environment-variables.rst: New file.
1134 * doc/openacc-library-interoperability.rst: New file.
1135 * doc/openacc-profiling-interface.rst: New file.
1136 * doc/openacc-runtime-library-routines.rst: New file.
1137 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
1138 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
1139 * doc/openacc-runtime-library-routines/accattach.rst: New file.
1140 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
1141 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
1142 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
1143 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
1144 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
1145 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
1146 * doc/openacc-runtime-library-routines/accfree.rst: New file.
1147 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
1148 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
1149 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
1150 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
1151 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
1152 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
1153 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
1154 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
1155 * doc/openacc-runtime-library-routines/accinit.rst: New file.
1156 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
1157 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
1158 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
1159 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
1160 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
1161 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
1162 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
1163 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
1164 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
1165 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
1166 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
1167 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
1168 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
1169 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
1170 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
1171 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
1172 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
1173 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
1174 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
1175 * doc/openacc-runtime-library-routines/accwait.rst: New file.
1176 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
1177 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
1178 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
1179 * doc/openmp-context-selectors.rst: New file.
1180 * doc/openmp-environment-variables.rst: New file.
1181 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
1182 * doc/openmp-environment-variables/gompdebug.rst: New file.
1183 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
1184 * doc/openmp-environment-variables/gompspincount.rst: New file.
1185 * doc/openmp-environment-variables/gompstacksize.rst: New file.
1186 * doc/openmp-environment-variables/ompcancellation.rst: New file.
1187 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
1188 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
1189 * doc/openmp-environment-variables/ompdynamic.rst: New file.
1190 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
1191 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
1192 * doc/openmp-environment-variables/ompnested.rst: New file.
1193 * doc/openmp-environment-variables/ompnumteams.rst: New file.
1194 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
1195 * doc/openmp-environment-variables/ompplaces.rst: New file.
1196 * doc/openmp-environment-variables/ompprocbind.rst: New file.
1197 * doc/openmp-environment-variables/ompschedule.rst: New file.
1198 * doc/openmp-environment-variables/ompstacksize.rst: New file.
1199 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
1200 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
1201 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
1202 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
1203 * doc/openmp-implementation-specifics.rst: New file.
1204 * doc/openmp-implementation-status.rst: New file.
1205 * doc/openmp-implementation-status/openmp-45.rst: New file.
1206 * doc/openmp-implementation-status/openmp-50.rst: New file.
1207 * doc/openmp-implementation-status/openmp-51.rst: New file.
1208 * doc/openmp-implementation-status/openmp-52.rst: New file.
1209 * doc/openmp-runtime-library-routines.rst: New file.
1210 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
1211 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
1212 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
1213 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
1214 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
1215 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
1216 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
1217 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
1218 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
1219 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
1220 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
1221 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
1222 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
1223 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
1224 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
1225 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
1226 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
1227 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
1228 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
1229 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
1230 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
1231 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
1232 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
1233 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
1234 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
1235 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
1236 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
1237 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
1238 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
1239 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
1240 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
1241 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
1242 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
1243 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
1244 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
1245 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
1246 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
1247 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
1248 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
1249 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
1250 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
1251 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
1252 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
1253 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
1254 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
1255 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
1256 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
1257 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
1258 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
1259 * doc/reporting-bugs.rst: New file.
1260 * doc/the-libgomp-abi.rst: New file.
1261 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
1262 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
1263 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
1264 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1266 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
1267 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
1268 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
1269 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
1270 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
1271 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
1272 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
1273 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
1274 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
1275 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
1276 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
1278 2022-11-04 Thomas Schwinge <thomas@codesourcery.com>
1280 * libgomp-plugin.h (OFFLOAD_TARGET_TYPE_INTEL_MIC): Remove.
1281 * libgomp.texi (OpenMP Context Selectors): Remove Intel MIC
1283 * plugin/configfrag.ac <enable_offload_targets>
1284 [*-intelmic-* | *-intelmicemul-*]: Remove.
1285 * configure: Regenerate.
1286 * testsuite/lib/libgomp.exp (libgomp_init): Remove 'liboffloadmic'
1288 (offload_target_to_openacc_device_type)
1289 [$offload_target = *-intelmic*]: Remove.
1290 (check_effective_target_offload_device_intel_mic)
1291 (check_effective_target_offload_device_any_intel_mic): Remove.
1292 * testsuite/libgomp.c-c++-common/on_device_arch.h
1293 (device_arch_intel_mic, on_device_arch_intel_mic, any_device_arch)
1294 (any_device_arch_intel_mic): Remove.
1295 * testsuite/libgomp.c-c++-common/target-45.c: Remove
1296 'offload_device_any_intel_mic' XFAIL.
1297 * testsuite/libgomp.fortran/target10.f90: Likewise.
1299 2022-11-03 Tobias Burnus <tobias@codesourcery.com>
1301 * testsuite/libgomp.fortran/target-11.f90: New test.
1302 * testsuite/libgomp.fortran/target-13.f90: New test.
1304 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
1308 * oacc-mem.c (goacc_enter_data_internal): Support
1309 OpenACC 'declare create' with Fortran allocatable arrays, part II.
1310 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
1312 * testsuite/libgomp.oacc-fortran/pr106643-1.f90: New.
1314 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
1317 * oacc-mem.c (goacc_enter_data_internal): Support
1318 OpenACC 'declare create' with Fortran allocatable arrays, part I.
1319 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90:
1321 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
1324 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
1326 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-runtime.f90:
1329 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
1331 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90:
1334 2022-11-02 Cesar Philippidis <cesar@codesourcery.com>
1335 Thomas Schwinge <thomas@codesourcery.com>
1337 * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: New.
1339 2022-10-28 Julian Brown <julian@codesourcery.com>
1340 Thomas Schwinge <thomas@codesourcery.com>
1343 * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
1344 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
1345 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
1346 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
1347 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1349 2022-10-24 Thomas Schwinge <thomas@codesourcery.com>
1351 * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
1352 'ptx_dev->rev_data'.
1354 2022-10-24 Tobias Burnus <tobias@codesourcery.com>
1356 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
1357 'static' for this variable.
1358 * config/nvptx/libgomp-nvptx.h: New file.
1359 * config/nvptx/target.c: Include it.
1360 (GOMP_ADDITIONAL_ICVS): Declare extern var.
1361 (GOMP_REV_OFFLOAD_VAR): Declare var.
1362 (GOMP_target_ext): Handle reverse offload.
1363 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
1364 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
1365 * target.c (gomp_target_rev): ... this new stub function.
1366 * libgomp.h (gomp_target_rev): Declare.
1367 * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
1368 * plugin/cuda-lib.def (cuMemHostAlloc): Add.
1369 * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
1370 (struct ptx_device): Add rev_data member.
1371 (nvptx_open_device): Remove async_engines query, last used in
1372 r10-304-g1f4c5b9b; add unified-address assert check.
1373 (GOMP_OFFLOAD_get_num_devices): Claim unified address
1375 (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
1376 offload functions exist. Make offload var available
1378 (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
1379 (GOMP_OFFLOAD_run): Handle reverse offload.
1381 2022-10-21 Thomas Schwinge <thomas@codesourcery.com>
1383 PR tree-optimization/107195
1385 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
1388 2022-10-20 Tobias Burnus <tobias@codesourcery.com>
1390 * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
1392 * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
1393 on_device_arch_gcn): New.
1394 * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
1395 requires-4.c but using heap-allocated memory.
1397 2022-10-20 Thomas Schwinge <thomas@codesourcery.com>
1400 * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
1402 2022-10-17 Thomas Schwinge <thomas@codesourcery.com>
1404 * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
1405 '-foffload-options' syntax.
1407 2022-10-13 Tobias Burnus <tobias@codesourcery.com>
1409 * testsuite/libgomp.fortran/task-7.f90: New test.
1410 * testsuite/libgomp.fortran/task-8.f90: New test.
1411 * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
1412 * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
1413 * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
1414 * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
1415 * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
1417 2022-10-12 Jakub Jelinek <jakub@redhat.com>
1419 * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
1420 in deprecation bullet.
1422 2022-10-12 Jakub Jelinek <jakub@redhat.com>
1424 * omp.h.in (omp_in_explicit_task): Declare.
1425 * omp_lib.h.in (omp_in_explicit_task): Likewise.
1426 * omp_lib.f90.in (omp_in_explicit_task): New interface.
1427 * libgomp.map (OMP_5.2): New symbol version, export
1428 omp_in_explicit_task and omp_in_explicit_task_.
1429 * task.c (omp_in_explicit_task): New function.
1430 * fortran.c (omp_in_explicit_task): Add ialias_redirect.
1431 (omp_in_explicit_task_): New function.
1432 * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
1433 * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
1434 * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
1435 * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
1437 2022-10-12 Jakub Jelinek <jakub@redhat.com>
1439 * task.c (gomp_create_artificial_team): Fix up handling of invocations
1440 from within explicit task.
1441 * target.c (GOMP_target_ext): Likewise.
1442 * testsuite/libgomp.c/task-7.c: New test.
1443 * testsuite/libgomp.c/task-8.c: New test.
1444 * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
1445 * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
1447 2022-10-12 Martin Liska <mliska@suse.cz>
1449 * configure: Regenerate.
1451 2022-10-11 Olivier Hainque <hainque@adacore.com>
1452 Olivier Hainque <hainque@adacore.com>
1454 * configure: Regenerate.
1456 2022-10-05 Tobias Burnus <tobias@codesourcery.com>
1458 * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
1460 2022-10-04 Jakub Jelinek <jakub@redhat.com>
1462 * libgomp.texi (Support begin/end declare target syntax in C/C++):
1463 Mark as implemented.
1465 2022-09-30 Tobias Burnus <tobias@codesourcery.com>
1468 * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
1470 2022-09-28 Tobias Burnus <tobias@codesourcery.com>
1472 * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
1473 for C/C++. Remove duplicated 'begin declare target' entry.
1475 2022-09-24 Jakub Jelinek <jakub@redhat.com>
1478 * testsuite/libgomp.c-c++-common/pr106981.c: New test.
1480 2022-09-14 Julian Brown <julian@codesourcery.com>
1482 * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
1483 * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
1484 * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
1485 * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
1486 test to here, make "run" test.
1488 2022-09-13 Jakub Jelinek <jakub@redhat.com>
1491 * env.c (get_icv_member_addr): Cast false to void * before assigning
1492 it to icv_addr[1], and comment the whole assignment out.
1494 2022-09-13 Tobias Burnus <tobias@codesourcery.com>
1496 * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
1499 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
1501 * libgomp.texi (Offload-Target Specifics: nvptx): Document
1502 that reverse offload requires >= -march=sm_35.
1503 * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
1505 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
1506 * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
1507 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
1508 * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
1509 * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
1511 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
1513 * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
1514 (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
1516 2022-09-12 Jakub Jelinek <jakub@redhat.com>
1519 * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
1520 (main): Avoid tests for which corresponding non-_ALL suffixed variable
1521 is in the environment, or for OMP_NUM_TEAMS on the device
1522 OMP_NUM_TEAMS_DEV_?.
1524 2022-09-10 Iain Sandoe <iain@sandoe.co.uk>
1526 * env.c (initialize_env): Include libiberty environ.h.
1528 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
1530 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
1531 function address table '$offload_func_table' if rev_fn_table
1534 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
1536 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
1537 .offload_func_table to populate rev_fn_table when requested.
1539 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
1541 * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
1542 'uint64_t **rev_fn_table' argument.
1543 * oacc-host.c (host_load_image): Likewise.
1544 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
1546 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
1547 * target.c (gomp_load_image_to_device): Update call but pass
1550 2022-09-09 Jakub Jelinek <jakub@redhat.com>
1553 * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
1554 char * for dest[1] initialization from params[1]. Formatting fixes.
1556 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
1559 * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
1561 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
1563 * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
1564 section; move OpenMP Context Selectors from ...
1565 (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
1568 2022-09-08 Marcel Vollweiler <marcel@codesourcery.com>
1570 * config/gcn/icv-device.c (omp_get_default_device): Return device-
1572 (omp_get_max_teams): Added for GCN devices.
1573 (omp_set_num_teams): Likewise.
1575 * config/nvptx/icv-device.c (omp_get_default_device): Return device-
1577 (omp_get_max_teams): Added for NVPTX devices.
1578 (omp_set_num_teams): Likewise.
1580 * env.c (struct gomp_icv_list): New struct to store entries of initial
1582 (struct gomp_offload_icv_list): New struct to store entries of device-
1583 specific ICV values that are copied to the device and back.
1584 (struct gomp_default_icv_values): New struct to store default values of
1585 ICVs according to the OpenMP standard.
1586 (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
1587 (print_env_var_error): Function that prints an error for invalid values
1589 (parse_unsigned_long_1): Removed getenv. Generalized.
1590 (parse_unsigned_long): Likewise.
1591 (parse_int_1): Likewise.
1592 (parse_int): Likewise.
1593 (parse_int_secure): Likewise.
1594 (parse_unsigned_long_list): Likewise.
1595 (parse_target_offload): Likewise.
1596 (parse_bind_var): Likewise.
1597 (parse_stacksize): Likewise.
1598 (parse_boolean): Likewise.
1599 (parse_wait_policy): Likewise.
1600 (parse_allocator): Likewise.
1601 (omp_display_env): Extended to output different variants of environment
1603 (print_schedule): New helper function for omp_display_env which prints
1604 the values of run_sched_var.
1605 (print_proc_bind): New helper function for omp_display_env which prints
1606 the values of proc_bind_var.
1607 (enum gomp_parse_type): Collection of types used for parsing environment
1609 (ENTRY): Preprocess string lengths of environment variables.
1610 (OMP_VAR_CNT): Preprocess table size.
1611 (OMP_HOST_VAR_CNT): Likewise.
1612 (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
1614 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
1615 (gomp_set_icv_flag): Sets a flag for a particular ICV.
1616 (print_device_specific_icvs): New helper function for omp_display_env to
1617 print device specific ICV values.
1618 (get_device_num): New helper function for parse_device_specific.
1619 Extracts the device number from an environment variable name.
1620 (get_icv_member_addr): Gets the memory address for a particular member
1622 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
1623 (initialize_icvs): New function to initialize a gomp_initial_icvs
1625 (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
1626 (startswith): Checks if a string starts with a given prefix.
1627 (initialize_env): Extended to parse the new syntax of environment
1629 * icv-device.c (omp_get_max_teams): Added.
1631 (omp_set_num_teams): Likewise.
1632 * icv.c (omp_set_num_teams): Moved to icv-device.c.
1633 (omp_get_max_teams): Likewise.
1635 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
1636 (GOMP_ADDITIONAL_ICVS): New target-side struct that
1637 holds the designated ICVs of the target device.
1638 * libgomp.h (enum gomp_icvs): Collection of ICVs.
1639 (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
1641 (enum gomp_env_suffix): Collection of possible suffixes of environment
1643 (struct gomp_initial_icvs): Contains all ICVs for which we need to store
1645 (struct gomp_default_icv):New struct to hold ICVs for which we need
1646 to store initial values.
1647 (struct gomp_icv_list): Definition of a linked list that is used for
1648 storing ICVs for the devices and also for _DEV, _ALL, and without
1650 (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
1652 (struct gomp_offload_icv_list): Definition of a linked list that holds
1653 device-specific ICVs that are copied to devices.
1654 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
1655 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
1656 * libgomp.texi: Updated.
1657 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
1658 further ICVs from the offload image.
1659 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
1660 * target.c (gomp_get_offload_icv_item): Get a list item of
1661 gomp_offload_icv_list.
1662 (get_gomp_offload_icvs): New. Returns the ICV values
1663 depending on the device num and the variable hierarchy.
1664 (gomp_load_image_to_device): Extended to copy further ICVs to a device.
1665 * testsuite/libgomp.c-c++-common/icv-5.c: New test.
1666 * testsuite/libgomp.c-c++-common/icv-6.c: New test.
1667 * testsuite/libgomp.c-c++-common/icv-7.c: New test.
1668 * testsuite/libgomp.c-c++-common/icv-8.c: New test.
1669 * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
1670 * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
1672 2022-09-08 Jakub Jelinek <jakub@redhat.com>
1674 * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
1676 * testsuite/libgomp.c/doacross-4.c: New test.
1677 * testsuite/libgomp.c/doacross-5.c: New test.
1678 * testsuite/libgomp.c/doacross-6.c: New test.
1679 * testsuite/libgomp.c/doacross-7.c: New test.
1681 2022-09-05 Tobias Burnus <tobias@codesourcery.com>
1683 * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
1685 2022-08-26 Tobias Burnus <tobias@codesourcery.com>
1687 * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
1688 refer to 'requires'.
1689 * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
1690 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
1691 * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
1692 * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
1694 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
1696 PR middle-end/106548
1697 * testsuite/libgomp.c/linear-2.c: New test.
1699 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
1701 * splay-tree.h: Fix splay_* macro unsetting if
1702 splay_tree_prefix is defined.
1704 2022-07-29 Tobias Burnus <tobias@codesourcery.com>
1706 * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
1708 2022-07-29 Jakub Jelinek <jakub@redhat.com>
1710 PR middle-end/106449
1711 * testsuite/libgomp.c-c++-common/pr106449.c: New test.
1713 2022-07-12 Tobias Burnus <tobias@codesourcery.com>
1715 * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
1717 2022-07-12 Thomas Schwinge <thomas@codesourcery.com>
1719 PR middle-end/101551
1720 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
1721 'offloading_enabled' diagnostics issue.
1723 2022-07-11 Thomas Schwinge <thomas@codesourcery.com>
1725 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
1726 '_Pragma' diagnostics verification.
1728 2022-07-10 Lewis Hyatt <lhyatt@gmail.com>
1730 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
1731 improved warning locations.
1732 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
1734 2022-07-08 Thomas Schwinge <thomas@codesourcery.com>
1736 * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
1737 * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
1738 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
1739 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
1740 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
1742 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
1744 * target.c (GOMP_offload_register, GOMP_offload_unregister):
1745 Denote as legacy entry points.
1746 * testsuite/lib/libgomp.exp
1747 (check_effective_target_offload_target_any): New proc.
1748 * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
1749 'offload_target_any'.
1750 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
1751 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
1752 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
1754 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
1756 * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
1757 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
1759 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
1761 * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
1763 2022-07-06 Thomas Schwinge <thomas@codesourcery.com>
1765 * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
1767 (GOMP_offload_unregister_ver): Likewise. Fix up 'target_data'.
1769 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
1770 Jakub Jelinek <jakub@redhat.com>
1772 * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
1774 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
1775 Chung-Lin Tang <cltang@codesourcery.com>
1776 Thomas Schwinge <thomas@codesourcery.com>
1778 * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
1779 omp_requires_mask arg.
1780 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
1781 return -1 when device available but omp_requires_mask != 0.
1782 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
1783 * oacc-host.c (host_get_num_devices, host_openacc_get_property):
1785 * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
1786 goacc_attach_host_thread_to_device, acc_get_num_devices,
1787 acc_set_device_num, get_property_any): Likewise.
1788 * target.c (omp_requires_mask): New global var.
1789 (gomp_requires_to_name): New.
1790 (GOMP_offload_register_ver): Handle passed omp_requires_mask.
1791 (gomp_target_init): Handle omp_requires_mask.
1792 * libgomp.texi (OpenMP 5.0): Update requires impl. status.
1793 (OpenMP 5.1): Add a missed item.
1794 (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
1795 * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
1796 * testsuite/libgomp.c-c++-common/requires-1.c: New test.
1797 * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
1798 * testsuite/libgomp.c-c++-common/requires-2.c: New test.
1799 * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
1800 * testsuite/libgomp.c-c++-common/requires-3.c: New test.
1801 * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
1802 * testsuite/libgomp.c-c++-common/requires-4.c: New test.
1803 * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
1804 * testsuite/libgomp.c-c++-common/requires-5.c: New test.
1805 * testsuite/libgomp.c-c++-common/requires-6.c: New test.
1806 * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
1807 * testsuite/libgomp.c-c++-common/requires-7.c: New test.
1808 * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
1809 * testsuite/libgomp.fortran/requires-1.f90: New test.
1811 2022-07-01 Tobias Burnus <tobias@codesourcery.com>
1813 * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
1814 with fromto as implemented.
1816 2022-06-28 Martin Liska <mliska@suse.cz>
1818 * acinclude.m4: Fix typo in mold linker detection.
1819 * Makefile.in: Regenerate.
1820 * configure: Regenerate.
1822 2022-06-21 Jakub Jelinek <jakub@redhat.com>
1823 Paul Iannetta <piannetta@kalrayinc.com>
1826 * testsuite/libgomp.c/target-31.c: Add private (i) clause.
1828 2022-06-17 Martin Liska <mliska@suse.cz>
1830 * libgomp.texi: Add table header for new features of
1833 2022-06-15 Jakub Jelinek <jakub@redhat.com>
1835 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
1836 q to ddress of an automatic variable. Use -5 instead of -1 in
1837 omp_get_mapped_ptr call. Add test with omp_initial_device.
1838 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
1839 of -1 in omp_get_mapped_ptr call. Add test with omp_initial_device.
1840 Renumber stop arguments afterwards.
1842 2022-06-13 Jakub Jelinek <jakub@redhat.com>
1844 * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
1845 * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
1847 * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
1848 * target.c (resolve_device): Add remapped argument, handle
1849 GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
1850 for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
1851 if remapped, otherwise treat omp_initial_device that way. For
1852 omp_invalid_device, always emit gomp_fatal, even when
1853 OMP_TARGET_OFFLOAD isn't mandatory.
1854 (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
1855 GOMP_target_update, GOMP_target_update_ext,
1856 GOMP_target_enter_exit_data): Pass true as remapped argument to
1858 (omp_target_alloc, omp_target_free, omp_target_is_present,
1859 omp_target_memcpy_check, omp_target_associate_ptr,
1860 omp_target_disassociate_ptr, omp_get_mapped_ptr,
1861 omp_target_is_accessible): Pass false as remapped argument to
1862 resolve_device. Treat omp_initial_device the same as
1863 gomp_get_num_devices (). Don't bypass resolve_device calls if
1864 device_num is negative.
1865 (omp_pause_resource): Treat omp_initial_device the same as
1866 gomp_get_num_devices (). Call resolve_device.
1867 * icv-device.c (omp_set_default_device): Always set to device_num
1868 even when it is negative.
1869 * libgomp.texi: Document that Conforming device numbers,
1870 omp_initial_device and omp_invalid_device is implemented.
1871 * testsuite/libgomp.c/target-41.c (main): Add test with
1873 * testsuite/libgomp.c/target-45.c: New test.
1874 * testsuite/libgomp.c/target-46.c: New test.
1875 * testsuite/libgomp.c/target-47.c: New test.
1876 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
1877 test with omp_initial_device. Use -5 instead of -1 for negative value
1879 * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
1880 Likewise. Reorder stop numbers.
1882 2022-06-10 Jakub Jelinek <jakub@redhat.com>
1884 * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
1885 rather than "libmemkind.so".
1887 2022-06-10 Thomas Schwinge <thomas@codesourcery.com>
1889 * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
1890 * plugin/configfrag.ac (--with-cuda-driver)
1891 (--with-cuda-driver-include, --with-cuda-driver-lib)
1892 (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
1893 (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
1895 * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
1896 (cuda_driver_lib): Remove.
1897 * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
1898 * Makefile.in: Regenerate.
1899 * configure: Likewise.
1900 * testsuite/Makefile.in: Likewise.
1902 2022-06-09 Jakub Jelinek <jakub@redhat.com>
1904 * config/linux/allocator.c: Fix up #include directive.
1906 2022-06-09 Jakub Jelinek <jakub@redhat.com>
1908 * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
1909 (enum gomp_memkind_kind): New type.
1910 (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
1912 (struct gomp_memkind_data): New type.
1913 (memkind_data, memkind_data_once): New variables.
1914 (gomp_init_memkind, gomp_get_memkind): New functions.
1915 (omp_init_allocator): Initialize data.memkind, don't fail for
1916 omp_high_bw_mem_space if libmemkind supports it.
1917 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
1918 memkind support of LIBGOMP_USE_MEMKIND is defined.
1919 * config/linux/allocator.c: New file.
1921 2022-06-03 Tobias Burnus <tobias@codesourcery.com>
1923 * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
1924 * testsuite/libgomp.fortran/scope-2.f90: New test.
1926 2022-06-02 David Malcolm <dmalcolm@redhat.com>
1928 * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
1930 2022-05-31 Jakub Jelinek <jakub@redhat.com>
1932 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
1933 scope construct with allocate clause.
1934 * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
1935 * testsuite/libgomp.c-c++-common/scope-2.c: New test.
1937 2022-05-28 Tobias Burnus <tobias@codesourcery.com>
1939 * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
1940 * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
1941 explicit 'to' and 'enter' clause.
1942 * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
1944 2022-05-28 Jakub Jelinek <jakub@redhat.com>
1947 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
1948 defined(HAVE__ALIGNED_MALLOC) case.
1949 * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
1950 handling as last option before fallback instead of first.
1951 (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
1954 2022-05-27 Jakub Jelinek <jakub@redhat.com>
1956 * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
1958 * testsuite/libgomp.c/target-41.c: Likewise.
1960 2022-05-27 Tobias Burnus <tobias@codesourcery.com>
1962 * libgomp.texi (Other new OpenMP 5.1 features): Add
1963 'begin declare target'.
1964 (Other new OpenMP 5.2 features): New.
1966 2022-05-25 Jakub Jelinek <jakub@redhat.com>
1968 * task.c (gomp_task_run_post_handle_dependers): If empty_task
1969 is the last task taskwait depend depends on, wake it up.
1970 Similarly if it is the last child of a taskgroup, use atomic
1971 store instead of decrement and awak taskgroup wait if any.
1972 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
1974 2022-05-24 Andrew Stubbs <ams@codesourcery.com>
1976 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
1977 EF_AMDGPU_MACH_AMDGCN_GFX90a.
1978 (gcn_gfx90a_s): New.
1979 (isa_hsa_name): Support gfx90a.
1980 (isa_code): Likewise.
1982 2022-05-24 Tobias Burnus <tobias@codesourcery.com>
1985 * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
1986 * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
1988 2022-05-24 Jakub Jelinek <jakub@redhat.com>
1991 * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
1992 * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
1993 * task.c (empty_task): New function.
1994 (gomp_task_run_post_handle_depend_hash): Declare earlier.
1995 (gomp_task_run_post_handle_depend): Declare.
1996 (GOMP_task): Optimize fn == empty_task if there is nothing to wait
1998 (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
1999 (GOMP_taskwait_depend_nowait): New function.
2000 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
2002 2022-05-23 Tobias Burnus <tobias@codesourcery.com>
2005 * target.c (gomp_map_vars_internal, copy_firstprivate_data):
2006 Support attach for GOMP_MAP_FIRSTPRIVATE.
2007 * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
2008 * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
2009 * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
2011 2022-05-20 Marcel Vollweiler <marcel@codesourcery.com>
2013 * libgomp.map: Added omp_target_memcpy_async and
2014 omp_target_memcpy_rect_async.
2015 * libgomp.texi: Both functions are now supported.
2016 * omp.h.in: Added omp_target_memcpy_async and
2017 omp_target_memcpy_rect_async.
2018 * omp_lib.f90.in: Added interfaces for both new functions.
2019 * omp_lib.h.in: Likewise.
2020 * target.c (ialias_redirect): Added for GOMP_task.
2021 (omp_target_memcpy): Restructured into check and copy part.
2022 (omp_target_memcpy_check): New helper function for omp_target_memcpy and
2023 omp_target_memcpy_async that checks requirements.
2024 (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
2025 omp_target_memcpy_async that performs the memcpy.
2026 (omp_target_memcpy_async_helper): New helper function that is used in
2027 omp_target_memcpy_async for the asynchronous task.
2028 (omp_target_memcpy_async): Added.
2029 (omp_target_memcpy_rect): Restructured into check and copy part.
2030 (omp_target_memcpy_rect_check): New helper function for
2031 omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
2033 (omp_target_memcpy_rect_copy): New helper function for
2034 omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
2036 (omp_target_memcpy_rect_async_helper): New helper function that is used
2037 in omp_target_memcpy_rect_async for the asynchronous task.
2038 (omp_target_memcpy_rect_async): Added.
2039 * task.c (ialias): Added for GOMP_task.
2040 * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
2041 * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
2042 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
2043 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
2044 * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
2045 * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
2046 * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
2047 * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
2049 2022-05-18 Tobias Burnus <tobias@codesourcery.com>
2051 * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
2052 (OpenMP Context Selectors): Add missing comma.
2053 * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
2054 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
2055 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
2056 * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
2058 2022-05-17 Jakub Jelinek <jakub@redhat.com>
2060 * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
2061 comment for omp_display_env feature.
2063 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
2065 * libgomp.texi (Offload-Target Specifics): New chapter; add section
2066 to document OpenMP context selectors.
2068 2022-05-17 Jakub Jelinek <jakub@redhat.com>
2070 * libgomp.h (struct gomp_task_depend_entry): Change is_in type
2071 from bool to unsigned char.
2072 * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
2073 Ignore dependencies where
2074 task->depend[i].is_in && task->depend[i].is_in == ent->is_in
2075 rather than just task->depend[i].is_in && ent->is_in. Remember
2076 whether GOMP_DEPEND_IN loop is needed and guard the loop with that
2078 (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
2079 Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
2080 rather than just elem.is_in && ent->is_in.
2081 * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
2082 inoutset depend-kind.
2083 * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
2084 * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
2085 * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
2087 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
2089 * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
2091 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
2093 * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
2094 * testsuite/libgomp.fortran/depend-5.f90: New test.
2095 * testsuite/libgomp.fortran/depend-6.f90: New test.
2096 * testsuite/libgomp.fortran/depend-7.f90: New test.
2098 2022-05-16 Marcel Vollweiler <marcel@codesourcery.com>
2100 * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
2101 * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
2102 * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
2104 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
2106 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
2108 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
2110 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
2112 2022-05-13 Thomas Schwinge <thomas@codesourcery.com>
2114 * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
2115 [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
2116 (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
2117 append '$(PLUGIN_NVPTX_LDFLAGS)'.
2118 * Makefile.in: Regenerate.
2120 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
2122 * Makefile.am (libgomp_la_LIBADD): Initialize.
2123 * plugin/configfrag.ac (DL_LIBS): New.
2124 (PLUGIN_GCN_LIBS): Remove.
2125 (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
2126 * plugin/Makefrag.am (libgomp_la_LIBADD)
2127 (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
2128 (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
2129 * Makefile.in: Regenerate.
2130 * config.h.in: Likewise.
2131 * configure: Likewise.
2132 * testsuite/Makefile.in: Likewise.
2134 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
2136 * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
2137 * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
2138 'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
2139 * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
2140 'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
2141 'PLUGIN_NVPTX_LINK_LIBCUDA'.
2142 * Makefile.in: Regenerate.
2143 * config.h.in: Likewise.
2144 * configure: Likewise.
2146 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
2148 * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
2149 for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
2150 * Makefile.in: Regenerate.
2151 * config.h.in: Likewise.
2152 * configure: Likewise.
2153 * testsuite/Makefile.in: Likewise.
2155 2022-05-12 Jakub Jelinek <jakub@redhat.com>
2157 * libgomp.h (struct gomp_task): Add depend_all_memory member.
2158 * task.c (gomp_init_task): Initialize depend_all_memory.
2159 (gomp_task_handle_depend): Handle omp_all_memory.
2160 (gomp_task_run_post_handle_depend_hash): Clear
2161 parent->depend_all_memory if equal to current task.
2162 (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
2163 * testsuite/libgomp.c-c++-common/depend-1.c: New test.
2164 * testsuite/libgomp.c-c++-common/depend-2.c: New test.
2165 * testsuite/libgomp.c-c++-common/depend-3.c: New test.
2167 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
2169 * plugin/configfrag.ac: Remove '--with-hsa-runtime',
2170 '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
2171 * Makefile.in: Regenerate.
2172 * configure: Likewise.
2173 * testsuite/Makefile.in: Likewise.
2175 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
2177 * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
2178 consider 'PLUGIN_GCN_CPPFLAGS'.
2179 (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
2180 'PLUGIN_GCN_LDFLAGS'.
2181 * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
2183 * Makefile.in: Regenerate.
2184 * configure: Likewise.
2185 * testsuite/Makefile.in: Likewise.
2187 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
2189 * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
2190 (HSA_RUNTIME_LDFLAGS): Remove.
2191 * configure: Regenerate.
2193 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
2195 * testsuite/lib/libgomp.exp (libgomp_init): Don't
2196 'append always_ld_library_path ":$hsa_runtime_lib"'.
2197 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
2199 2022-05-10 Thomas Schwinge <thomas@codesourcery.com>
2201 * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
2202 multi-device testing.
2204 2022-05-06 Marcel Vollweiler <marcel@codesourcery.com>
2206 * libgomp.map: Added omp_target_is_accessible.
2207 * libgomp.texi: Tagged omp_target_is_accessible as supported.
2208 * omp.h.in: Added omp_target_is_accessible.
2209 * omp_lib.f90.in: Added interface for omp_target_is_accessible.
2210 * omp_lib.h.in: Likewise.
2211 * target.c (omp_target_is_accessible): Added implementation of
2212 omp_target_is_accessible.
2213 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
2214 * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
2216 2022-05-05 Sandra Loosemore <sandra@codesourcery.com>
2218 * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
2220 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
2222 * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
2224 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
2226 * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
2228 2022-05-03 Marcel Vollweiler <marcel@codesourcery.com>
2230 * libgomp.map: Added omp_get_mapped_ptr.
2231 * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
2232 * omp.h.in: Added omp_get_mapped_ptr.
2233 * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
2234 * omp_lib.h.in: Likewise.
2235 * target.c (omp_get_mapped_ptr): Added implementation of
2237 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
2238 * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
2239 * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
2240 * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
2241 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
2242 * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
2243 * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
2244 * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
2246 2022-04-28 Thomas Schwinge <thomas@codesourcery.com>
2249 * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
2250 privatization scanning. For GCN offloading compilation, raise
2251 '-mgang-private-size'.
2253 2022-04-26 Jakub Jelinek <jakub@redhat.com>
2256 * work.c (gomp_init_work_share): Don't mask of adjustment for
2257 dynamic long long realignment if struct gomp_work_share has smaller
2258 alignof than long long.
2259 * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
2260 struct gomp_work_share has smaller alignof than long long or if
2261 sizeof (struct gomp_work_share) is smaller than
2262 INLINE_ORDERED_TEAM_IDS_OFF.
2263 * loop_ull.c (GOMP_loop_ull_start): Likewise.
2264 * sections.c (GOMP_sections2_start): Likewise.
2266 2022-04-25 Jakub Jelinek <jakub@redhat.com>
2267 Thomas Schwinge <thomas@codesourcery.com>
2270 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
2272 2022-04-13 Jakub Jelinek <jakub@redhat.com>
2274 * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
2276 2022-04-06 Thomas Schwinge <thomas@codesourcery.com>
2278 * plugin/cuda/cuda.h: Remove file.
2279 * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
2280 "cuda/cuda.h" instead of <cuda.h>.
2281 * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
2282 'PLUGIN_NVPTX_CPPFLAGS'.
2283 * configure: Regenerate.
2285 2022-04-05 Chung-Lin Tang <cltang@codesourcery.com>
2287 * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
2289 2022-04-04 Tom de Vries <tdevries@suse.de>
2291 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
2292 on_device_arch_nvptx instead of offload_target_nvptx.
2293 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
2295 2022-04-01 Tom de Vries <tdevries@suse.de>
2297 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
2299 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
2301 2022-04-01 Tom de Vries <tdevries@suse.de>
2303 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
2306 2022-03-29 Chenghua Xu <xuchenghua@loongson.cn>
2307 Lulu Cheng <chenglulu@loongson.cn>
2309 * configure.tgt: Add LoongArch triplet.
2311 2022-03-28 Tom de Vries <tdevries@suse.de>
2313 * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
2314 instead of /libexec/.
2315 * configure: Regenerate.
2317 2022-03-25 Tom de Vries <tdevries@suse.de>
2320 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
2322 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
2323 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
2325 2022-03-23 Tobias Burnus <tobias@codesourcery.com>
2327 PR middle-end/104285
2328 * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
2329 * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
2330 * testsuite/libgomp.c++/target-same-name-2.C: New test.
2331 * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
2332 * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
2333 * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
2335 2022-03-22 Tom de Vries <tdevries@suse.de>
2339 * testsuite/libgomp.c/pr104783-2.c: New test.
2341 2022-03-18 Tobias Burnus <tobias@codesourcery.com>
2344 * testsuite/libgomp.fortran/associate4.f90: New test.
2346 2022-03-18 Tom de Vries <tdevries@suse.de>
2349 * testsuite/libgomp.c/pr104952-1.c: New test.
2350 * testsuite/libgomp.c/pr104952-2.c: New test.
2352 2022-03-18 Jakub Jelinek <jakub@redhat.com>
2354 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
2355 variable next to pl variable.
2357 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
2359 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
2361 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
2362 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2364 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
2367 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
2368 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2370 2022-03-16 Marcel Vollweiler <marcel@codesourcery.com>
2372 * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
2373 omp_set_max_active_levels.
2374 * testsuite/libgomp.fortran/icv-8.f90: New test.
2376 2022-03-16 Thomas Schwinge <thomas@codesourcery.com>
2379 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
2381 2022-03-13 Tobias Burnus <tobias@codesourcery.com>
2383 * libgomp.texi: Fix typo.
2385 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
2387 PR middle-end/100280
2388 PR middle-end/104892
2389 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
2390 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
2391 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2393 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
2395 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2396 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
2397 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
2400 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
2402 PR middle-end/104892
2403 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
2405 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
2406 enable '--param=openacc-kernels=decompose' and adjust.
2407 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
2409 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2410 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
2413 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
2416 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
2417 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
2418 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2419 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
2421 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
2423 PR middle-end/100280
2424 PR middle-end/104086
2425 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
2427 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
2429 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
2431 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2434 2022-03-10 Hafiz Abid Qadeer <abidh@codesourcery.com>
2436 * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
2437 trait. Test last index in w and v array. Remove redundant
2438 assignment to V(1). Move alignment checks at the end of
2441 2022-03-10 Tom de Vries <tdevries@suse.de>
2443 * testsuite/libgomp.c/pr104783.c: New test.
2445 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
2448 PR middle-end/102330
2449 PR middle-end/104774
2450 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2452 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
2454 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
2456 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
2458 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
2460 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
2462 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
2464 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
2466 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
2468 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
2470 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
2472 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
2474 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
2476 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
2478 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
2479 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
2480 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2482 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
2485 * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
2486 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
2487 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
2488 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
2490 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
2493 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
2494 expected diagnostics.
2496 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
2498 PR middle-end/104784
2499 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
2500 Test with '--param=openacc-kernels=decompose'.
2501 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
2503 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
2505 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
2507 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
2509 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
2511 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
2513 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
2515 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
2517 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
2519 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
2521 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
2523 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
2525 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
2527 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
2529 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
2531 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
2533 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
2535 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
2537 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
2539 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
2541 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
2543 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
2545 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
2547 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
2549 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
2551 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
2553 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
2555 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
2557 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
2559 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
2561 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
2563 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
2566 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
2568 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
2569 Test '-fopt-info-omp-all'.
2570 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
2572 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
2574 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
2576 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
2578 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
2580 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
2582 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
2584 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
2586 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
2588 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
2590 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
2592 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
2594 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
2596 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
2598 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
2600 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
2602 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
2604 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
2606 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
2608 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
2610 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
2612 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
2614 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
2616 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
2618 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
2620 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
2622 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
2624 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
2626 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
2628 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
2630 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
2632 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
2635 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
2637 PR middle-end/100280
2638 PR middle-end/104132
2639 PR middle-end/104133
2640 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2643 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
2645 PR middle-end/100280
2646 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
2647 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2650 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
2652 PR middle-end/100280
2653 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
2654 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2657 2022-02-28 Tom de Vries <tdevries@suse.de>
2659 * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
2660 * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
2661 * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
2662 * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
2663 * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
2664 * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
2666 2022-02-24 Tom de Vries <tdevries@suse.de>
2668 * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
2669 * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
2670 * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
2671 * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
2672 * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
2673 * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
2674 * testsuite/libgomp.c/declare-variant-3.h: New header file.
2676 2022-02-22 Thomas Schwinge <thomas@codesourcery.com>
2678 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
2679 gang-redundant execution.
2681 2022-02-22 Tom de Vries <tdevries@suse.de>
2684 * config/nvptx/bar.c (generation_to_barrier): New function, copied
2685 from config/rtems/bar.c.
2686 (futex_wait, futex_wake): New function.
2687 (do_spin, do_wait): New function, copied from config/linux/wait.h.
2688 (gomp_barrier_wait_end, gomp_barrier_wait_last)
2689 (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
2690 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
2691 and replace with include of config/linux/bar.c.
2692 * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
2693 (gomp_barrier_init): Init new fields.
2694 * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
2696 * testsuite/libgomp.c/pr99555-1.c: Same.
2697 * testsuite/libgomp.fortran/task-detach-6.f90: Same.
2699 2022-02-22 Tom de Vries <tdevries@suse.de>
2702 * testsuite/libgomp.c++/pr96390.C: Add additional-option
2703 -foffload=-Wa,--verify for nvptx.
2704 * testsuite/libgomp.c-c++-common/pr96390.c: Same.
2706 2022-02-15 Tobias Burnus <tobias@codesourcery.com>
2708 * testsuite/libgomp.fortran/depend-4.f90: New test.
2710 2022-02-10 Tobias Burnus <tobias@codesourcery.com>
2713 * testsuite/libgomp.c++/target-virtual-1.C: New test.
2715 2022-02-10 Marcel Vollweiler <marcel@codesourcery.com>
2717 * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
2718 * target.c (copy_firstprivate_data): Copy only if host address is not
2720 * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
2721 * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
2722 * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
2723 * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
2724 * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
2725 * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
2726 * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
2727 * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
2728 * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
2729 * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
2731 2022-02-08 Jakub Jelinek <jakub@redhat.com>
2734 * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
2736 * testsuite/libgomp.c/pr104385.c: New test.
2738 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
2740 * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
2741 STOP of previous commit.
2743 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
2745 * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
2746 from is_64bit_aligned_.
2747 * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
2748 and use it, more implicit none, remove unused argument.
2750 2022-02-03 David Seifert <soap@gentoo.org>
2751 Jakub Jelinek <jakub@redhat.com>
2753 * configure.ac: Support --disable-werror.
2754 * configure: Regenerate.
2756 2022-02-01 Tom de Vries <tdevries@suse.de>
2758 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
2760 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
2761 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
2763 2022-02-01 Tom de Vries <tdevries@suse.de>
2765 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
2766 num_workers for nvidia accelerator to fix libgomp error 'insufficient
2768 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
2770 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
2772 2022-02-01 Tom de Vries <tdevries@suse.de>
2774 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
2776 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
2778 2022-01-31 Martin Liska <mliska@suse.cz>
2780 * acinclude.m4: Detect *_ld_is_mold and use it.
2781 * configure: Regenerate.
2783 2022-01-27 Tobias Burnus <tobias@codesourcery.com>
2785 * libgomp.texi (OpenMP 5.0): Update implementation status.
2787 2022-01-21 Thomas Schwinge <thomas@codesourcery.com>
2789 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
2790 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
2791 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
2792 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
2793 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
2794 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
2795 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
2796 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
2797 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
2798 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
2799 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
2800 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
2801 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
2802 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
2803 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
2805 2022-01-19 Marcel Vollweiler <marcel@codesourcery.com>
2807 * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
2808 "static") to make the device num available in the offload image.
2810 2022-01-19 Martin Liska <mliska@suse.cz>
2811 Thomas Schwinge <thomas@codesourcery.com>
2813 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
2815 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
2816 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
2818 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
2819 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2820 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
2821 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
2822 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
2824 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
2826 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
2828 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
2830 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
2832 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
2834 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
2835 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
2836 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
2838 2022-01-18 Martin Liska <mliska@suse.cz>
2840 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
2842 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
2843 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
2844 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
2845 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2846 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
2847 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
2848 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
2849 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
2850 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
2851 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
2852 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
2853 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
2854 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
2855 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
2856 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
2858 2022-01-17 Thomas Schwinge <thomas@codesourcery.com>
2860 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
2861 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
2862 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
2864 2022-01-17 Julian Brown <julian@codesourcery.com>
2865 Thomas Schwinge <thomas@codesourcery.com>
2867 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
2868 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
2869 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
2871 2022-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
2872 Andrew Stubbs <ams@codesourcery.com>
2874 * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
2875 the number of teams and threads if necessary.
2876 (gcn_exec): Automatically set the number of gangs and workers if
2879 2022-01-13 Hafiz Abid Qadeer <abidh@codesourcery.com>
2881 * testsuite/libgomp.fortran/allocate-1.c: New test.
2882 * testsuite/libgomp.fortran/allocate-1.f90: New test.
2883 * libgomp.texi: Remove string that says that allocate clause
2884 support is for C/C++ only.
2886 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
2888 * testsuite/libgomp.c-c++-common/on_device_arch.h
2889 (any_device_arch, any_device_arch_intel_mic): New.
2890 * testsuite/lib/libgomp.exp
2891 (check_effective_target_offload_device_any_intel_mic): New.
2892 * testsuite/libgomp.c-c++-common/target-45.c: Use it.
2893 * testsuite/libgomp.fortran/target10.f90: Likewise.
2895 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
2897 PR tree-optimization/102192
2898 * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
2899 '-Wuninitialized' diagnostics.
2901 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
2903 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
2904 current '-Wuninitialized' diagnostics.
2905 * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
2906 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
2907 * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
2908 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
2909 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
2910 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
2911 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
2912 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2913 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
2914 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
2915 * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
2918 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
2920 * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
2921 for 'offload_device_intel_mic'.
2923 2022-01-13 Julian Brown <julian@codesourcery.com>
2924 Thomas Schwinge <thomas@codesourcery.com>
2926 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
2927 offloading execution XFAIL.
2929 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
2931 PR middle-end/100280
2932 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
2934 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
2935 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2938 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
2940 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
2942 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
2944 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
2945 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
2946 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
2947 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
2948 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2950 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
2951 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
2952 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
2953 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
2955 2022-01-04 Tobias Burnus <tobias@codesourcery.com>
2957 * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
2958 * testsuite/libgomp.fortran/target10.f90: Likewise.
2960 2022-01-04 Chung-Lin Tang <cltang@codesourcery.com>
2962 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
2963 into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
2964 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2966 2022-01-03 Jakub Jelinek <jakub@redhat.com>
2968 * libgomp.texi: Bump @copying's copyright year.
2970 2021-12-13 Tobias Burnus <tobias@codesourcery.com>
2972 * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
2973 * testsuite/libgomp.fortran/atomic-19.f90: New test.
2975 2021-12-10 Andrew Stubbs <ams@codesourcery.com>
2977 * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
2978 (GOMP_OFFLOAD_load_image): Locate the offload variables via the
2979 table, not individual symbols.
2981 2021-12-09 Chung-Lin Tang <cltang@codesourcery.com>
2983 * testsuite/libgomp.c++/target-lambda-1.C: Only run under
2984 "target offload_device_nonshared_as"
2985 * testsuite/libgomp.c++/target-this-3.C: Likewise.
2986 * testsuite/libgomp.c++/target-this-4.C: Likewise.
2988 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
2990 * target.c (gomp_map_vars_existing): Make sure attached pointer is
2991 not overwritten during cross-host/device copying.
2992 (gomp_update): Likewise.
2993 (gomp_exit_data): Likewise.
2994 * testsuite/libgomp.c++/target-11.C: Adjust testcase.
2995 * testsuite/libgomp.c++/target-12.C: Likewise.
2996 * testsuite/libgomp.c++/target-15.C: Likewise.
2997 * testsuite/libgomp.c++/target-16.C: Likewise.
2998 * testsuite/libgomp.c++/target-17.C: Likewise.
2999 * testsuite/libgomp.c++/target-21.C: Likewise.
3000 * testsuite/libgomp.c++/target-23.C: Likewise.
3001 * testsuite/libgomp.c/target-23.c: Likewise.
3002 * testsuite/libgomp.c/target-29.c: Likewise.
3003 * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
3005 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
3008 * libgomp.h (gomp_attach_pointer): Add bool parameter.
3009 * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
3010 (goacc_enter_data_internal): Likewise.
3011 * target.c (gomp_map_vars_existing): Update assert condition to
3012 include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
3013 (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
3014 parameter, add support for mapping a pointer with NULL target.
3015 (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
3016 parameter, add support for attaching a pointer with NULL target.
3017 (gomp_map_vars_internal): Update calls to gomp_map_pointer and
3018 gomp_attach_pointer, add handling for
3019 GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
3020 GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
3021 * testsuite/libgomp.c++/target-23.C: New testcase.
3022 * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
3023 * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
3024 * testsuite/libgomp.c++/target-this-1.C: New testcase.
3025 * testsuite/libgomp.c++/target-this-2.C: New testcase.
3026 * testsuite/libgomp.c++/target-this-3.C: New testcase.
3027 * testsuite/libgomp.c++/target-this-4.C: New testcase.
3028 * testsuite/libgomp.c++/target-this-5.C: New testcase.
3030 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
3032 * libgomp.texi (OpenMP 5.1): Update status.
3034 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
3036 * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
3038 2021-12-02 Chung-Lin Tang <cltang@codesourcery.com>
3041 * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
3042 * testsuite/libgomp.fortran/pr90030.f90: New test.
3044 2021-11-30 Kwok Cheung Yeung <kcy@codesourcery.com>
3045 Thomas Schwinge <thomas@codesourcery.com>
3047 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
3050 2021-11-30 Cesar Philippidis <cesar@codesourcery.com>
3051 Thomas Schwinge <thomas@codesourcery.com>
3053 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
3056 2021-11-29 Richard Biener <rguenther@suse.de>
3058 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
3061 2021-11-24 Jakub Jelinek <jakub@redhat.com>
3063 PR middle-end/103384
3064 * testsuite/libgomp.c/declare-variant-2.c: New test.
3066 2021-11-18 David Edelsohn <dje.gcc@gmail.com>
3068 * alloc.c (gomp_aligned_alloc): Fix typo.
3070 2021-11-18 Jakub Jelinek <jakub@redhat.com>
3073 * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
3074 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
3075 (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
3076 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
3077 * work.c (alloc_work_share, gomp_work_share_start): Likewise.
3078 * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
3079 gomp_aligned_alloc instead of team_malloc.
3081 2021-11-18 Jakub Jelinek <jakub@redhat.com>
3084 * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
3085 memalign over posix_memalign over aligned_alloc over fallback
3086 with malloc instead of aligned_alloc over _aligned_alloc over
3087 posix_memalign over memalign over fallback with malloc. For
3088 aligned_alloc, round up size up to multiple of al.
3090 2021-11-16 Jakub Jelinek <jakub@redhat.com>
3092 * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
3093 construct as implemented.
3095 2021-11-15 Tobias Burnus <tobias@codesourcery.com>
3097 * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
3099 2021-11-15 Jakub Jelinek <jakub@redhat.com>
3101 * task.c (gomp_create_target_task): Copy args array as well.
3102 * target.c (gomp_target_fallback): Add args argument.
3103 Set gomp_icv (true)->thread_limit_var if thread_limit is present.
3104 (GOMP_target): Adjust gomp_target_fallback caller.
3105 (GOMP_target_ext): Likewise.
3106 (gomp_target_task_fn): Likewise.
3107 * config/nvptx/team.c (gomp_nvptx_main): Set
3108 gomp_global_icv.thread_limit_var.
3109 * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
3111 2021-11-15 Jakub Jelinek <jakub@redhat.com>
3113 * config/nvptx/team.c (__gomp_team_num): Define as
3114 __attribute__((shared)) var.
3115 (gomp_nvptx_main): Initialize __gomp_team_num to 0.
3116 * config/nvptx/target.c (__gomp_team_num): Declare as
3117 extern __attribute__((shared)) var.
3118 (GOMP_teams4): Use __gomp_team_num as the team number instead of
3119 %ctaid.x. If first, initialize it to %ctaid.x. If num_teams_lower
3120 is bigger than num_blocks, use num_teams_lower teams and arrange for
3121 bumping of __gomp_team_num if !first and returning false once we run
3123 * config/nvptx/teams.c (__gomp_team_num): Declare as
3124 extern __attribute__((shared)) var.
3125 (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
3127 2021-11-15 Jakub Jelinek <jakub@redhat.com>
3129 * testsuite/libgomp.c/teams-5.c: New test.
3131 2021-11-12 Jakub Jelinek <jakub@redhat.com>
3134 * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
3136 * config/gcn/teams.c: ... here. New file.
3138 2021-11-12 Chung-Lin Tang <cltang@codesourcery.com>
3140 * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
3141 implicit map handling to allow a "superset" existing map as valid case.
3142 (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
3143 (get_implicit): New function to extract implicit status.
3144 (gomp_map_fields_existing): Adjust arguments in calls to
3145 gomp_map_vars_existing, and add uses of get_implicit.
3146 (gomp_map_vars_internal): Likewise.
3147 * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
3149 2021-11-12 Jakub Jelinek <jakub@redhat.com>
3151 * libgomp_g.h (GOMP_teams4): Declare.
3152 * libgomp.map (GOMP_5.1): Export GOMP_teams4.
3153 * target.c (GOMP_teams4): New function.
3154 * config/nvptx/target.c (GOMP_teams): Remove.
3155 (GOMP_teams4): New function.
3156 * config/gcn/target.c (GOMP_teams): Remove.
3157 (GOMP_teams4): New function.
3158 * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
3159 teams instead of <= 2.
3160 * testsuite/libgomp.c-c++-common/teams-2.c: New test.
3162 2021-11-11 Tobias Burnus <tobias@codesourcery.com>
3164 * testsuite/libgomp.fortran/teams-1.f90: New test.
3166 2021-11-11 Jakub Jelinek <jakub@redhat.com>
3168 * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
3169 * team.c (struct gomp_thread_start_data): Likewise.
3170 (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
3171 (gomp_team_start): Initialize start_data->num_teams and
3172 start_data->team_num. Update nthr->num_teams and nthr->team_num.
3173 * teams.c (gomp_num_teams, gomp_team_num): Remove.
3174 (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
3175 instead of gomp_num_teams and gomp_team_num.
3176 (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
3177 (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
3178 * testsuite/libgomp.c/teams-4.c: New test.
3180 2021-11-11 Jakub Jelinek <jakub@redhat.com>
3182 * testsuite/libgomp.c-c++-common/teams-1.c: New test.
3184 2021-11-09 Thomas Schwinge <thomas@codesourcery.com>
3186 * env.c (parse_gomp_openacc_dim): Restore parsing.
3188 2021-10-30 Tobias Burnus <tobias@codesourcery.com>
3190 PR middle-end/102972
3191 * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
3193 * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
3194 * testsuite/libgomp.c/target-3.c: Likewise.
3195 * testsuite/libgomp.c/target-5.c: Likewise.
3196 * testsuite/libgomp.c/target-6.c: Likewise.
3197 * testsuite/libgomp.c/target-teams-1.c: Likewise.
3198 * testsuite/libgomp.c/teams-1.c: Likewise.
3199 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
3200 * testsuite/libgomp.c/thread-limit-3.c: Likewise.
3201 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
3202 * testsuite/libgomp.c/thread-limit-5.c: Likewise.
3203 * testsuite/libgomp.fortran/icv-3.f90: Likewise.
3204 * testsuite/libgomp.fortran/icv-4.f90: Likewise.
3205 * testsuite/libgomp.fortran/teams1.f90: Likewise.
3207 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
3209 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
3210 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
3212 2021-10-27 Jakub Jelinek <jakub@redhat.com>
3214 * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
3215 aren't implemented for Fortran yet.
3217 2021-10-27 Jakub Jelinek <jakub@redhat.com>
3219 * testsuite/libgomp.c/loop-26.c: New test.
3220 * testsuite/libgomp.c/loop-27.c: New test.
3222 2021-10-25 Tobias Burnus <tobias@codesourcery.com>
3225 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
3226 instead of #include <alloca.h> + alloca.
3228 2021-10-21 Chung-Lin Tang <cltang@codesourcery.com>
3230 * libgomp.texi (Support of strictly structured blocks in Fortran):
3232 * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
3234 2021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
3236 * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
3237 * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
3239 2021-10-20 Jakub Jelinek <jakub@redhat.com>
3242 * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
3243 (struct gomp_work_share): Only use aligned(64) attribute if
3244 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
3245 add padding before lock to ensure lock is at offset 64 bytes
3247 (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
3248 New poor man's static assertions.
3249 * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
3250 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
3252 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
3253 Richard Biener <rguenther@suse.de>
3255 * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
3257 2021-10-18 Jakub Jelinek <jakub@redhat.com>
3259 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
3260 && gomp_places_list_len < count after nfirst <= nlast loop condition.
3262 2021-10-18 Tobias Burnus <tobias@codesourcery.com>
3271 * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
3273 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3275 * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
3276 type from char [50] to const char *.
3277 (places_array): Add a testcase for simplified syntax place followed
3278 by length or length and stride.
3280 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3282 * env.c (parse_one_place): Handle non-negative-number the same
3283 as { non-negative-number }. Reject even !number:1 and
3284 !number:1:stride or !place:1 or !place:1:stride instead of just
3285 length other than 1.
3286 * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
3287 and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
3288 omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
3290 * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
3293 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3295 * env.c (parse_schedule): For strtoul or strtoull calls which don't
3296 clearly reject return value 0 as invalid handle the case where end
3297 pointer is the same as first argument as invalid.
3298 (parse_unsigned_long_1): Likewise.
3299 (parse_one_place): Likewise.
3300 (parse_places_var): Likewise.
3301 (parse_stacksize): Likewise.
3302 (parse_spincount): Likewise.
3303 (parse_affinity): Likewise.
3304 (parse_gomp_openacc_dim): Likewise. Avoid strict aliasing violation.
3305 Make code valid C89.
3306 * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
3307 For strtoul calls which don't clearly reject return value 0 as
3308 invalid handle the case where end pointer is the same as first
3309 argument as invalid.
3310 (gomp_affinity_init_level_1): Likewise.
3311 (gomp_affinity_init_numa_domains): Likewise.
3312 * config/rtems/proc.c (parse_thread_pools): Likewise.
3314 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3316 * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
3317 after creating count places clean up and return immediately.
3318 * testsuite/libgomp.c/places-6.c: New test.
3319 * testsuite/libgomp.c/places-7.c: New test.
3320 * testsuite/libgomp.c/places-8.c: New test.
3321 * testsuite/libgomp.c/places-9.c: New test.
3322 * testsuite/libgomp.c/places-10.c: New test.
3324 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3326 * env.c (parse_places_var): Handle numa_domains as level 5.
3327 * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
3329 (gomp_affinity_init_level): Use it instead of
3330 gomp_affinity_init_level_1 for level == 5.
3331 * testsuite/libgomp.c/places-5.c: New test.
3333 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3335 * env.c (parse_places_var): Handle ll_caches as level 4.
3336 * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
3338 (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
3340 (gomp_affinity_init_level): Likewise.
3341 * testsuite/libgomp.c/places-1.c: New test.
3342 * testsuite/libgomp.c/places-2.c: New test.
3343 * testsuite/libgomp.c/places-3.c: New test.
3344 * testsuite/libgomp.c/places-4.c: New test.
3346 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
3348 * libgomp.texi (OpenMP 5.0): Update entry for declare variant
3351 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
3353 * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
3355 2021-10-12 Julian Brown <julian@codesourcery.com>
3357 * target.c (gomp_copy_host2dev): Release device lock on cbuf
3360 2021-10-12 Tobias Burnus <tobias@codesourcery.com>
3362 * testsuite/libgomp.fortran/icv-3.f90: New.
3363 * testsuite/libgomp.fortran/icv-4.f90: New.
3365 2021-10-12 Jakub Jelinek <jakub@redhat.com>
3367 * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
3368 omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
3369 OMP_TEAMS_THREAD_LIMIT): Document.
3371 2021-10-12 Jakub Jelinek <jakub@redhat.com>
3373 * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
3374 to avoid makeinfo warnings.
3376 2021-10-12 Jakub Jelinek <jakub@redhat.com>
3378 * testsuite/libgomp.c-c++-common/icv-3.c: New test.
3379 * testsuite/libgomp.c-c++-common/icv-4.c: New test.
3381 2021-10-12 Jakub Jelinek <jakub@redhat.com>
3385 * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
3386 allocation sizes from 420 to 320 and from 768 to 568.
3387 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
3388 * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
3389 for cr from 16 to 4.
3391 2021-10-12 Jakub Jelinek <jakub@redhat.com>
3393 * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
3394 * testsuite/libgomp.c/scan-12.c: Likewise.
3395 * testsuite/libgomp.c/scan-13.c: Likewise.
3396 * testsuite/libgomp.c/scan-14.c: Likewise.
3397 * testsuite/libgomp.c/scan-15.c: Likewise.
3398 * testsuite/libgomp.c/scan-16.c: Likewise.
3399 * testsuite/libgomp.c/scan-17.c: Likewise.
3400 * testsuite/libgomp.c/scan-18.c: Likewise.
3401 * testsuite/libgomp.c/scan-19.c: Likewise.
3402 * testsuite/libgomp.c/scan-20.c: Likewise.
3403 * testsuite/libgomp.c/scan-21.c: Likewise.
3404 * testsuite/libgomp.c/scan-22.c: Likewise.
3405 * testsuite/libgomp.c++/scan-9.C: Likewise.
3406 * testsuite/libgomp.c++/scan-10.C: Likewise.
3407 * testsuite/libgomp.c++/scan-11.C: Likewise.
3408 * testsuite/libgomp.c++/scan-12.C: Likewise.
3409 * testsuite/libgomp.c++/scan-13.C: Likewise.
3410 * testsuite/libgomp.c++/scan-14.C: Likewise.
3411 * testsuite/libgomp.c++/scan-15.C: Likewise.
3412 * testsuite/libgomp.c++/scan-16.C: Likewise.
3414 2021-10-12 Kewen Lin <linkw@linux.ibm.com>
3416 * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
3418 2021-10-11 Marcel Vollweiler <marcel@codesourcery.com>
3420 * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
3422 * omp.h.in: Add deprecated flag for omp_atv_sequential.
3423 * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
3424 * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
3425 * testsuite/libgomp.fortran/alloc-12.f90: New test.
3427 2021-10-11 Jakub Jelinek <jakub@redhat.com>
3429 * omp.h.in (omp_set_num_teams, omp_get_max_teams,
3430 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
3431 * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
3432 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
3433 * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
3434 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
3435 * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
3436 * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
3437 omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
3438 omp_set_teams_thread_limit{,_,_8_}.
3439 * icv.c (omp_set_num_teams, omp_get_max_teams,
3440 omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
3442 * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
3443 (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
3444 (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
3446 * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
3447 gomp_teams_thread_limit_var as fallback if not zero. If num_teams
3448 is not specified, use gomp_nteams_var.
3449 * fortran.c (omp_set_num_teams, omp_get_max_teams,
3450 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
3452 (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
3453 omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
3454 omp_get_teams_thread_limit_): New functions.
3456 2021-10-09 liuhongt <hongtao.liu@intel.com>
3458 * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
3459 * testsuite/libgomp.c++/scan-11.C: Ditto.
3460 * testsuite/libgomp.c++/scan-12.C: Ditto.
3461 * testsuite/libgomp.c++/scan-13.C: Ditto.
3462 * testsuite/libgomp.c++/scan-14.C: Ditto.
3463 * testsuite/libgomp.c++/scan-15.C: Ditto.
3464 * testsuite/libgomp.c++/scan-16.C: Ditto.
3465 * testsuite/libgomp.c++/scan-9.C: Ditto.
3466 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
3467 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
3468 * testsuite/libgomp.c/scan-11.c: Ditto.
3469 * testsuite/libgomp.c/scan-12.c: Ditto.
3470 * testsuite/libgomp.c/scan-13.c: Ditto.
3471 * testsuite/libgomp.c/scan-14.c: Ditto.
3472 * testsuite/libgomp.c/scan-15.c: Ditto.
3473 * testsuite/libgomp.c/scan-16.c: Ditto.
3474 * testsuite/libgomp.c/scan-17.c: Ditto.
3475 * testsuite/libgomp.c/scan-18.c: Ditto.
3476 * testsuite/libgomp.c/scan-19.c: Ditto.
3477 * testsuite/libgomp.c/scan-20.c: Ditto.
3478 * testsuite/libgomp.c/scan-21.c: Ditto.
3479 * testsuite/libgomp.c/scan-22.c: Ditto.
3481 2021-10-09 Jakub Jelinek <jakub@redhat.com>
3483 * libgomp.texi (OpenMP 5.1): Mention implemented support for
3484 structured block sequences in C/C++. Mention support for
3485 unconstrained/reproducible modifiers on order clause.
3486 Mention partial (C/C++ only) support of extentensions to atomics
3487 construct. Mention partial (C/C++ on clause only) support of
3488 align/allocator modifiers on allocate clause.
3490 2021-10-02 Tobias Burnus <tobias@codesourcery.com>
3492 * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
3493 based on libgomp.c-c++-common/order-reproducible-1.c.
3494 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
3495 * testsuite/libgomp.fortran/my-usleep.c: New test.
3497 2021-10-01 Tobias Burnus <tobias@codesourcery.com>
3499 * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
3500 * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
3501 * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
3502 * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
3503 based on libgomp.c-c++-common/alloc-9.c.
3505 2021-10-01 Jakub Jelinek <jakub@redhat.com>
3507 * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
3508 * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
3510 2021-10-01 Jakub Jelinek <jakub@redhat.com>
3512 * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
3514 * env.c (handle_omp_display_env): Use ialias_call.
3515 * icv-device.c: Move ialias right below each function.
3516 (omp_get_device_num): Use ialias_call.
3517 * fortran.c (omp_fulfill_event): Add ialias_redirect.
3518 * icv.c (omp_get_active_level): Add ialias_redirect.
3520 2021-10-01 Jakub Jelinek <jakub@redhat.com>
3522 * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
3523 __alloc_align__ (1) attribute.
3524 * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
3526 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
3528 * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
3529 for -fintrinsic-modules-path= warning of the C compiler.
3530 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
3531 * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
3533 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
3535 * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
3536 omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
3537 * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
3539 * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
3541 * testsuite/libgomp.fortran/alloc-10.f90: New test.
3542 * testsuite/libgomp.fortran/alloc-6.f90: New test.
3543 * testsuite/libgomp.fortran/alloc-7.c: New test.
3544 * testsuite/libgomp.fortran/alloc-7.f90: New test.
3545 * testsuite/libgomp.fortran/alloc-8.f90: New test.
3546 * testsuite/libgomp.fortran/alloc-9.f90: New test.
3548 2021-09-30 Jakub Jelinek <jakub@redhat.com>
3550 * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
3551 omp_realloc): New prototypes.
3552 (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
3554 * allocator.c: Include string.h.
3555 (omp_aligned_alloc): No longer static, add ialias. Add new_alignment
3556 variable and use it instead of alignment so that when retrying the old
3557 alignment is used again. Don't retry if new alignment is the same
3558 as old alignment, unless allocator had pool size.
3559 (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
3560 (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
3561 * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
3562 omp_aligned_calloc and omp_realloc.
3563 * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
3564 omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
3565 * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
3566 * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
3567 * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
3568 * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
3570 2021-09-28 Tobias Burnus <tobias@codesourcery.com>
3573 * configure.ac: Only check for int-type = 2*size_t support when
3574 building with Fortran support.
3575 * configure: Regenerate.
3577 2021-09-28 Thomas Schwinge <thomas@codesourcery.com>
3579 * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
3580 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3582 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
3584 * team.c: Initialize start_data.
3585 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
3586 * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
3588 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
3590 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
3591 dg-message back to dg-note.
3593 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
3596 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
3597 expected dg-note output.
3599 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
3602 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
3603 r12-3722 by removing -Wno-missing-include-dirs.
3604 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
3606 2021-09-22 Jakub Jelinek <jakub@redhat.com>
3608 * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
3609 * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
3611 2021-09-21 Tobias Burnus <tobias@codesourcery.com>
3614 * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
3616 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
3618 2021-09-18 Jakub Jelinek <jakub@redhat.com>
3620 * testsuite/libgomp.c++/default-1.C: New test.
3621 * testsuite/libgomp.c-c++-common/default-1.c: New test.
3622 * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
3623 to default clause in C and C++" as implemented.
3625 2021-09-17 Julian Brown <julian@codesourcery.com>
3627 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
3629 2021-09-17 Julian Brown <julian@codesourcery.com>
3631 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
3633 2021-09-17 Jakub Jelinek <jakub@redhat.com>
3635 * libgomp.texi (OpenMP 5.1): Spelling fix,
3636 declare variante -> declare variant.
3638 2021-09-17 Jakub Jelinek <jakub@redhat.com>
3640 * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
3641 Use /* */ comments instead of //.
3642 * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
3643 * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
3644 * testsuite/libgomp.c++/atomic-16.C: New test.
3645 * testsuite/libgomp.c++/atomic-17.C: New test.
3647 2021-09-10 Jakub Jelinek <jakub@redhat.com>
3649 * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
3650 * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
3651 * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
3653 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
3655 * libgomp.texi (OpenMP Implementation Status): Extend
3657 (OpenACC Profiling Interface): Fix typo.
3659 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
3661 * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
3662 not to 4.5; link to new section.
3663 (OpenMP Implementation Status): New.
3665 2021-09-06 Thomas Schwinge <thomas@codesourcery.com>
3667 * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
3669 2021-09-03 Tobias Burnus <tobias@codesourcery.com>
3671 * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
3673 * testsuite/libgomp.fortran/error-1.f90: Likewise.
3675 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
3676 Jakub Jelinek <jakub@redhat.com>
3678 * testsuite/libgomp.c/address-space-1.c: New file.
3680 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
3682 * testsuite/lib/libgomp.exp
3683 (check_effective_target_offload_target_intelmic): Remove 'proc'.
3684 (check_effective_target_offload_device_intel_mic): New 'proc'.
3685 * testsuite/libgomp.c-c++-common/on_device_arch.h
3686 (device_arch_intel_mic, on_device_arch_intel_mic): New.
3687 * testsuite/libgomp.c-c++-common/target-45.c: Use that for
3689 * testsuite/libgomp.fortran/target10.f90: Likewise.
3691 2021-08-23 Tobias Burnus <tobias@codesourcery.com>
3693 * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
3694 * testsuite/libgomp.fortran/taskloop-4.f90: New test.
3695 * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
3696 * testsuite/libgomp.fortran/taskloop-5.f90: New test.
3698 2021-08-23 Jakub Jelinek <jakub@redhat.com>
3700 * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
3701 * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
3702 * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
3704 2021-08-22 Thomas Schwinge <thomas@codesourcery.com>
3706 * config/nvptx/error.c (fwrite, exit): Override, too.
3707 * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
3708 of offloading testing.
3709 * testsuite/libgomp.fortran/error-1.f90: Likewise.
3711 2021-08-20 Tobias Burnus <tobias@codesourcery.com>
3713 * testsuite/libgomp.fortran/error-1.f90: New test.
3715 2021-08-20 Jakub Jelinek <jakub@redhat.com>
3717 * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
3718 * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
3719 * error.c (GOMP_warning, GOMP_error): New functions.
3720 * testsuite/libgomp.c-c++-common/error-1.c: New test.
3722 2021-08-18 Tobias Burnus <tobias@codesourcery.com>
3724 * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
3725 omp_target_free. omp_target_is_present, omp_target_memcpy,
3726 omp_target_memcpy_rect, omp_target_associate_ptr,
3727 omp_target_disassociate_ptr): Add interface.
3728 * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
3729 omp_target_free. omp_target_is_present, omp_target_memcpy,
3730 omp_target_memcpy_rect, omp_target_associate_ptr,
3731 omp_target_disassociate_ptr): Add interface.
3732 * testsuite/libgomp.fortran/alloc-1.F90: Remove local
3733 interface block for omp_alloc + omp_free.
3734 * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
3735 * testsuite/libgomp.fortran/refcount-1.f90: New test.
3736 * testsuite/libgomp.fortran/target-12.f90: New test.
3738 2021-08-18 Jakub Jelinek <jakub@redhat.com>
3740 * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
3742 2021-08-17 Tobias Burnus <tobias@codesourcery.com>
3744 * testsuite/libgomp.fortran/scope-1.f90: New test.
3745 * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
3747 2021-08-17 Jakub Jelinek <jakub@redhat.com>
3749 * Makefile.am (libgomp_la_SOURCES): Add scope.c
3750 * Makefile.in: Regenerated.
3751 * libgomp_g.h (GOMP_scope_start): Declare.
3752 * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
3753 * scope.c: New file.
3754 * testsuite/libgomp.c-c++-common/scope-1.c: New test.
3755 * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
3757 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
3759 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
3762 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
3764 * testsuite/libgomp.fortran/masked-1.f90: New test.
3766 2021-08-13 Thomas Schwinge <thomas@codesourcery.com>
3768 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
3770 2021-08-12 Jakub Jelinek <jakub@redhat.com>
3772 * testsuite/libgomp.c-c++-common/masked-1.c: New test.
3774 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
3776 * env.c (parse_bind_var): Accept 'primary' as alias for
3778 (omp_display_env): Add TODO comment to
3779 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
3780 * libgomp.texi: Change 'master thread' to 'primary thread'
3781 in line with OpenMP 5.1.
3782 (omp_get_proc_bind): Add omp_proc_bind_primary and note that
3783 omp_proc_bind_master is an alias of it.
3784 (OMP_PROC_BIND): Mention 'PRIMARY'.
3785 * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
3786 (omp_proc_bind_primary): Add.
3787 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
3788 * omp_lib.f90.in (omp_proc_bind_primary): Add.
3789 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
3790 * omp_lib.h.in (omp_proc_bind_primary): Add.
3791 * testsuite/libgomp.c/affinity-1.c: Check that
3792 'primary' works and is identical to 'master'.
3794 2021-08-09 Julian Brown <julian@codesourcery.com>
3795 Kwok Cheung Yeung <kcy@codesourcery.com>
3796 Thomas Schwinge <thomas@codesourcery.com>
3798 * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
3800 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
3801 [acc_device_radeon]: Update.
3802 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
3803 [ACC_DEVICE_TYPE_radeon]: Likewise.
3804 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
3805 [acc_device_radeon]: Likewise.
3806 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
3807 [ACC_DEVICE_TYPE_radeon]: Likewise.
3808 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
3809 'openacc_radeon_accel_selected' and '-O0'.
3810 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
3812 2021-08-05 Chung-Lin Tang <cltang@codesourcery.com>
3814 * icv-device.c (omp_get_device_num): New API function, host side.
3815 * fortran.c (omp_get_device_num_): New interface function.
3816 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
3817 * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
3818 omp_get_device_num_.
3819 * libgomp.texi (omp_get_device_num): Add documentation for new API
3821 * omp.h.in (omp_get_device_num): Add declaration.
3822 * omp_lib.f90.in (omp_get_device_num): Likewise.
3823 * omp_lib.h.in (omp_get_device_num): Likewise.
3824 * target.c (gomp_load_image_to_device): If additional entry for device
3825 number exists at end of returned entries from 'load_image_func' hook,
3826 copy the assigned device number over to the device variable.
3827 * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
3828 (omp_get_device_num): New API function, device side.
3829 * plugin/plugin-gcn.c ("symcat.h"): Add include.
3830 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
3831 at end of returned 'target_table' entries.
3832 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
3833 (omp_get_device_num): New API function, device side.
3834 * plugin/plugin-nvptx.c ("symcat.h"): Add include.
3835 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
3836 at end of returned 'target_table' entries.
3837 * testsuite/lib/libgomp.exp
3838 (check_effective_target_offload_target_intelmic): New function for
3839 testing for intelmic offloading.
3840 * testsuite/libgomp.c-c++-common/target-45.c: New test.
3841 * testsuite/libgomp.fortran/target10.f90: New test.
3843 2021-07-30 Thomas Schwinge <thomas@codesourcery.com>
3844 Ulrich Drepper <drepper@redhat.com>
3846 * fortran.c (omp_display_env_, omp_display_env_8_): Only
3847 '#ifndef LIBGOMP_OFFLOADED_ONLY'.
3849 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
3850 Julian Brown <julian@codesourcery.com>
3851 Kwok Cheung Yeung <kcy@codesourcery.com>
3853 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
3854 's%oaccdevlow%oaccloops%g'.
3855 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
3856 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3857 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
3859 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
3861 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
3863 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
3865 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
3867 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
3869 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
3871 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
3873 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
3875 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
3877 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
3879 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
3881 2021-07-27 Ulrich Drepper <drepper@gmail.com>
3883 * env.c (wait_policy, stacksize): New static variables,
3884 move out of handle_omp_display_env.
3885 (omp_display_env): New function. The meat of the old
3886 handle_omp_display_env function.
3887 (handle_omp_display_env): Change to not take parameters
3888 and instead use the global variables. Only perform
3889 parsing, defer to omp_display_env for the implementation.
3890 (initialize_env): Remove local variables wait_policy and
3891 stacksize. Don't pass parameters to handle_omp_display_env.
3892 * fortran.c: Add ialias_redirect for omp_display_env.
3893 (omp_display_env_, omp_display_env_8_): New functions.
3894 * libgomp.map (OMP_5.1): New version. Add omp_display_env,
3895 omp_display_env_, and omp_display_env_8_.
3896 * omp.h.in: Declare omp_display_env.
3897 * omp_lib.f90.in: Likewise.
3898 * omp_lib.h.in: Likewise.
3900 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
3901 Julian Brown <julian@codesourcery.com>
3903 * target.c (gomp_coalesce_buf_add): Update comment.
3904 (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
3906 (gomp_map_vars_internal): Only 'if (!aq)', do
3907 'gomp_coalesce_buf_add'.
3908 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
3911 2021-07-27 Julian Brown <julian@codesourcery.com>
3912 Thomas Schwinge <thomas@codesourcery.com>
3914 * libgomp.h (gomp_copy_host2dev): Update prototype.
3915 * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
3916 argument to gomp_copy_host2dev (false).
3917 * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
3918 (copy_data): Don't free src.
3919 (queue_push_copy): Remove free_src handling.
3920 (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
3921 (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
3923 (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
3925 * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
3926 (gomp_copy_host2dev): Add EPHEMERAL parameter. Snapshot source
3927 data when true, and set up deferred freeing of temporary buffer.
3928 (gomp_copy_dev2host): Update call to goacc_device_copy_async.
3929 (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
3930 (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
3931 calls to gomp_copy_host2dev with appropriate ephemeral argument.
3932 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
3935 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
3936 Tom de Vries <tom@codesourcery.com>
3938 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
3939 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
3941 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
3943 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
3944 sequencing of 'async' data copying vs. profiling events.
3945 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
3948 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
3949 Julian Brown <julian@codesourcery.com>
3951 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
3952 'async'/'wait' issue.
3953 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
3954 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
3955 * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
3957 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
3958 Joseph Myers <joseph@codesourcery.com>
3959 Cesar Philippidis <cesar@codesourcery.com>
3961 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
3963 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
3965 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
3967 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
3969 2021-07-20 Thomas Schwinge <thomas@codesourcery.com>
3972 * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
3973 '-Wno-error=array-bounds'.
3974 * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
3975 * libgomp.h [__AMDGCN__]: Likewise.
3977 2021-07-19 Thomas Schwinge <thomas@codesourcery.com>
3980 * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
3981 * libgomp.h [__AMDGCN__]: Likewise.
3983 2021-07-13 Jakub Jelinek <jakub@redhat.com>
3984 Florian Weimer <fweimer@redhat.com>
3986 * config/linux/sem.h: Don't include limits.h.
3987 (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
3988 * config/linux/affinity.c: Include limits.h.
3990 2021-07-01 Jakub Jelinek <jakub@redhat.com>
3993 * testsuite/libgomp.c-c++-common/pr94366.c: New test.
3995 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
3998 * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
3999 -foffload=nvptx-none= by -foffload-options=nvptx-none= to
4000 avoid disabling other offload targets.
4001 * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
4002 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
4003 * testsuite/libgomp.c/target-44.c: Likewise.
4005 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
4007 * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
4008 target has shared memory and disable some scalar pointer/allocatable
4009 checks if not as firstprivate does not work.
4011 2021-06-25 Chung-Lin Tang <cltang@codesourcery.com>
4014 * testsuite/libgomp.c-c++-common/struct-elem-5.c:
4015 Add "target offload_device_nonshared_as" condition for enabling test.
4017 2021-06-24 Jakub Jelinek <jakub@redhat.com>
4019 * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
4020 * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
4021 * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
4022 * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
4024 2021-06-23 Jakub Jelinek <jakub@redhat.com>
4026 PR middle-end/101167
4027 * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
4029 2021-06-17 Chung-Lin Tang <cltang@codesourcery.com>
4031 * hashtab.h (htab_clear): New function with initialization code
4032 factored out from...
4033 (htab_create): ...here, adjust to use htab_clear function.
4034 * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
4035 special refcount values, add comments.
4036 (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
4037 (REFCOUNT_LINK): Likewise.
4038 (REFCOUNT_STRUCTELEM): New special refcount range for structure
4040 (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
4042 (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
4043 (REFCOUNT_STRUCTELEM_FLAG_LAST): Flag to indicate last sibling.
4044 (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
4045 (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
4046 (struct splay_tree_key_s): Add structelem_refcount and
4047 structelem_refcount_ptr fields into a union with dynamic_refcount.
4049 (gomp_map_vars): Delete declaration.
4050 (gomp_map_vars_async): Likewise.
4051 (gomp_unmap_vars): Likewise.
4052 (gomp_unmap_vars_async): Likewise.
4053 (goacc_map_vars): New declaration.
4054 (goacc_unmap_vars): Likewise.
4055 * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
4056 (goacc_enter_datum): Likewise.
4057 (goacc_enter_data_internal): Likewise.
4058 * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
4059 and goacc_unmap_vars.
4060 (GOACC_data_start): Adjust to use goacc_map_vars.
4061 (GOACC_data_end): Adjust to use goacc_unmap_vars.
4062 * target.c (hash_entry_type): New typedef.
4063 (htab_alloc): New function hook for hashtab.h.
4064 (htab_free): Likewise.
4065 (htab_hash): Likewise.
4066 (htab_eq): Likewise.
4067 (hashtab.h): Add file include.
4068 (gomp_increment_refcount): New function.
4069 (gomp_decrement_refcount): Likewise.
4070 (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
4071 gomp_increment_refcount.
4072 (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
4073 to gomp_map_vars_existing.
4074 (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
4075 variable to guard OpenMP specific paths, adjust calls to
4076 gomp_map_vars_existing, add structure element sibling splay_tree_key
4077 sequence creation code, adjust Fortran map case to avoid increment
4079 (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
4080 local refcount_set if caller passed in NULL, adjust call to
4081 gomp_map_vars_internal.
4082 (gomp_map_vars_async): Adjust and rename into...
4083 (goacc_map_vars): ...this new function, adjust call to
4084 gomp_map_vars_internal.
4085 (gomp_remove_splay_tree_key): New function with code factored out from
4086 gomp_remove_var_internal.
4087 (gomp_remove_var_internal): Add code to handle removing multiple
4088 splay_tree_key sequence for structure elements, adjust code to use
4089 gomp_remove_splay_tree_key for splay-tree key removal.
4090 (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
4091 gomp_decrement_refcount.
4092 (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
4093 local refcount_set if caller passed in NULL, adjust call to
4094 gomp_unmap_vars_internal.
4095 (gomp_unmap_vars_async): Adjust and rename into...
4096 (goacc_unmap_vars): ...this new function, adjust call to
4097 gomp_unmap_vars_internal.
4098 (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
4100 (GOMP_target_ext): Likewise.
4101 (gomp_target_data_fallback): Adjust call to gomp_map_vars.
4102 (GOMP_target_data): Likewise.
4103 (GOMP_target_data_ext): Likewise.
4104 (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
4105 (gomp_exit_data): Add refcount_set parameter, adjust to use
4106 gomp_decrement_refcount, adjust to queue splay-tree keys for removal
4108 (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
4109 gomp_map_vars and gomp_exit_data.
4110 (gomp_target_task_fn): Likewise.
4111 * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
4112 * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
4113 * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
4114 * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
4115 * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
4116 * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
4118 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
4121 * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
4123 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
4124 Thomas Schwinge <thomas@codesourcery.com>
4126 * libgomp.map (GOACC_2.0.2): New symbol version.
4127 * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
4128 * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
4130 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
4131 Andrew Stubbs <ams@codesourcery.com>
4133 * oacc-mem.c (goacc_enter_exit_data_internal): New function,
4135 (GOACC_enter_exit_data): ... here.
4136 (GOACC_declare): Use it.
4138 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
4140 * oacc-parallel.c (GOACC_declare): Move...
4141 * oacc-mem.c: ... here.
4142 * libgomp_g.h: Adjust.
4144 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
4145 Thomas Schwinge <thomas@codesourcery.com>
4147 * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
4150 2021-06-10 Jakub Jelinek <jakub@redhat.com>
4152 PR tree-optimization/100981
4153 * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
4154 dsdotr and dsdoti to 0.
4156 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
4158 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
4159 if atomic compare-and-swap is supported on 'int'.
4161 2021-06-09 Richard Biener <rguenther@suse.de>
4163 PR tree-optimization/100981
4164 * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
4166 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4168 * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
4170 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
4172 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4173 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
4175 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4177 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
4178 '-DACC_MEM_SHARED=0'.
4179 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
4180 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
4181 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
4182 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
4183 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
4184 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
4185 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
4186 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
4187 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
4188 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
4189 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
4190 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
4191 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
4192 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
4193 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
4194 'acc_device_radeon' testing.
4195 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
4196 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
4197 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
4198 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
4199 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
4200 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
4201 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
4202 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
4203 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
4204 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
4205 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
4206 for non-'openacc_nvidia_accel_selected'.
4207 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
4208 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
4209 all implement this checking".
4210 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
4211 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
4212 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
4213 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
4214 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
4216 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4218 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
4219 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
4221 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4223 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
4224 for 'acc_device_radeon'.
4226 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4228 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
4229 for non-'acc_device_nvidia'.
4231 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4233 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
4234 'acc_device_radeon' testing.
4235 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
4236 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
4237 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
4239 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4241 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
4242 require 'openacc_nvidia_accel_selected'. Fix up for
4243 'ACC_DEVICE_TYPE_radeon'.
4245 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4247 * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
4248 'openacc_nvidia_accel_selected'.
4249 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
4251 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4253 * testsuite/lib/libgomp.exp
4254 (check_effective_target_openacc_radeon_accel_selected):
4257 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4259 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
4262 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4264 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
4265 <acc_device_nvidia>: Update comment.
4267 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
4269 * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
4271 2021-05-27 Jakub Jelinek <jakub@redhat.com>
4273 * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
4274 check_effective_target_openacc_cublas,
4275 check_effective_target_openacc_cudart): New.
4276 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
4277 target openacc_cublas.
4278 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
4279 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
4280 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
4281 target openacc_cuda.
4282 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
4283 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
4284 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
4285 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
4286 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
4287 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
4288 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
4289 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
4290 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
4291 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
4292 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
4293 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
4294 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
4295 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
4296 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
4297 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
4298 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
4299 targets openacc_cublas and openacc_cudart.
4300 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
4301 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
4302 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
4303 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
4304 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
4305 Require effective target openacc_cudart.
4306 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
4307 for effective target openacc_cuda and add && defined USE_CUDA_H to
4308 preprocessor conditionals. Guard -lcuda also on openacc_cuda
4311 2021-05-26 Jakub Jelinek <jakub@redhat.com>
4314 * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
4315 GOMP_target_end_data, GOMP_target_update_ext,
4316 GOMP_target_enter_exit_data): New dummy entrypoints.
4317 * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
4318 GOMP_target_end_data, GOMP_target_update_ext,
4319 GOMP_target_enter_exit_data): Likewise.
4320 * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
4321 OMPFROM, OMPTO): Define.
4322 (main): Remove #pragma omp target teams around all the tests.
4323 * testsuite/libgomp.c-c++-common/target-41.c: New test.
4324 * testsuite/libgomp.c-c++-common/target-42.c: New test.
4326 2021-05-25 Jakub Jelinek <jakub@redhat.com>
4329 * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
4331 2021-05-24 Tobias Burnus <tobias@codesourcery.com>
4334 * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
4335 * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
4336 * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
4338 2021-05-22 Thomas Schwinge <thomas@codesourcery.com>
4341 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
4342 uninteresting/varying diagnostics.
4344 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
4347 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
4348 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4350 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
4353 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
4355 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
4356 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
4357 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4359 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4361 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4363 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4365 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4367 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4369 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
4371 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
4373 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
4375 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
4377 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
4379 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
4381 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4383 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4385 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
4387 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4389 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4391 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4393 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4395 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4397 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4399 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
4400 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
4401 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
4402 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
4403 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
4404 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4405 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4406 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
4407 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4408 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4409 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4410 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
4411 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4412 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
4413 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
4415 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
4417 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
4419 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
4421 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
4422 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
4424 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
4425 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
4426 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
4427 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
4428 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
4429 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
4430 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4432 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4434 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4436 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4438 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
4440 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
4442 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
4444 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
4446 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
4448 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
4450 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
4452 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
4454 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
4456 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
4457 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4458 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
4460 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
4462 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
4463 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4464 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
4466 2021-05-21 Julian Brown <julian@codesourcery.com>
4467 Chung-Lin Tang <cltang@codesourcery.com>
4468 Thomas Schwinge <thomas@codesourcery.com>
4471 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
4473 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
4475 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
4478 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
4480 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
4481 for nvptx offloading.
4483 2021-05-21 Tobias Burnus <tobias@codesourcery.com>
4485 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
4487 2021-05-19 Thomas Schwinge <thomas@codesourcery.com>
4490 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
4492 2021-05-19 Julian Brown <julian@codesourcery.com>
4494 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
4496 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
4498 * testsuite/lib/libgomp.exp
4499 (check_effective_target_offload_target_nvptx): Don't shadow global
4500 'offload_targets' variable.
4502 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
4504 * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
4505 '-latomic' to nvptx offloading compilation.
4506 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
4508 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
4510 * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
4511 offloading compilation.
4513 2021-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
4515 * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
4516 if new tasks generated.
4517 * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
4519 2021-05-14 Tobias Burnus <tobias@codesourcery.com>
4521 * testsuite/libgomp.fortran/parallel-master.f90: New test.
4523 2021-05-13 Martin Liska <mliska@suse.cz>
4526 * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
4527 * testsuite/libgomp.c/pr46032-2.c: Likewise.
4528 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
4529 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
4531 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
4533 * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
4534 * testsuite/libgomp.fortran/task-detach-12.f90: New test.
4536 2021-05-11 Jakub Jelinek <jakub@redhat.com>
4538 PR middle-end/100471
4539 * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
4540 GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
4542 * testsuite/libgomp.c/task-reduction-4.c: New test.
4544 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
4545 Tom de Vries <tdevries@suse.de>
4547 * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
4548 complex/floating-point || + && reduction with 'omp target'.
4549 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
4551 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
4553 * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
4554 * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
4555 * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
4556 * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
4558 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
4561 * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
4562 declaration to scope of non-'depend'-guarded assignment to avoid races.
4564 2021-05-03 Tom de Vries <tdevries@suse.de>
4567 * testsuite/libgomp.c/target-44.c: New test.
4569 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
4571 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
4573 2021-04-29 Tom de Vries <tdevries@suse.de>
4575 * testsuite/libgomp.c/pr81778.c: New test.
4577 2021-04-29 Tom de Vries <tdevries@suse.de>
4580 * testsuite/libgomp.c/target-43.c: New file.
4582 2021-04-28 Jakub Jelinek <jakub@redhat.com>
4583 Tobias Burnus <tobias@codesourcery.com>
4585 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
4586 * target.c (gomp_load_plugin_for_device): If set and if a plugin
4587 can't be dlopened, silently assume it has no devices.
4588 * Makefile.in: Regenerate.
4589 * config.h.in: Regenerate.
4590 * configure: Regenerate.
4592 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
4594 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
4595 Use [Ww]arning in dg-bogus as FE diagnostic and default
4596 diagnostic differ and the result depends on ENABLE_OFFLOAD.
4597 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4598 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4599 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4601 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
4603 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
4604 Correct spelling in dg-bogus to match -Wopenacc-parallelism.
4605 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4606 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4607 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4609 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
4610 Nathan Sidwell <nathan@codesourcery.com>
4611 Tom de Vries <vries@codesourcery.com>
4612 Julian Brown <julian@codesourcery.com>
4613 Kwok Cheung Yeung <kcy@codesourcery.com>
4615 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
4616 '-Wopenacc-parallelism', and match diagnostics, as appropriate.
4617 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
4618 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4619 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4620 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4621 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
4623 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
4624 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
4625 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4626 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
4628 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
4629 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
4631 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
4632 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
4633 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
4634 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
4635 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
4636 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
4638 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
4639 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
4640 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4641 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4642 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4643 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
4644 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
4645 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
4646 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4647 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4648 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
4650 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
4652 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
4654 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
4655 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
4657 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
4658 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
4659 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4660 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
4661 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4662 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4663 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4665 2021-04-22 Richard Biener <rguenther@suse.de>
4667 * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
4670 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
4672 * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
4673 omp_depend_kind instead of defining it as 16.
4675 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
4677 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
4678 New, based on check_effective_target_offload_target_nvptx.
4679 (check_effective_target_offload_target_nvptx): Call it.
4680 (check_effective_target_offload_target_amdgcn): New.
4681 * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
4682 Require target offload_target_nvptx || offload_target_amdgcn.
4683 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
4684 * testsuite/libgomp.c/pr86416-1.c: Likewise.
4685 * testsuite/libgomp.c/pr86416-2.c: Likewise.
4687 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
4689 * testsuite/libgomp.fortran/depobj-1.f90: New test.
4691 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
4693 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4694 '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
4695 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
4697 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4699 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
4701 2021-04-15 Thomas Schwinge <thomas@codesourcery.com>
4704 * testsuite/lib/libgomp.exp
4705 (check_effective_target_offload_device_nvptx): New.
4706 * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
4707 resolved, make sure that we exit quickly, with error status,
4709 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
4710 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
4712 2021-04-14 Jakub Jelinek <jakub@redhat.com>
4715 * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
4716 cp = omp_alloc with cp, p arguments instead of cq, q and call
4717 c_f_pointer after last cq = omp_alloc with cq, q.
4719 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
4722 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
4723 for loop with GT/GE condition.
4724 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
4726 2021-04-09 Thomas Schwinge <thomas@codesourcery.com>
4731 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
4733 2021-04-09 Jakub Jelinek <jakub@redhat.com>
4736 * team.c (gomp_thread_start): Call pthread_setspecific for
4737 !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
4738 has been initialized to avoid false positive warning.
4740 2021-03-29 Tobias Burnus <tobias@codesourcery.com>
4743 * testsuite/lib/on_device_arch.c: Move to ...
4744 * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
4745 * testsuite/libgomp.fortran/on_device_arch.c: New file;
4746 #include on_device_arch.h.
4747 * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
4748 on_device_arch.h instead of using dg-additional-source.
4749 * testsuite/libgomp.c/pr99555-1.c: Likewise.
4750 * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
4751 on_device_arch.c without relative paths.
4753 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
4755 * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
4756 the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
4757 * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
4758 * config.h.in: Regenerate.
4759 * configure: Likewise.
4761 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
4764 * testsuite/lib/on_device_arch.c: New file.
4765 * testsuite/libgomp.c/pr99555-1.c: Likewise.
4766 * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
4767 skip for nvptx offloading, with error status.
4768 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
4770 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
4772 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
4773 OpenACC 'serial' construct diagnostic for nvptx offloading.
4775 2021-03-15 Tobias Burnus <tobias@codesourcery.com>
4778 * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
4780 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
4783 * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
4785 2021-03-04 Jakub Jelinek <jakub@redhat.com>
4787 * configure.ac: Add AC_CHECK_SIZEOF([void *]).
4788 * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
4789 checking of -m32 or -mx32 options on the command line.
4790 * config.h.in: Regenerated.
4791 * configure: Regenerated.
4793 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
4795 * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
4796 support from the target.
4798 2021-02-25 Kwok Cheung Yeung <kcy@codesourcery.com>
4799 Jakub Jelinek <jakub@redhat.com>
4802 * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
4803 (struct gomp_task): Replace detach and completion_sem fields with
4804 union containing completion_sem and detach_team. Add deferred_p
4806 (struct gomp_team): Remove task_detach_queue.
4807 * task.c: Include assert.h.
4808 (gomp_init_task): Initialize deferred_p and completion_sem fields.
4809 Rearrange initialization order of fields.
4810 (task_fulfilled_p): Delete.
4811 (GOMP_task): Use address of task as the event handle. Remove
4812 initialization of detach field. Initialize deferred_p field.
4813 Use automatic local for completion_sem. Initialize detach_team field
4815 (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
4816 Set kind of suspended detach task to GOMP_TASK_DETACHED and
4817 decrement task_running_count. Move finish_cancelled block out of
4818 else branch. Relocate call to gomp_team_barrier_done.
4819 (GOMP_taskwait): Handle tasks with completion events that have not
4821 (GOMP_taskgroup_end): Likewise.
4822 (omp_fulfill_event): Use address of task as event handle. Post to
4823 completion_sem for undeferred tasks. Clear detach_team if task
4824 has not finished. For finished tasks, handle post-execution tasks,
4825 call gomp_team_barrier_wake if necessary, and free task.
4826 * team.c (gomp_new_team): Remove initialization of task_detach_queue.
4827 (free_team): Remove free of task_detach_queue.
4828 * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
4829 * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
4830 * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
4831 * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
4832 * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
4833 Change data-sharing of detach events on enclosing parallel to private.
4834 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise. Remove
4836 * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
4837 * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
4838 * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
4839 * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
4840 * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
4841 * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
4842 * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
4843 * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
4844 * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
4845 * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
4846 Change data-sharing of detach events on enclosing parallel to private.
4847 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise. Remove
4849 * testsuite/libgomp.fortran/task-detach-7.f90: New.
4850 * testsuite/libgomp.fortran/task-detach-8.f90: New.
4851 * testsuite/libgomp.fortran/task-detach-9.f90: New.
4852 * testsuite/libgomp.fortran/task-detach-10.f90: New.
4853 * testsuite/libgomp.fortran/task-detach-11.f90: New.
4855 2021-02-22 Tobias Burnus <tobias@codesourcery.com>
4858 * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
4860 2021-02-17 Julian Brown <julian@codesourcery.com>
4862 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
4865 2021-02-17 Julian Brown <julian@codesourcery.com>
4867 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
4868 * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
4870 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
4872 * config/linux/x86/futex.h (__futex_wait):
4873 Revert output type back to long.
4874 (__futex_wake): Ditto.
4875 (futex_wait): Update for revert.
4876 (futex_wake): Ditto.
4878 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
4880 * config/linux/x86/futex.h (__futex_wait): New static inline
4881 wrapper function. Correct output type to int and
4882 timeout type to void *.
4883 (__futex_wake): New static inline wrapper function.
4884 Correct output type to int.
4885 (futex_wait): Use __futex_wait.
4886 (futex_wake): Use __futex_wake.
4888 2021-02-10 Julian Brown <julian@codesourcery.com>
4891 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
4894 2021-02-04 Julian Brown <julian@codesourcery.com>
4896 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
4898 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
4900 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
4901 EF_AMDGPU_MACH_AMDGCN_GFX908.
4902 (gcn_gfx908_s): New constant string.
4903 (isa_hsa_name): Add gfx908.
4904 (isa_code): Add gfx908.
4906 2021-01-25 Kwok Cheung Yeung <kcy@codesourcery.com>
4908 * libgomp.texi (omp_fulfill_event): New entry.
4910 2021-01-20 Jakub Jelinek <jakub@redhat.com>
4912 * task.c (GOMP_task): Rename priority argument to priority_arg,
4913 add priority automatic variable and modify that variable. Instead of
4914 clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
4915 check flags for that bit.
4917 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
4920 * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
4922 2021-01-18 Andreas Schwab <schwab@suse.de>
4924 * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
4926 2021-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
4928 * config/rtems/sem.h (gomp_sem_getcount): New function.
4930 2021-01-18 Jakub Jelinek <jakub@redhat.com>
4932 * config/linux/sem.h (gomp_sem_getcount): New function.
4933 * config/posix/sem.h (gomp_sem_getcount): New function.
4934 * config/posix/sem.c (gomp_sem_getcount): New function.
4935 * config/accel/sem.h (gomp_sem_getcount): New function.
4936 * task.c (task_fulfilled_p): Use gomp_sem_getcount.
4937 (omp_fulfill_event): Likewise.
4939 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
4941 * fortran.c (omp_fulfill_event_): New.
4942 * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
4943 (struct gomp_team): Add task_detach_queue and task_detach_count
4945 * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
4946 * libgomp_g.h (GOMP_task): Add extra argument.
4947 * omp.h.in (enum omp_event_handle_t): New.
4948 (omp_fulfill_event): New.
4949 * omp_lib.f90.in (omp_event_handle_kind): New.
4950 (omp_fulfill_event): New.
4951 * omp_lib.h.in (omp_event_handle_kind): New.
4952 (omp_fulfill_event): Declare.
4953 * priority_queue.c (priority_tree_find): New.
4954 (priority_list_find): New.
4955 (priority_queue_find): New.
4956 * priority_queue.h (priority_queue_predicate): New.
4957 (priority_queue_find): New.
4958 * task.c (gomp_init_task): Initialize detach field.
4959 (task_fulfilled_p): New.
4960 (GOMP_task): Add detach argument. Ignore detach argument if
4961 GOMP_TASK_FLAG_DETACH not set in flags. Initialize completion_sem
4962 field. Copy address of completion_sem into detach argument and
4963 into the start of the data record. Wait for detach event if task
4965 (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
4966 Remove completed tasks and requeue dependent tasks.
4967 (omp_fulfill_event): New.
4968 * team.c (gomp_new_team): Initialize task_detach_queue and
4969 task_detach_count fields.
4970 (free_team): Free task_detach_queue field.
4971 * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
4972 * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
4973 * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
4974 * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
4975 * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
4976 * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
4977 * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
4978 * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
4979 * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
4980 * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
4981 * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
4982 * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
4984 2021-01-15 Jakub Jelinek <jakub@redhat.com>
4987 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
4988 be added through preprocessor check on
4989 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
4991 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
4994 * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
4996 * configure: Regenerate.
4997 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
5000 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
5002 * configure: Re-generate.
5004 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
5006 * configure: Re-generate.
5008 2021-01-05 Julian Brown <julian@codesourcery.com>
5010 * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
5011 (struct ptx_device): Add omp_stacks struct.
5012 (nvptx_open_device): Initialise cached-stacks housekeeping info.
5013 (nvptx_close_device): Free cached stacks block and mutex.
5014 (nvptx_stacks_free): New function.
5015 (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
5016 (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
5017 (nvptx_stacks_alloc): Rename to...
5018 (nvptx_stacks_acquire): This. Cache stacks block between runs if same
5019 size or smaller is required.
5020 (nvptx_stacks_free): Remove.
5021 (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
5022 during kernel execution.
5024 2021-01-01 Jakub Jelinek <jakub@redhat.com>
5026 * libgomp.texi: Bump @copying's copyright year.
5028 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
5030 * libgomp.texi (Top): Avoid bad "up" link.
5032 2020-12-18 Jakub Jelinek <jakub@redhat.com>
5034 * testsuite/libgomp.c/task-6.c: New test.
5036 2020-12-09 Andrew Stubbs <ams@codesourcery.com>
5038 * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
5039 (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
5041 2020-12-08 Tobias Burnus <tobias@codesourcery.com>
5043 * testsuite/libgomp.fortran/scan-1.f90: New test.
5045 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
5048 * configure: Regenerate.
5050 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
5052 * configure: Regenerate.
5054 2020-11-25 Thomas Schwinge <thomas@codesourcery.com>
5056 * testsuite/libgomp.oacc-c++/cache-1.C: New.
5057 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
5059 2020-11-25 Andrew Stubbs <ams@codesourcery.com>
5061 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
5064 2020-11-24 Andrew Stubbs <ams@codesourcery.com>
5066 * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
5067 (reserved): Delete unused define.
5069 2020-11-24 Thomas Schwinge <thomas@codesourcery.com>
5071 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
5072 Tcl 8.5-specific behavior.
5073 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
5075 2020-11-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5077 * env.c (gomp_global_icv): Remove nest_var field. Add
5078 max_active_levels_var field.
5079 (gomp_max_active_levels_var): Remove.
5080 (parse_boolean): Return true on success.
5081 (handle_omp_display_env): Express OMP_NESTED in terms of
5082 max_active_levels_var. Change format specifier for
5083 max_active_levels_var.
5084 (initialize_env): Set max_active_levels_var from
5085 OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
5087 * icv.c (omp_set_nested): Express in terms of
5088 max_active_levels_var.
5089 (omp_get_nested): Likewise.
5090 (omp_set_max_active_levels): Use max_active_levels_var field instead
5091 of gomp_max_active_levels_var.
5092 (omp_get_max_active_levels): Likewise.
5093 * libgomp.h (struct gomp_task_icv): Remove nest_var field. Add
5094 max_active_levels_var field.
5095 (gomp_supported_active_levels): Set to UCHAR_MAX.
5096 (gomp_max_active_levels_var): Delete.
5097 * libgomp.texi (omp_get_nested): Update documentation.
5098 (omp_set_nested): Likewise.
5099 (OMP_MAX_ACTIVE_LEVELS): Likewise.
5100 (OMP_NESTED): Likewise.
5101 (OMP_NUM_THREADS): Likewise.
5102 (OMP_PROC_BIND): Likewise.
5103 * parallel.c (gomp_resolve_num_threads): Replace reference
5104 to nest_var with max_active_levels_var. Use max_active_levels_var
5105 field instead of gomp_max_active_levels_var.
5107 2020-11-18 Tobias Burnus <tobias@codesourcery.com>
5109 * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
5110 nvptx_usleep; use also for device={arch(gcn)}.
5112 2020-11-14 Jakub Jelinek <jakub@redhat.com>
5114 * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
5115 (foo): Add tests for non-VLA private and firstprivate clauses on
5117 (bar): Likewise. Remove taking of address from private/firstprivate
5119 * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
5120 (foo): Add p, q, px and s arguments. Add tests for array reductions
5121 and for non-VLA private and firstprivate clauses on omp task.
5123 (main): Adjust foo caller. Don't call bar.
5125 2020-11-13 Gergö Barany <gergo@codesourcery.com>
5126 Thomas Schwinge <thomas@codesourcery.com>
5128 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
5130 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
5132 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5134 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
5135 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
5137 2020-11-13 Gergö Barany <gergo@codesourcery.com>
5138 Thomas Schwinge <thomas@codesourcery.com>
5141 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
5143 2020-11-13 Jakub Jelinek <jakub@redhat.com>
5145 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
5146 for array reductions.
5147 (main): Adjust foo callers.
5149 2020-11-12 Jakub Jelinek <jakub@redhat.com>
5151 * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
5152 * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
5153 * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
5154 * allocator.c (omp_aligned_alloc): New for now static function,
5155 add alignment argument and handle it.
5156 (omp_alloc): Reimplement using omp_aligned_alloc.
5157 (GOMP_alloc, GOMP_free): New functions.
5158 (omp_free): Add ialias.
5159 * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
5160 * testsuite/libgomp.c++/allocate-1.C: New test.
5162 2020-11-12 Thomas Schwinge <thomas@codesourcery.com>
5165 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
5167 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
5169 * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
5171 * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
5172 'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
5173 (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
5174 (goacc_enter_data_internal): Likewise.
5175 * target.c (gomp_map_vars_internal):
5176 Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
5177 of gomp_attach_pointer for OpenMP cases.
5178 (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
5179 (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
5180 * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
5182 2020-11-05 Ulrich Drepper <drepper@redhat.com>
5183 Kwok Cheung Yeung <kcy@codesourcery.com>
5185 * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
5186 * Makefile.in: Regenerate.
5187 * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
5188 pragmas to ignore -Wdeprecated-declarations warnings.
5190 * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
5191 Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
5192 and omp_get_nested with __GOMP_DEPRECATED_5_0.
5193 * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
5195 * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
5197 * testsuite/libgomp.c/affinity-1.c: Likewise.
5198 * testsuite/libgomp.c/affinity-2.c: Likewise.
5199 * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
5200 * testsuite/libgomp.c/lib-1.c: Likewise.
5201 * testsuite/libgomp.c/nested-1.c: Likewise.
5202 * testsuite/libgomp.c/nested-2.c: Likewise.
5203 * testsuite/libgomp.c/nested-3.c: Likewise.
5204 * testsuite/libgomp.c/pr32362-1.c: Likewise.
5205 * testsuite/libgomp.c/pr32362-2.c: Likewise.
5206 * testsuite/libgomp.c/pr32362-3.c: Likewise.
5207 * testsuite/libgomp.c/pr35549.c: Likewise.
5208 * testsuite/libgomp.c/pr42942.c: Likewise.
5209 * testsuite/libgomp.c/pr61200.c: Likewise.
5210 * testsuite/libgomp.c/sort-1.c: Likewise.
5211 * testsuite/libgomp.c/target-5.c: Likewise.
5212 * testsuite/libgomp.c/target-6.c: Likewise.
5213 * testsuite/libgomp.c/teams-1.c: Likewise.
5214 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
5215 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
5216 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
5217 * testsuite/libgomp.fortran/affinity1.f90: Likewise.
5218 * testsuite/libgomp.fortran/lib1.f90: Likewise.
5219 * testsuite/libgomp.fortran/lib2.f: Likewise.
5220 * testsuite/libgomp.fortran/nested1.f90: Likewise.
5221 * testsuite/libgomp.fortran/teams1.f90: Likewise.
5223 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
5226 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
5227 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
5228 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
5230 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
5234 * testsuite/lib/libgomp.exp (libgomp_init): Set
5235 'gcc_warning_prefix', 'gcc_error_prefix'.
5237 2020-10-30 Jakub Jelinek <jakub@redhat.com>
5239 * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
5240 even in field_tgt_clear initializer.
5242 2020-10-28 Jakub Jelinek <jakub@redhat.com>
5244 * testsuite/libgomp.c/target-42.c: New test.
5246 2020-10-28 Jakub Jelinek <jakub@redhat.com>
5247 Tom de Vries <tdevries@suse.de>
5250 * testsuite/libgomp.c/usleep.h: New file.
5251 * testsuite/libgomp.c/target-32.c: Include usleep.h.
5252 (main): Use tgt_usleep instead of usleep.
5253 * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
5254 (main): Use tgt_usleep instead of usleep.
5256 2020-10-28 Jakub Jelinek <jakub@redhat.com>
5259 * testsuite/libgomp.c/declare-variant-1.c: New test.
5261 2020-10-22 Jakub Jelinek <jakub@redhat.com>
5263 * testsuite/libgomp.c/target-41.c: New test.
5265 2020-10-22 Jakub Jelinek <jakub@redhat.com>
5267 * icv.c (omp_get_initial_device): Remove including corresponding
5269 * icv-device.c (omp_get_initial_device): New function. Return
5270 gomp_get_num_devices (). Add ialias.
5271 * target.c (resolve_device): Don't fail with
5272 OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
5273 gomp_get_num_devices ().
5274 (omp_target_alloc, omp_target_free, omp_target_is_present,
5275 omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
5276 omp_target_disassociate_ptr, omp_pause_resource): Use
5277 gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
5278 first use in the functions, in uses dominated by the
5279 gomp_get_num_devices call use num_devices_openmp instead.
5280 * libgomp.texi (omp_get_initial_device): Document.
5281 * config/gcn/icv-device.c (omp_get_initial_device): New function.
5283 * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
5284 * testsuite/libgomp.c/target-40.c: New test.
5286 2020-10-21 Jakub Jelinek <jakub@redhat.com>
5288 * env.c (parse_target_offload): Change new_offload var type to int,
5289 preinitialize to -1, remove found var and test new_offload != -1
5292 2020-10-20 Jakub Jelinek <jakub@redhat.com>
5294 * target.c (gomp_target_init): Inside of the function, use automatic
5295 variables corresponding to num_devices, num_devices_openmp and devices
5296 global variables and update the globals only at the end of the
5299 2020-10-20 Kwok Cheung Yeung <kcy@codesourcery.com>
5301 * env.c (gomp_target_offload_var): New.
5302 (parse_target_offload): New.
5303 (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
5304 (initialize_env): Parse OMP_TARGET_OFFLOAD.
5305 * libgomp.h (gomp_target_offload_t): New.
5306 (gomp_target_offload_var): New.
5307 * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
5308 * target.c (resolve_device): Generate error if device not found and
5309 offloading is mandatory.
5310 (gomp_target_fallback): Generate error if offloading is mandatory.
5311 (GOMP_target): Add argument in call to gomp_target_fallback.
5312 (GOMP_target_ext): Likewise.
5313 (gomp_target_data_fallback): Generate error if offloading is mandatory.
5314 (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
5315 (GOMP_target_data_ext): Likewise.
5316 (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
5317 (gomp_target_init): Return early if offloading is disabled.
5319 2020-10-15 Kwok Cheung Yeung <kcy@codesourcery.com>
5321 * libgomp.texi (omp_get_max_active_levels): Modify description.
5322 (omp_get_supported_active_levels): Make descriptions consistent.
5324 2020-10-14 Jakub Jelinek <jakub@redhat.com>
5326 * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
5328 2020-10-13 Kwok Cheung Yeung <kcy@codesourcery.com>
5330 * env.c (gomp_max_active_levels_var): Initialize to
5331 gomp_supported_active_levels.
5332 (initialize_env): Limit gomp_max_active_levels_var to be at most
5333 equal to gomp_supported_active_levels.
5334 * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
5335 (omp_get_supported_active_levels_): New.
5336 * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
5337 to at most equal to gomp_supported_active_levels.
5338 (omp_get_supported_active_levels): New.
5339 * libgomp.h (gomp_supported_active_levels): New.
5340 * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
5341 omp_get_supported_active_levels_.
5342 * libgomp.texi (omp_get_supported_active_levels): New.
5343 (omp_set_max_active_levels): Update. Add reference to
5344 omp_get_supported_active_levels.
5345 * omp.h.in (omp_get_supported_active_levels): New.
5346 * omp_lib.f90.in (omp_get_supported_active_levels): New.
5347 * omp_lib.h.in (omp_get_supported_active_levels): New.
5348 * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
5349 against omp_get_supported_active_levels.
5350 * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
5352 2020-10-11 Clement Chigot <clement.chigot@atos.net>
5354 * config/t-aix: Delete and recreate libgomp before creating
5357 2020-10-08 Tom de Vries <tdevries@suse.de>
5360 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
5363 2020-10-06 Tom de Vries <tdevries@suse.de>
5365 * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
5367 2020-10-06 Tom de Vries <tdevries@suse.de>
5370 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
5372 2020-10-05 Tom de Vries <tdevries@suse.de>
5375 * testsuite/libgomp.fortran/pr95654.f90: New test.
5377 2020-10-02 Tobias Burnus <tobias@codesourcery.com>
5379 * Makefile.in: Regenerate with automake 1.15.1.
5380 * aclocal.m4: Likewise.
5381 * configure: Likewise.
5382 * testsuite/Makefile.in: Likewise.
5384 2020-09-30 Andrew Stubbs <ams@codesourcery.com>
5386 * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
5389 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
5391 * testsuite/libgomp.fortran/declare-target-3.f90: New test.
5393 2020-09-29 Andrew Stubbs <ams@codesourcery.com>
5395 * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
5396 total number of threads is one.
5397 (gomp_team_barrier_wake): Likewise.
5398 (gomp_team_barrier_wait_end): Likewise.
5399 (gomp_team_barrier_wait_cancel_end): Likewise.
5400 * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
5401 (gomp_team_barrier_wake): Likewise.
5402 (gomp_team_barrier_wait_end): Likewise.
5403 (gomp_team_barrier_wait_cancel_end): Likewise.
5404 * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
5406 2020-09-28 Tobias Burnus <tobias@codesourcery.com>
5409 * testsuite/libgomp.c++/pr96390.C: New test.
5410 * testsuite/libgomp.c-c++-common/pr96390.c: New test.
5412 2020-09-27 Clement Chigot <clement.chigot@atos.net>
5414 * config/t-aix: Use $(AR) without -X32_64.
5416 2020-09-25 Jakub Jelinek <jakub@redhat.com>
5418 * testsuite/libgomp.c/loop-25.c: New test.
5420 2020-09-22 Tobias Burnus <tobias@codesourcery.com>
5423 * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
5425 2020-09-22 Tom de Vries <tdevries@suse.de>
5427 * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
5430 2020-09-16 Nathan Sidwell <nathan@acm.org>
5432 * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
5434 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
5437 * target.c (gomp_map_vars_internal): Initialize has_nullptr.
5439 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
5442 * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
5443 * target.c (gomp_map_vars_existing): Add always_to_flag flag.
5444 (gomp_map_vars_existing): Update call to it.
5445 (gomp_map_fields_existing): Likewise
5446 (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
5447 now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
5449 (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
5451 * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
5452 * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
5454 2020-09-14 Tom de Vries <tdevries@suse.de>
5456 * config/nvptx/atomic.c: New file. Add
5457 __sync_val_compare_and_swap_16.
5458 * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
5459 target offload_target_nvptx.
5461 2020-09-08 Julian Brown <julian@codesourcery.com>
5463 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
5464 iteration-ordering assumptions.
5466 2020-09-08 Julian Brown <julian@codesourcery.com>
5468 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
5469 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
5471 2020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
5473 * plugin/plugin-nvptx.c (nvptx_free):
5474 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
5475 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
5478 2020-08-20 Tobias Burnus <tobias@codesourcery.com>
5480 * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
5482 2020-08-13 Kwok Cheung Yeung <kcy@codesourcery.com>
5484 * testsuite/libgomp.c-c++-common/reduction-16.c: New.
5486 2020-08-13 Jakub Jelinek <jakub@redhat.com>
5488 * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
5489 * testsuite/libgomp.c/loop-23.c (main): Likewise.
5490 * testsuite/libgomp.c/loop-24.c: New test.
5492 2020-08-08 Jakub Jelinek <jakub@redhat.com>
5493 Tobias Burnus <tobias@codesourcery.com>
5496 * testsuite/libgomp.fortran/pr93553.f90: New test.
5498 2020-08-05 Jakub Jelinek <jakub@redhat.com>
5500 * testsuite/libgomp.c/loop-22.c: New test.
5501 * testsuite/libgomp.c/loop-23.c: New test.
5503 2020-08-05 Jakub Jelinek <jakub@redhat.com>
5506 * testsuite/libgomp.c/teams-3.c: New test.
5507 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
5509 (N(test)): Use it before all N(f*) calls.
5510 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
5511 (main): Don't call all test_* functions from within
5512 #pragma omp teams reduction(|:err), call them directly.
5514 2020-08-04 Tom de Vries <tdevries@suse.de>
5517 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
5518 * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
5520 2020-08-03 Julian Brown <julian@codesourcery.com>
5521 Thomas Schwinge <thomas@codesourcery.com>
5523 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
5524 shared-memory devices. Extend with further checking.
5526 2020-08-03 Martin Jambor <mjambor@suse.cz>
5528 * plugin/Makefrag.am: Remove configuration of HSA plugin.
5529 * aclocal.m4: Regenerated.
5530 * Makefile.in: Regenerated.
5531 * config.h.in: Regenerated.
5532 * configure: Regenerated.
5533 * plugin/configfrag.ac: Likewise.
5534 * plugin/hsa_ext_finalize.h: Removed.
5535 * plugin/plugin-hsa.c: Likewise.
5536 * testsuite/Makefile.in: Regenerated.
5537 * testsuite/lib/libgomp.exp
5538 (offload_target_to_openacc_device_type): Remove hsa case.
5539 (check_effective_target_hsa_offloading_selected_nocache): Removed
5540 (check_effective_target_hsa_offloading_selected): Likewise.
5541 (libgomp_init): Do not add -Wno-hsa to additional_flags.
5542 * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
5543 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
5544 * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
5545 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
5546 * testsuite/libgomp.hsa.c/c.exp: Likewise.
5547 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
5548 * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
5549 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
5550 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
5551 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
5552 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
5553 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
5554 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
5555 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
5556 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
5557 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
5558 * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
5559 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
5560 * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
5561 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
5562 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
5563 * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
5564 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
5565 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
5567 2020-07-27 Julian Brown <julian@codesourcery.com>
5568 Thomas Schwinge <thomas@codesourcery.com>
5570 * libgomp.h (struct target_var_desc): Rename do_detach field to
5572 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
5573 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
5574 (goacc_enter_data_internal): Don't affect reference counts
5575 for attach mappings.
5576 (goacc_exit_data_internal): Don't affect reference counts for detach
5578 * target.c (gomp_map_vars_existing): Don't affect reference counts for
5580 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
5581 mark attach mappings.
5582 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
5583 reference count for attach mappings.
5584 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
5585 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
5586 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
5587 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
5589 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
5590 gracefully in no-finalize mode.
5591 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
5593 2020-07-24 Thomas Schwinge <thomas@codesourcery.com>
5595 * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
5597 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5598 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5600 2020-07-23 Julian Brown <julian@codesourcery.com>
5601 Thomas Schwinge <thomas@codesourcery.com>
5603 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
5604 finalization for detach operation.
5605 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
5608 2020-07-23 Tobias Burnus <tobias@codesourcery.com>
5610 * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
5611 * libgomp_f.h.in (omp_check_defines): Check whether
5612 sizeof of determined Fortran kind and C typedef match.
5613 * omp_lib.f90.in: Add omp_depened_kind.
5614 * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
5615 * configure: Regenerate.
5616 * Makefile.in: Regenerate.
5617 * testsuite/Makefile.in: Regenerate.
5619 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
5621 * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
5622 gcc/testsuite/c-c++-common/gomp/.
5623 * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
5624 * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
5625 from gcc/testsuite/gfortran.dg/gomp/.
5626 * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
5628 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
5630 * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
5631 * omp_lib.h.in: Likewise.
5633 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
5636 * testsuite/libgomp.c/pr95620.c: New test.
5638 2020-07-16 Julian Brown <julian@codesourcery.com>
5639 Thomas Schwinge <thomas@codesourcery.com>
5641 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
5642 * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
5644 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
5646 * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
5647 avoid conversion on 32bit systems from 32bit to 64bit due
5648 to -fdefault-integer-8.
5650 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
5652 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
5653 variables; add character(kind=4) tests; update TODO comment.
5655 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
5657 * allocator.c: Add ialias for omp_init_allocator and
5658 omp_destroy_allocator.
5659 * configure.ac: Set INTPTR_T_KIND.
5660 * configure: Regenerate.
5661 * Makefile.in: Regenerate.
5662 * testsuite/Makefile.in: Regenerate.
5663 * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
5664 omp_set_default_allocator_, omp_get_default_allocator_): New
5665 functions and ialias_redirect.
5666 * icv.c: Add ialias for omp_set_default_allocator and
5667 omp_get_default_allocator.
5668 * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
5669 omp_destroy_allocator_, omp_set_default_allocator_ and
5670 omp_get_default_allocator_.
5671 * omp_lib.f90.in: Add allocator traits parameters, declare
5672 allocator routines and add related kind parameters.
5673 * omp_lib.h.in: Likewise.
5674 * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
5675 * testsuite/libgomp.fortran/alloc-1.F90: New test.
5676 * testsuite/libgomp.fortran/alloc-2.F90: New test.
5677 * testsuite/libgomp.fortran/alloc-3.F: New test.
5678 * testsuite/libgomp.fortran/alloc-4.f90: New test.
5679 * testsuite/libgomp.fortran/alloc-5.f90: New test.
5681 2020-07-14 Tom de Vries <tom@codesourcery.com>
5682 Cesar Philippidis <cesar@codesourcery.com>
5683 Thomas Schwinge <thomas@codesourcery.com>
5684 Kwok Cheung Yeung <kcy@codesourcery.com>
5686 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
5688 (acc_init_1): Set acc_init_thread to pthread_self (). Set
5689 acc_init_state to initializing at the start, and to initialized at the
5691 (self_initializing_p): New function.
5692 (acc_get_device_type): Return acc_device_none if called by thread that
5693 is currently executing acc_init_1.
5694 * libgomp.texi (acc_get_device_type): Update documentation.
5695 (Implementation Status and Implementation-Defined Behavior): Likewise.
5696 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
5698 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
5700 * config/t-aix: Set BITS from compiler cpp macro.
5702 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
5704 * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
5706 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
5709 * testsuite/libgomp.fortran/target-map-1.f90: New test.
5711 2020-07-14 Jakub Jelinek <jakub@redhat.com>
5713 * testsuite/libgomp.c/loop-21.c: New test.
5715 2020-07-13 Julian Brown <julian@codesourcery.com>
5716 Thomas Schwinge <thomas@codesourcery.com>
5718 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
5720 2020-07-10 Julian Brown <julian@codesourcery.com>
5721 Thomas Schwinge <thomas@codesourcery.com>
5723 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
5725 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
5726 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
5728 (acc_unmap_data): Update comment.
5729 (goacc_map_var_existing, goacc_enter_datum): Adjust for
5730 dynamic_refcount semantics.
5731 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
5732 Adjust for dynamic_refcount semantics.
5733 (goacc_enter_data_internal): Implement "present" case of dynamic
5734 memory-map handling here. Update "non-present" case for
5735 dynamic_refcount semantics.
5736 (goacc_exit_data_internal): Use goacc_exit_datum_1.
5737 * target.c (gomp_map_vars_internal): Remove
5738 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
5740 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
5741 (gomp_load_image_to_device): Substitute dynamic_refcount for
5743 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
5744 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
5745 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
5746 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
5747 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
5749 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
5751 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
5753 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
5754 Remove stale comment.
5755 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
5756 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
5757 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
5758 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
5759 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
5760 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
5762 2020-07-10 Julian Brown <julian@codesourcery.com>
5763 Thomas Schwinge <thomas@codesourcery.com>
5765 * oacc-mem.c (goacc_map_var_existing): New function.
5766 (goacc_enter_datum): Use above function.
5767 (goacc_exit_datum_1): New function.
5768 (goacc_exit_datum): Use above function.
5770 2020-07-09 Julian Brown <julian@codesourcery.com>
5771 Thomas Schwinge <thomas@codesourcery.com>
5774 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
5775 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
5777 2020-07-09 Julian Brown <julian@codesourcery.com>
5779 * oacc-mem.c (find_group_last): Group data-movement clauses
5780 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
5781 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
5783 2020-07-09 Jakub Jelinek <jakub@redhat.com>
5785 * testsuite/libgomp.c/loop-19.c: New test.
5786 * testsuite/libgomp.c/loop-20.c: New test.
5788 2020-07-09 Jakub Jelinek <jakub@redhat.com>
5790 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
5791 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
5792 it. Remove __omp_alloctrait_value_max__.
5793 * allocator.c (omp_init_allocator): Handle omp_atv_default for
5794 omp_atk_alignment and omp_atk_pool_size.
5796 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
5798 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
5799 behavior for 'GOMP_MAP_FORCE_FROM'.
5800 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
5802 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
5804 * oacc-mem.c (goacc_exit_data_internal): Remove
5805 'GOMP_MAP_ALWAYS_FROM' handling.
5807 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
5809 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
5810 'scan-assembler' with 'scan-offload-rtl'.
5811 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
5812 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
5813 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
5814 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
5816 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
5818 * target.c (gomp_map_vars_existing): Assert 'kind !=
5820 (gomp_map_vars_internal): Clean up.
5822 2020-06-27 Jakub Jelinek <jakub@redhat.com>
5824 * testsuite/libgomp.c/loop-17.c: New test.
5825 * testsuite/libgomp.c/loop-18.c: New test.
5827 2020-06-26 Marek Polacek <polacek@redhat.com>
5829 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
5831 2020-06-23 Alexandre Oliva <oliva@adacore.com>
5833 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
5834 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
5836 2020-06-22 David Edelsohn <dje.gcc@gmail.com>
5838 * Makefile.am: Use -include.
5839 * Makefile.in: Regenerate.
5841 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
5843 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
5844 * Makefile.in: Regenerate
5845 * configure.ac (tmake_file): Substitute.
5846 * configure: Regenerate.
5847 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
5848 * config/t-aix: New file.
5850 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
5853 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
5856 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
5858 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
5859 variant for HSA_RUNTIME_LIB name.
5860 (find_executable_symbol_1): Delete.
5861 (find_executable_symbol): Delete.
5862 (init_kernel_properties): Add ".kd" suffix to symbol names.
5863 (find_load_offset): Delete.
5864 (create_and_finalize_hsa_program): Remove relocation handling.
5866 2020-06-16 Tobias Burnus <tobias@codesourcery.com>
5868 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
5870 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
5874 * testsuite/libgomp.fortran/target-var.f90: New test.
5876 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
5877 Julian Brown <julian@codesourcery.com>
5879 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
5882 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
5883 Julian Brown <julian@codesourcery.com>
5885 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
5888 2020-06-05 Julian Brown <julian@codesourcery.com>
5890 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
5891 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
5893 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5895 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
5896 Evaluate 'copyfrom' individually for each entry.
5897 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
5899 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5901 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
5902 Evaluate 'finalize' individually for each entry.
5903 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
5904 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
5907 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5909 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
5911 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
5913 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5914 Julian Brown <julian@codesourcery.com>
5916 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
5918 (acc_unmap_data, goacc_exit_data_internal): Restore
5919 'is_tgt_unmapped' checking.
5920 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
5922 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
5923 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
5924 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
5925 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
5926 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
5927 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
5929 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5930 Julian Brown <julian@codesourcery.com>
5932 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
5934 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5937 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
5939 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5942 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
5945 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5946 Julian Brown <julian@codesourcery.com>
5948 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
5950 (acc_map_data): Clean up accordingly.
5952 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5954 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
5955 of over-eager 'finalize' clause.
5956 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
5958 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
5959 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
5960 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
5961 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
5962 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
5963 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
5964 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
5965 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
5967 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5969 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
5971 2020-06-04 Julian Brown <julian@codesourcery.com>
5973 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
5975 (goacc_detach_internal): Likewise.
5977 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5979 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
5981 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
5982 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
5983 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
5984 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
5985 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
5987 2020-06-02 Jakub Jelinek <jakub@redhat.com>
5989 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
5992 2020-05-30 Jakub Jelinek <jakub@redhat.com>
5994 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
5996 2020-05-30 Jakub Jelinek <jakub@redhat.com>
5998 * allocator.c (omp_alloc): For size == 0, return NULL early.
6000 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
6003 * configure: Regenerated.
6005 2020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
6008 * testsuite/libgomp.fortran/async_io_9.f90: New test.
6010 2020-05-19 Jakub Jelinek <jakub@redhat.com>
6012 * omp.h.in (omp_uintptr_t): New typedef.
6013 (__GOMP_UINTPTR_T_ENUM): Define.
6014 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
6015 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
6016 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
6017 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
6018 omp_get_default_allocator, omp_alloc, omp_free): Declare.
6019 * libgomp.h (struct gomp_team_state): Add def_allocator field.
6020 (gomp_def_allocator): Declare.
6021 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
6022 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
6023 omp_alloc and omp_free.
6024 * team.c (gomp_team_start): Copy over ts.def_allocator.
6025 * env.c (gomp_def_allocator): New variable.
6026 (parse_wait_policy): Adjust function comment.
6027 (parse_allocator): New function.
6028 (handle_omp_display_env): Print OMP_ALLOCATOR.
6029 (initialize_env): Call parse_allocator.
6030 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
6031 * allocator.c: New file.
6032 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
6034 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
6035 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
6036 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
6037 * Makefile.in: Regenerated.
6039 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
6042 * configure: Regenerated.
6044 2020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
6047 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
6049 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
6051 * configure: Regenerated.
6053 2020-05-14 Jakub Jelinek <jakub@redhat.com>
6055 * testsuite/libgomp.c-c++-common/target-40.c: New test.
6057 2020-05-13 Tobias Burnus <tobias@codesourcery.com>
6060 * testsuite/libgomp.fortran/pr66199-3.f90: New.
6061 * testsuite/libgomp.fortran/pr66199-4.f90: New.
6062 * testsuite/libgomp.fortran/pr66199-5.f90: New.
6063 * testsuite/libgomp.fortran/pr66199-6.f90: New.
6064 * testsuite/libgomp.fortran/pr66199-7.f90: New.
6065 * testsuite/libgomp.fortran/pr66199-8.f90: New.
6066 * testsuite/libgomp.fortran/pr66199-9.f90: New.
6068 2020-05-12 Jakub Jelinek <jakub@redhat.com>
6070 * testsuite/libgomp.c/target-39.c: New test.
6072 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
6074 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
6075 * openacc.f90 (acc_device_current): Likewise.
6076 * openacc.h (acc_device_current): Likewise.
6077 * openacc_lib.h (acc_device_current): Likewise.
6080 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
6081 'dg-allow-blank-lines-in-output'.
6083 * oacc-init.c (get_openacc_name): Handle 'gcn'.
6084 * testsuite/lib/libgomp.exp
6085 (offload_target_to_openacc_device_type) [amdgcn*]: Return
6086 'radeon'. Adjust all users.
6087 (check_effective_target_openacc_amdgcn_accel_present): Rename
6089 (check_effective_target_openacc_radeon_accel_present): ... this.
6091 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
6092 (check_effective_target_openacc_radeon_accel_selected): ... this.
6095 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
6098 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
6102 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
6104 (GOMP_OFFLOAD_init_device): Check return values from both calls to
6105 hsa_agent_iterate_regions.
6107 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
6110 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
6113 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
6116 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
6119 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
6122 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
6124 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
6127 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
6129 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
6131 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
6133 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
6135 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
6137 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
6139 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
6141 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
6143 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
6145 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
6147 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
6149 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
6151 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
6153 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
6155 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
6157 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
6159 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
6161 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
6163 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
6165 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
6167 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
6169 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
6171 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
6173 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
6175 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
6177 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
6179 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
6181 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
6183 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
6185 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
6187 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
6189 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
6192 2020-04-10 Julian Brown <julian@codesourcery.com>
6193 Thomas Schwinge <thomas@codesourcery.com>
6196 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
6198 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
6200 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
6202 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
6204 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
6206 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
6208 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
6210 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
6212 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
6214 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
6216 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
6218 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
6220 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
6222 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
6224 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
6226 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
6229 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
6231 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
6234 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
6237 * libgomp.oacc-c++/declare-pr94120.C: New.
6239 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
6241 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
6243 * configure: Regenerate.
6244 * testsuite/libgomp-site-extra.exp.in: New file.
6245 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
6247 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
6249 * testsuite/Makefile.in: Regenerate.
6251 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
6253 PR tree-optimization/89713
6255 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
6257 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
6259 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
6261 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
6262 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
6264 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
6267 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
6269 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
6272 * target.c (gomp_load_image_to_device): Fix link
6275 2020-03-19 Jakub Jelinek <jakub@redhat.com>
6278 * testsuite/libgomp.c++/pr93931.C: New test.
6280 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
6282 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
6283 dg-allow-blank-lines-in-output.
6285 2020-03-18 Julian Brown <julian@codesourcery.com>
6286 Tobias Burnus <tobias@codesourcery.com>
6288 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
6289 it work concurrently.
6291 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
6293 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
6294 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
6295 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
6297 2020-03-14 Jakub Jelinek <jakub@redhat.com>
6300 * testsuite/libgomp.c/pr93566.c: New test.
6302 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
6304 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
6305 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
6306 integer(acc_device_property) for the type of the return value of
6309 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
6311 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
6312 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
6313 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
6314 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
6315 (acc_set_device_num): Fix Fortran argument name, use same name for C.
6316 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
6317 corrections; add note about the previous interface and named constant.
6318 (OpenACC library and environment variables): Fix two typos.
6319 * openacc.f90: Use for all procedures the argument names from the spec
6320 as for …_h they are user visible.
6321 (openacc_kinds): Rename acc_device_property to
6322 acc_device_property_kinds and change value to int32 ; and update users.
6323 Re-add acc_device_property for for backward compatibility.
6324 (acc_get_property_string_h): Clean up as acc_device_property_kind
6326 (acc_get_property_h): Likewise and return c_size_t instead of
6327 acc_device_property.
6328 (openacc): Also export acc_device_property_kinds.
6329 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
6330 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
6331 handling; check against /= 0 instead of == 1 to match C.
6332 * openacc_lib.h: Use for all procedures the argument names from the spec
6333 as for …_h they are user visible. Place !GCC$ into the first column to
6334 be active also for fixed-form souce form.
6335 (acc_device_current, acc_device_property_kind, acc_device_property,
6336 acc_property_memory, acc_property_free_memory, acc_property_name,
6337 acc_property_vendor, acc_property_driver): New named constants.
6338 (acc_get_property, acc_get_property_string): New generic interface.
6340 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
6343 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
6344 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
6346 (gomp_target_task_fn): Assert "devicep->async_run_func".
6347 (clear_unsupported_flags): New function to remove unsupported flags
6348 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
6349 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
6350 * testsuite/libgomp.c/target-33.c:
6351 Remove xfail for offload_target_nvptx.
6352 * testsuite/libgomp.c/target-34.c: Likewise.
6354 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
6356 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
6357 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
6358 * testsuite/libgomp.c/target-34.c: Likewise.
6359 * testsuite/libgomp.c/target-link-1.c: Add xfail for
6360 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
6362 2020-02-09 Jakub Jelinek <jakub@redhat.com>
6364 * testsuite/libgomp.c/target-38.c: New test.
6366 2020-02-06 Jakub Jelinek <jakub@redhat.com>
6369 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
6371 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
6373 * testsuite/lib/libgomp.exp
6374 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
6375 and not as 'source' argument to libgomp_target_compile.
6377 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
6379 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
6380 (gcn_gfx801_s): Remove.
6381 (isa_hsa_name): Remove gfx801.
6382 (isa_gcc_name): Remove gfx801/carizzo.
6383 (isa_code): Remove gfx801.
6385 2020-02-03 Julian Brown <julian@codesourcery.com>
6386 Tobias Burnus <tobias@codesourcery.com>
6388 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
6389 and *_finalize variants; document acc_attach and acc_detach; update
6390 references from OpenACC 2.0 to 2.6.
6391 * openacc.f90 (openacc_version): Update to 201711.
6392 * openacc_lib.h (openacc_version): Update to 201711.
6393 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
6394 openacc_version to 201711.
6395 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
6397 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
6399 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
6400 and vgpr_count fields.
6401 (struct kernel_info): Add a field for a hsa_kernel_description.
6402 (run_kernel): Reduce the number of threads/workers if the requested
6403 number would require too many VGPRs.
6404 (init_basic_kernel_info): Initialize description field with
6405 the hsa_kernel_description entry for the kernel.
6407 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
6410 * plugin/configfrag.ac (enable_offload_targets): Skip
6411 HSA and GCN plugin besides -m32 also for -mx32.
6412 * configure: Regenerate.
6414 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
6416 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
6418 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
6420 * plugin-gcn.c (struct agent_info): Add fields "name" and
6422 (GOMP_OFFLOAD_init_device): ... and init from here.
6423 (struct hsa_context_info): Add field "driver_version_s" ...
6424 (init_hsa_contest): ... and init from here.
6425 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
6427 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
6428 Enable test execution for amdgcn and host offloading targets.
6429 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
6430 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
6431 (expect_device_properties): Split function into ...
6432 (expect_device_string_properties): ... this new function ...
6433 (expect_device_memory): ... and this new function.
6434 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
6437 2020-01-28 Julian Brown <julian@codesourcery.com>
6439 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
6440 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
6441 component/non-component variable refs in a single directive.
6442 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
6444 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
6446 * configure.ac: Handle `--with-toolexeclibdir='.
6447 * Makefile.in: Regenerate.
6448 * aclocal.m4: Regenerate.
6449 * configure: Regenerate.
6450 * testsuite/Makefile.in: Regenerate.
6452 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
6454 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
6455 (expect_device_properties): Remove "expected_free_mem" argument,
6456 change "expected_total_mem" argument type to size_t;
6457 change types of acc_get_property results to size_t,
6458 adapt format strings.
6459 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
6460 Use %zu instead of %zd to print size_t values.
6461 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
6463 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
6464 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
6466 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
6468 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
6470 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
6473 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
6475 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
6476 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
6477 Adjust test dimensions for amdgcn.
6478 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
6479 gang/worker/vector expectations dynamically.
6480 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
6482 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
6483 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
6484 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
6485 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
6486 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
6487 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
6488 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
6489 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
6490 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
6491 (acc_gang): Recognise acc_device_radeon.
6492 (acc_worker): Likewise.
6493 (acc_vector): Likewise.
6494 (main): Set expectations for amdgcn.
6495 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
6496 (main): Adjust gang/worker/vector expectations dynamically.
6497 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
6498 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
6499 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
6500 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
6503 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
6505 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
6507 (openacc): Likewise.
6508 * openacc.f90 (openacc_kinds): Likewise.
6509 (openacc): Likewise.
6510 * openacc.h (acc_device_t): Likewise.
6511 * openacc_lib.h: Likewise.
6512 * testsuite/lib/libgomp.exp
6513 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
6514 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
6515 (cb_compute_construct_end): Likewise.
6516 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
6517 (cb_enqueue_launch_start): Likewise.
6518 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
6519 (cb_enter_data_end): Likewise.
6520 (cb_exit_data_start): Likewise.
6521 (cb_exit_data_end): Likewise.
6522 (cb_compute_construct_end): Likewise.
6523 (cb_enqueue_launch_start): Likewise.
6524 (cb_enqueue_launch_end): Likewise.
6525 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
6528 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
6530 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
6531 to use this instead of 'enum gomp_device_property'.
6532 (GOMP_OFFLOAD_get_property): Rename to...
6533 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
6534 * libgomp.h (struct gomp_device_descr): Move
6535 'GOMP_OFFLOAD_openacc_get_property'...
6536 (struct acc_dispatch_t): ... here. Adjust all users.
6537 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
6539 * target.c (gomp_map_vars_internal)
6540 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
6543 2020-01-10 Jakub Jelinek <jakub@redhat.com>
6546 * libgomp.h (gomp_print_string): Change return type from void to int.
6547 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
6548 not all characters have been written.
6550 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
6552 * libgomp.texi: Fix typos, use https.
6554 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
6556 * testsuite/libgomp.fortran/optional-map.f90: Add test for
6557 unallocated/disassociated actual arguments to nonallocatable/nonpointer
6558 dummy arguments; those are/shall be regarded as absent arguments.
6559 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
6560 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
6562 2020-01-01 Jakub Jelinek <jakub@redhat.com>
6564 Update copyright years.
6566 * libgomp.texi: Bump @copying's copyright year.
6568 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
6571 * oacc-init.c (goacc_runtime_deinitialize): New function.
6573 2019-12-28 Jakub Jelinek <jakub@redhat.com>
6576 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
6577 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
6579 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
6580 Frederik Harwath <frederik@codesourcery.com>
6581 Thomas Schwinge <tschwinge@codesourcery.com>
6583 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
6584 * libgomp-plugin.h (gomp_device_property_value): New union.
6585 (gomp_device_property_value): New prototype.
6586 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
6588 (acc_device_property_t): New enum.
6589 (acc_get_property, acc_get_property_string): New prototypes.
6590 * oacc-init.c (acc_get_device_type): Also assert that result
6591 is not `acc_device_current'.
6592 (get_property_any, acc_get_property, acc_get_property_string):
6594 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
6595 `acc_property_memory', `acc_property_free_memory',
6596 `acc_property_name', `acc_property_vendor' and
6597 `acc_property_driver' constants. Add `acc_device_property' data
6599 (openacc_internal): Add `acc_get_property' and
6600 `acc_get_property_string' interfaces. Add `acc_get_property_h',
6601 `acc_get_property_string_h', `acc_get_property_l' and
6602 `acc_get_property_string_l'.
6603 * oacc-host.c (host_get_property): New function.
6604 (host_dispatch): Wire it.
6605 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
6606 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
6607 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
6608 * libgomp.texi (OpenACC Runtime Library Routines): Add
6610 (acc_get_property): New node.
6611 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
6613 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
6614 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
6615 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
6617 (GOMP_OFFLOAD_get_property): New function.
6618 (struct ptx_device): Add new field "name".
6619 (cuda_driver_version_s): Add new static variable ...
6620 (nvptx_init): ... and init from here.
6622 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
6623 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
6624 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
6625 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
6626 with test helper functions.
6628 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
6630 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
6632 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
6635 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
6637 * target.c (gomp_map_vars_internal): Restore 'omp declare target
6640 2019-12-19 Julian Brown <julian@codesourcery.com>
6642 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
6643 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
6644 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
6646 2019-12-19 Julian Brown <julian@codesourcery.com>
6647 Cesar Philippidis <cesar@codesourcery.com>
6649 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
6650 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
6651 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
6652 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
6653 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
6654 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
6655 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
6656 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
6657 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
6658 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
6659 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
6660 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
6661 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
6663 2019-12-19 Julian Brown <julian@codesourcery.com>
6665 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
6666 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
6667 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
6668 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
6669 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
6670 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
6671 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
6672 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
6673 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
6674 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
6675 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
6676 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
6678 2019-12-19 Julian Brown <julian@codesourcery.com>
6680 * libgomp.h (struct target_var_desc): Add do_detach flag.
6681 * oacc-init.c (acc_shutdown_1): Free aux block if present.
6682 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
6683 struct components. Tidy up and add some new checks.
6684 (goacc_enter_data_internal): Update call to find_group_last.
6685 (goacc_exit_data_internal): Support detach operations and
6687 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
6688 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
6689 attach/detach in enter/exit data detection code.
6690 * target.c (gomp_map_vars_existing): Initialise do_detach field of
6692 (gomp_map_vars_internal): Support attach.
6693 (gomp_unmap_vars_internal): Support detach.
6695 2019-12-19 Julian Brown <julian@codesourcery.com>
6696 Thomas Schwinge <thomas@codesourcery.com>
6698 * libgomp.h (struct splay_tree_aux): Add attach_count field.
6699 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
6700 * libgomp.map (OACC_2.6): New section. Add acc_attach,
6701 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
6702 acc_detach_finalize_async.
6703 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
6704 acc_detach, acc_detach_async, acc_detach_finalize,
6705 acc_detach_finalize_async): New functions.
6706 * openacc.h (acc_attach, acc_attach_async, acc_detach,
6707 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
6709 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
6710 (gomp_remove_var_internal): Free attachment counts if present.
6711 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
6712 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
6714 2019-12-19 Julian Brown <julian@codesourcery.com>
6715 Cesar Philippidis <cesar@codesourcery.com>
6717 * libgomp.h (gomp_map_val): Add prototype.
6718 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
6719 open-coding device-address calculation.
6720 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
6723 2019-12-19 Julian Brown <julian@codesourcery.com>
6725 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
6726 field for virtual_refcount.
6727 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
6728 (gomp_free_memmap): Remove prototype.
6729 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
6730 instead of calling gomp_free_memmap.
6731 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
6733 (acc_unmap_data): Open code instead of forcing target_mem_desc's
6734 to_free field to NULL then calling gomp_unmap_vars. Handle
6735 REFCOUNT_INFINITY on target blocks.
6736 (goacc_enter_data): Rename to...
6737 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
6738 handling for mapping groups. Use virtual_refcount instead of
6739 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
6740 map_map_vars_async call. Re-do lookup for target pointer return value.
6741 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
6742 renamed goacc_enter_datum function.
6743 (goacc_exit_data): Rename to...
6744 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
6745 (acc_delete, acc_delete_async, acc_delete_finalize,
6746 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
6747 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
6748 goacc_exit_datum function.
6749 (gomp_acc_remove_pointer, find_pointer): Remove functions.
6750 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
6752 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
6753 goacc_exit_data_internal helper functions.
6754 * target.c (gomp_map_vars_internal): Handle
6755 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
6757 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
6758 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
6759 virtual_refcount field instead of dynamic_refcount.
6760 (gomp_free_memmap): Remove function.
6761 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
6762 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
6763 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
6765 2019-12-19 Julian Brown <julian@codesourcery.com>
6766 Thomas Schwinge <thomas@codesourcery.com>
6768 * libgomp.h (struct splay_tree_aux): New.
6769 (struct splay_tree_key_s): Replace link_key field with aux pointer.
6770 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
6772 (gomp_remove_var_internal): Free aux block if present.
6773 (gomp_load_image_to_device): Zero-initialise aux field instead of
6775 (omp_target_associate_pointer): Zero-initialise aux field.
6777 2019-12-18 Jakub Jelinek <jakub@redhat.com>
6780 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
6782 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
6785 2019-12-19 Julian Brown <julian@codesourcery.com>
6786 Maciej W. Rozycki <macro@codesourcery.com>
6787 Tobias Burnus <tobias@codesourcery.com>
6788 Thomas Schwinge <thomas@codesourcery.com>
6790 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
6791 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
6792 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
6793 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
6794 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
6795 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
6796 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
6797 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
6798 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
6800 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
6802 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
6804 (goacc_insert_pointer): ... from here, "present" case.
6805 (goacc_insert_pointer): Inline function into...
6806 (GOACC_enter_exit_data): ... here, and simplify.
6808 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
6810 (goacc_insert_pointer): ... from here, "not present" case.
6812 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
6815 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
6816 'goacc_enter_data', 'goacc_exit_data'.
6818 * oacc-mem.c (delete_copyout): Refactor into...
6819 (goacc_exit_data): ... this. Adjust all users.
6821 * oacc-mem.c (present_create_copy): Refactor into...
6822 (goacc_enter_data): ... this. Adjust all users.
6824 * target.c (gomp_unmap_vars_internal): Add a safeguard to
6827 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
6828 like 'GOMP_MAP_FROM'.
6833 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
6835 (GOACC_enter_exit_data): Simplify accordingly.
6836 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
6838 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
6839 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
6841 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
6843 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
6844 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
6846 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
6848 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
6850 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
6851 'finalize' handling.
6854 * oacc-mem.c (acc_map_data, present_create_copy)
6855 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
6856 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
6857 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
6858 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
6859 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
6860 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
6861 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
6862 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
6865 * target.c (gomp_unmap_tgt): Make it 'static'.
6866 * libgomp.h (gomp_unmap_tgt): Remove.
6868 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
6871 * testsuite/libgomp.c/pr86416-1.c: New.
6872 * testsuite/libgomp.c/pr86416-2.c: New.
6874 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
6876 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
6877 all symbols as public except for the 'use …, only' imported symbol,
6879 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
6880 all symbols from module openacc_kinds as PUBLIC
6881 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
6883 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
6885 2019-12-13 Julian Brown <julian@codesourcery.com>
6889 * libgomp.h (gomp_remove_var_async): Add prototype.
6890 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
6892 * target.c (gomp_unref_tgt): Change return type to bool, indicating
6893 whether target_mem_desc was unmapped.
6894 (gomp_unref_tgt_void): New.
6895 (gomp_remove_var): Reimplement in terms of...
6896 (gomp_remove_var_internal): ...this new helper function.
6897 (gomp_remove_var_async): New, implemented using above helper function.
6898 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
6901 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
6903 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
6904 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
6905 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
6906 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
6907 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
6909 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
6910 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
6912 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
6914 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
6915 as public except for the 'use …, only' imported symbol, which is
6917 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
6918 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
6919 attributes for acc_copyout_finalize and acc_delete_finalize.
6921 2019-12-11 Jakub Jelinek <jakub@redhat.com>
6924 * testsuite/libgomp.fortran/atomic1.f90: New test.
6926 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
6929 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
6930 reference counting for structured 'REFCOUNT_INFINITY'. Add some
6932 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
6933 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
6934 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
6935 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
6936 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
6938 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
6939 * oacc-mem.c: ... here.
6940 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
6941 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
6942 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
6944 * libgomp_g.h: Update.
6946 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
6947 * oacc-async.c: ... here.
6948 * oacc-int.h (goacc_wait): Declare.
6949 * libgomp_g.h: Update
6952 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
6954 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
6956 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
6958 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
6960 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
6962 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
6965 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
6966 Julian Brown <julian@codesourcery.com>
6968 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
6969 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
6971 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
6973 * omp_lib.h.in: Fix spelling of function declaration
6974 omp_get_cancell(l)ation.
6975 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
6977 * env.c: Fix comment typos.
6978 * oacc-host.c: Likewise.
6979 * ordered.c: Likewise.
6982 * config/gcn/task.c: Likewise.
6983 * config/gcn/team.c: Likewise.
6984 * config/nvptx/task.c: Likewise.
6985 * config/nvptx/team.c: Likewise.
6986 * plugin/plugin-gcn.c: Likewise.
6987 * testsuite/libgomp.fortran/jacobi.f: Likewise.
6988 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
6989 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
6991 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
6993 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
6994 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
6995 unnecessary 'dg-additional-options "-w"'.
6997 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
6998 Julian Brown <julian@codesourcery.com>
7003 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
7004 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
7006 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
7008 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
7010 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
7012 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
7015 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
7016 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
7018 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
7020 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
7022 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
7024 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
7026 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
7028 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
7029 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
7030 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
7031 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
7032 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
7033 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
7034 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
7035 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7036 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
7037 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
7040 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
7041 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
7042 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
7044 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
7046 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
7048 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
7049 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
7052 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
7054 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
7056 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
7058 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
7060 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
7061 ... with their content moved into, and extended in this new file.
7062 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
7064 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
7066 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
7068 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
7071 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
7074 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
7076 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
7078 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
7080 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
7082 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
7084 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
7085 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
7086 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
7087 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
7089 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
7090 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
7092 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
7094 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
7096 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
7097 Kwok Cheung Yeung <kcy@codesourcery.com>
7099 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
7100 if input it a NULL pointer.
7101 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
7102 diagnostic of NULL pointer.
7103 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
7104 * testsuite/libgomp.fortran/optional-map.f90: New.
7105 * testsuite/libgomp.fortran/use_device_addr-1.f90
7106 (test_dummy_opt_callee_1_absent): New.
7107 (test_dummy_opt_call_1): Call it.
7108 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
7109 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
7110 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
7111 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
7112 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
7113 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
7114 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
7115 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
7116 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
7117 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
7118 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
7119 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
7120 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
7121 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
7122 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
7123 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
7125 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
7127 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
7128 expect dg-output of 'Error termination.' for GCN.
7129 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
7130 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
7132 2019-12-04 Jakub Jelinek <jakub@redhat.com>
7135 * testsuite/libgomp.fortran/teams1.f90: New test.
7136 * testsuite/libgomp.fortran/teams2.f90: New test.
7138 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
7140 * oacc-init.c (acc_known_device_type): Add function.
7141 (unknown_device_type_error): Add function.
7142 (name_of_acc_device_t): Change to call unknown_device_type_error
7144 (resolve_device): Use acc_known_device_type.
7145 (acc_init): Fail if acc_device_t argument is not valid.
7146 (acc_shutdown): Likewise.
7147 (acc_get_num_devices): Likewise.
7148 (acc_set_device_type): Likewise.
7149 (acc_get_device_num): Likewise.
7150 (acc_set_device_num): Likewise.
7151 (acc_on_device): Add comment that argument validity is not checked.
7153 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
7155 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
7157 (check_effective_target_openacc_amdgcn_accel_present): New proc.
7158 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
7159 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
7160 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7161 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7163 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
7166 * configure.tgt: Avoid IE tls on *-*-musl*.
7168 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
7170 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
7171 adding a common-block test case.
7173 2019-11-29 Jakub Jelinek <jakub@redhat.com>
7176 * testsuite/libgomp.c++/udr-20.C: New test.
7177 * testsuite/libgomp.c++/udr-21.C: New test.
7179 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
7181 * testsuite/lib/libgomp.exp
7182 (check_effective_target_offload_target_nvptx): New proc.
7183 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
7185 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
7186 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
7187 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
7189 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7191 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
7192 * testsuite/libgomp.c/pr39591-2.c: Likewise.
7193 * testsuite/libgomp.c/pr39591-3.c: Likewise.
7194 * testsuite/libgomp.c/private-1.c: Likewise.
7195 * testsuite/libgomp.c/task-1.c: Likewise.
7196 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
7198 2019-11-20 Julian Brown <julian@codesourcery.com>
7200 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
7202 (queue_push_launch): Lock aq->mutex before calling
7203 wait_for_queue_nonfull.
7204 (queue_push_callback): Likewise.
7205 (queue_push_asyncwait): Likewise.
7206 (queue_push_placeholder): Likewise.
7208 2019-11-20 Julian Brown <julian@codesourcery.com>
7210 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
7211 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
7212 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
7215 2019-11-20 Julian Brown <julian@codesourcery.com>
7219 * oacc-mem.c (present_create_copy): Fix device pointer return value in
7220 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
7221 in non-present/create case.
7222 (delete_copyout): Change error condition to fail only on copies outside
7223 of mapped block. Adjust error message accordingly.
7224 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
7225 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
7226 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
7228 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7229 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
7230 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7232 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
7234 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
7235 libatomic in build-tree testing.
7237 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
7239 * testsuite/Makefile.in: Regenerate.
7241 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
7243 * testsuite/libgomp.c/target-print-1.c: New file.
7244 * testsuite/libgomp.fortran/target-print-1.f90: New file.
7245 * testsuite/libgomp.oacc-c/print-1.c: New file.
7246 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
7248 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
7249 Kwok Cheung Yeung <kcy@codesourcery.com>
7250 Julian Brown <julian@codesourcery.com>
7251 Tom de Vries <tom@codesourcery.com>
7253 * plugin/Makefrag.am: Add amdgcn plugin support.
7254 * plugin/configfrag.ac: Likewise.
7255 * plugin/plugin-gcn.c: New file.
7256 * configure: Regenerate.
7257 * Makefile.in: Regenerate.
7258 * testsuite/Makefile.in: Regenerate.
7260 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
7262 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
7263 and use team_malloc variants.
7264 (gomp_gcn_exit_kernel): Use team_free.
7265 * libgomp.h (TEAM_ARENA_SIZE): Define.
7266 (TEAM_ARENA_START): Define.
7267 (TEAM_ARENA_FREE): Define.
7268 (TEAM_ARENA_END): Define.
7269 (team_malloc): New function.
7270 (team_malloc_cleared): New function.
7271 (team_free): New function.
7272 * team.c (gomp_new_team): Initialize and use team_malloc.
7273 (free_team): Use team_free.
7274 (gomp_free_thread): Use team_free.
7275 (gomp_pause_host): Use team_free.
7276 * work.c (gomp_init_work_share): Use team_malloc.
7277 (gomp_fini_work_share): Use team_free.
7279 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
7280 Kwok Cheung Yeung <kcy@codesourcery.com>
7281 Julian Brown <julian@codesourcery.com>
7282 Tom de Vries <tom@codesourcery.com>
7284 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
7285 * Makefile.in: Regenerate.
7286 * config.h.in (PLUGIN_GCN): Add new undef.
7287 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
7288 * config/gcn/affinity-fmt.c: New file.
7289 * config/gcn/bar.c: New file.
7290 * config/gcn/bar.h: New file.
7291 * config/gcn/doacross.h: New file.
7292 * config/gcn/icv-device.c: New file.
7293 * config/gcn/oacc-target.c: New file.
7294 * config/gcn/simple-bar.h: New file.
7295 * config/gcn/target.c: New file.
7296 * config/gcn/task.c: New file.
7297 * config/gcn/team.c: New file.
7298 * config/gcn/time.c: New file.
7299 * configure.ac: Add amdgcn*-*-*.
7300 * configure: Regenerate.
7301 * configure.tgt: Add amdgcn*-*-*.
7302 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
7303 * libgomp.h (gcn_thrs): Add amdgcn variant.
7304 (set_gcn_thrs): Likewise.
7305 (gomp_thread): Likewise.
7306 * oacc-int.h (goacc_thread): Likewise.
7307 * oacc-target.c: New file.
7308 * openacc.f90 (acc_device_gcn): New parameter.
7309 * openacc.h (acc_device_t): Add acc_device_gcn.
7310 * team.c (gomp_free_pool_helper): Add amdgcn support.
7312 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
7313 Julian Brown <julian@codesourcery.com>
7315 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
7317 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
7319 * oacc-host.c (host_openacc_async_construct): Add device parameter.
7320 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
7323 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
7325 * configure.tgt (nvptx*-*-*): Add "accel" directory.
7326 * config/nvptx/libgomp-plugin.c: Move ...
7327 * config/accel/libgomp-plugin.c: ... to here.
7328 * config/nvptx/lock.c: Move ...
7329 * config/accel/lock.c: ... to here.
7330 * config/nvptx/mutex.c: Move ...
7331 * config/accel/mutex.c: ... to here.
7332 * config/nvptx/mutex.h: Move ...
7333 * config/accel/mutex.h: ... to here.
7334 * config/nvptx/oacc-async.c: Move ...
7335 * config/accel/oacc-async.c: ... to here.
7336 * config/nvptx/oacc-cuda.c: Move ...
7337 * config/accel/oacc-cuda.c: ... to here.
7338 * config/nvptx/oacc-host.c: Move ...
7339 * config/accel/oacc-host.c: ... to here.
7340 * config/nvptx/oacc-init.c: Move ...
7341 * config/accel/oacc-init.c: ... to here.
7342 * config/nvptx/oacc-mem.c: Move ...
7343 * config/accel/oacc-mem.c: ... to here.
7344 * config/nvptx/oacc-plugin.c: Move ...
7345 * config/accel/oacc-plugin.c: ... to here.
7346 * config/nvptx/omp-lock.h: Move ...
7347 * config/accel/omp-lock.h: ... to here.
7348 * config/nvptx/openacc.f90: Move ...
7349 * config/accel/openacc.f90: ... to here.
7350 * config/nvptx/pool.h: Move ...
7351 * config/accel/pool.h: ... to here.
7352 * config/nvptx/proc.c: Move ...
7353 * config/accel/proc.c: ... to here.
7354 * config/nvptx/ptrlock.c: Move ...
7355 * config/accel/ptrlock.c: ... to here.
7356 * config/nvptx/ptrlock.h: Move ...
7357 * config/accel/ptrlock.h: ... to here.
7358 * config/nvptx/sem.c: Move ...
7359 * config/accel/sem.c: ... to here.
7360 * config/nvptx/sem.h: Move ...
7361 * config/accel/sem.h: ... to here.
7362 * config/nvptx/thread-stacksize.h: Move ...
7363 * config/accel/thread-stacksize.h: ... to here.
7365 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
7366 Tobias Burnus <tobias@codesourcery.com>
7367 Frederik Harwath <frederik@codesourcery.com>
7368 Thomas Schwinge <thomas@codesourcery.com>
7371 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
7372 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
7373 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
7375 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
7376 Kwok Cheung Yeung <kcy@codesourcery.com>
7378 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
7379 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
7381 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
7383 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
7385 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
7387 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
7388 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
7390 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
7392 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
7393 Add expected warnings about missing reduction clauses.
7394 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
7396 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
7398 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
7401 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
7403 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
7404 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
7405 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
7406 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
7407 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
7408 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
7410 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
7413 * testsuite/libgomp.fortran/allocatable2.f90: Use
7414 unique numbers with 'stop'.
7415 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
7416 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
7417 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
7418 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
7419 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
7421 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
7423 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
7424 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
7425 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
7426 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
7427 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
7428 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
7430 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
7432 * testsuite/libgomp.fortran/target9.f90: New.
7434 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
7436 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
7437 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
7438 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
7439 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
7440 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
7441 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
7442 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
7443 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
7444 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
7445 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
7446 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
7447 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
7448 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
7449 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
7450 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
7451 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
7452 * testsuite/libgomp.fortran/associate1.f90: Ditto.
7453 * testsuite/libgomp.fortran/associate2.f90: Ditto.
7454 * testsuite/libgomp.fortran/associate3.f90: Ditto.
7455 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
7456 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
7457 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
7458 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
7459 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
7460 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
7461 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
7462 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
7463 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
7464 * testsuite/libgomp.fortran/character1.f90: Ditto.
7465 * testsuite/libgomp.fortran/character2.f90: Ditto.
7466 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
7467 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
7468 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
7469 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
7470 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
7471 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
7472 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
7473 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
7474 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
7475 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
7476 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
7477 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
7478 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
7479 * testsuite/libgomp.fortran/do1.f90: Ditto.
7480 * testsuite/libgomp.fortran/do2.f90: Ditto.
7481 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
7482 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
7483 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
7484 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
7485 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
7486 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
7487 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
7488 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
7489 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
7490 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
7491 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
7492 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
7493 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
7494 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
7495 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
7496 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
7497 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
7498 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
7499 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
7500 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
7501 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
7502 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
7503 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
7504 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
7505 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
7506 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
7507 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
7508 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
7509 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
7510 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
7511 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
7512 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
7513 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
7514 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
7515 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
7516 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
7517 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
7518 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
7519 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
7520 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
7521 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
7522 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
7523 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
7524 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
7525 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
7526 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
7527 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
7528 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
7529 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
7530 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
7531 * testsuite/libgomp.fortran/lib1.f90: Ditto.
7532 * testsuite/libgomp.fortran/lib4.f90: Ditto.
7533 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
7534 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
7535 * testsuite/libgomp.fortran/nested1.f90: Ditto.
7536 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
7537 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
7538 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
7539 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
7540 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
7541 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
7542 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
7543 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
7544 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
7545 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
7546 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
7547 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
7548 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
7549 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
7550 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
7551 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
7552 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
7553 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
7554 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
7555 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
7556 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
7557 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
7558 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
7559 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
7560 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
7561 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
7562 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
7563 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
7564 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
7565 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
7566 * testsuite/libgomp.fortran/pr28390.f: Ditto.
7567 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
7568 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
7569 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
7570 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
7571 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
7572 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
7573 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
7574 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
7575 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
7576 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
7577 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
7578 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
7579 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
7580 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
7581 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
7582 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
7583 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
7584 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
7585 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
7586 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
7587 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
7588 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
7589 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
7590 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
7591 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
7592 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
7593 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
7594 * testsuite/libgomp.fortran/reference1.f90: Ditto.
7595 * testsuite/libgomp.fortran/reference2.f90: Ditto.
7596 * testsuite/libgomp.fortran/retval1.f90: Ditto.
7597 * testsuite/libgomp.fortran/retval2.f90: Ditto.
7598 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
7599 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
7600 * testsuite/libgomp.fortran/simd1.f90: Ditto.
7601 * testsuite/libgomp.fortran/simd2.f90: Ditto.
7602 * testsuite/libgomp.fortran/simd3.f90: Ditto.
7603 * testsuite/libgomp.fortran/simd4.f90: Ditto.
7604 * testsuite/libgomp.fortran/simd5.f90: Ditto.
7605 * testsuite/libgomp.fortran/simd6.f90: Ditto.
7606 * testsuite/libgomp.fortran/simd7.f90: Ditto.
7607 * testsuite/libgomp.fortran/stack.f90: Ditto.
7608 * testsuite/libgomp.fortran/strassen.f90: Ditto.
7609 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
7610 * testsuite/libgomp.fortran/tabs2.f: Ditto.
7611 * testsuite/libgomp.fortran/target1.f90: Ditto.
7612 * testsuite/libgomp.fortran/target2.f90: Ditto.
7613 * testsuite/libgomp.fortran/target3.f90: Ditto.
7614 * testsuite/libgomp.fortran/target4.f90: Ditto.
7615 * testsuite/libgomp.fortran/target5.f90: Ditto.
7616 * testsuite/libgomp.fortran/target6.f90: Ditto.
7617 * testsuite/libgomp.fortran/target7.f90: Ditto.
7618 * testsuite/libgomp.fortran/target8.f90: Ditto.
7619 * testsuite/libgomp.fortran/task1.f90: Ditto.
7620 * testsuite/libgomp.fortran/task2.f90: Ditto.
7621 * testsuite/libgomp.fortran/task3.f90: Ditto.
7622 * testsuite/libgomp.fortran/task4.f90: Ditto.
7623 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
7624 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
7625 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
7626 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
7627 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
7628 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
7629 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
7630 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
7631 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
7632 * testsuite/libgomp.fortran/udr1.f90: Ditto.
7633 * testsuite/libgomp.fortran/udr10.f90: Ditto.
7634 * testsuite/libgomp.fortran/udr11.f90: Ditto.
7635 * testsuite/libgomp.fortran/udr12.f90: Ditto.
7636 * testsuite/libgomp.fortran/udr13.f90: Ditto.
7637 * testsuite/libgomp.fortran/udr14.f90: Ditto.
7638 * testsuite/libgomp.fortran/udr15.f90: Ditto.
7639 * testsuite/libgomp.fortran/udr2.f90: Ditto.
7640 * testsuite/libgomp.fortran/udr3.f90: Ditto.
7641 * testsuite/libgomp.fortran/udr4.f90: Ditto.
7642 * testsuite/libgomp.fortran/udr5.f90: Ditto.
7643 * testsuite/libgomp.fortran/udr6.f90: Ditto.
7644 * testsuite/libgomp.fortran/udr7.f90: Ditto.
7645 * testsuite/libgomp.fortran/udr8.f90: Ditto.
7646 * testsuite/libgomp.fortran/udr9.f90: Ditto.
7647 * testsuite/libgomp.fortran/vla1.f90: Ditto.
7648 * testsuite/libgomp.fortran/vla2.f90: Ditto.
7649 * testsuite/libgomp.fortran/vla3.f90: Ditto.
7650 * testsuite/libgomp.fortran/vla4.f90: Ditto.
7651 * testsuite/libgomp.fortran/vla5.f90: Ditto.
7652 * testsuite/libgomp.fortran/vla6.f90: Ditto.
7653 * testsuite/libgomp.fortran/vla7.f90: Ditto.
7654 * testsuite/libgomp.fortran/vla8.f90: Ditto.
7655 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
7656 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
7658 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
7660 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
7661 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
7662 Ditto; add 'dg-do run' for torture testing.
7663 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
7664 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
7665 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
7666 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
7667 * testsuite/libgomp.fortran/pr28390.f: Ditto.
7668 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
7669 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
7670 * testsuite/libgomp.fortran/task2.f90: Ditto.
7671 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
7672 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
7673 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
7674 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
7675 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
7676 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
7678 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
7680 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
7681 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
7682 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
7683 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
7684 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
7685 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
7686 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
7687 Use 'stop' not abort().
7688 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
7689 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
7690 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
7691 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
7692 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
7693 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
7694 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
7695 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
7696 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
7697 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
7698 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
7699 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
7700 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
7701 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
7702 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
7703 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
7704 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
7706 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
7708 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
7710 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
7712 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
7714 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
7716 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
7718 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
7720 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
7722 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
7724 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
7726 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
7728 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
7730 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
7732 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
7733 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
7734 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
7735 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
7736 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
7737 Likewise and also add 'dg-do run'.
7738 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
7741 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
7742 Tobias Burnus <tobias@codesourcery.com>
7744 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
7745 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
7746 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
7748 2019-10-14 Jakub Jelinek <jakub@redhat.com>
7751 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
7754 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
7756 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
7757 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
7759 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
7762 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
7765 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
7768 * testsuite/libgomp.fortran/fortran.exp: Conditionally
7770 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
7772 2019-10-09 Jakub Jelinek <jakub@redhat.com>
7775 * target.c (gomp_map_vars_internal): Readd the previous
7776 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
7777 though do that just in the !not_found_cnt case.
7779 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
7781 * gfortran.dg/gomp/target-simd.f90: New.
7783 2019-10-02 Julian Brown <julian@codesourcery.com>
7784 Cesar Philippidis <cesar@codesourcery.com>
7786 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
7787 * target.c (FIELD_TGT_EMPTY): Define.
7788 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
7789 as switch instead of list of ifs.
7790 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
7792 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
7794 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
7795 include. Replace alloca () with __builtin_alloca ().
7796 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
7798 2019-10-01 Jakub Jelinek <jakub@redhat.com>
7800 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
7801 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
7802 * oacc-parallel.c: Don't include "libgomp_g.h".
7803 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
7804 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
7805 * aclocal.m4: Regenerated.
7806 * config.h.in: Regenerated.
7807 * configure: Regenerated.
7808 * Makefile.in: Regenerated.
7810 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
7812 * libgomp_g.h: Include stdint.h instead of gstdint.h.
7814 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
7816 * configure: Regenerate.
7818 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
7820 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
7821 string is initialized.
7823 2019-09-06 Florian Weimer <fweimer@redhat.com>
7825 * configure: Regenerate.
7827 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
7830 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
7831 scanning to conform to the GNU Coding Standards.
7832 * configure: Regenerate.
7834 2019-08-28 Jakub Jelinek <jakub@redhat.com>
7837 * testsuite/libgomp.c/scan-21.c: New test.
7838 * testsuite/libgomp.c/scan-22.c: New test.
7840 2019-08-27 Jakub Jelinek <jakub@redhat.com>
7843 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
7845 * testsuite/libgomp.c/scan-12.c: Likewise.
7846 * testsuite/libgomp.c/scan-13.c: Likewise.
7847 * testsuite/libgomp.c/scan-14.c: Likewise.
7848 * testsuite/libgomp.c/scan-15.c: Likewise.
7849 * testsuite/libgomp.c/scan-16.c: Likewise.
7850 * testsuite/libgomp.c/scan-17.c: Likewise.
7851 * testsuite/libgomp.c/scan-18.c: Likewise.
7852 * testsuite/libgomp.c/scan-19.c: Likewise.
7853 * testsuite/libgomp.c/scan-20.c: Likewise.
7854 * testsuite/libgomp.c++/scan-9.C: Likewise.
7855 * testsuite/libgomp.c++/scan-10.C: Likewise.
7856 * testsuite/libgomp.c++/scan-11.C: Likewise.
7857 * testsuite/libgomp.c++/scan-12.C: Likewise.
7858 * testsuite/libgomp.c++/scan-14.C: Likewise.
7859 * testsuite/libgomp.c++/scan-15.C: Likewise.
7860 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
7861 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
7862 * testsuite/libgomp.c++/scan-16.C: Likewise.
7864 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
7867 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
7868 -std=legacy so invalid code in the test case is accepted.
7870 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
7873 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
7876 2019-08-08 Jakub Jelinek <jakub@redhat.com>
7878 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
7879 perform the lookup in the first loop only if !not_found_cnt, otherwise
7880 perform lookups for it in the second loop guarded with
7881 if (not_found_cnt || has_firstprivate).
7882 * testsuite/libgomp.c/target-37.c: New test.
7883 * testsuite/libgomp.c++/target-22.C: New test.
7885 2019-08-07 Jakub Jelinek <jakub@redhat.com>
7887 * testsuite/libgomp.c/target-18.c (struct S): New type.
7888 (foo): Use use_device_addr clause instead of use_device_ptr clause
7889 where required by OpenMP 5.0, add further tests for both use_device_ptr
7890 and use_device_addr clauses.
7891 * testsuite/libgomp.c++/target-9.C (struct S): New type.
7892 (foo): Use use_device_addr clause instead of use_device_ptr clause
7893 where required by OpenMP 5.0, add further tests for both use_device_ptr
7894 and use_device_addr clauses. Add t and u arguments.
7895 (main): Adjust caller.
7897 2019-08-06 Jakub Jelinek <jakub@redhat.com>
7899 * testsuite/libgomp.c++/loop-13.C: New test.
7900 * testsuite/libgomp.c++/loop-14.C: New test.
7901 * testsuite/libgomp.c++/loop-15.C: New test.
7903 2019-07-31 Jakub Jelinek <jakub@redhat.com>
7906 * testsuite/libgomp.c++/for-27.C: New test.
7908 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
7910 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
7911 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
7913 2019-07-20 Jakub Jelinek <jakub@redhat.com>
7915 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
7917 2019-07-08 Jakub Jelinek <jakub@redhat.com>
7919 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
7920 * testsuite/libgomp.c++/scan-16.C: Likewise.
7922 2019-07-06 Jakub Jelinek <jakub@redhat.com>
7924 * testsuite/libgomp.c/scan-19.c: New test.
7925 * testsuite/libgomp.c/scan-20.c: New test.
7927 * testsuite/libgomp.c/scan-11.c: New test.
7928 * testsuite/libgomp.c/scan-12.c: New test.
7929 * testsuite/libgomp.c/scan-13.c: New test.
7930 * testsuite/libgomp.c/scan-14.c: New test.
7931 * testsuite/libgomp.c/scan-15.c: New test.
7932 * testsuite/libgomp.c/scan-16.c: New test.
7933 * testsuite/libgomp.c/scan-17.c: New test.
7934 * testsuite/libgomp.c/scan-18.c: New test.
7935 * testsuite/libgomp.c++/scan-9.C: New test.
7936 * testsuite/libgomp.c++/scan-10.C: New test.
7937 * testsuite/libgomp.c++/scan-11.C: New test.
7938 * testsuite/libgomp.c++/scan-12.C: New test.
7939 * testsuite/libgomp.c++/scan-13.C: New test.
7940 * testsuite/libgomp.c++/scan-14.C: New test.
7941 * testsuite/libgomp.c++/scan-15.C: New test.
7942 * testsuite/libgomp.c++/scan-16.C: New test.
7944 2019-07-04 Jakub Jelinek <jakub@redhat.com>
7946 * testsuite/libgomp.c/scan-9.c: New test.
7947 * testsuite/libgomp.c/scan-10.c: New test.
7949 2019-07-03 Jakub Jelinek <jakub@redhat.com>
7951 * testsuite/libgomp.c++/scan-1.C: New test.
7952 * testsuite/libgomp.c++/scan-2.C: New test.
7953 * testsuite/libgomp.c++/scan-3.C: New test.
7954 * testsuite/libgomp.c++/scan-4.C: New test.
7955 * testsuite/libgomp.c++/scan-5.C: New test.
7956 * testsuite/libgomp.c++/scan-6.C: New test.
7957 * testsuite/libgomp.c++/scan-7.C: New test.
7958 * testsuite/libgomp.c++/scan-8.C: New test.
7959 * testsuite/libgomp.c/scan-1.c: New test.
7960 * testsuite/libgomp.c/scan-2.c: New test.
7961 * testsuite/libgomp.c/scan-3.c: New test.
7962 * testsuite/libgomp.c/scan-4.c: New test.
7963 * testsuite/libgomp.c/scan-5.c: New test.
7964 * testsuite/libgomp.c/scan-6.c: New test.
7965 * testsuite/libgomp.c/scan-7.c: New test.
7966 * testsuite/libgomp.c/scan-8.c: New test.
7968 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
7970 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
7971 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
7974 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
7977 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
7979 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
7982 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
7985 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
7987 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
7988 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
7989 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
7990 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
7993 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
7996 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
7998 2019-06-16 Tom de Vries <tdevries@suse.de>
8000 PR tree-optimization/89376
8001 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
8003 2019-06-15 Tom de Vries <tdevries@suse.de>
8005 PR tree-optimization/89713
8006 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
8007 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
8009 2019-06-15 Jakub Jelinek <jakub@redhat.com>
8012 * testsuite/libgomp.c/pr90779.c: New test.
8013 * testsuite/libgomp.fortran/pr90779.f90: New test.
8015 2019-06-15 Tom de Vries <tdevries@suse.de>
8017 PR tree-optimization/90009
8018 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
8020 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
8022 PR tree-optimization/89713
8023 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
8025 2019-06-11 Jakub Jelinek <jakub@redhat.com>
8028 * testsuite/libgomp.c/pr90811.c: New test.
8030 2019-06-05 Jakub Jelinek <jakub@redhat.com>
8032 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
8033 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
8035 2019-06-04 Jakub Jelinek <jakub@redhat.com>
8037 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
8038 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
8039 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
8040 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
8042 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8044 * configure.ac: Call AX_COUNT_CPUS.
8045 Substitute CPU_COUNT.
8046 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
8048 * aclocal.m4: Regenerate.
8049 * configure: Regenerate.
8050 * Makefile.in, testsuite/Makefile.in: Regenerate.
8052 2019-05-29 Jakub Jelinek <jakub@redhat.com>
8054 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
8056 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
8057 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
8058 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
8060 2019-05-27 Jakub Jelinek <jakub@redhat.com>
8062 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
8064 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
8067 * work.c (gomp_init_work_share): Instead of aligning final ordered
8068 value to multiples of long long alignment, align to that the
8069 first part (ordered team ids) and if inline_ordered_team_ids
8070 is not on a long long alignment boundary within the structure,
8071 use __alignof__ (long long) - 1 pad size always.
8072 * loop.c (GOMP_loop_start): Fix *mem computation if
8073 inline_ordered_team_ids is not aligned on long long alignment boundary
8074 within the structure.
8075 * loop-ull.c (GOMP_loop_ull_start): Likewise.
8076 * sections.c (GOMP_sections2_start): Likewise.
8078 2019-05-24 Jakub Jelinek <jakub@redhat.com>
8080 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
8081 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
8084 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
8085 HAVE_INTTYPES_H is defined.
8086 (print_uint64_t): New typedef.
8087 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
8088 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
8089 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
8090 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
8091 before casting to void *.
8092 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
8093 * oacc-mem.c: Don't include config.h nor stdint.h.
8094 * target.c: Don't include config.h.
8095 * oacc-cuda.c: Likewise.
8096 * oacc-host.c: Don't include stdint.h.
8098 2019-05-20 Jakub Jelinek <jakub@redhat.com>
8101 * alloc.c (_GNU_SOURCE): Define.
8103 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
8105 * acc_prof.h: New file.
8106 * oacc-profiling.c: Likewise.
8107 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
8108 Add these, respectively.
8109 * Makefile.in: Regenerate.
8110 * env.c (initialize_env): Call goacc_profiling_initialize.
8111 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
8112 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
8113 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
8114 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
8115 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
8116 acc_prof_register, acc_prof_unregister, and acc_register_library.
8117 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
8118 GOMP_PLUGIN_goacc_thread.
8119 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
8120 prof_callbacks_enabled members.
8121 (goacc_prof_enabled, goacc_profiling_initialize)
8122 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
8123 (goacc_profiling_dispatch): Declare.
8124 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
8125 (GOACC_PROFILING_SETUP_P): Define.
8126 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
8127 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
8128 OpenACC Profiling Interface.
8129 * oacc-cuda.c (acc_get_current_cuda_device)
8130 (acc_get_current_cuda_context, acc_get_cuda_stream)
8131 (acc_set_cuda_stream): Likewise.
8132 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
8133 (acc_init, acc_set_device_type, acc_get_device_type)
8134 (acc_get_device_num, goacc_lazy_initialize): Likewise.
8135 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
8136 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
8137 (acc_unmap_data, present_create_copy, delete_copyout)
8138 (update_dev_host): Likewise.
8139 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
8140 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
8142 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
8143 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
8145 * libgomp.texi: Update.
8146 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
8148 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
8149 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
8151 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
8153 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
8155 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
8158 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
8160 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
8161 (struct goacc_asyncqueue_list): Likewise.
8162 (goacc_aq): Likewise.
8163 (goacc_aq_list): Likewise.
8164 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
8165 (GOMP_OFFLOAD_openacc_async_test): Remove.
8166 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
8167 (GOMP_OFFLOAD_openacc_async_wait): Remove.
8168 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
8169 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
8170 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
8171 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
8172 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
8173 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
8174 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
8175 (GOMP_OFFLOAD_openacc_async_exec): Declare.
8176 (GOMP_OFFLOAD_openacc_async_construct): Declare.
8177 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
8178 (GOMP_OFFLOAD_openacc_async_test): Declare.
8179 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
8180 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
8181 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
8182 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
8183 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
8185 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
8186 (gomp_acc_insert_pointer): Adjust declaration.
8187 (gomp_copy_host2dev): New declaration.
8188 (gomp_copy_dev2host): Likewise.
8189 (gomp_map_vars_async): Likewise.
8190 (gomp_unmap_tgt): Likewise.
8191 (gomp_unmap_vars_async): Likewise.
8192 (gomp_fini_device): Likewise.
8194 * oacc-async.c (get_goacc_thread): New function.
8195 (get_goacc_thread_device): New function.
8196 (lookup_goacc_asyncqueue): New function.
8197 (get_goacc_asyncqueue): New function.
8198 (acc_async_test): Adjust code to use new async design.
8199 (acc_async_test_all): Likewise.
8200 (acc_wait): Likewise.
8201 (acc_wait_async): Likewise.
8202 (acc_wait_all): Likewise.
8203 (acc_wait_all_async): Likewise.
8204 (goacc_async_free): New function.
8205 (goacc_init_asyncqueues): Likewise.
8206 (goacc_fini_asyncqueues): Likewise.
8207 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
8209 (acc_set_cuda_stream): Likewise.
8210 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
8211 (host_openacc_register_async_cleanup): Remove.
8212 (host_openacc_async_exec): New function.
8213 (host_openacc_async_test): Adjust parameters.
8214 (host_openacc_async_test_all): Remove.
8215 (host_openacc_async_wait): Remove.
8216 (host_openacc_async_wait_async): Remove.
8217 (host_openacc_async_wait_all): Remove.
8218 (host_openacc_async_wait_all_async): Remove.
8219 (host_openacc_async_set_async): Remove.
8220 (host_openacc_async_synchronize): New function.
8221 (host_openacc_async_serialize): New function.
8222 (host_openacc_async_host2dev): New function.
8223 (host_openacc_async_dev2host): New function.
8224 (host_openacc_async_queue_callback): New function.
8225 (host_openacc_async_construct): New function.
8226 (host_openacc_async_destruct): New function.
8227 (struct gomp_device_descr host_dispatch): Remove initialization of old
8228 interface, add initialization of new async sub-struct.
8229 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
8230 (goacc_attach_host_thread_to_device): Remove old async code usage.
8231 * oacc-int.h (goacc_init_asyncqueues): New declaration.
8232 (goacc_fini_asyncqueues): Likewise.
8233 (goacc_async_copyout_unmap_vars): Likewise.
8234 (goacc_async_free): Likewise.
8235 (get_goacc_asyncqueue): Likewise.
8236 (lookup_goacc_asyncqueue): Likewise.
8237 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
8239 (present_create_copy): Adjust code to use new async design.
8240 (delete_copyout): Likewise.
8241 (update_dev_host): Likewise.
8242 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
8244 (gomp_acc_remove_pointer): Adjust code to use new async design.
8245 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
8247 (GOACC_enter_exit_data): Likewise.
8248 (goacc_wait): Likewise.
8249 (GOACC_update): Likewise.
8250 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
8251 when called, warn as obsolete in comment.
8252 * target.c (goacc_device_copy_async): New function.
8253 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
8254 add goacc_device_copy_async case.
8255 (gomp_copy_dev2host): Likewise.
8256 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
8257 (gomp_map_pointer): Likewise.
8258 (gomp_map_fields_existing): Likewise.
8259 (gomp_map_vars_internal): New always_inline function, renamed from
8261 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
8262 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
8263 passing goacc_asyncqueue argument.
8264 (gomp_unmap_tgt): Remove static, add attribute_hidden.
8265 (gomp_unref_tgt): New function.
8266 (gomp_unmap_vars_internal): New always_inline function, renamed from
8268 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
8269 (gomp_unmap_vars_async): Implement by calling
8270 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
8271 (gomp_fini_device): New function.
8272 (gomp_exit_data): Adjust gomp_copy_dev2host call.
8273 (gomp_load_plugin_for_device): Remove old interface, adjust to load
8274 new async interface.
8275 (gomp_target_fini): Adjust code to call gomp_fini_device.
8277 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
8278 (struct ptx_stream): Remove.
8279 (struct nvptx_thread): Remove current_stream field.
8280 (cuda_map_create): Remove.
8281 (cuda_map_destroy): Remove.
8286 (struct goacc_asyncqueue): Define.
8287 (struct nvptx_callback): Define.
8288 (struct ptx_free_block): Define.
8289 (struct ptx_device): Remove null_stream, active_streams, async_streams,
8290 stream_lock, and next fields.
8291 (enum ptx_event_type): Remove.
8292 (struct ptx_event): Remove.
8293 (ptx_event_lock): Remove.
8294 (ptx_events): Remove.
8295 (init_streams_for_device): Remove.
8296 (fini_streams_for_device): Remove.
8297 (select_stream_for_async): Remove.
8298 (nvptx_init): Remove ptx_events and ptx_event_lock references.
8299 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
8301 (nvptx_open_device): Add free_blocks initialization, remove
8302 init_streams_for_device call.
8303 (nvptx_close_device): Remove fini_streams_for_device call, add
8304 free_blocks destruct code.
8306 (event_add): Remove.
8307 (nvptx_exec): Adjust parameters and code.
8308 (nvptx_free): Likewise.
8309 (nvptx_host2dev): Remove.
8310 (nvptx_dev2host): Remove.
8311 (nvptx_set_async): Remove.
8312 (nvptx_async_test): Remove.
8313 (nvptx_async_test_all): Remove.
8314 (nvptx_wait): Remove.
8315 (nvptx_wait_async): Remove.
8316 (nvptx_wait_all): Remove.
8317 (nvptx_wait_all_async): Remove.
8318 (nvptx_get_cuda_stream): Remove.
8319 (nvptx_set_cuda_stream): Remove.
8320 (GOMP_OFFLOAD_alloc): Adjust code.
8321 (GOMP_OFFLOAD_free): Likewise.
8322 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
8323 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
8324 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
8325 (GOMP_OFFLOAD_openacc_async_wait): Remove.
8326 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
8327 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
8328 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
8329 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
8330 (cuda_free_argmem): New function.
8331 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
8332 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
8333 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
8334 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
8335 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
8336 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
8337 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
8338 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
8339 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
8340 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
8341 (cuda_callback_wrapper): New function.
8342 (cuda_memcpy_sanity_check): New function.
8343 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
8344 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
8345 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
8346 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
8348 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
8351 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
8353 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
8355 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
8357 2019-03-27 Kevin Buettner <kevinb@redhat.com>
8359 * team.c (gomp_team_start): Initialize pool->threads[0].
8361 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
8363 * testsuite/libgomp.oacc-c++/c++.exp: Specify
8364 "-foffload=$offload_target".
8365 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8366 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8367 * testsuite/lib/libgomp.exp
8368 (check_effective_target_openacc_nvidia_accel_configured): Remove,
8369 as (conceptually) merged into
8370 check_effective_target_openacc_nvidia_accel_selected. Adjust all
8373 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
8374 * testsuite/libgomp-test-support.exp.in: Adjust.
8375 * testsuite/lib/libgomp.exp: Likewise. Don't populate
8376 openacc_device_types_s.
8377 (offload_target_to_openacc_device_type): New proc.
8378 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
8379 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8380 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8381 * Makefile.in: Regenerate.
8382 * configure: Likewise.
8383 * testsuite/Makefile.in: Likewise.
8385 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
8386 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
8387 instead of OFFLOAD_TARGETS.
8388 * target.c (gomp_target_init): Adjust.
8389 * testsuite/libgomp-test-support.exp.in: Likewise.
8390 * testsuite/lib/libgomp.exp: Likewise. Populate
8391 openacc_device_types_s instead of offload_targets_s_openacc.
8392 (check_effective_target_openacc_nvidia_accel_selected)
8393 (check_effective_target_openacc_host_selected): Adjust.
8394 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
8395 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8396 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8397 * Makefile.in: Regenerate.
8398 * config.h.in: Likewise.
8399 * configure: Likewise.
8400 * testsuite/Makefile.in: Likewise.
8402 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
8403 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
8404 "offloading: supported, but hardware not accessible".
8405 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8406 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8408 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
8411 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
8413 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
8414 and related adjustment.
8416 2019-01-30 Jakub Jelinek <jakub@redhat.com>
8419 * testsuite/libgomp.c++/pr88988.C: New test.
8421 2019-01-28 Jakub Jelinek <jakub@redhat.com>
8424 * testsuite/libgomp.c/pr89002.c: New test.
8426 2019-01-28 Richard Biener <rguenther@suse.de>
8429 PR tree-optimization/86865
8430 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
8432 2019-01-24 Tom de Vries <tdevries@suse.de>
8434 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
8435 once instantiated_devices drops to 0.
8437 2019-01-23 Tom de Vries <tdevries@suse.de>
8440 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
8442 (nvptx_exec): Don't call map_push if mapnum == 0.
8443 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
8445 2019-01-23 Tom de Vries <tdevries@suse.de>
8449 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
8450 (map_fini): Remove "assert (!s->map->active)".
8451 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
8453 2019-01-23 Tom de Vries <tdevries@suse.de>
8456 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
8457 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
8459 2019-01-15 Tom de Vries <tdevries@suse.de>
8462 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
8465 2019-01-12 Tom de Vries <tdevries@suse.de>
8467 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
8468 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
8469 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
8470 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
8472 2019-01-12 Tom de Vries <tdevries@suse.de>
8474 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
8476 2019-01-12 Tom de Vries <tdevries@suse.de>
8478 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
8479 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
8480 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
8482 2019-01-12 Tom de Vries <tdevries@suse.de>
8485 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
8486 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
8488 2019-01-12 Tom de Vries <tdevries@suse.de>
8491 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
8492 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
8494 2019-01-12 Tom de Vries <tdevries@suse.de>
8496 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
8497 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
8498 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
8500 2019-01-12 Tom de Vries <tdevries@suse.de>
8502 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
8503 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
8504 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
8506 2019-01-12 Tom de Vries <tdevries@suse.de>
8508 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
8509 resources diagnostic.
8511 2019-01-12 Tom de Vries <tdevries@suse.de>
8513 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
8514 vector length to be 128.
8515 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
8516 length 2097152 to be reduced to 1024 instead of 32.
8518 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
8519 James Norris <jnorris@codesourcery.com>
8521 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
8522 Library Routines", and "Environment Variables".
8524 2019-01-11 Tom de Vries <tdevries@suse.de>
8526 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
8529 2019-01-11 Tom de Vries <tdevries@suse.de>
8531 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
8533 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
8534 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
8535 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
8536 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
8538 2019-01-11 Tom de Vries <tdevries@suse.de>
8540 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
8543 2019-01-10 Nathan Sidwell <nathan@acm.org>
8544 Julian Brown <julian@codesourcery.com>
8547 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
8548 * testsuite/libgomp.oacc-c++/pr71959.C: New.
8550 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
8552 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
8555 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
8557 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
8558 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
8561 2019-01-09 Tom de Vries <tdevries@suse.de>
8564 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
8565 #define instead of "const int".
8566 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
8567 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
8568 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
8569 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
8571 2019-01-09 Tom de Vries <tdevries@suse.de>
8573 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
8576 2019-01-07 Tom de Vries <tdevries@suse.de>
8578 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
8579 GOMP_OPENACC_DIM argument.
8581 2019-01-03 Tom de Vries <tdevries@suse.de>
8583 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
8584 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
8586 2019-01-01 Jakub Jelinek <jakub@redhat.com>
8588 Update copyright years.
8590 2019-01-01 Jakub Jelinek <jakub@redhat.com>
8592 * libgomp.texi: Bump @copying's copyright year.
8594 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
8596 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
8597 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
8598 (GOACC_declare): Redefine the "device" argument to "flags".
8600 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
8601 Cesar Philippidis <cesar@codesourcery.com>
8603 * target.c (struct gomp_coalesce_chunk): New structure.
8604 (struct gomp_coalesce_buf): Update the chunks member to use that
8605 type. Adjust all users.
8607 2018-12-19 Tom de Vries <tdevries@suse.de>
8609 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
8610 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
8611 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
8613 2018-12-19 Tom de Vries <tdevries@suse.de>
8615 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
8616 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
8617 gcc/testsuite/gcc.dg/goacc.
8618 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
8620 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
8621 Chung-Lin Tang <cltang@codesourcery.com>
8623 * oacc-mem.c (acc_present_or_create): Remove definition and change
8624 to alias of acc_create.
8625 (acc_present_or_copyin): Remove definition and change to alias of
8627 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
8628 of acc_present_or_create.
8629 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
8630 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8631 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
8632 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
8633 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
8634 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
8635 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
8636 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8637 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8638 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8639 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
8640 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
8641 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
8642 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
8643 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
8644 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8646 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
8649 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
8650 "identical parameters".
8651 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
8652 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
8655 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
8656 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
8659 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
8660 (nvptx_wait_async): Unseen async-argument is a no-op.
8661 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
8662 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
8663 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
8664 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
8665 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
8666 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
8667 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
8668 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
8669 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
8671 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
8672 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
8674 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
8676 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
8677 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
8678 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
8680 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
8683 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
8684 (acc_set_cuda_stream): Clarify.
8685 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
8687 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
8689 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
8690 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
8691 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
8692 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
8694 2018-12-14 Tom de Vries <tdevries@suse.de>
8696 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
8697 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
8698 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
8699 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
8700 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
8702 2018-12-13 Tom de Vries <tdevries@suse.de>
8704 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
8705 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
8706 * fortran.c (omp_display_affinity_): ... here.
8707 * libgomp.h (gomp_print_string): Declare.
8708 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
8709 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
8712 2018-12-13 Jakub Jelinek <jakub@redhat.com>
8715 * testsuite/libgomp.c++/for-24.C (results): Include it in
8716 omp declare target region.
8717 (main): Use map (always, tofrom: results) instead of
8718 map (tofrom: results).
8720 2018-12-12 Jakub Jelinek <jakub@redhat.com>
8723 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
8724 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
8726 * testsuite/libgomp.c-c++-common/for-16.c: New test.
8728 2018-12-12 Andreas Schwab <schwab@suse.de>
8730 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
8733 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
8736 * testsuite/libgomp.fortran/async_io_8.f90: New test.
8738 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
8739 Jakub Jelinek <jakub@redhat.com>
8741 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
8742 devicep->host2dev_func.
8744 2018-12-08 Jakub Jelinek <jakub@redhat.com>
8747 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
8748 tls_runtime effective target.
8749 (t): New threadprivate variable.
8750 (main): Set t in threads which execute iterations of the worksharing
8751 loop. Propagate that to the task after the loop and don't abort
8752 if the current taskgroup hasn't been cancelled.
8754 2018-12-02 Jakub Jelinek <jakub@redhat.com>
8756 * testsuite/libgomp.c/task-reduction-3.c: New test.
8758 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
8760 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
8763 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
8764 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
8766 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
8768 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
8770 2018-10-19 Richard Biener <rguenther@suse.de>
8772 PR tree-optimization/88182
8773 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
8775 2018-11-26 Jakub Jelinek <jakub@redhat.com>
8777 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
8778 (RUNTEST): Don't define.
8779 (RUNTESTDEFAULTFLAGS): Add.
8780 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
8781 (distclean-am): Depend on distclean-DEJAGNU.
8782 (check-am): If -j% option is present in MFLAGS and if
8783 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
8784 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
8785 * testsuite/Makefile.in: Regenerated.
8787 2018-11-26 Richard Biener <rguenther@suse.de>
8789 PR tree-optimization/88182
8790 * testsuite/libgomp.c++/pr88182.C: New testcase.
8792 2018-11-20 Jakub Jelinek <jakub@redhat.com>
8795 * config/mingw32/affinity-fmt.c: New file.
8797 2018-11-09 Jakub Jelinek <jakub@redhat.com>
8799 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
8800 (gomp_display_affinity): Use __builtin_choose_expr to handle
8801 properly handle argument having integral, or pointer or some other
8802 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
8803 with uint64_t type instead of %llx and unsigned long long.
8805 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
8806 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
8808 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8810 * affinity.c: Include <string.h>, <stdio.h>.
8811 (gomp_display_affinity_place): Remove cpusetp.
8812 * teams.c: Include <limits.h>.
8814 2018-11-08 Jakub Jelinek <jakub@redhat.com>
8816 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
8817 in_reduction clause for s[0].
8819 * affinity.c (gomp_display_affinity_place): New function.
8820 * affinity-fmt.c: New file.
8821 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
8822 * config/linux/affinity.c (gomp_display_affinity_place): New function.
8823 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
8824 Move these functions to ...
8825 * config/nvptx/teams.c: ... here. New file.
8826 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
8828 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
8830 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
8831 and _aligned_malloc.
8832 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
8833 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
8834 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
8835 gomp_affinity_format_len): New variables.
8836 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
8837 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
8838 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
8839 modifiers. Display (non-default) chunk sizes. Print
8840 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
8841 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
8842 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
8843 * fortran.c: Include stdio.h and string.h.
8844 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
8845 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
8846 (omp_set_affinity_format_, omp_get_affinity_format_,
8847 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
8848 omp_pause_resource_all_): New functions.
8849 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
8851 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
8853 * teams.c: ... here. New file.
8854 * libgomp_g.h: Include gstdint.h.
8855 (GOMP_loop_nonmonotonic_runtime_start,
8856 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
8857 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
8858 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
8859 GOMP_parallel_loop_nonmonotonic_runtime,
8860 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
8861 GOMP_loop_ull_nonmonotonic_runtime_start,
8862 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
8863 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
8864 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
8865 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
8866 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
8867 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
8868 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
8869 GOMP_teams_reg): Declare.
8870 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
8871 gomp_aligned_alloc uses fallback implementation.
8872 (gomp_aligned_alloc, gomp_aligned_free): Declare.
8873 (enum gomp_schedule_type): Add GFS_MONOTONIC.
8874 (struct gomp_doacross_work_share): Add extra field.
8875 (struct gomp_work_share): Add task_reductions field.
8876 (struct gomp_taskgroup): Add workshare and reductions fields.
8877 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
8878 (gomp_thread_handle): New typedef.
8879 (gomp_display_affinity_place, gomp_set_affinity_format,
8880 gomp_display_string, gomp_display_affinity,
8881 gomp_display_affinity_thread): Declare.
8882 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
8883 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
8884 gomp_workshare_task_reduction_register): Declare.
8885 (gomp_team_start): Add taskgroup argument.
8886 (gomp_pause_host): Declare.
8887 (gomp_init_work_share, gomp_work_share_start): Change bool argument
8889 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
8890 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
8891 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
8892 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
8893 GOMP_loop_ull_doacross_start,
8894 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
8895 GOMP_loop_maybe_nonmonotonic_runtime_next,
8896 GOMP_loop_maybe_nonmonotonic_runtime_start,
8897 GOMP_loop_nonmonotonic_runtime_next,
8898 GOMP_loop_nonmonotonic_runtime_start,
8899 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
8900 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
8901 GOMP_loop_ull_nonmonotonic_runtime_next,
8902 GOMP_loop_ull_nonmonotonic_runtime_start,
8903 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
8904 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
8905 GOMP_taskgroup_reduction_register,
8906 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
8907 GOMP_teams_reg and GOMP_taskwait_depend.
8908 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
8909 omp_{capture,display}_affinity{,_}, and
8910 omp_[gs]et_affinity_format{,_}.
8911 * loop.c: Include string.h.
8912 (GOMP_loop_runtime_next): Add ialias.
8913 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
8914 (gomp_loop_static_start, gomp_loop_dynamic_start,
8915 gomp_loop_guided_start, gomp_loop_ordered_static_start,
8916 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
8917 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
8918 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
8919 or gomp_doacross_init callers.
8920 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
8921 GOMP_loop_doacross_start): New functions.
8922 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
8923 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
8924 Mask off GFS_MONOTONIC bit.
8925 (GOMP_loop_maybe_nonmonotonic_runtime_next,
8926 GOMP_loop_maybe_nonmonotonic_runtime_start,
8927 GOMP_loop_nonmonotonic_runtime_next,
8928 GOMP_loop_nonmonotonic_runtime_start,
8929 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
8930 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
8932 (gomp_parallel_loop_start): Pass NULL as taskgroup to
8934 * loop_ull.c: Include string.h.
8935 (GOMP_loop_ull_runtime_next): Add ialias.
8936 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
8937 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
8938 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
8939 gomp_loop_ull_ordered_dynamic_start,
8940 gomp_loop_ull_ordered_guided_start,
8941 gomp_loop_ull_doacross_static_start,
8942 gomp_loop_ull_doacross_dynamic_start,
8943 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
8944 and gomp_doacross_ull_init callers.
8945 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
8946 GOMP_loop_ull_doacross_start): New functions.
8947 (GOMP_loop_ull_runtime_start,
8948 GOMP_loop_ull_ordered_runtime_start,
8949 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
8950 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
8951 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
8952 GOMP_loop_ull_nonmonotonic_runtime_next,
8953 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
8954 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
8955 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
8956 (omp_pause_resource_t, omp_depend_t): New typedefs.
8957 (enum omp_lock_hint_t): Renamed to ...
8958 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
8959 enumerators using numbers and omp_lock_hint_* as their aliases.
8960 (omp_lock_hint_t): New typedef. Rename to ...
8961 (omp_sync_hint_t): ... this.
8962 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
8963 omp_sync_hint_t instead of omp_lock_hint_t.
8964 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
8965 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
8967 (omp_target_is_present, omp_target_disassociate_ptr):
8968 Change first argument from void * to const void *.
8969 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
8970 from void * to const void *.
8971 (omp_target_associate_ptr): Change first and second arguments from
8972 void * to const void *.
8973 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
8974 omp_pause_hard): New parameters.
8975 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
8976 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
8978 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
8979 omp_pause_hard): New parameters.
8980 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
8981 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
8983 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
8984 EXTRA argument. If not needed to prepare array, if extra is 0,
8985 clear ws->doacross, otherwise allocate just doacross structure and
8986 extra payload. If array is needed, allocate also extra payload.
8987 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
8988 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
8990 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
8992 (GOMP_parallel): Likewise. Formatting fix.
8993 (GOMP_parallel_reductions): New function.
8994 (GOMP_cancellation_point): If taskgroup has workshare
8995 flag set, check cancelled of prev taskgroup if any.
8996 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
8997 on prev taskgroup if any.
8998 * sections.c: Include string.h.
8999 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
9000 (GOMP_sections_start): Adjust gomp_work_share_start caller.
9001 (GOMP_sections2_start): New function.
9002 (GOMP_parallel_sections_start, GOMP_parallel_sections):
9003 Pass NULL as taskgroup to gomp_team_start.
9004 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
9005 gomp_work_share_start callers.
9006 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
9007 If taskgroup has workshare flag set, check cancelled on prev
9008 taskgroup if any. Guard all cancellation tests with
9009 gomp_cancel_var test.
9010 (omp_target_is_present, omp_target_disassociate_ptr):
9011 Change ptr argument from void * to const void *.
9012 (omp_target_memcpy): Change src argument from void * to const void *.
9013 (omp_target_memcpy_rect): Likewise.
9014 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
9015 instead of char * where needed.
9016 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
9017 from void * to const void *.
9018 (omp_pause_resource, omp_pause_resource_all): New functions.
9019 * task.c (gomp_task_handle_depend): Handle new depend array format
9020 in addition to the old. Handle mutexinoutset kinds the same as
9021 inout for now, handle unspecified kinds.
9022 (gomp_create_target_task): If taskgroup has workshare flag set, check
9023 cancelled on prev taskgroup if any. Guard all cancellation tests with
9024 gomp_cancel_var test. Handle new depend array format count in
9025 addition to the old.
9026 (GOMP_task): Likewise. Adjust function comment.
9027 (gomp_task_run_pre): If taskgroup has workshare flag set, check
9028 cancelled on prev taskgroup if any. Guard all cancellation tests with
9029 gomp_cancel_var test.
9030 (GOMP_taskwait_depend): New function.
9031 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
9032 format in addition to the old. Handle mutexinoutset kinds the same as
9033 inout for now, handle unspecified kinds. Fix a function comment typo.
9034 (gomp_taskgroup_init): New function.
9035 (GOMP_taskgroup_start): Use it.
9036 (gomp_reduction_register, gomp_create_artificial_team,
9037 GOMP_taskgroup_reduction_register,
9038 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
9039 gomp_parallel_reduction_register,
9040 gomp_workshare_task_reduction_register,
9041 gomp_workshare_taskgroup_start,
9042 GOMP_workshare_task_reduction_unregister): New functions.
9043 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
9044 check cancelled on prev taskgroup if any. Guard all cancellation
9045 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
9046 by calling GOMP_taskgroup_reduction_register.
9047 * team.c (gomp_thread_attr): Remove comment.
9048 (struct gomp_thread_start_data): Add handle field.
9049 (gomp_thread_start): Call pthread_detach.
9050 (gomp_new_team): Adjust gomp_init_work_share caller.
9051 (gomp_free_pool_helper): Call pthread_detach.
9052 (gomp_team_start): Add taskgroup argument, initialize implicit
9053 tasks' taskgroup field to that. Don't call
9054 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
9055 (gomp_team_end): Determine nesting by thr->ts.level != 0
9056 rather than thr->ts.team != NULL.
9057 (gomp_pause_pool_helper, gomp_pause_host): New functions.
9058 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
9059 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
9060 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
9061 if more than 1 allocate also extra payload at the end of array. Never
9062 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
9063 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
9064 return true instead of ws.
9065 * Makefile.in: Regenerated.
9066 * configure: Regenerated.
9067 * config.h.in: Regenerated.
9068 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
9070 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
9071 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
9072 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
9073 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
9074 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
9075 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
9076 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
9077 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
9078 * testsuite/libgomp.c-c++-common/for-10.c: New test.
9079 * testsuite/libgomp.c-c++-common/for-11.c: New test.
9080 * testsuite/libgomp.c-c++-common/for-12.c: New test.
9081 * testsuite/libgomp.c-c++-common/for-13.c: New test.
9082 * testsuite/libgomp.c-c++-common/for-14.c: New test.
9083 * testsuite/libgomp.c-c++-common/for-15.c: New test.
9084 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
9085 define a different N(test), don't define N(f0) to N(f14), but instead
9086 define N(f20) to N(f34) using != comparisons.
9087 * testsuite/libgomp.c-c++-common/for-7.c: New test.
9088 * testsuite/libgomp.c-c++-common/for-8.c: New test.
9089 * testsuite/libgomp.c-c++-common/for-9.c: New test.
9090 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
9091 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
9092 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
9093 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
9094 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
9095 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
9096 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
9097 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
9098 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
9099 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
9100 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
9101 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
9102 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
9103 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
9104 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
9105 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
9106 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
9107 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
9108 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
9109 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
9110 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
9111 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
9112 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
9113 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
9114 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
9115 * testsuite/libgomp.c++/depend-1.C: New test.
9116 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
9117 * testsuite/libgomp.c++/depobj-1.C: New test.
9118 * testsuite/libgomp.c++/for-16.C: New test.
9119 * testsuite/libgomp.c++/for-21.C: New test.
9120 * testsuite/libgomp.c++/for-22.C: New test.
9121 * testsuite/libgomp.c++/for-23.C: New test.
9122 * testsuite/libgomp.c++/for-24.C: New test.
9123 * testsuite/libgomp.c++/for-25.C: New test.
9124 * testsuite/libgomp.c++/for-26.C: New test.
9125 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
9126 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
9127 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
9128 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
9129 * testsuite/libgomp.c++/task-reduction-10.C: New test.
9130 * testsuite/libgomp.c++/task-reduction-11.C: New test.
9131 * testsuite/libgomp.c++/task-reduction-12.C: New test.
9132 * testsuite/libgomp.c++/task-reduction-13.C: New test.
9133 * testsuite/libgomp.c++/task-reduction-14.C: New test.
9134 * testsuite/libgomp.c++/task-reduction-15.C: New test.
9135 * testsuite/libgomp.c++/task-reduction-16.C: New test.
9136 * testsuite/libgomp.c++/task-reduction-17.C: New test.
9137 * testsuite/libgomp.c++/task-reduction-18.C: New test.
9138 * testsuite/libgomp.c++/task-reduction-19.C: New test.
9139 * testsuite/libgomp.c/task-reduction-1.c: New test.
9140 * testsuite/libgomp.c++/task-reduction-1.C: New test.
9141 * testsuite/libgomp.c/task-reduction-2.c: New test.
9142 * testsuite/libgomp.c++/task-reduction-2.C: New test.
9143 * testsuite/libgomp.c++/task-reduction-3.C: New test.
9144 * testsuite/libgomp.c++/task-reduction-4.C: New test.
9145 * testsuite/libgomp.c++/task-reduction-5.C: New test.
9146 * testsuite/libgomp.c++/task-reduction-6.C: New test.
9147 * testsuite/libgomp.c++/task-reduction-7.C: New test.
9148 * testsuite/libgomp.c++/task-reduction-8.C: New test.
9149 * testsuite/libgomp.c++/task-reduction-9.C: New test.
9150 * testsuite/libgomp.c/teams-1.c: New test.
9151 * testsuite/libgomp.c/teams-2.c: New test.
9152 * testsuite/libgomp.c/thread-limit-4.c: New test.
9153 * testsuite/libgomp.c/thread-limit-5.c: New test.
9154 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
9156 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
9158 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
9159 acc_memcpy_to/from_device functions, now with async parameter.
9160 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
9161 (acc_memcpy_from_device): Likewise.
9162 (acc_memcpy_to_device_async): New API function.
9163 (acc_memcpy_from_device_async): Likewise.
9164 (present_create_copy): Add async parameter and async setting/unsetting.
9165 (acc_create): Adjust present_create_copy call.
9166 (acc_copyin): Likewise.
9167 (acc_present_or_create): Likewise.
9168 (acc_present_or_copyin): Likewise.
9169 (acc_create_async): New API function.
9170 (acc_copyin_async): New API function.
9171 (delete_copyout): Add async parameter and async setting/unsetting.
9172 (acc_delete): Adjust delete_copyout call.
9173 (acc_copyout): Likewise.
9174 (acc_delete_async): New API function.
9175 (acc_copyout_async): Likewise.
9176 (update_dev_host): Add async parameter and async setting/unsetting.
9177 (acc_update_device): Adjust update_dev_host call.
9178 (acc_update_self): Likewise.
9179 (acc_update_device_async): New API function.
9180 (acc_update_self_async): Likewise.
9181 * openacc.h (acc_copyin_async): Declare new API function.
9182 (acc_create_async): Likewise.
9183 (acc_copyout_async): Likewise.
9184 (acc_delete_async): Likewise.
9185 (acc_update_device_async): Likewise.
9186 (acc_update_self_async): Likewise.
9187 (acc_memcpy_to_device_async): Likewise.
9188 (acc_memcpy_from_device_async): Likewise.
9189 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
9190 (acc_copyin_async_64_h): New subroutine.
9191 (acc_copyin_async_array_h): New subroutine.
9192 (acc_create_async_32_h): New subroutine.
9193 (acc_create_async_64_h): New subroutine.
9194 (acc_create_async_array_h): New subroutine.
9195 (acc_copyout_async_32_h): New subroutine.
9196 (acc_copyout_async_64_h): New subroutine.
9197 (acc_copyout_async_array_h): New subroutine.
9198 (acc_delete_async_32_h): New subroutine.
9199 (acc_delete_async_64_h): New subroutine.
9200 (acc_delete_async_array_h): New subroutine.
9201 (acc_update_device_async_32_h): New subroutine.
9202 (acc_update_device_async_64_h): New subroutine.
9203 (acc_update_device_async_array_h): New subroutine.
9204 (acc_update_self_async_32_h): New subroutine.
9205 (acc_update_self_async_64_h): New subroutine.
9206 (acc_update_self_async_array_h): New subroutine.
9207 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
9208 (acc_copyin_async_64_h): New subroutine.
9209 (acc_copyin_async_array_h): New subroutine.
9210 (acc_create_async_32_h): New subroutine.
9211 (acc_create_async_64_h): New subroutine.
9212 (acc_create_async_array_h): New subroutine.
9213 (acc_copyout_async_32_h): New subroutine.
9214 (acc_copyout_async_64_h): New subroutine.
9215 (acc_copyout_async_array_h): New subroutine.
9216 (acc_delete_async_32_h): New subroutine.
9217 (acc_delete_async_64_h): New subroutine.
9218 (acc_delete_async_array_h): New subroutine.
9219 (acc_update_device_async_32_h): New subroutine.
9220 (acc_update_device_async_64_h): New subroutine.
9221 (acc_update_device_async_array_h): New subroutine.
9222 (acc_update_self_async_32_h): New subroutine.
9223 (acc_update_self_async_64_h): New subroutine.
9224 (acc_update_self_async_array_h): New subroutine.
9225 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
9226 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
9227 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
9228 acc_memcpy_to_device_async*, acc_update_device_async*, and
9229 acc_update_self_async* entries.
9230 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
9231 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
9232 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
9234 2018-10-31 Joseph Myers <joseph@codesourcery.com>
9237 * Makefile.am: Include multilib.am
9238 (AUTOMAKE_OPTIONS): Add info-in-builddir.
9239 (CLEANFILES): Remove libgomp.info.
9240 * configure.ac: Remove AC_PREREQ.
9241 * testsuite/Makefile.am (RUNTEST): Remove quotes.
9242 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
9245 2018-10-29 Joseph Myers <joseph@codesourcery.com>
9246 Julian Brown <julian@codesourcery.com>
9248 * testsuite/libgomp.oacc-c++/this.C: New.
9250 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
9252 * plugin/plugin-nvptx.c (struct cuda_map): New.
9253 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
9254 h_tail with (cuda_map *) map.
9255 (cuda_map_create): New function.
9256 (cuda_map_destroy): New function.
9257 (map_init): Update to use a linked list of cuda_map objects.
9258 (map_fini): Likewise.
9259 (map_pop): Likewise.
9260 (map_push): Likewise. Return CUdeviceptr instead of void.
9261 (init_streams_for_device): Remove stales references to ptx_stream
9263 (select_stream_for_async): Likewise.
9264 (nvptx_exec): Update call to map_init.
9266 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
9267 Julian Brown <julian@codesourcery.com>
9270 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
9272 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
9273 Thomas Koenig <tkoenig@gcc.gnu.org>
9276 * testsuite/libgomp.fortran/async_io_1.f90: New test.
9277 * testsuite/libgomp.fortran/async_io_2.f90: New test.
9278 * testsuite/libgomp.fortran/async_io_3.f90: New test.
9279 * testsuite/libgomp.fortran/async_io_4.f90: New test.
9280 * testsuite/libgomp.fortran/async_io_5.f90: New test.
9281 * testsuite/libgomp.fortran/async_io_6.f90: New test.
9282 * testsuite/libgomp.fortran/async_io_7.f90: New test.
9284 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
9285 Tom de Vries <tdevries@suse.de>
9288 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
9289 (cuOccupancyMaxPotentialBlockSize): Declare.
9290 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
9291 CUDA_ONE_CALL_MAYBE_NULL.
9292 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
9293 CUoccupancyB2DSize and declare
9294 cuOccupancyMaxPotentialBlockSize.
9295 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
9296 default num_gangs and num_workers when the driver supports it.
9298 2018-08-08 Tom de Vries <tdevries@suse.de>
9300 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
9301 CUDA_ONE_CALL_MAYBE_NULL.
9302 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
9303 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
9304 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
9307 2018-08-08 Tom de Vries <tdevries@suse.de>
9309 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
9310 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
9313 2018-08-08 Tom de Vries <tdevries@suse.de>
9315 * plugin/plugin-nvptx.c
9316 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
9317 (nvptx_open_device): Use
9318 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
9320 2018-08-08 Tom de Vries <tdevries@suse.de>
9322 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
9323 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
9325 2018-08-07 Tom de Vries <tdevries@suse.de>
9327 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
9328 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
9329 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
9330 corresponding call in CUDA_ONE_CALL. Add def/undef of
9331 CUDA_ONE_CALL_MAYBE_NULL.
9332 (CUDA_CALL_EXISTS): Define.
9334 2018-08-07 Tom de Vries <tdevries@suse.de>
9336 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
9337 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
9338 corresponding undefs right after.
9340 2018-08-04 Tom de Vries <tdevries@suse.de>
9342 * plugin/configfrag.ac: For --without-cuda-driver, set
9343 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
9344 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
9345 * configure: Regenerate.
9347 2018-08-02 Tom de Vries <tdevries@suse.de>
9350 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
9351 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
9352 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
9354 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
9355 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
9356 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
9358 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
9359 Thomas Schwinge <thomas@codesourcery.com>
9361 * config/nvptx/oacc-parallel.c: Truncate.
9363 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
9364 James Norris <jnorris@codesourcery.com>
9366 * plugin/plugin-nvptx.c (struct map): Removed.
9367 (map_init, map_pop): Remove use of struct map.
9368 (map_push): Likewise and change argument list.
9369 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
9371 2018-08-01 Tom de Vries <tdevries@suse.de>
9373 * plugin/cuda-lib.def: New file. Factor out of ...
9374 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
9375 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
9378 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
9380 Revert 'AsyncI/O patch committed'.
9381 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
9382 Thomas Koenig <tkoenig@gcc.gnu.org>
9385 * testsuite/libgomp.fortran/async_io_1.f90: New test.
9386 * testsuite/libgomp.fortran/async_io_2.f90: New test.
9387 * testsuite/libgomp.fortran/async_io_3.f90: New test.
9388 * testsuite/libgomp.fortran/async_io_4.f90: New test.
9389 * testsuite/libgomp.fortran/async_io_5.f90: New test.
9390 * testsuite/libgomp.fortran/async_io_6.f90: New test.
9391 * testsuite/libgomp.fortran/async_io_7.f90: New test.
9393 2018-07-30 Tom de Vries <tdevries@suse.de>
9395 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
9396 (nvptx_exec): Ensure worker and vector default dims don't exceed
9397 targ_fn->max_threads_per_block.
9399 2018-07-30 Tom de Vries <tdevries@suse.de>
9401 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
9402 (nvptx_open_device): Init default_dims for device.
9403 (nvptx_exec): Use default_dims from device.
9405 2018-07-26 Jakub Jelinek <jakub@redhat.com>
9408 * testsuite/libgomp.c++/for-15.C (results): Include it in
9409 omp declare target region.
9410 (main): Use map (always, tofrom: results) instead of
9411 map (tofrom: results).
9414 * testsuite/libgomp.c/pr86660.c: New test.
9416 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
9417 Tom de Vries <tdevries@suse.de>
9419 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
9420 sufficient resources to launch a kernel, and give a hint on how to fix
9423 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
9424 Tom de Vries <tdevries@suse.de>
9426 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
9427 max_threads_per_block and max_threads_per_multiprocessor fields.
9428 (nvptx_open_device): Initialize new fields.
9429 (nvptx_exec): Use num_sms, and new fields.
9431 2018-07-26 Tom de Vries <tdevries@suse.de>
9433 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
9434 to correct locations. Remove xfail.
9436 2018-07-26 Tom de Vries <tdevries@suse.de>
9438 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
9439 acc_wait. Move acc_async_test calls to correct locations. Remove
9442 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
9443 Thomas Koenig <tkoenig@gcc.gnu.org>
9446 * testsuite/libgomp.fortran/async_io_1.f90: New test.
9447 * testsuite/libgomp.fortran/async_io_2.f90: New test.
9448 * testsuite/libgomp.fortran/async_io_3.f90: New test.
9449 * testsuite/libgomp.fortran/async_io_4.f90: New test.
9450 * testsuite/libgomp.fortran/async_io_5.f90: New test.
9451 * testsuite/libgomp.fortran/async_io_6.f90: New test.
9452 * testsuite/libgomp.fortran/async_io_7.f90: New test.
9454 2018-07-17 Jakub Jelinek <jakub@redhat.com>
9457 * testsuite/libgomp.c++/pr86542.C: New test.
9460 * testsuite/libgomp.c++/pr86539.C: New test.
9462 2018-07-11 Jakub Jelinek <jakub@redhat.com>
9465 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
9466 (results): Make sure the variable is not inside declare target region.
9467 (qux): Remove unused function.
9469 2018-07-10 Jakub Jelinek <jakub@redhat.com>
9472 * testsuite/libgomp.c++/for-15.C: New test.
9474 2018-06-26 Jakub Jelinek <jakub@redhat.com>
9477 * testsuite/libgomp.c++/pr86291.C: New test.
9479 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
9481 * libgomp.texi (Top): Move www.openmp.org to https.
9482 (Enabling OpenMP): Ditto.
9483 (omp_get_active_level): Ditto.
9484 (omp_get_ancestor_thread_num): Ditto.
9485 (omp_get_cancellation): Ditto.
9486 (omp_get_default_device): Ditto.
9487 (omp_get_dynamic): Ditto.
9488 (omp_get_level): Ditto.
9489 (omp_get_max_active_levels): Ditto.
9490 (omp_get_max_task_priority): Ditto.
9491 (omp_get_max_threads): Ditto.
9492 (omp_get_nested): Ditto.
9493 (omp_get_num_devices): Ditto.
9494 (omp_get_num_procs): Ditto.
9495 (omp_get_num_teams): Ditto.
9496 (omp_get_num_threads): Ditto.
9497 (omp_get_proc_bind): Ditto.
9498 (omp_get_schedule): Ditto.
9499 (omp_get_team_num): Ditto.
9500 (omp_get_team_size): Ditto.
9501 (omp_get_thread_limit): Ditto.
9502 (omp_get_thread_num): Ditto.
9503 (omp_in_parallel): Ditto.
9504 (omp_in_final): Ditto.
9505 (omp_is_initial_device): Ditto.
9506 (omp_set_default_device): Ditto.
9507 (omp_set_dynamic): Ditto.
9508 (omp_set_max_active_levels): Ditto.
9509 (omp_set_nested): Ditto.
9510 (omp_set_num_threads): Ditto.
9511 (omp_set_schedule): Ditto.
9512 (omp_init_lock): Ditto.
9513 (omp_set_lock): Ditto.
9514 (omp_test_lock): Ditto.
9515 (omp_unset_lock): Ditto.
9516 (omp_destroy_lock): Ditto.
9517 (omp_init_nest_lock): Ditto.
9518 (omp_set_nest_lock): Ditto.
9519 (omp_test_nest_lock): Ditto.
9520 (omp_unset_nest_lock): Ditto.
9521 (omp_destroy_nest_lock): Ditto.
9522 (omp_get_wtick): Ditto.
9523 (omp_get_wtime): Ditto.
9524 (OMP_CANCELLATION): Ditto.
9525 (OMP_DISPLAY_ENV): Ditto.
9526 (OMP_DEFAULT_DEVICE): Ditto.
9527 (OMP_DYNAMIC): Ditto.
9528 (OMP_MAX_ACTIVE_LEVELS): Ditto.
9529 (OMP_MAX_TASK_PRIORITY): Ditto.
9530 (OMP_NESTED): Ditto.
9531 (OMP_NUM_THREADS): Ditto.
9532 (OMP_PROC_BIND): Ditto.
9533 (OMP_PLACES): Ditto.
9534 (OMP_STACKSIZE): Ditto.
9535 (OMP_SCHEDULE): Ditto.
9536 (OMP_THREAD_LIMIT): Ditto.
9537 (OMP_WAIT_POLICY): Ditto.
9539 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
9540 James Norris <jnorris@codesourcery.com>
9541 Julian Brown <julian@codesourcery.com>
9542 Thomas Schwinge <thomas@codesourcery.com>
9543 Tom de Vries <tom@codesourcery.com>
9545 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
9546 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
9547 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
9548 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
9549 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
9550 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
9551 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
9552 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
9553 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
9554 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
9556 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
9558 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
9560 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
9562 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
9564 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
9566 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
9568 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
9570 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
9572 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
9574 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
9576 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
9578 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
9580 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
9582 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
9584 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
9586 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
9588 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
9590 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
9592 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
9594 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
9596 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
9598 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
9600 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
9602 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
9604 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
9606 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
9608 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
9609 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
9610 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
9611 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
9612 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
9613 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
9614 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
9615 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
9616 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
9618 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
9620 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
9621 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
9622 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
9624 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
9625 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
9626 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
9628 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
9630 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
9632 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
9634 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
9636 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
9638 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
9640 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
9642 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
9644 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
9646 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
9648 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
9650 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
9652 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
9654 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
9656 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
9657 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
9658 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
9659 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
9660 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
9661 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
9662 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
9664 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
9665 Thomas Schwinge <thomas@codesourcery.com>
9666 Cesar Philippidis <cesar@codesourcery.com>
9668 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
9669 (gomp_acc_remove_pointer): Update declaration.
9670 (gomp_acc_declare_allocate): Declare.
9671 (gomp_remove_var): Declare.
9672 * libgomp.map (OACC_2.5): Define.
9673 * oacc-mem.c (acc_map_data): Update refcount.
9674 (acc_unmap_data): Likewise.
9675 (present_create_copy): Likewise.
9676 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
9677 (acc_copyin): Likewise.
9678 (FLAG_FINALIZE): Define.
9679 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
9680 (acc_delete_finalize): New function.
9681 (acc_delete_finalize_async): New function.
9682 (acc_copyout_finalize): New function.
9683 (acc_copyout_finalize_async): New function.
9684 (gomp_acc_insert_pointer): Update refcounts.
9685 (gomp_acc_remove_pointer): Return if data is not present on the
9687 * oacc-parallel.c (find_pset): Rename to find_pointer.
9688 (find_pointer): Add support for GOMP_MAP_POINTER.
9689 (handle_ftn_pointers): New function.
9690 (GOACC_parallel_keyed): Update refcounts of variables.
9691 (GOACC_enter_exit_data): Add support for finalized data mappings.
9692 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
9694 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
9695 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
9696 for GOMP_MAP_FORCE_FROM.
9697 * openacc.f90 (module openacc_internal): Add
9698 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
9699 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
9700 acc_copyout_finalize and acc_delete_finalize.
9701 (acc_copyout_finalize_32_h): New subroutine.
9702 (acc_copyout_finalize_64_h): New subroutine.
9703 (acc_copyout_finalize_array_h): New subroutine.
9704 (acc_delete_finalize_32_h): New subroutine.
9705 (acc_delete_finalize_64_h): New subroutine.
9706 (acc_delete_finalize_array_h): New subroutine.
9707 * openacc.h (acc_copyout_finalize): Declare.
9708 (acc_copyout_finalize_async): Declare.
9709 (acc_delete_finalize): Declare.
9710 (acc_delete_finalize_async): Declare.
9711 * openacc_lib.h (acc_copyout_finalize): New interface.
9712 (acc_delete_finalize): New interface.
9713 * target.c (gomp_map_vars): Update dynamic_refcount.
9714 (gomp_remove_var): New function.
9715 (gomp_unmap_vars): Use it.
9716 (gomp_unload_image_from_device): Likewise.
9717 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
9718 case to utilize OpenACC 2.5 data clause semantics.
9719 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
9720 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
9721 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
9722 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
9723 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
9724 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
9725 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
9726 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
9727 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
9728 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
9729 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
9730 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
9731 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
9732 utilize OpenACC 2.5 data clause semantics.
9733 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
9734 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
9735 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
9736 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
9737 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
9738 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
9739 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
9740 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
9741 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
9743 2018-05-21 Janus Weil <janus@gcc.gnu.org>
9747 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
9748 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
9749 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
9750 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
9751 * testsuite/libgomp.fortran/task2.f90: Ditto.
9752 * testsuite/libgomp.fortran/vla1.f90: Ditto.
9753 * testsuite/libgomp.fortran/vla2.f90: Ditto.
9754 * testsuite/libgomp.fortran/vla3.f90: Ditto.
9755 * testsuite/libgomp.fortran/vla4.f90: Ditto.
9756 * testsuite/libgomp.fortran/vla5.f90: Ditto.
9757 * testsuite/libgomp.fortran/vla6.f90: Ditto.
9758 * testsuite/libgomp.fortran/vla8.f90: Ditto.
9759 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
9760 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
9762 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
9765 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
9767 2018-05-09 Tom de Vries <tom@codesourcery.com>
9770 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
9771 to GOACC_enter_exit_data.
9773 2018-05-09 Tom de Vries <tom@codesourcery.com>
9776 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
9777 (async_synchronous_p): New function.
9778 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
9780 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
9781 async_valid_stream_id_p.
9782 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
9783 * oacc-parallel.c (GOACC_parallel_keyed): Same.
9785 2018-05-07 Tom de Vries <tom@codesourcery.com>
9788 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
9789 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
9791 2018-05-03 Tom de Vries <tom@codesourcery.com>
9794 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
9795 extra_tool_flags if it contains an -foffload=-fdump-* flag.
9796 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
9797 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
9799 2018-05-02 Tom de Vries <tom@codesourcery.com>
9802 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
9803 GOMP_OPENACC_DIM ...
9804 * env.c (parse_gomp_openacc_dim): ... here. New function.
9805 (initialize_env): Call parse_gomp_openacc_dim.
9806 (goacc_default_dims): Define.
9807 * libgomp.h (goacc_default_dims): Declare.
9808 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
9809 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
9810 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
9811 GOMP_PLUGIN_acc_default_dim.
9812 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
9813 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
9815 2018-05-02 Tom de Vries <tom@codesourcery.com>
9818 * testsuite/libgomp.c++/udr-9.C: Update.
9819 * testsuite/libgomp.c++/atomic-16.C: Remove.
9820 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
9821 * testsuite/libgomp.c++/loop-13.C: Remove.
9822 * testsuite/libgomp.c++/loop-14.C: Remove.
9823 * testsuite/libgomp.c++/loop-15.C: Remove.
9824 * testsuite/libgomp.c++/monotonic-1.C: Remove.
9825 * testsuite/libgomp.c++/monotonic-2.C: Remove.
9826 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
9827 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
9828 * testsuite/libgomp.c++/ordered-1.C: Remove.
9829 * testsuite/libgomp.c++/pr45784.C: Remove.
9830 * testsuite/libgomp.c++/pr64824.C: Remove.
9831 * testsuite/libgomp.c++/pr64868.C: Remove.
9832 * testsuite/libgomp.c++/pr66199-1.C: Remove.
9833 * testsuite/libgomp.c++/pr66199-2.C: Remove.
9834 * testsuite/libgomp.c++/pr66199-3.C: Remove.
9835 * testsuite/libgomp.c++/pr66199-4.C: Remove.
9836 * testsuite/libgomp.c++/pr66199-5.C: Remove.
9837 * testsuite/libgomp.c++/pr66199-6.C: Remove.
9838 * testsuite/libgomp.c++/pr66199-7.C: Remove.
9839 * testsuite/libgomp.c++/pr66199-8.C: Remove.
9840 * testsuite/libgomp.c++/pr66199-9.C: Remove.
9841 * testsuite/libgomp.c++/pr69389.C: Remove.
9842 * testsuite/libgomp.c++/simd10.C: Remove.
9843 * testsuite/libgomp.c++/simd11.C: Remove.
9844 * testsuite/libgomp.c++/simd12.C: Remove.
9845 * testsuite/libgomp.c++/simd13.C: Remove.
9846 * testsuite/libgomp.c++/target-1.C: Remove.
9847 * testsuite/libgomp.c++/target-3.C: Remove.
9848 * testsuite/libgomp.c++/target-4.C: Remove.
9849 * testsuite/libgomp.c++/target-5.C: Remove.
9850 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
9851 * testsuite/libgomp.c++/taskloop-1.C: Remove.
9852 * testsuite/libgomp.c++/taskloop-2.C: Remove.
9853 * testsuite/libgomp.c++/taskloop-3.C: Remove.
9854 * testsuite/libgomp.c++/taskloop-4.C: Remove.
9855 * testsuite/libgomp.c++/udr-9.C: Remove.
9856 * testsuite/libgomp.c++/for-10.C: Remove.
9857 * testsuite/libgomp.c++/for-11.C: Remove.
9858 * testsuite/libgomp.c++/for-12.C: Remove.
9859 * testsuite/libgomp.c++/for-13.C: Remove.
9860 * testsuite/libgomp.c++/for-14.C: Remove.
9861 * testsuite/libgomp.c++/for-9.C: Remove.
9862 * testsuite/libgomp.c/atomic-18.c: Move ...
9863 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
9864 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
9865 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
9866 * testsuite/libgomp.c/loop-13.c: Move ...
9867 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
9868 * testsuite/libgomp.c/loop-14.c: Move ...
9869 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
9870 * testsuite/libgomp.c/loop-15.c: Remove.
9871 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
9872 * testsuite/libgomp.c/monotonic-1.c: Move ...
9873 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
9874 * testsuite/libgomp.c/monotonic-2.c: Move ...
9875 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
9876 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
9877 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
9878 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
9879 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
9880 * testsuite/libgomp.c/ordered-4.c: Move ...
9881 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
9882 * testsuite/libgomp.c/pr45784.c: Move ...
9883 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
9884 * testsuite/libgomp.c/pr64824.c: Move ...
9885 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
9886 * testsuite/libgomp.c/pr64868.c: Move ...
9887 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
9888 * testsuite/libgomp.c/pr66199-1.c: Move ...
9889 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
9890 * testsuite/libgomp.c/pr66199-2.c: Move ...
9891 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
9892 * testsuite/libgomp.c/pr66199-3.c: Move ...
9893 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
9894 * testsuite/libgomp.c/pr66199-4.c: Move ...
9895 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
9896 * testsuite/libgomp.c/pr66199-5.c: Move ...
9897 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
9898 * testsuite/libgomp.c/pr66199-6.c: Move ...
9899 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
9900 * testsuite/libgomp.c/pr66199-7.c: Move ...
9901 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
9902 * testsuite/libgomp.c/pr66199-8.c: Move ...
9903 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
9904 * testsuite/libgomp.c/pr66199-9.c: Move ...
9905 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
9906 * testsuite/libgomp.c/pr69389.c: Move ...
9907 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
9908 * testsuite/libgomp.c/simd-14.c: Move ...
9909 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
9910 * testsuite/libgomp.c/simd-15.c: Move ...
9911 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
9912 * testsuite/libgomp.c/simd-16.c: Move ...
9913 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
9914 * testsuite/libgomp.c/simd-17.c: Move ...
9915 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
9916 * testsuite/libgomp.c/target-1.c: Move ...
9917 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
9918 * testsuite/libgomp.c/target-10.c: Move ...
9919 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
9920 * testsuite/libgomp.c/target-13.c: Move ...
9921 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
9922 * testsuite/libgomp.c/target-2.c: Move ...
9923 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
9924 * testsuite/libgomp.c/taskgroup-1.c: Move ...
9925 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
9926 * testsuite/libgomp.c/taskloop-1.c: Move ...
9927 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
9928 * testsuite/libgomp.c/taskloop-2.c: Move ...
9929 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
9930 * testsuite/libgomp.c/taskloop-3.c: Move ...
9931 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
9932 * testsuite/libgomp.c/taskloop-4.c: Move ...
9933 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
9934 * testsuite/libgomp.c/udr-1.c: Move ...
9935 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
9936 * testsuite/libgomp.c/for-1.c: Move ...
9937 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
9938 * testsuite/libgomp.c/for-1.h: Move ...
9939 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
9940 * testsuite/libgomp.c/for-2.c: Move ...
9941 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
9942 * testsuite/libgomp.c/for-2.h: Move ...
9943 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
9944 * testsuite/libgomp.c/for-3.c: Move ...
9945 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
9946 * testsuite/libgomp.c/for-4.c: Move ...
9947 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
9948 * testsuite/libgomp.c/for-5.c: Move ...
9949 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
9950 * testsuite/libgomp.c/for-6.c: Move ...
9951 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
9953 2018-05-02 Tom de Vries <tom@codesourcery.com>
9956 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
9957 __builtin_goacc_parlevel_{id,size}.
9958 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
9959 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
9960 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
9961 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
9962 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
9963 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
9964 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
9965 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
9966 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
9967 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
9968 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
9969 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
9970 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
9971 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
9972 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
9973 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
9974 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
9975 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
9976 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
9977 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
9978 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
9979 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
9980 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
9982 2018-05-02 Tom de Vries <tom@codesourcery.com>
9985 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
9987 2018-05-02 Tom de Vries <tom@codesourcery.com>
9990 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
9992 2018-04-29 Julian Brown <julian@codesourcery.com>
9993 Tom de Vries <tom@codesourcery.com>
9996 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
9997 arbitrary order for iterations of atomic subtract check.
9999 2018-04-28 Tom de Vries <tom@codesourcery.com>
10002 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
10003 atomic capture results obtained in parallel loop to an array, instead of
10006 2018-04-26 Tom de Vries <tom@codesourcery.com>
10009 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
10010 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
10011 (process_GOMP_NVPTX_JIT): New function.
10012 (link_ptx): Use process_GOMP_NVPTX_JIT.
10014 2018-04-26 Richard Biener <rguenther@suse.de>
10015 Tom de Vries <tom@codesourcery.com>
10018 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
10020 2018-04-26 Tom de Vries <tom@codesourcery.com>
10023 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
10024 recursion depth from 25 to 23.
10025 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
10027 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
10029 * configure: Regenerated.
10031 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
10032 Tom de Vries <tom@codesourcery.com>
10035 * testsuite/libgomp.oacc-c++/ref-1.C: New.
10037 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
10040 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
10041 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
10042 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
10043 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
10044 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
10045 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
10047 PR libfortran/85166
10048 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
10050 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
10052 2018-04-19 Jakub Jelinek <jakub@redhat.com>
10054 * configure: Regenerated.
10056 2018-04-18 David Malcolm <dmalcolm@redhat.com>
10059 * configure: Regenerate.
10061 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
10062 Tom de Vries <tom@codesourcery.com>
10064 PR middle-end/84955
10065 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
10066 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
10068 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
10072 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
10073 test from gfortran.dg to here.
10075 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
10077 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
10078 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
10080 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
10082 PR middle-end/84955
10083 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
10084 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
10086 2018-04-05 Tom de Vries <tom@codesourcery.com>
10089 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
10091 2018-03-26 Tom de Vries <tom@codesourcery.com>
10093 PR tree-optimization/85063
10094 * testsuite/libgomp.c/switch-conversion-2.c: New test.
10095 * testsuite/libgomp.c/switch-conversion.c: New test.
10096 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
10097 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
10099 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
10102 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
10103 call abort by STOP n.
10104 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
10105 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
10106 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
10107 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
10108 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
10109 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
10110 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
10111 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
10112 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
10113 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
10114 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
10115 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
10116 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
10117 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
10118 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
10119 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
10120 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
10121 * testsuite/libgomp.fortran/associate1.f90: Likewise.
10122 * testsuite/libgomp.fortran/associate2.f90: Likewise.
10123 * testsuite/libgomp.fortran/associate3.f90: Likewise.
10124 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
10125 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
10126 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
10127 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
10128 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
10129 * testsuite/libgomp.fortran/character1.f90: Likewise.
10130 * testsuite/libgomp.fortran/character2.f90: Likewise.
10131 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
10132 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
10133 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
10134 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
10135 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
10136 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
10137 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
10138 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
10139 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
10140 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
10141 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
10142 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
10143 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
10144 * testsuite/libgomp.fortran/do1.f90: Likewise.
10145 * testsuite/libgomp.fortran/do2.f90: Likewise.
10146 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
10147 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
10148 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
10149 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
10150 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
10151 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
10152 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
10153 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
10154 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
10155 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
10156 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
10157 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
10158 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
10159 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
10160 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
10161 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
10162 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
10163 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
10164 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
10165 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
10166 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
10167 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
10168 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
10169 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
10170 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
10171 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
10172 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
10173 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
10174 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
10175 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
10176 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
10177 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
10178 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
10179 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
10180 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
10181 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
10182 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
10183 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
10184 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
10185 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
10186 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
10187 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
10188 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
10189 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
10190 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
10191 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
10192 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
10193 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
10194 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
10195 * testsuite/libgomp.fortran/lib1.f90: Likewise.
10196 * testsuite/libgomp.fortran/lib2.f: Likewise.
10197 * testsuite/libgomp.fortran/lib3.f: Likewise.
10198 * testsuite/libgomp.fortran/lib4.f90: Likewise.
10199 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
10200 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
10201 * testsuite/libgomp.fortran/nested1.f90: Likewise.
10202 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
10203 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
10204 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
10205 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
10206 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
10207 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
10208 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
10209 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
10210 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
10211 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
10212 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
10213 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
10214 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
10215 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
10216 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
10217 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
10218 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
10219 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
10220 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
10221 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
10222 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
10223 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
10224 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
10225 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
10226 * testsuite/libgomp.fortran/pr25162.f: Likewise.
10227 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
10228 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
10229 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
10230 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
10231 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
10232 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
10233 * testsuite/libgomp.fortran/pr28390.f: Likewise.
10234 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
10235 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
10236 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
10237 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
10238 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
10239 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
10240 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
10241 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
10242 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
10243 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
10244 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
10245 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
10246 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
10247 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
10248 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
10249 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
10250 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
10251 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
10252 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
10253 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
10254 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
10255 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
10256 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
10257 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
10258 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
10259 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
10260 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
10261 * testsuite/libgomp.fortran/reference1.f90: Likewise.
10262 * testsuite/libgomp.fortran/reference2.f90: Likewise.
10263 * testsuite/libgomp.fortran/retval1.f90: Likewise.
10264 * testsuite/libgomp.fortran/retval2.f90: Likewise.
10265 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
10266 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
10267 * testsuite/libgomp.fortran/simd1.f90: Likewise.
10268 * testsuite/libgomp.fortran/simd2.f90: Likewise.
10269 * testsuite/libgomp.fortran/simd3.f90: Likewise.
10270 * testsuite/libgomp.fortran/simd4.f90: Likewise.
10271 * testsuite/libgomp.fortran/simd5.f90: Likewise.
10272 * testsuite/libgomp.fortran/simd6.f90: Likewise.
10273 * testsuite/libgomp.fortran/simd7.f90: Likewise.
10274 * testsuite/libgomp.fortran/stack.f90: Likewise.
10275 * testsuite/libgomp.fortran/strassen.f90: Likewise.
10276 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
10277 * testsuite/libgomp.fortran/tabs2.f: Likewise.
10278 * testsuite/libgomp.fortran/target1.f90: Likewise.
10279 * testsuite/libgomp.fortran/target2.f90: Likewise.
10280 * testsuite/libgomp.fortran/target3.f90: Likewise.
10281 * testsuite/libgomp.fortran/target4.f90: Likewise.
10282 * testsuite/libgomp.fortran/target5.f90: Likewise.
10283 * testsuite/libgomp.fortran/target6.f90: Likewise.
10284 * testsuite/libgomp.fortran/target7.f90: Likewise.
10285 * testsuite/libgomp.fortran/target8.f90: Likewise.
10286 * testsuite/libgomp.fortran/task1.f90: Likewise.
10287 * testsuite/libgomp.fortran/task2.f90: Likewise.
10288 * testsuite/libgomp.fortran/task3.f90: Likewise.
10289 * testsuite/libgomp.fortran/task4.f90: Likewise.
10290 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
10291 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
10292 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
10293 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
10294 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
10295 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
10296 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
10297 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
10298 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
10299 * testsuite/libgomp.fortran/udr1.f90: Likewise.
10300 * testsuite/libgomp.fortran/udr10.f90: Likewise.
10301 * testsuite/libgomp.fortran/udr11.f90: Likewise.
10302 * testsuite/libgomp.fortran/udr12.f90: Likewise.
10303 * testsuite/libgomp.fortran/udr13.f90: Likewise.
10304 * testsuite/libgomp.fortran/udr14.f90: Likewise.
10305 * testsuite/libgomp.fortran/udr15.f90: Likewise.
10306 * testsuite/libgomp.fortran/udr2.f90: Likewise.
10307 * testsuite/libgomp.fortran/udr3.f90: Likewise.
10308 * testsuite/libgomp.fortran/udr4.f90: Likewise.
10309 * testsuite/libgomp.fortran/udr5.f90: Likewise.
10310 * testsuite/libgomp.fortran/udr6.f90: Likewise.
10311 * testsuite/libgomp.fortran/udr7.f90: Likewise.
10312 * testsuite/libgomp.fortran/udr8.f90: Likewise.
10313 * testsuite/libgomp.fortran/udr9.f90: Likewise.
10314 * testsuite/libgomp.fortran/vla1.f90: Likewise.
10315 * testsuite/libgomp.fortran/vla2.f90: Likewise.
10316 * testsuite/libgomp.fortran/vla3.f90: Likewise.
10317 * testsuite/libgomp.fortran/vla4.f90: Likewise.
10318 * testsuite/libgomp.fortran/vla5.f90: Likewise.
10319 * testsuite/libgomp.fortran/vla6.f90: Likewise.
10320 * testsuite/libgomp.fortran/vla7.f90: Likewise.
10321 * testsuite/libgomp.fortran/vla8.f90: Likewise.
10322 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
10323 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
10324 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
10325 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
10326 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
10327 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
10328 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
10329 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
10330 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
10331 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
10332 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
10333 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
10334 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
10335 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
10336 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
10337 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
10338 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
10339 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
10340 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
10341 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
10342 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
10343 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
10344 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
10345 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
10346 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
10347 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
10348 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
10349 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
10350 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
10351 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
10352 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
10353 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
10354 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
10355 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
10356 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
10357 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
10358 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
10359 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
10360 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
10361 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
10362 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
10363 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
10364 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
10365 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
10366 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
10367 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
10368 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
10369 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
10370 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
10371 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
10372 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
10373 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
10374 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
10375 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
10376 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
10377 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
10378 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
10379 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
10380 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
10381 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
10382 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
10383 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
10384 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
10385 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
10386 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
10387 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
10388 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
10389 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
10390 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
10391 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
10392 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
10393 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
10394 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
10395 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
10396 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
10397 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
10398 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
10399 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
10400 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
10401 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
10402 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
10403 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
10404 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
10405 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
10406 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
10407 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
10408 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
10409 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
10410 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
10411 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
10412 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
10413 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
10414 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
10415 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
10417 2018-03-20 Richard Biener <rguenther@suse.de>
10419 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
10420 parallelizable loop.
10422 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
10425 * configure: Regenerate.
10427 2018-02-16 Jakub Jelinek <jakub@redhat.com>
10430 * libgomp.fortran/pr84418-1.f90: New test.
10431 * libgomp.fortran/pr84418-2.f90: New test.
10433 2018-02-14 Jakub Jelinek <jakub@redhat.com>
10436 * testsuite/libgomp.fortran/threadprivate4.f90: Add
10437 -std=f2003 -fall-intrinsics into dg-additional-options.
10439 2018-02-08 Martin Jambor <mjambor@suse.cz>
10441 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
10444 2018-02-08 Martin Jambor <mjambor@suse.cz>
10446 * testsuite/libgomp.hsa.c/staticvar.c: New test.
10448 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10450 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
10451 [__cplusplus]: Declare extern "C".
10453 2018-02-07 Tom de Vries <tom@codesourcery.com>
10456 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
10458 2018-01-29 Christoph Spiel <cspiel@freenet.de>
10459 Jakub Jelinek <jakub@redhat.com>
10462 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
10463 instead of omp_lock_t.
10465 2018-01-25 Tom de Vries <tom@codesourcery.com>
10468 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
10470 2018-01-24 Tom de Vries <tom@codesourcery.com>
10473 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
10475 2018-01-24 Tom de Vries <tom@codesourcery.com>
10478 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
10480 2018-01-19 Tom de Vries <tom@codesourcery.com>
10481 Cesar Philippidis <cesar@codesourcery.com>
10484 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
10485 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
10487 2018-01-03 Jakub Jelinek <jakub@redhat.com>
10489 Update copyright years.
10491 * libgomp.texi: Bump @copying's copyright year.
10493 2017-12-30 Tom de Vries <tom@codesourcery.com>
10496 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
10497 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
10499 2017-12-27 Tom de Vries <tom@codesourcery.com>
10502 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
10503 (test_nonstatic): Fix return type to workaround PR83046.
10505 2017-12-05 Jakub Jelinek <jakub@redhat.com>
10508 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
10509 j suffix instead of i.
10510 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
10513 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
10515 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
10516 call to acc_wait (1).
10518 2017-11-24 Jakub Jelinek <jakub@redhat.com>
10521 * testsuite/libgomp.fortran/pr81304.f90: New test.
10523 2017-11-23 Jakub Jelinek <jakub@redhat.com>
10526 * libgomp.fortran/pr81841.f90: New test.
10528 2017-11-22 Jakub Jelinek <jakub@redhat.com>
10531 * target.c (gomp_target_init): Compute lengths just once and
10532 use them in both malloc size and subsequent copying.
10534 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
10536 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
10537 * acinclude.m4: Add cet.m4.
10538 * configure: Regenerate.
10539 * Makefile.in: Likewise.
10540 * testsuite/Makefile.in: Likewise.
10542 2017-11-15 Tom de Vries <tom@codesourcery.com>
10544 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
10545 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
10546 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
10547 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
10548 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
10549 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
10551 2017-11-14 Tom de Vries <tom@codesourcery.com>
10553 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
10554 non-nvidia devices.
10556 2017-11-07 Jakub Jelinek <jakub@redhat.com>
10559 * testsuite/libgomp.c++/pr82835.C: New test.
10561 2017-11-06 Martin Liska <mliska@suse.cz>
10563 * testsuite/libgomp.c++/loop-2.C: Return a value
10564 for functions with non-void return type, or change type to void,
10565 or add -Wno-return-type for test.
10566 * testsuite/libgomp.c++/loop-4.C: Likewise.
10567 * testsuite/libgomp.c++/parallel-1.C: Likewise.
10568 * testsuite/libgomp.c++/shared-1.C: Likewise.
10569 * testsuite/libgomp.c++/single-1.C: Likewise.
10570 * testsuite/libgomp.c++/single-2.C: Likewise.
10572 2017-10-31 Tom de Vries <tom@codesourcery.com>
10574 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
10575 "do {} while (false)".
10576 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
10577 after HSA_DEBUG call.
10579 2017-10-28 Jakub Jelinek <jakub@redhat.com>
10581 * target.c (struct gomp_coalesce_buf): New type.
10582 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
10583 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
10584 (gomp_copy_host2dev): Add CBUF argument, if copying into
10585 the cached ranges, memcpy into buffer instead of copying
10587 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
10588 Add CBUF argument, pass it through to other calls.
10589 (gomp_map_vars): Aggregate copies from host to device if small enough
10590 and with small enough gaps in between into memcpy into a buffer and
10591 fewer host to device copies from the buffer.
10592 (gomp_update): Adjust gomp_copy_host2dev caller.
10594 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
10596 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
10598 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
10599 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
10600 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
10601 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
10603 2017-10-16 Tom de Vries <tom@codesourcery.com>
10605 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
10606 openacc_nvidia_accel_selected.
10607 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
10608 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
10609 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
10610 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
10611 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
10612 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
10613 openacc_nvidia_accel_selected. Skip for shared memory device.
10614 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
10615 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
10617 2017-10-09 Martin Jambor <mjambor@suse.cz>
10620 * testsuite/libgomp.hsa.c/pr82416.c: New test.
10622 2017-10-07 Tom de Vries <tom@codesourcery.com>
10624 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
10625 Remove acc_device_nvidia references.
10626 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
10629 2017-10-05 Tom de Vries <tom@codesourcery.com>
10631 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
10632 vector_length(32) clause from acc parallel directive.
10633 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
10635 2017-10-04 Tom de Vries <tom@codesourcery.com>
10637 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
10638 (main): Reduce sum of arr elements. Assert that hres is exactly
10639 representable in 32-bit floating point.
10640 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
10641 (main): Reduce sum of arr elements. Assert that hres and hmres are
10642 exactly representable in 32-bit floating point.
10643 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
10645 2017-09-28 Tom de Vries <tom@codesourcery.com>
10647 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
10649 * testsuite/libgomp.c++/pr69393.C: Same.
10650 * testsuite/libgomp.c++/taskloop-1.C: Same.
10651 * testsuite/libgomp.c++/taskloop-3.C: Same.
10652 * testsuite/libgomp.c++/taskloop-4.C: Same.
10653 * testsuite/libgomp.c/for-4.c: Same.
10654 * testsuite/libgomp.c/pr66199-3.c: Same.
10655 * testsuite/libgomp.c/pr66199-4.c: Same.
10656 * testsuite/libgomp.c/pr66199-6.c: Same.
10657 * testsuite/libgomp.c/taskloop-1.c: Same.
10658 * testsuite/libgomp.c/taskloop-3.c: Same.
10659 * testsuite/libgomp.c/taskloop-4.c: Same.
10660 * testsuite/libgomp.fortran/aligned1.f03: Same.
10661 * testsuite/libgomp.fortran/condinc1.f: Same.
10662 * testsuite/libgomp.fortran/condinc3.f90: Same.
10663 * testsuite/libgomp.fortran/crayptr1.f90: Same.
10664 * testsuite/libgomp.fortran/crayptr2.f90: Same.
10665 * testsuite/libgomp.fortran/crayptr3.f90: Same.
10666 * testsuite/libgomp.fortran/omp_cond1.f: Same.
10667 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
10668 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
10669 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
10670 * testsuite/libgomp.fortran/recursion1.f90: Same.
10671 * testsuite/libgomp.fortran/target2.f90: Same.
10672 * testsuite/libgomp.fortran/target5.f90: Same.
10673 * testsuite/libgomp.fortran/task3.f90: Same.
10675 2017-09-28 Tom de Vries <tom@codesourcery.com>
10677 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
10678 vector_length(32) clause from acc parallel directive.
10679 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
10681 2017-09-27 Tom de Vries <tom@codesourcery.com>
10683 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
10684 Remove acc_device_nvidia references.
10686 2017-09-16 Tom de Vries <tom@codesourcery.com>
10689 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
10691 2017-09-14 Tom de Vries <tom@codesourcery.com>
10693 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
10694 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
10695 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
10696 * testsuite/libgomp.c/c.exp: Include test-cases from
10697 libgomp.c-c++-common.
10698 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
10701 2017-09-14 Jakub Jelinek <jakub@redhat.com>
10704 * testsuite/libgomp.c++/pr81314.C: New test.
10706 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
10708 * libgomp.texi (Top): www.openacc.org now uses https.
10709 (Enabling OpenACC): Ditto.
10710 (acc_get_num_devices): Ditto.
10711 (acc_set_device_type): Ditto.
10712 (acc_get_device_type): Ditto.
10713 (acc_set_device_num): Ditto.
10714 (acc_get_device_num): Ditto.
10715 (acc_async_test): Ditto.
10716 (acc_async_test_all): Ditto.
10718 (acc_wait_all): Ditto.
10719 (acc_wait_all_async): Ditto.
10720 (acc_wait_async): Ditto.
10722 (acc_shutdown): Ditto.
10723 (acc_on_device): Ditto.
10724 (acc_malloc): Ditto.
10726 (acc_copyin): Ditto.
10727 (acc_present_or_copyin): Ditto.
10728 (acc_create): Ditto.
10729 (acc_present_or_create): Ditto.
10730 (acc_copyout): Ditto.
10731 (acc_delete): Ditto.
10732 (acc_update_device): Ditto.
10733 (acc_update_self): Ditto.
10734 (acc_map_data): Ditto.
10735 (acc_unmap_data): Ditto.
10736 (acc_deviceptr): Ditto.
10737 (acc_hostptr): Ditto.
10738 (acc_is_present): Ditto.
10739 (acc_memcpy_to_device): Ditto.
10740 (acc_memcpy_from_device): Ditto.
10741 (acc_get_current_cuda_device): Ditto.
10742 (acc_get_current_cuda_context): Ditto.
10743 (acc_get_cuda_stream): Ditto.
10744 (acc_set_cuda_stream): Ditto.
10745 (ACC_DEVICE_TYPE): Ditto.
10746 (ACC_DEVICE_NUM): Ditto.
10747 (OpenACC Library Interoperability): Ditto.
10749 2017-08-09 Jakub Jelinek <jakub@redhat.com>
10752 * testsuite/libgomp.c/pr81687-1.c: New test.
10753 * testsuite/libgomp.c/pr81687-2.c: New test.
10755 2017-08-07 Jakub Jelinek <jakub@redhat.com>
10758 * testsuite/libgomp.c/pr69389.c: New test.
10759 * testsuite/libgomp.c++/pr69389.C: New test.
10761 2017-08-07 Tom de Vries <tom@codesourcery.com>
10763 PR middle-end/78266
10764 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
10765 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
10767 2017-07-27 Jakub Jelinek <jakub@redhat.com>
10770 * testsuite/libgomp.c/pr45784.c: New test.
10771 * testsuite/libgomp.c++/pr45784.C: New test.
10773 2017-07-19 Tom de Vries <tom@codesourcery.com>
10775 * testsuite/libgomp.oacc-c/vec.c: New test.
10777 2017-07-03 Tom de Vries <tom@codesourcery.com>
10779 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
10781 2017-06-27 Tom de Vries <tom@codesourcery.com>
10783 * plugin/plugin-nvptx.c (notify_var): New function.
10784 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
10786 2017-06-27 Tom de Vries <tom@codesourcery.com>
10788 * env.c (parse_unsigned_long_1): Factor out of ...
10789 (parse_unsigned_long): ... here.
10790 (parse_int_1): Factor out of ...
10791 (parse_int): ... here.
10792 (parse_int_secure): New function.
10793 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
10794 * secure_getenv.h: Factor out of ...
10795 * plugin/plugin-hsa.c: ... here.
10796 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
10798 2017-06-21 Jakub Jelinek <jakub@redhat.com>
10801 * testsuite/libgomp.c++/pr81130.C: New test.
10803 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10805 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
10807 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
10808 dg-xfail-run-if default args.
10810 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
10812 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
10813 * testsuite/libgomp.c/pr39591-3.c: Likewise.
10815 2017-05-30 Jakub Jelinek <jakub@redhat.com>
10818 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
10819 (gomp_affinity_init_level): Use it. Always analyze the core and thread
10820 sibling lists, depending on level just pick up what CPUs to put
10821 together into a place vs. whether add multiple ordered places.
10823 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
10825 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
10826 * libgomp.map (OACC_2.0.1): Add these.
10827 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
10828 for "acc_wait", and "acc_wait_all", respectively.
10829 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
10830 for "acc_wait", and "acc_wait_all", respectively.
10831 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
10832 * libgomp.texi (acc_wait, acc_wait_all): Update.
10833 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
10834 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
10835 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
10837 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
10838 acc_present_or_copyin and acc_present_or_create procedures,
10840 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
10841 generally different variants of OpenACC Runtime Library functions.
10842 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
10844 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
10845 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
10847 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
10848 of preprocessor definitions.
10849 * libgomp.h (strong_alias): Guard by "#ifdef
10850 HAVE_ATTRIBUTE_ALIAS".
10851 * oacc-mem.c: Provide "acc_pcreate" as alias for
10852 "acc_present_or_create", and "acc_pcopyin" as alias for
10853 "acc_present_or_copyin".
10854 * libgomp.map: New version "OACC_2.0.1".
10855 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
10856 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
10857 its content into...
10858 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
10861 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
10862 when disabling nvptx offloading.
10864 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
10866 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
10867 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
10868 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
10870 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
10871 * testsuite/lib/libgomp.exp
10872 (check_effective_target_openacc_nvidia_accel_configured): New
10874 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
10875 (check_effective_target_c++): New procs.
10876 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
10877 (check_effective_target_c++): Likewise.
10879 2017-05-22 Jakub Jelinek <jakub@redhat.com>
10881 PR middle-end/80809
10882 * testsuite/libgomp.c/pr80809-2.c: New test.
10883 * testsuite/libgomp.c/pr80809-3.c: New test.
10885 PR middle-end/80809
10886 * testsuite/libgomp.c/pr80809-1.c: New test.
10888 PR middle-end/80853
10889 * testsuite/libgomp.c/pr80853.c: New test.
10891 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
10893 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
10894 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
10895 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
10896 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
10897 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
10899 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
10900 Debug output for failure.
10902 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10904 * testsuite/lib/libgomp.exp: Load scanlang.exp.
10906 2017-04-27 Jakub Jelinek <jakub@redhat.com>
10909 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
10910 bootstrap compare failures.
10912 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
10914 * testsuite/libgomp.c/target-36.c: New testcase.
10916 2017-04-13 Jakub Jelinek <jakub@redhat.com>
10918 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
10921 2017-04-11 Jakub Jelinek <jakub@redhat.com>
10924 * testsuite/libgomp.c/pr80394.c: New test.
10926 2017-04-04 Jakub Jelinek <jakub@redhat.com>
10929 * config/posix/thread-stacksize.h: New file.
10930 * config/darwin/thread-stacksize.h: New file.
10931 * config/nvptx/thread-stacksize.h: New file.
10932 * env.c: Include thread-stacksize.h.
10933 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
10934 instead of 0. Call pthread_attr_setstacksize even if
10935 GOMP_DEFAULT_STACKSIZE is non-zero.
10937 2017-03-30 Jakub Jelinek <jakub@redhat.com>
10939 * env.c (initialize_env): Initialize stacksize to 0.
10941 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
10944 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
10946 2017-03-08 Jakub Jelinek <jakub@redhat.com>
10949 * testsuite/libgomp.c/pr79940.c: New test.
10951 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10953 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
10955 Add __float128 options.
10957 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
10959 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
10960 hppa*-*-* dg-skip-if directive.
10962 2017-02-09 Jakub Jelinek <jakub@redhat.com>
10964 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
10965 dg-skip-if directive into a comment.
10967 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
10968 Chung-Lin Tang <cltang@codesourcery.com>
10970 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
10971 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
10972 add additional case.
10973 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
10974 "openacc_nvidia_accel_selected".
10975 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
10976 Add num_workers(8) clause.
10978 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
10980 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
10982 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
10983 include complex.h on hppa*-*-hpux*.
10984 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
10986 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
10988 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
10990 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
10991 GOMP_OFFLOAD_openacc_exec. Adjust all users.
10992 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
10993 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
10994 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
10995 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
10996 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
10997 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
10998 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
10999 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
11001 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
11003 * libgomp-plugin.h: #include <stdbool.h>.
11004 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
11005 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
11006 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
11007 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
11008 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
11009 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
11010 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
11011 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
11012 (GOMP_OFFLOAD_openacc_register_async_cleanup)
11013 (GOMP_OFFLOAD_openacc_async_test)
11014 (GOMP_OFFLOAD_openacc_async_test_all)
11015 (GOMP_OFFLOAD_openacc_async_wait)
11016 (GOMP_OFFLOAD_openacc_async_wait_async)
11017 (GOMP_OFFLOAD_openacc_async_wait_all)
11018 (GOMP_OFFLOAD_openacc_async_wait_all_async)
11019 (GOMP_OFFLOAD_openacc_async_set_async)
11020 (GOMP_OFFLOAD_openacc_create_thread_data)
11021 (GOMP_OFFLOAD_openacc_destroy_thread_data)
11022 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
11023 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
11024 (GOMP_OFFLOAD_openacc_get_cuda_stream)
11025 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
11026 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
11028 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
11029 (GOMP_OFFLOAD_unload_image): Fix argument types.
11031 2017-01-26 Jakub Jelinek <jakub@redhat.com>
11033 * testsuite/lib/libgomp.exp
11034 (check_effective_target_hsa_offloading_selected_nocache): Fix up
11035 check_compile invocation. Fix up removal of executable. Drop
11036 bogus "2>&1" argument.
11038 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
11041 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
11042 Martin Jambor <mjambor@suse.cz>
11044 * plugin/hsa.h: Moved to top level include.
11045 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
11047 2017-01-21 Jakub Jelinek <jakub@redhat.com>
11050 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
11051 of cat to get version from BASE-VER file.
11052 * testsuite/Makefile.in: Regenerated.
11054 2017-01-19 Jakub Jelinek <jakub@redhat.com>
11056 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
11059 2017-01-17 Jakub Jelinek <jakub@redhat.com>
11061 * plugin/hsa.h: Add GCC runtime library exception.
11062 * plugin/hsa_ext_finalize.h: Likewise.
11064 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
11065 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
11066 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
11067 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
11068 plugin/include/cuda as include dir and -ldl instead of -lcuda as
11069 library to link ptx plugin against.
11070 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
11071 (CUDA_CALLS): Define.
11072 (cuda_lib, cuda_lib_inited): New variables.
11073 (init_cuda_lib): New function.
11074 (CUDA_CALL_PREFIX): Define.
11075 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
11076 (CUDA_CALL): Use FN instead of (FN).
11077 (CUDA_CALL_NOCHECK): Define.
11078 (cuda_error, fini_streams_for_device, select_stream_for_async,
11079 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
11080 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
11081 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
11082 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
11084 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
11086 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
11087 Use CUDA_CALL_NOCHECK.
11088 * plugin/cuda/cuda.h: New file.
11089 * config.h.in: Regenerated.
11090 * configure: Regenerated.
11093 * configure.ac: Add GCC_BASE_VER.
11094 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
11095 get version from BASE-VER file.
11096 * testsuite/Makefile.in: Regenerated.
11097 * configure: Regenerated.
11098 * Makefile.in: Regenerated.
11100 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11103 * Makefile.am: Make fincludedir multilib-aware.
11104 * Makefile.in: Regenerate.
11106 2017-01-01 Jakub Jelinek <jakub@redhat.com>
11108 Update copyright years.
11110 * libgomp.texi: Bump @copying's copyright year.
11112 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
11114 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
11115 pthread_spinlock_t instead of gomp_mutex_t lock.
11116 (gomp_get_thread_pool): Likewise.
11117 (gomp_release_thread_pool): Likewise.
11118 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
11121 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
11123 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
11124 thread pool in case nthreads == 1.
11126 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
11128 * config/nvptx/env.c: Delete.
11129 * icv.c: Move definitions of ICV variables back ...
11130 * env.c: ...here. Do not compile environment-related functionality if
11131 LIBGOMP_OFFLOADED_ONLY is set.
11133 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
11135 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
11136 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
11137 * configure: Regenerate.
11138 * config.h.in: Likewise.
11140 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
11142 * Makefile.in: Regenerate with automake-1.11.6.
11143 * aclocal.m4: Likewise.
11144 * configure: Likewise.
11145 * testsuite/Makefile.in: Likewise.
11147 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
11149 * config/nvptx/critical.c: Delete to use generic implementation.
11151 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
11153 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
11154 ../../affinity.c as fallback.
11155 * config/nvptx/affinity.c: Delete to use fallback implementation.
11157 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
11158 Jakub Jelinek <jakub@redhat.com>
11159 Dmitry Melnik <dm@ispras.ru>
11161 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
11162 * Makefile.in. Regenerate.
11163 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
11164 (LIBGOMP_USE_PTHREADS): ...here; new define.
11165 * configure: Regenerate.
11166 * config.h.in: Likewise.
11167 * config/posix/affinity.c: Move to...
11168 * affinity.c: ...here (new file). Guard use of Pthreads-specific
11169 interface by LIBGOMP_USE_PTHREADS.
11170 * critical.c: Split out GOMP_atomic_{start,end} into...
11171 * atomic.c: ...here (new file).
11172 * env.c: Split out ICV definitions into...
11173 * icv.c: ...here (new file) and...
11174 * icv-device.c: ...here. New file.
11175 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
11176 (gomp_destroy_lock_30): Ditto.
11177 (gomp_set_lock_30): Ditto.
11178 (gomp_unset_lock_30): Ditto.
11179 (gomp_test_lock_30): Ditto.
11180 (gomp_init_nest_lock_30): Ditto.
11181 (gomp_destroy_nest_lock_30): Ditto.
11182 (gomp_set_nest_lock_30): Ditto.
11183 (gomp_unset_nest_lock_30): Ditto.
11184 (gomp_test_nest_lock_30): Ditto.
11186 * config/nvptx/lock.c: New.
11187 * config/nvptx/bar.c: New.
11188 * config/nvptx/bar.h: New.
11189 * config/nvptx/doacross.h: New.
11190 * config/nvptx/error.c: New.
11191 * config/nvptx/icv-device.c: New.
11192 * config/nvptx/mutex.h: New.
11193 * config/nvptx/pool.h: New.
11194 * config/nvptx/proc.c: New.
11195 * config/nvptx/ptrlock.h: New.
11196 * config/nvptx/sem.h: New.
11197 * config/nvptx/simple-bar.h: New.
11198 * config/nvptx/target.c: New.
11199 * config/nvptx/task.c: New.
11200 * config/nvptx/team.c: New.
11201 * config/nvptx/time.c: New.
11202 * config/posix/simple-bar.h: New.
11203 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
11204 (gomp_num_teams_var): Declare.
11205 (struct gomp_thread_pool): Change threads_dock member to
11206 gomp_simple_barrier_t.
11207 [__nvptx__] (gomp_thread): New implementation.
11208 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
11209 (gomp_thread_destructor): Ditto.
11210 (gomp_init_thread_affinity): Ditto.
11211 * team.c: Guard uses of Pthreads-specific interfaces by
11212 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
11213 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
11214 * config/nvptx/alloc.c: Delete.
11215 * config/nvptx/barrier.c: Ditto.
11216 * config/nvptx/fortran.c: Ditto.
11217 * config/nvptx/iter.c: Ditto.
11218 * config/nvptx/iter_ull.c: Ditto.
11219 * config/nvptx/loop.c: Ditto.
11220 * config/nvptx/loop_ull.c: Ditto.
11221 * config/nvptx/ordered.c: Ditto.
11222 * config/nvptx/parallel.c: Ditto.
11223 * config/nvptx/priority_queue.c: Ditto.
11224 * config/nvptx/sections.c: Ditto.
11225 * config/nvptx/single.c: Ditto.
11226 * config/nvptx/splay-tree.c: Ditto.
11227 * config/nvptx/work.c: Ditto.
11228 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
11229 -foffload=-lgfortran in addition to -lgfortran.
11230 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
11231 * plugin/plugin-nvptx.c: Include <limits.h>.
11232 (struct targ_fn_descriptor): Add new fields.
11233 (struct ptx_device): Ditto. Set them...
11234 (nvptx_open_device): ...here.
11235 (nvptx_adjust_launch_bounds): New.
11236 (nvptx_host2dev): Allow NULL 'nvthd'.
11237 (nvptx_dev2host): Ditto.
11238 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
11239 (link_ptx): Adjust log sizes.
11240 (nvptx_host2dev): Allow NULL 'nvthd'.
11241 (nvptx_dev2host): Ditto.
11242 (nvptx_set_clocktick): New. Use it...
11243 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
11245 (GOMP_OFFLOAD_dev2dev): New.
11246 (nvptx_adjust_launch_bounds): New.
11247 (nvptx_stacks_size): New.
11248 (nvptx_stacks_alloc): New.
11249 (nvptx_stacks_free): New.
11250 (GOMP_OFFLOAD_run): New.
11251 (GOMP_OFFLOAD_async_run): New (stub).
11253 2016-11-23 Martin Jambor <mjambor@suse.cz>
11255 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
11256 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
11257 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
11259 2016-11-23 Martin Liska <mliska@suse.cz>
11260 Martin Jambor <mjambor@suse.cz>
11262 * plugin/hsa.h: New file.
11263 * plugin/hsa_ext_finalize.h: New file.
11264 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
11265 header file unistd.h, and functions secure_getenv, __secure_getenv,
11266 getuid, geteuid, getgid and getegid.
11267 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
11269 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
11270 Handle various cases of secure_getenv presence, add an implementation
11271 when we can test effective UID and GID.
11272 (struct hsa_runtime_fn_info): New structure.
11273 (hsa_runtime_fn_info hsa_fns): New variable.
11274 (hsa_runtime_lib): Likewise.
11275 (support_cpu_devices): Likewise.
11276 (init_enviroment_variables): Load newly introduced ENV
11278 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
11279 (hsa_fatal): Likewise.
11280 (DLSYM_FN): New macro.
11281 (init_hsa_runtime_functions): New function.
11282 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
11283 structure. Depending on environment, also allow CPU devices.
11284 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
11285 (get_kernarg_memory_region): Likewise.
11286 (GOMP_OFFLOAD_init_device): Likewise.
11287 (destroy_hsa_program): Likewise.
11288 (init_basic_kernel_info): New function.
11289 (GOMP_OFFLOAD_load_image): Use it.
11290 (create_and_finalize_hsa_program): Call hsa run-time functions via
11292 (create_single_kernel_dispatch): Likewise.
11293 (release_kernel_dispatch): Likewise.
11294 (init_single_kernel): Likewise.
11295 (parse_target_attributes): Allow up multiple HSA grid dimensions.
11296 (get_group_size): New function.
11297 (run_kernel): Likewise.
11298 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
11299 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
11301 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
11302 * testsuite/libgomp-test-support.exp.in: Likewise.
11303 * Makefile.in: Regenerated.
11304 * aclocal.m4: Likewise.
11305 * config.h.in: Likewise.
11306 * configure: Likewise.
11307 * testsuite/Makefile.in: Likewise.
11309 2016-11-15 Martin Jambor <mjambor@suse.cz>
11310 Alexander Monakov <amonakov@ispras.ru>
11312 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
11313 mapping clauses to target constructs.
11314 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
11316 2016-11-15 Matthias Klose <doko@ubuntu.com>
11318 * configure: Regenerate.
11320 2016-11-10 Jakub Jelinek <jakub@redhat.com>
11322 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
11323 * omp_lib.h.in (openmp_version): Likewise.
11324 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
11326 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
11328 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
11329 (fib_wrapper): Add map(from: x) clause.
11330 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
11331 (e_53_2): Likewise.
11332 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
11333 (accum): Add map(tmp) clause.
11334 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
11335 (accum): Add map(tofrom: tmp) clause.
11336 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
11337 (gramSchmidt): Likewise.
11338 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
11339 map(tofrom: sum) clause.
11340 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
11341 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
11342 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
11343 only allowed on the loop iterator.
11344 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
11345 * testsuite/libgomp.fortran/taskloop2.f90: New test.
11346 * testsuite/libgomp.fortran/taskloop4.f90: New test.
11347 * testsuite/libgomp.fortran/doacross1.f90: New test.
11348 * testsuite/libgomp.fortran/doacross3.f90: New test.
11349 * testsuite/libgomp.fortran/taskloop1.f90: New test.
11350 * testsuite/libgomp.fortran/taskloop3.f90: New test.
11351 * testsuite/libgomp.fortran/doacross2.f90: New test.
11352 * testsuite/libgomp.c/doacross-1.c (main): Add missing
11353 #pragma omp atomic read.
11354 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
11355 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
11357 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
11358 Nathan Sidwell <nathan@acm.org>
11360 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
11361 to determine default geometry.
11362 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
11365 2016-11-01 Jakub Jelinek <jakub@redhat.com>
11367 * hashtab.h: Use standard GPLv3 with runtime exception
11370 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
11372 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
11373 size when allocating new thread.
11375 2016-09-14 Marek Polacek <polacek@redhat.com>
11377 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
11379 2016-08-19 Jakub Jelinek <jakub@redhat.com>
11382 * testsuite/libgomp.fortran/pr71014.f90: New test.
11384 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
11386 PR middle-end/70895
11387 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
11388 firstprivate clauses.
11389 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
11391 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
11392 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
11393 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
11394 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
11395 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
11396 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
11397 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
11398 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
11399 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
11400 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
11401 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
11402 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
11404 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
11407 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
11409 2016-08-08 Jakub Jelinek <jakub@redhat.com>
11412 * testsuite/libgomp.c++/pr58706.C: New test.
11414 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
11416 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
11417 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
11418 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
11420 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
11421 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
11423 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
11425 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
11426 test, and don't hardcode -O0.
11428 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
11430 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
11432 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
11434 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
11437 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
11439 PR middle-end/71734
11440 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
11441 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
11443 2016-07-01 Jakub Jelinek <jakub@redhat.com>
11446 * testsuite/libgomp.fortran/associate3.f90: New test.
11448 2016-06-17 Jakub Jelinek <jakub@redhat.com>
11450 * testsuite/libgomp.c++/target-21.C: New test.
11452 2016-06-16 Jakub Jelinek <jakub@redhat.com>
11454 * testsuite/libgomp.c++/target-20.C: New test.
11456 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
11457 Cesar Philippidis <cesar@codesourcery.com>
11459 PR middle-end/71373
11460 * libgomp.oacc-c/nested-function-1.c: New file.
11461 * libgomp.oacc-c/nested-function-2.c: Likewise.
11462 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
11463 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
11464 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
11466 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
11469 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
11470 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
11471 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
11473 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
11475 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
11476 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
11478 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
11481 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
11483 2016-05-26 Jakub Jelinek <jakub@redhat.com>
11485 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
11486 instead of invalid schedule(static, 0).
11487 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
11489 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
11491 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
11492 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
11493 parameter, use to set async stream around call to gomp_unmap_vars,
11494 call gomp_unmap_vars() with 'do_copyfrom' set to true.
11495 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
11496 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
11497 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
11498 (event_add): Add int parameter, initialize 'val' field when
11499 adding new ptx_event struct.
11500 (nvptx_evec): Adjust event_add() call arguments.
11501 (nvptx_host2dev): Likewise.
11502 (nvptx_dev2host): Likewise.
11503 (nvptx_wait_async): Likewise.
11504 (nvptx_wait_all_async): Likewise.
11505 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
11506 pass to event_add() call.
11507 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
11509 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
11510 call openacc.register_async_cleanup_func() hook.
11511 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
11512 * target.c (gomp_copy_from_async): Delete function.
11513 (gomp_map_vars): Remove async_refcount.
11514 (gomp_unmap_vars): Likewise.
11515 (gomp_load_image_to_device): Likewise.
11516 (omp_target_associate_ptr): Likewise.
11517 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
11518 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
11519 (gomp_copy_from_async): Remove.
11521 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
11523 * target.c (gomp_device_copy): New function.
11524 (gomp_copy_host2dev): Likewise.
11525 (gomp_copy_dev2host): Likewise.
11526 (gomp_free_device_memory): Likewise.
11527 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
11528 (gomp_map_pointer): Likewise.
11529 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
11530 NULL value from alloc_func plugin hook.
11531 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
11532 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
11533 (gomp_unmap_vars): Likewise.
11534 (gomp_update): Adjust to call gomp_copy_dev2host and
11535 gomp_copy_host2dev functions.
11536 (gomp_unload_image_from_device): Handle false value from
11537 unload_image_func plugin hook.
11538 (gomp_init_device): Handle false value from init_device_func
11540 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
11541 (omp_target_free): Adjust to call gomp_free_device_memory.
11542 (omp_target_memcpy): Handle return values from host2dev_func,
11543 dev2host_func, and dev2dev_func plugin hooks.
11544 (omp_target_memcpy_rect_worker): Likewise.
11545 (gomp_target_fini): Handle false value from fini_device_func
11547 * libgomp.h (struct gomp_device_descr): Adjust return type of
11548 init_device_func, fini_device_func, unload_image_func, free_func,
11549 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
11550 * oacc-init.c (acc_shutdown_1): Handle false value from
11551 fini_device_func plugin hook.
11552 * oacc-host.c (host_init_device): Change return type to bool.
11553 (host_fini_device): Likewise.
11554 (host_unload_image): Likewise.
11555 (host_free): Likewise.
11556 (host_dev2host): Likewise.
11557 (host_host2dev): Likewise.
11558 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
11559 (acc_memcpy_to_device): Likewise.
11560 (acc_memcpy_from_device): Likewise.
11561 (delete_copyout): Add libfnname parameter, handle free_func
11562 hook fatal error case.
11563 (acc_delete): Adjust delete_copyout call.
11564 (acc_copyout): Likewise.
11565 (update_dev_host): Move gomp_mutex_unlock to after
11566 host2dev/dev2host hook calls.
11568 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
11569 to 'hsa_error_msg', for clarity.
11570 (hsa_fatal): Likewise.
11571 (hsa_error): New function.
11572 (init_hsa_context): Change return type to bool, adjust to return
11574 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
11576 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
11577 return false on error.
11578 (get_agent_info): Adjust to return NULL on error.
11579 (destroy_hsa_program): Change return type to bool, adjust to
11580 return false on error.
11581 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
11582 (destroy_module): Change return type to bool, adjust to
11583 return false on error.
11584 (GOMP_OFFLOAD_unload_image): Likewise.
11585 (GOMP_OFFLOAD_fini_device): Likewise.
11586 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
11587 (GOMP_OFFLOAD_free): Change to return false when called.
11588 (GOMP_OFFLOAD_dev2host): Likewise.
11589 (GOMP_OFFLOAD_host2dev): Likewise.
11590 (GOMP_OFFLOAD_dev2dev): Likewise.
11592 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
11593 (CUDA_CALL): Likewise.
11594 (CUDA_CALL_ASSERT): Likewise.
11595 (map_init): Change return type to bool, use CUDA_CALL* macros.
11596 (map_fini): Likewise.
11597 (init_streams_for_device): Change return type to bool, adjust
11599 (fini_streams_for_device): Change return type to bool, adjust
11601 (select_stream_for_async): Release stream_lock before calls to
11602 GOMP_PLUGIN_fatal, adjust call to map_init.
11603 (nvptx_init): Use CUDA_CALL* macros.
11604 (nvptx_attach_host_thread_to_device): Change return type to bool,
11605 use CUDA_CALL* macros.
11606 (nvptx_open_device): Use CUDA_CALL* macros.
11607 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
11609 (nvptx_get_num_devices): Use CUDA_CALL* macros.
11610 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
11611 (nvptx_exec): Use CUDA_CALL* macros.
11612 (nvptx_alloc): Use CUDA_CALL* macros.
11613 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
11614 (nvptx_host2dev): Likewise.
11615 (nvptx_dev2host): Likewise.
11616 (nvptx_wait): Use CUDA_CALL* macros.
11617 (nvptx_wait_async): Likewise.
11618 (nvptx_wait_all): Likewise.
11619 (nvptx_wait_all_async): Likewise.
11620 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
11621 use CUDA_CALL* macros, adjust call to map_fini.
11622 (GOMP_OFFLOAD_init_device): Change return type to bool,
11623 adjust code accordingly.
11624 (GOMP_OFFLOAD_fini_device): Likewise.
11625 (GOMP_OFFLOAD_load_image): Adjust calls to
11626 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
11627 use CUDA_CALL* macros.
11628 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
11630 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
11631 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
11632 handle error return.
11633 (GOMP_OFFLOAD_dev2host): Likewise.
11634 (GOMP_OFFLOAD_host2dev): Likewise.
11635 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
11636 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
11638 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
11640 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
11641 (acc_free): Likewise.
11642 (acc_memcpy_to_device): Likewise.
11643 (acc_memcpy_from_device): Likewise.
11644 (acc_deviceptr): Likewise.
11645 (acc_hostptr): Likewise.
11646 (acc_is_present): Likewise.
11647 (acc_map_data): Likewise.
11648 (acc_unmap_data): Likewise.
11649 (present_create_copy): Likewise.
11650 (delete_copyout): Likewise.
11651 (update_dev_host): Likewise.
11652 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
11653 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
11654 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
11655 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
11656 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
11657 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
11658 it only runs on nvptx targets.
11659 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
11660 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
11661 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11662 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11663 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11664 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11665 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11666 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11667 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11668 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
11669 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11670 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11671 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11672 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11673 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11674 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11675 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11676 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11677 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11678 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11679 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11680 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11681 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11683 2016-05-23 Martin Jambor <mjambor@suse.cz>
11685 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
11687 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
11689 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
11690 to gomp_init_targets_once.
11691 (acc_set_device_type): Remove !cached_base_dev condition on call to
11692 gomp_init_targets_once, move call to before acc_device_lock acquire,
11694 (acc_get_device_num): Remove !cached_base_dev condition on call to
11695 gomp_init_targets_once.
11696 (acc_set_device_num): Likewise.
11698 2016-05-16 Martin Jambor <mjambor@suse.cz>
11700 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
11702 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
11704 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
11705 expected partitioning.
11707 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
11709 PR middle-end/70626
11710 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
11711 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
11712 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
11714 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
11716 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
11719 2016-04-19 Jakub Jelinek <jakub@redhat.com>
11721 PR middle-end/70680
11722 * testsuite/libgomp.c/pr70680-1.c: New test.
11723 * testsuite/libgomp.c/pr70680-2.c: New test.
11725 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
11727 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
11728 pass parameter variables to subroutines.
11730 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
11732 PR middle-end/70643
11733 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
11735 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
11738 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
11739 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
11741 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
11743 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
11744 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
11745 GOACC_declare prototype.
11747 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
11748 Merge this file, and...
11749 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
11750 ... this file, and...
11751 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
11752 ... this file, and...
11753 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
11754 ... this file, and...
11755 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
11756 ... this file, and...
11757 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
11758 ... this file, and...
11759 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
11760 ... this file, and...
11761 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
11762 ... this file, and...
11763 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
11764 ... this file, and...
11765 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
11766 ... this file, and...
11767 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
11768 ... this file, and...
11769 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
11770 ... this file, and...
11771 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
11772 ... this file into...
11773 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
11776 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
11777 Make failure observable.
11779 2016-04-12 Jakub Jelinek <jakub@redhat.com>
11781 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
11783 * target.c (gomp_target_fallback_firstprivate,
11784 gomp_target_unshare_firstprivate): Removed.
11785 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
11786 before waiting for dependencies.
11787 (gomp_target_task_fn): Don't copy firstprivate vars here.
11788 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
11789 firstprivate_copies here.
11790 (gomp_create_target_task): Don't initialize firstprivate_copies field.
11791 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
11792 explicit/implicit firstprivate.
11794 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
11798 PR tree-optimization/70373
11799 PR middle-end/70533
11800 PR middle-end/70534
11801 PR middle-end/70535
11802 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
11804 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
11806 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
11808 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
11810 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
11812 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
11814 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
11816 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
11818 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
11820 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
11821 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
11822 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
11823 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
11825 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
11827 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
11829 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
11831 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
11833 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
11834 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
11835 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
11836 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
11837 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
11838 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
11840 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
11841 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
11842 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
11843 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
11844 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
11845 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
11846 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
11847 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
11848 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
11849 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11850 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11851 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11852 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
11853 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11854 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
11856 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
11857 James Norris <jnorris@codesourcery.com>
11858 Nathan Sidwell <nathan@codesourcery.com>
11859 Julian Brown <julian@codesourcery.com>
11860 Cesar Philippidis <cesar@codesourcery.com>
11861 Chung-Lin Tang <cltang@codesourcery.com>
11862 Tom de Vries <tom@codesourcery.com>
11864 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
11865 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
11866 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
11867 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
11868 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
11869 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
11870 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
11871 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
11872 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
11874 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
11876 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
11878 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
11879 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
11880 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
11881 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
11883 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
11885 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
11886 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
11887 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
11888 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
11889 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
11890 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11891 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
11892 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
11893 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
11894 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
11896 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
11897 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
11898 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
11900 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
11902 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
11904 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
11906 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
11908 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
11909 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
11910 ... this new file. Update.
11911 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
11912 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
11913 ... this new file. Update.
11914 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
11915 file. Incorporate...
11916 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
11918 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
11920 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
11922 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
11924 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
11926 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
11927 set-torture-options.
11929 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
11931 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
11933 * testsuite/libgomp.oacc-c/c.exp: Likewise.
11934 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
11935 -fno-builtin-acc_on_device instead of -O0.
11936 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
11938 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
11939 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
11941 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
11942 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
11943 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
11944 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
11945 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
11946 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
11947 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
11948 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
11949 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
11950 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
11951 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
11952 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
11953 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
11954 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
11955 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
11956 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
11957 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
11958 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
11960 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
11962 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
11965 2016-03-24 Martin Liska <mliska@suse.cz>
11967 * plugin/plugin-hsa.c (packet_store_release): New function
11968 that is taken from the HSA runtime manual.
11969 (GOMP_OFFLOAD_run): Use the function.
11971 2016-03-23 Jakub Jelinek <jakub@redhat.com>
11974 * testsuite/libgomp.c++/pr70376.C: New test.
11976 2016-03-23 Tom de Vries <tom@codesourcery.com>
11978 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
11979 initialization of lresult and lvresult.
11980 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
11982 2016-03-23 James Norris <jnorris@codesourcery.com>
11983 Daichi Fukuoka <dc-fukuoka@sgi.com>
11986 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
11987 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
11988 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
11989 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
11991 2016-03-23 Martin Liska <mliska@suse.cz>
11994 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
11995 argument just in case a dispatched kernel uses that argument.
11997 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
11999 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
12000 -ftree-parallelize-loops/-fopenacc changes.
12001 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
12003 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
12005 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
12007 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
12009 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
12010 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
12012 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
12014 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
12015 always_ld_library_path the path to libgcc_s.
12017 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
12020 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
12022 2016-03-09 Tom de Vries <tom@codesourcery.com>
12024 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
12025 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
12026 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
12028 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
12029 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
12030 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
12031 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
12033 2016-03-07 Martin Jambor <mjambor@suse.cz>
12035 * testsuite/lib/libgomp.exp
12036 (check_effective_target_hsa_offloading_selected_nocache): New.
12037 (check_effective_target_hsa_offloading_selected): Likewise.
12038 * testsuite/libgomp.hsa.c/c.exp: Likewise.
12039 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
12040 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
12041 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
12042 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
12043 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
12044 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
12045 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
12046 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
12047 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
12048 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
12049 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
12050 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
12051 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
12052 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
12053 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
12054 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
12056 2016-03-07 Martin Jambor <mjambor@suse.cz>
12058 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
12059 non-shared memory accelerators.
12060 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
12061 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
12062 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
12063 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
12064 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
12065 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
12066 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
12067 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
12068 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
12070 2016-03-07 Martin Jambor <mjambor@suse.cz>
12072 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
12075 2016-03-02 Jakub Jelinek <jakub@redhat.com>
12078 * testsuite/libgomp.c++/pr69555-1.C: New test.
12079 * testsuite/libgomp.c++/pr69555-2.C: New test.
12081 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
12082 Martin Jambor <mjambor@suse.cz>
12084 * testsuite/lib/libgomp.exp
12085 (check_effective_target_offload_device_shared_as): New proc.
12086 * testsuite/libgomp.c++/declare_target-1.C: New test.
12088 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
12091 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
12093 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
12095 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
12096 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
12098 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
12099 -ftree-parallelize-loops/-fopenacc changes.
12100 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
12101 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
12103 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
12105 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
12107 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
12109 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
12111 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
12113 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
12115 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
12116 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
12118 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
12119 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
12121 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
12122 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
12125 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
12127 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
12129 2016-02-19 Jakub Jelinek <jakub@redhat.com>
12132 * testsuite/libgomp.c/pr69805.c: New test.
12134 2016-02-16 Tom de Vries <tom@codesourcery.com>
12137 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
12139 2016-02-09 Tom de Vries <tom@codesourcery.com>
12141 PR tree-optimization/69599
12142 * testsuite/libgomp.c/omp-nested-3.c: New test.
12143 * testsuite/libgomp.c/pr46032-2.c: New test.
12144 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
12145 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
12147 2016-02-09 Tom de Vries <tom@codesourcery.com>
12150 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
12152 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
12154 * testsuite/libgomp.c/target-31.c: Fix testcase.
12156 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
12158 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
12160 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
12161 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
12162 reduction and map clauses.
12163 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
12165 2016-02-02 James Norris <jnorris@codesourcery.com>
12167 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
12169 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
12171 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
12172 * oacc-parallel.c (GOACC_host_data): Remove function definition.
12174 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
12177 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
12179 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
12180 (hsa_kmt_lib): Set variables.
12181 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
12182 always_ld_library_path.
12183 * Makefile.in: Regenerate.
12184 * configure: Likewise.
12185 * testsuite/Makefile.in: Likewise.
12187 * plugin/configfrag.ac (offload_additional_options)
12188 (offload_additional_lib_paths): Don't amend for hsa offloading.
12189 * configure: Regenerate.
12191 * plugin/configfrag.ac: Don't configure for offloading target if
12192 we don't build the corresponding plugin.
12193 * configure: Regenerate.
12195 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
12197 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
12198 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
12200 2016-01-26 Tom de Vries <tom@codesourcery.com>
12202 PR tree-optimization/69110
12203 * testsuite/libgomp.c/pr69110.c: New test.
12205 2016-01-25 Richard Biener <rguenther@suse.de>
12208 * testsuite/libgomp.c++/pr69393.C: New testcase.
12210 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
12212 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
12213 function wasn't mapped to the device with non-shared memory.
12215 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
12217 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
12219 2016-01-19 Martin Jambor <mjambor@suse.cz>
12220 Martin Liska <mliska@suse.cz>
12222 * plugin/Makefrag.am: Add HSA plugin requirements.
12223 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
12224 (HSA_RUNTIME_LIB): Likewise.
12225 (HSA_RUNTIME_CPPFLAGS): Likewise.
12226 (HSA_RUNTIME_INCLUDE): New substitution.
12227 (HSA_RUNTIME_LIB): Likewise.
12228 (HSA_RUNTIME_LDFLAGS): Likewise.
12229 (hsa-runtime): New configure option.
12230 (hsa-runtime-include): Likewise.
12231 (hsa-runtime-lib): Likewise.
12232 (PLUGIN_HSA): New substitution variable.
12233 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
12235 (PLUGIN_HSA_CPPFLAGS): Likewise.
12236 (PLUGIN_HSA_LDFLAGS): Likewise.
12237 (PLUGIN_HSA_LIBS): Likewise.
12238 Check that we have access to HSA run-time.
12239 * libgomp-plugin.h (offload_target_type): New element
12240 OFFLOAD_TARGET_TYPE_HSA.
12241 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
12243 (bool gomp_create_target_task): Updated.
12244 (gomp_device_descr): Extra parameter of run_func and async_run_func,
12245 new field can_run_func.
12246 * libgomp_g.h (GOMP_target_ext): Update prototype.
12247 * oacc-host.c (host_run): Added a new parameter args.
12248 * target.c (calculate_firstprivate_requirements): New function.
12249 (copy_firstprivate_data): Likewise.
12250 (gomp_target_fallback_firstprivate): Use them.
12251 (gomp_target_unshare_firstprivate): New function.
12252 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
12254 (GOMP_target): Do host fallback for all shared memory devices. Do not
12255 pass any args to plugins.
12256 (GOMP_target_ext): Introduce device-specific argument parameter args.
12257 Allow host fallback if device shares memory. Do not remap data if
12258 device has shared memory.
12259 (gomp_target_task_fn): Likewise. Also treat shared memory devices
12260 like host fallback for mappings.
12261 (GOMP_target_data): Treat shared memory devices like host fallback.
12262 (GOMP_target_data_ext): Likewise.
12263 (GOMP_target_update): Likewise.
12264 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
12265 gomp_create_target_task.
12266 (GOMP_target_enter_exit_data): Likewise.
12267 (omp_target_alloc): Treat shared memory devices like host fallback.
12268 (omp_target_free): Likewise.
12269 (omp_target_is_present): Likewise.
12270 (omp_target_memcpy): Likewise.
12271 (omp_target_memcpy_rect): Likewise.
12272 (omp_target_associate_ptr): Likewise.
12273 (gomp_load_plugin_for_device): Also load can_run.
12274 * task.c (GOMP_PLUGIN_target_task_completion): Free
12275 firstprivate_copies.
12276 (gomp_create_target_task): Accept new argument args and store it to
12278 * plugin/plugin-hsa.c: New file.
12280 2016-01-18 Tom de Vries <tom@codesourcery.com>
12282 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
12283 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
12284 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
12285 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
12286 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
12287 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
12288 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
12289 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
12290 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
12291 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
12292 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
12294 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
12296 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
12297 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
12298 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
12299 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
12300 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
12301 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
12302 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
12303 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
12305 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
12307 2016-01-15 Jakub Jelinek <jakub@redhat.com>
12309 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
12311 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
12313 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
12315 2016-01-12 James Norris <jnorris@codesourcery.com>
12317 * libgomp.texi: Updates for OpenACC.
12319 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
12321 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
12323 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
12326 * testsuite/libgomp.fortran/pr66680.f90: New test.
12328 2016-01-07 Jakub Jelinek <jakub@redhat.com>
12330 PR middle-end/68960
12331 * testsuite/libgomp.c/pr68960.c: New test.
12333 2016-01-06 Nathan Sidwell <nathan@acm.org>
12335 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
12336 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
12338 2016-01-04 Jakub Jelinek <jakub@redhat.com>
12340 Update copyright years.
12342 * libgomp.texi: Bump @copying's copyright year.
12344 2015-12-31 Nathan Sidwell <nathan@acm.org>
12346 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
12347 dg-additional-options syntax.
12348 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
12349 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
12350 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
12351 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12352 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
12353 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
12354 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
12355 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
12356 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
12357 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
12358 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12359 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
12360 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
12361 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
12362 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
12363 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
12364 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12365 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12367 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
12369 * libgomp.h (REFCOUNT_LINK): Define.
12370 (struct splay_tree_key_s): Add link_key.
12371 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
12372 Replace target address of the pointer with target address of newly
12373 mapped object in the splay tree. Set link pointer on target to the
12374 device address of the mapped object.
12375 (gomp_unmap_vars): Restore target address of the pointer in the splay
12376 tree for REFCOUNT_LINK objects after unmapping.
12377 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
12378 declare target link" objects.
12379 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
12380 "omp declare target link" objects, which were mapped for the image.
12381 (gomp_exit_data): Restore target address of the pointer in the splay
12382 tree for REFCOUNT_LINK objects after unmapping.
12383 * testsuite/libgomp.c/target-link-1.c: New file.
12385 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
12387 * libgomp.h (gomp_device_state): New enum.
12388 (struct gomp_device_descr): Replace is_initialized with state.
12389 (gomp_fini_device): Remove declaration.
12390 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
12391 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
12392 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
12393 (acc_set_device_type): Use state instead of is_initialized.
12394 (acc_set_device_num): Likewise.
12395 * target.c (resolve_device): Use state instead of is_initialized.
12396 Do not initialize finalized device.
12397 (gomp_map_vars): Do nothing if device is finalized.
12398 (gomp_unmap_vars): Likewise.
12399 (gomp_update): Likewise.
12400 (GOMP_offload_register_ver): Use state instead of is_initialized.
12401 (GOMP_offload_unregister_ver): Likewise.
12402 (gomp_init_device): Likewise.
12403 (gomp_unload_device): Likewise.
12404 (gomp_fini_device): Remove.
12405 (gomp_get_target_fn_addr): Do nothing if device is finalized.
12406 (GOMP_target): Go to host fallback if device is finalized.
12407 (GOMP_target_ext): Likewise.
12408 (gomp_exit_data): Do nothing if device is finalized.
12409 (gomp_target_task_fn): Go to host fallback if device is finalized.
12410 (gomp_target_fini): New static function.
12411 (gomp_target_init): Use state instead of is_initialized.
12412 Call gomp_target_fini at exit.
12414 2015-12-09 Tom de Vries <tom@codesourcery.com>
12416 PR tree-optimization/68716
12417 * testsuite/libgomp.c/omp-nested-2.c: New test.
12419 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
12421 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
12422 target openacc_nvidia_accel_selected.
12423 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
12424 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
12425 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
12426 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
12428 2015-12-01 Julian Brown <julian@codesourcery.com>
12429 James Norris <James_Norris@mentor.com>
12431 * oacc-parallel.c (GOACC_host_data): New function.
12432 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
12433 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
12434 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
12435 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
12436 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
12437 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
12438 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
12440 2015-11-30 James Norris <jnorris@codesourcery.com>
12441 Cesar Philippidis <cesar@codesourcery.com>
12444 * libgomp.oacc-fortran/routine-5.f90: New test.
12445 * libgomp.oacc-fortran/routine-7.f90: New test.
12446 * libgomp.oacc-fortran/routine-9.f90: New test.
12448 2015-11-30 Tom de Vries <tom@codesourcery.com>
12450 PR tree-optimization/46032
12451 * testsuite/libgomp.c/pr46032.c: New test.
12453 2015-11-27 Jakub Jelinek <jakub@redhat.com>
12456 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
12457 (gomp_create_target_task): Call it before freeing
12458 GOMP_TARGET_TASK_DATA tasks.
12461 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
12462 in between case label and OpenMP standalone directives.
12463 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
12465 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
12467 * configure: Regenerate.
12469 2015-11-26 Jakub Jelinek <jakub@redhat.com>
12471 * testsuite/libgomp.c/target-35.c: New test.
12473 2015-11-22 James Norris <jnorris@codesourcery.com>
12474 Cesar Philippidis <cesar@codesourcery.com>
12476 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
12477 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
12478 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
12479 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
12480 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
12482 2015-11-20 Jakub Jelinek <jakub@redhat.com>
12484 PR middle-end/68221
12485 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
12486 * testsuite/libgomp.c/reduction-12.c: Likewise.
12487 * testsuite/libgomp.c++/reduction-11.C: Likewise.
12488 * testsuite/libgomp.c++/reduction-12.C: Likewise.
12490 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
12492 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
12493 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
12494 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
12495 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
12496 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
12498 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
12499 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
12501 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
12503 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
12504 worker & gang cases.
12505 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
12507 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
12509 * config/nvptx/priority_queue.c: New file.
12511 2015-11-14 Jakub Jelinek <jakub@redhat.com>
12513 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
12516 2015-11-14 Jakub Jelinek <jakub@redhat.com>
12517 Aldy Hernandez <aldyh@redhat.com>
12518 Ilya Verbin <ilya.verbin@intel.com>
12520 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
12521 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
12522 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
12523 iterators or IV by chunk size.
12524 * parallel.c (gomp_resolve_num_threads): Don't assume that
12525 if thr->ts.team is non-NULL, then pool must be non-NULL.
12526 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
12527 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
12528 GOMP_PLUGIN_target_task_completion.
12529 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
12530 * Makefile.in: Regenerate.
12531 * libgomp.h: Shuffle prototypes and forward definitions around so
12532 priority queues can be defined.
12533 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
12534 (enum gomp_target_task_state): New enum.
12535 (struct gomp_target_task): Add state, tgt, task and team fields.
12536 (gomp_create_target_task): Change return type to bool, add
12538 (gomp_target_task_fn): Change return type to bool.
12539 (struct gomp_device_descr): Add async_run_func.
12540 (struct gomp_task): Remove children, next_child, prev_child,
12541 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
12543 (struct gomp_taskgroup): Remove children.
12544 Add taskgroup_queue.
12545 (struct gomp_team): Change task_queue type to a priority queue.
12546 (splay_compare): Define inline.
12547 (priority_queue_offset): New.
12548 (priority_node_to_task): New.
12549 (task_to_priority_node): New.
12550 * oacc-mem.c: Do not include splay-tree.h.
12551 * priority_queue.c: New file.
12552 * priority_queue.h: New file.
12553 * splay-tree.c: Do not include splay-tree.h.
12554 (splay_tree_foreach_internal): New.
12555 (splay_tree_foreach): New.
12556 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
12557 (splay_tree_callback): Define typedef.
12558 * target.c (splay_compare): Move to libgomp.h.
12559 (GOMP_target): Don't adjust *thr in any way around running offloaded
12561 (GOMP_target_ext): Likewise. Handle target nowait.
12562 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
12563 return value from gomp_create_target_task, if false, fallthrough
12564 as if no dependencies exist.
12565 (gomp_target_task_fn): Change return type to bool, return true
12566 if the task should have another part scheduled later. Handle
12568 (gomp_load_plugin_for_device): Initialize async_run.
12569 * task.c (gomp_init_task): Initialize children_queue.
12570 (gomp_clear_parent_in_list): New.
12571 (gomp_clear_parent_in_tree): New.
12572 (gomp_clear_parent): Handle priorities.
12573 (GOMP_task): Likewise.
12574 (priority_queue_move_task_first,
12575 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
12577 (gomp_create_target_task): Use priority queues. Change return type
12578 to bool, add state argument, return false if for async
12579 {{enter,exit} data,update} constructs no dependencies need to be
12580 waited for, handle target nowait. Set task->fn to NULL instead of
12581 gomp_target_task_fn.
12582 (verify_children_queue): Remove.
12583 (priority_list_upgrade_task): New.
12584 (priority_queue_upgrade_task): New.
12585 (verify_task_queue): Remove.
12586 (priority_list_downgrade_task): New.
12587 (priority_queue_downgrade_task): New.
12588 (gomp_task_run_pre): Use priority queues.
12589 Abstract code out to priority_queue_downgrade_task.
12590 (gomp_task_run_post_handle_dependers): Use priority queues.
12591 (gomp_task_run_post_remove_parent): Likewise.
12592 (gomp_task_run_post_remove_taskgroup): Likewise.
12593 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
12595 (GOMP_taskwait): Likewise.
12596 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
12597 priority-queue_upgrade_task.
12598 (GOMP_taskgroup_start): Use priority queues.
12599 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
12600 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
12602 * taskloop.c (GOMP_taskloop): Handle priorities.
12603 * team.c (gomp_new_team): Call priority_queue_init.
12604 (free_team): Call priority_queue_free.
12605 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
12606 team created for target nowait in implicit parallel region.
12607 (gomp_team_start): For nested check, test thr->ts.level instead of
12608 thr->ts.team != NULL.
12609 * testsuite/libgomp.c/doacross-3.c: New test.
12610 * testsuite/libgomp.c/ordered-5.c: New test.
12611 * testsuite/libgomp.c/priority.c: New test.
12612 * testsuite/libgomp.c/target-31.c: New test.
12613 * testsuite/libgomp.c/target-32.c: New test.
12614 * testsuite/libgomp.c/target-33.c: New test.
12615 * testsuite/libgomp.c/target-34.c: New test.
12617 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
12619 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
12621 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
12622 loop is sequential.
12624 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
12626 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
12627 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
12629 2015-11-12 James Norris <jnorris@codesourcery.com>
12630 Joseph Myers <joseph@codesourcery.com>
12632 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
12633 * oacc-parallel.c (GOACC_declare): New function.
12634 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
12635 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
12636 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
12637 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
12638 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
12640 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
12642 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
12644 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
12646 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
12647 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
12649 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
12651 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
12652 inadvertent commit.
12654 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
12656 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
12657 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
12658 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
12659 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
12660 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
12662 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
12664 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
12665 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
12667 2015-11-05 Jakub Jelinek <jakub@redhat.com>
12668 Ilya Verbin <ilya.verbin@intel.com>
12670 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
12671 GOMP_loop_nonmonotonic_dynamic_start,
12672 GOMP_loop_nonmonotonic_guided_next,
12673 GOMP_loop_nonmonotonic_guided_start,
12674 GOMP_loop_ull_nonmonotonic_dynamic_next,
12675 GOMP_loop_ull_nonmonotonic_dynamic_start,
12676 GOMP_loop_ull_nonmonotonic_guided_next,
12677 GOMP_loop_ull_nonmonotonic_guided_start,
12678 GOMP_parallel_loop_nonmonotonic_dynamic,
12679 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
12680 (GOMP_target_41): Renamed to ...
12681 (GOMP_target_ext): ... this. Add num_teams and thread_limit
12683 (GOMP_target_data_41): Renamed to ...
12684 (GOMP_target_data_ext): ... this.
12685 (GOMP_target_update_41): Renamed to ...
12686 (GOMP_target_update_ext): ... this.
12687 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
12688 GOMP_target_data_ext and GOMP_target_update_ext instead of
12689 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
12690 Export GOMP_loop_nonmonotonic_dynamic_next,
12691 GOMP_loop_nonmonotonic_dynamic_start,
12692 GOMP_loop_nonmonotonic_guided_next,
12693 GOMP_loop_nonmonotonic_guided_start,
12694 GOMP_loop_ull_nonmonotonic_dynamic_next,
12695 GOMP_loop_ull_nonmonotonic_dynamic_start,
12696 GOMP_loop_ull_nonmonotonic_guided_next,
12697 GOMP_loop_ull_nonmonotonic_guided_start,
12698 GOMP_parallel_loop_nonmonotonic_dynamic and
12699 GOMP_parallel_loop_nonmonotonic_guided.
12700 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
12701 GOMP_parallel_loop_nonmonotonic_guided,
12702 GOMP_loop_nonmonotonic_dynamic_start,
12703 GOMP_loop_nonmonotonic_guided_start,
12704 GOMP_loop_nonmonotonic_dynamic_next,
12705 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
12706 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
12707 GOMP_loop_ull_nonmonotonic_guided_start,
12708 GOMP_loop_ull_nonmonotonic_dynamic_next,
12709 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
12710 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
12712 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
12713 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
12714 Use gomp_map_val function.
12715 (gomp_target_fallback_firstprivate): New static function.
12716 (GOMP_target_41): Renamed to ...
12717 (GOMP_target_ext): ... this. Add num_teams and thread_limit
12718 arguments. Move firstprivate fallback handling into a new
12720 (GOMP_target_data_41): Renamed to ...
12721 (GOMP_target_data_ext): ... this.
12722 (GOMP_target_update_41): Renamed to ...
12723 (GOMP_target_update_ext): ... this.
12724 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
12725 gomp_map_0len_lookup instead of gomp_map_lookup.
12726 (omp_target_is_present): Use gomp_map_0len_lookup instead of
12728 * testsuite/libgomp.c/target-28.c: Likewise.
12729 * testsuite/libgomp.c/monotonic-1.c: New test.
12730 * testsuite/libgomp.c/monotonic-2.c: New test.
12731 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
12732 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
12733 * testsuite/libgomp.c/pr66199-5.c: New test.
12734 * testsuite/libgomp.c/pr66199-6.c: New test.
12735 * testsuite/libgomp.c/pr66199-7.c: New test.
12736 * testsuite/libgomp.c/pr66199-8.c: New test.
12737 * testsuite/libgomp.c/pr66199-9.c: New test.
12738 * testsuite/libgomp.c/reduction-11.c: New test.
12739 * testsuite/libgomp.c/reduction-12.c: New test.
12740 * testsuite/libgomp.c/reduction-13.c: New test.
12741 * testsuite/libgomp.c/reduction-14.c: New test.
12742 * testsuite/libgomp.c/reduction-15.c: New test.
12743 * testsuite/libgomp.c/target-12.c (main): Adjust for
12744 omp_target_is_present change for one-past-last element.
12745 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
12746 the same var is both mapped and privatized.
12747 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
12748 handling of zero-length array sections.
12749 * testsuite/libgomp.c/target-28.c: New test.
12750 * testsuite/libgomp.c/target-29.c: New test.
12751 * testsuite/libgomp.c/target-30.c: New test.
12752 * testsuite/libgomp.c/target-teams-1.c: New test.
12753 * testsuite/libgomp.c++/member-6.C: New test.
12754 * testsuite/libgomp.c++/member-7.C: New test.
12755 * testsuite/libgomp.c++/monotonic-1.C: New test.
12756 * testsuite/libgomp.c++/monotonic-2.C: New test.
12757 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
12758 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
12759 * testsuite/libgomp.c++/pr66199-3.C: New test.
12760 * testsuite/libgomp.c++/pr66199-4.C: New test.
12761 * testsuite/libgomp.c++/pr66199-5.C: New test.
12762 * testsuite/libgomp.c++/pr66199-6.C: New test.
12763 * testsuite/libgomp.c++/pr66199-7.C: New test.
12764 * testsuite/libgomp.c++/pr66199-8.C: New test.
12765 * testsuite/libgomp.c++/pr66199-9.C: New test.
12766 * testsuite/libgomp.c++/reduction-11.C: New test.
12767 * testsuite/libgomp.c++/reduction-12.C: New test.
12768 * testsuite/libgomp.c++/target-13.C: New test.
12769 * testsuite/libgomp.c++/target-14.C: New test.
12770 * testsuite/libgomp.c++/target-15.C: New test.
12771 * testsuite/libgomp.c++/target-16.C: New test.
12772 * testsuite/libgomp.c++/target-17.C: New test.
12773 * testsuite/libgomp.c++/target-18.C: New test.
12774 * testsuite/libgomp.c++/target-19.C: New test.
12776 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
12778 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
12779 and reduction copy.
12780 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
12781 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
12782 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
12783 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
12784 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
12785 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
12786 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
12787 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
12788 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
12789 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
12790 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
12791 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
12792 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
12793 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
12795 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
12797 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
12798 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
12799 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
12800 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
12801 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
12802 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
12803 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
12804 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
12806 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
12808 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
12809 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
12810 (GOMP_OFFLOAD_openacc_parallel): Likewise.
12811 * oacc-host.c (host_openacc_exec): Likewise.
12812 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
12814 2015-11-03 Julian Brown <julian@codesourcery.com>
12815 Thomas Schwinge <thomas@codesourcery.com>
12817 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
12818 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
12819 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
12821 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
12822 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
12824 2015-11-03 James Norris <jnorris@codesourcery.com>
12826 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
12828 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
12830 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
12831 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
12832 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
12833 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
12834 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
12836 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
12838 * openacc.h (enum acc_device_t): Reformat. Ensure layout
12840 (enum acc_async_t): Reformat.
12841 (acc_on_device): Declare compatible with builtin and provide C++
12843 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
12845 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
12846 Cesar Philippidis <cesar@codesourcery.com>
12848 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
12849 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
12850 ... this. Add a description of the test at the top of the file.
12851 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
12852 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
12853 ... this. Add a description of the test at the top of the file.
12855 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
12857 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
12858 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
12859 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
12860 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
12861 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
12862 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
12864 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
12866 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
12869 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
12872 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
12874 2015-10-27 James Norris <jnorris@codesourcery.com>
12876 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
12877 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
12879 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
12881 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
12882 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
12884 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
12885 acc_device_nvidia usage.
12886 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
12887 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
12888 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
12890 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
12891 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
12894 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
12898 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
12899 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
12901 2015-10-23 Tom de Vries <tom@codesourcery.com>
12904 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
12906 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
12908 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
12910 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
12912 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
12913 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
12915 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
12916 to 0 when mapnum is 0.
12918 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
12920 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
12921 Cast to int from int32_t.
12923 2015-10-13 Jakub Jelinek <jakub@redhat.com>
12924 Aldy Hernandez <aldyh@redhat.com>
12925 Ilya Verbin <ilya.verbin@intel.com>
12927 * config/linux/affinity.c (omp_get_place_num_procs,
12928 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
12929 * config/linux/doacross.h: New file.
12930 * config/posix/affinity.c (omp_get_place_num_procs,
12931 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
12932 * config/posix/doacross.h: New file.
12933 * env.c: Include gomp-constants.h.
12934 (struct gomp_task_icv): Rename run_sched_modifier to
12935 run_sched_chunk_size.
12936 (gomp_max_task_priority_var): New variable.
12937 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
12938 (handle_omp_display_env): Change _OPENMP value from 201307 to
12939 201511. Print OMP_MAX_TASK_PRIORITY.
12940 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
12941 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
12942 chunk_size and run_sched_modifier to run_sched_chunk_size.
12943 (omp_get_max_task_priority, omp_get_initial_device,
12944 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
12945 omp_get_partition_place_nums): New functions.
12946 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
12947 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
12949 (omp_get_num_places_, omp_get_place_num_procs_,
12950 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
12951 omp_get_place_proc_ids_8_, omp_get_place_num_,
12952 omp_get_partition_num_places_, omp_get_partition_place_nums_,
12953 omp_get_partition_place_nums_8_, omp_get_initial_device_,
12954 omp_get_max_task_priority_): New functions.
12955 * libgomp_g.h (GOMP_loop_doacross_static_start,
12956 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
12957 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
12958 GOMP_loop_ull_doacross_dynamic_start,
12959 GOMP_loop_ull_doacross_guided_start,
12960 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
12961 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
12962 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
12963 GOMP_target_data_41, GOMP_target_update_41,
12964 GOMP_target_enter_exit_data): New prototypes.
12965 (GOMP_task): Add prototype argument.
12966 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
12967 (struct gomp_doacross_work_share): New type.
12968 (struct gomp_work_share): Add doacross field.
12969 (struct gomp_task_icv): Rename run_sched_modifier to
12970 run_sched_chunk_size.
12971 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
12972 GOMP_TASK_UNDEFERRED. Add comments.
12973 (struct gomp_task_depend_entry): Add comments.
12974 (struct gomp_task): Likewise.
12975 (struct gomp_taskgroup): Likewise.
12976 (struct gomp_target_task): New type.
12977 (struct gomp_team): Add comment.
12978 (gomp_get_place_proc_ids_8, gomp_doacross_init,
12979 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
12980 gomp_create_target_task, gomp_target_task_fn): New prototypes.
12981 (struct target_var_desc): New type.
12982 (struct target_mem_desc): Adjust comment. Use struct
12983 target_var_desc instead of splay_tree_key for list.
12984 (REFCOUNT_INFINITY): Define.
12985 (struct splay_tree_key_s): Remove copy_from field.
12986 (struct gomp_device_descr): Add dev2dev_func field.
12987 (enum gomp_map_vars_kind): New enum.
12988 (gomp_map_vars): Add one argument.
12989 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
12990 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
12991 omp_get_place_num_procs, omp_get_place_num_procs_,
12992 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
12993 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
12994 omp_get_place_num_, omp_get_partition_num_places,
12995 omp_get_partition_num_places_, omp_get_partition_place_nums,
12996 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
12997 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
12998 omp_target_free, omp_target_is_present, omp_target_memcpy,
12999 omp_target_memcpy_rect, omp_target_associate_ptr and
13000 omp_target_disassociate_ptr.
13001 (GOMP_4.0.2): Renamed to ...
13002 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
13003 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
13004 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
13005 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
13006 GOMP_loop_doacross_static_start, GOMP_doacross_post,
13007 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
13008 GOMP_loop_ull_doacross_guided_start,
13009 GOMP_loop_ull_doacross_runtime_start,
13010 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
13011 GOMP_doacross_ull_wait.
13012 * libgomp.texi: Document omp_get_max_task_priority.
13013 Rename modifier argument to chunk_size for omp_set_schedule and
13014 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
13015 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
13016 to run_sched_chunk_size renaming.
13017 (GOMP_loop_ordered_runtime_start): Likewise.
13018 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
13019 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
13020 GOMP_parallel_loop_runtime_start): New functions.
13021 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
13022 to run_sched_chunk_size renaming.
13023 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
13024 GOMP_loop_doacross_guided_start): New functions or aliases.
13025 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
13026 run_sched_modifier to run_sched_chunk_size renaming.
13027 (GOMP_loop_ull_ordered_runtime_start): Likewise.
13028 (gomp_loop_ull_doacross_static_start,
13029 gomp_loop_ull_doacross_dynamic_start,
13030 gomp_loop_ull_doacross_guided_start,
13031 GOMP_loop_ull_doacross_runtime_start): New functions.
13032 (GOMP_loop_ull_doacross_static_start,
13033 GOMP_loop_ull_doacross_dynamic_start,
13034 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
13035 * oacc-mem.c (acc_map_data, present_create_copy,
13036 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
13038 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
13039 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
13040 instead of false to gomp_map_vars.
13041 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
13042 * omp.h.in (omp_lock_hint_t): New type.
13043 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
13044 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
13045 omp_get_place_num, omp_get_partition_num_places,
13046 omp_get_partition_place_nums, omp_get_initial_device,
13047 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
13048 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
13049 omp_target_associate_ptr, omp_target_disassociate_ptr): New
13051 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
13052 (omp_lock_hint_none, omp_lock_hint_uncontended,
13053 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
13054 omp_lock_hint_speculative): New parameters.
13055 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
13056 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
13057 omp_get_place_num, omp_get_partition_num_places,
13058 omp_get_partition_place_nums, omp_get_initial_device,
13059 omp_get_max_task_priority): New interfaces.
13060 (omp_set_schedule, omp_get_schedule): Rename modifier argument
13062 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
13063 (omp_lock_hint_none, omp_lock_hint_uncontended,
13064 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
13065 omp_lock_hint_speculative): New parameters.
13066 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
13067 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
13068 omp_get_place_num, omp_get_partition_num_places,
13069 omp_get_partition_place_nums, omp_get_initial_device,
13070 omp_get_max_task_priority): New functions and subroutines.
13071 * ordered.c: Include stdarg.h and string.h.
13072 (MAX_COLLAPSED_BITS): Define.
13073 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
13074 gomp_doacross_ull_init, GOMP_doacross_ull_post,
13075 GOMP_doacross_ull_wait): New functions.
13076 * target.c: Include errno.h.
13077 (resolve_device): If device is not initialized, call
13078 gomp_init_device on it.
13079 (gomp_map_lookup): New function.
13080 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
13081 Don't bump refcount if REFCOUNT_INFINITY. Handle
13082 GOMP_MAP_ALWAYS_TO_P.
13083 (get_kind): Rename is_openacc argument to short_mapkind.
13084 (gomp_map_pointer): Use gomp_map_lookup.
13085 (gomp_map_fields_existing): New function.
13086 (gomp_map_vars): Rename is_openacc argument to short_mapkind
13087 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
13088 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
13089 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
13090 Adjust for tgt->list changed type and copy_from living in there.
13091 (gomp_copy_from_async): Adjust for tgt->list changed type and
13092 copy_from living in there.
13093 (gomp_unmap_vars): Likewise.
13094 (gomp_update): Likewise. Rename is_openacc argument to
13095 short_mapkind. Don't fail if object is not mapped.
13096 (gomp_load_image_to_device): Initialize refcount to
13098 (gomp_target_fallback): New function.
13099 (gomp_get_target_fn_addr): Likewise.
13100 (GOMP_target): Adjust gomp_map_vars caller, use
13101 gomp_get_target_fn_addr and gomp_target_fallback.
13102 (GOMP_target_41): New function.
13103 (gomp_target_data_fallback): New function.
13104 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
13105 (GOMP_target_data_41): New function.
13106 (GOMP_target_update): Adjust gomp_update caller.
13107 (GOMP_target_update_41): New function.
13108 (gomp_exit_data, GOMP_target_enter_exit_data,
13109 gomp_target_task_fn, omp_target_alloc, omp_target_free,
13110 omp_target_is_present, omp_target_memcpy,
13111 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
13112 omp_target_associate_ptr, omp_target_disassociate_ptr,
13113 gomp_load_plugin_for_device): New functions.
13114 * task.c: Include gomp-constants.h. Include taskloop.c
13115 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
13116 (gomp_task_handle_depend): New function.
13117 (GOMP_task): Use it. Add priority argument. Use
13118 gomp-constant.h constants instead of hardcoded numbers.
13119 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
13120 (gomp_create_target_task): New function.
13121 (verify_children_queue, verify_taskgroup_queue,
13122 verify_task_queue): New functions.
13123 (gomp_task_run_pre): Call verify_*_queue functions.
13124 If an upcoming tied task is about to leave the sibling or
13125 taskgroup queues in an invalid state, adjust appropriately.
13126 Remove taskgroup argument. Add comments.
13127 (gomp_task_run_post_handle_dependers): Add comments.
13128 (gomp_task_run_post_remove_parent): Likewise.
13129 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
13130 (GOMP_taskwait): Likewise. Add comments.
13131 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
13132 problem such that the first non parent_depends_on task does not
13133 end up at the end of the children queue.
13134 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
13135 GOMP_TASK_UNDEFERRED.
13136 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
13137 * taskloop.c: New file.
13138 * testsuite/lib/libgomp.exp
13139 (check_effective_target_offload_device_nonshared_as): New proc.
13140 * testsuite/libgomp.c/affinity-2.c: New test.
13141 * testsuite/libgomp.c/doacross-1.c: New test.
13142 * testsuite/libgomp.c/doacross-2.c: New test.
13143 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
13144 Add map clause to target.
13145 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
13146 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
13147 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
13148 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
13149 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
13151 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
13152 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
13153 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
13154 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
13155 not defined. Use those where needed.
13156 * testsuite/libgomp.c/for-4.c: New test.
13157 * testsuite/libgomp.c/for-5.c: New test.
13158 * testsuite/libgomp.c/for-6.c: New test.
13159 * testsuite/libgomp.c/linear-1.c: New test.
13160 * testsuite/libgomp.c/ordered-4.c: New test.
13161 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
13162 only allowed on the loop iterator.
13163 * testsuite/libgomp.c/pr66199-3.c: New test.
13164 * testsuite/libgomp.c/pr66199-4.c: New test.
13165 * testsuite/libgomp.c/reduction-7.c: New test.
13166 * testsuite/libgomp.c/reduction-8.c: New test.
13167 * testsuite/libgomp.c/reduction-9.c: New test.
13168 * testsuite/libgomp.c/reduction-10.c: New test.
13169 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
13171 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
13172 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
13173 * testsuite/libgomp.c/target-11.c: New test.
13174 * testsuite/libgomp.c/target-12.c: New test.
13175 * testsuite/libgomp.c/target-13.c: New test.
13176 * testsuite/libgomp.c/target-14.c: New test.
13177 * testsuite/libgomp.c/target-15.c: New test.
13178 * testsuite/libgomp.c/target-16.c: New test.
13179 * testsuite/libgomp.c/target-17.c: New test.
13180 * testsuite/libgomp.c/target-18.c: New test.
13181 * testsuite/libgomp.c/target-19.c: New test.
13182 * testsuite/libgomp.c/target-20.c: New test.
13183 * testsuite/libgomp.c/target-21.c: New test.
13184 * testsuite/libgomp.c/target-22.c: New test.
13185 * testsuite/libgomp.c/target-23.c: New test.
13186 * testsuite/libgomp.c/target-24.c: New test.
13187 * testsuite/libgomp.c/target-25.c: New test.
13188 * testsuite/libgomp.c/target-26.c: New test.
13189 * testsuite/libgomp.c/target-27.c: New test.
13190 * testsuite/libgomp.c/taskloop-1.c: New test.
13191 * testsuite/libgomp.c/taskloop-2.c: New test.
13192 * testsuite/libgomp.c/taskloop-3.c: New test.
13193 * testsuite/libgomp.c/taskloop-4.c: New test.
13194 * testsuite/libgomp.c++/ctor-13.C: New test.
13195 * testsuite/libgomp.c++/doacross-1.C: New test.
13196 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
13197 Replace offload_device with offload_device_nonshared_as.
13198 * testsuite/libgomp.c++/for-12.C: New test.
13199 * testsuite/libgomp.c++/for-13.C: New test.
13200 * testsuite/libgomp.c++/for-14.C: New test.
13201 * testsuite/libgomp.c++/linear-1.C: New test.
13202 * testsuite/libgomp.c++/member-1.C: New test.
13203 * testsuite/libgomp.c++/member-2.C: New test.
13204 * testsuite/libgomp.c++/member-3.C: New test.
13205 * testsuite/libgomp.c++/member-4.C: New test.
13206 * testsuite/libgomp.c++/member-5.C: New test.
13207 * testsuite/libgomp.c++/ordered-1.C: New test.
13208 * testsuite/libgomp.c++/reduction-5.C: New test.
13209 * testsuite/libgomp.c++/reduction-6.C: New test.
13210 * testsuite/libgomp.c++/reduction-7.C: New test.
13211 * testsuite/libgomp.c++/reduction-8.C: New test.
13212 * testsuite/libgomp.c++/reduction-9.C: New test.
13213 * testsuite/libgomp.c++/reduction-10.C: New test.
13214 * testsuite/libgomp.c++/reference-1.C: New test.
13215 * testsuite/libgomp.c++/simd14.C: New test.
13216 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
13217 * testsuite/libgomp.c++/target-5.C: New test.
13218 * testsuite/libgomp.c++/target-6.C: New test.
13219 * testsuite/libgomp.c++/target-7.C: New test.
13220 * testsuite/libgomp.c++/target-8.C: New test.
13221 * testsuite/libgomp.c++/target-9.C: New test.
13222 * testsuite/libgomp.c++/target-10.C: New test.
13223 * testsuite/libgomp.c++/target-11.C: New test.
13224 * testsuite/libgomp.c++/target-12.C: New test.
13225 * testsuite/libgomp.c++/taskloop-1.C: New test.
13226 * testsuite/libgomp.c++/taskloop-2.C: New test.
13227 * testsuite/libgomp.c++/taskloop-3.C: New test.
13228 * testsuite/libgomp.c++/taskloop-4.C: New test.
13229 * testsuite/libgomp.c++/taskloop-5.C: New test.
13230 * testsuite/libgomp.c++/taskloop-6.C: New test.
13231 * testsuite/libgomp.c++/taskloop-7.C: New test.
13232 * testsuite/libgomp.c++/taskloop-8.C: New test.
13233 * testsuite/libgomp.c++/taskloop-9.C: New test.
13234 * testsuite/libgomp.fortran/affinity1.f90: New test.
13235 * testsuite/libgomp.fortran/affinity2.f90: New test.
13237 2015-10-13 Tom de Vries <tom@codesourcery.com>
13239 PR tree-optimization/67476
13240 * testsuite/libgomp.c/autopar-3.c: New test.
13241 * testsuite/libgomp.c/autopar-4.c: New test.
13242 * testsuite/libgomp.c/autopar-5.c: New test.
13243 * testsuite/libgomp.c/autopar-6.c: New test.
13244 * testsuite/libgomp.c/autopar-7.c: New test.
13245 * testsuite/libgomp.c/autopar-8.c: New test.
13247 2015-10-12 James Norris <jnorris@codesourcery.com>
13249 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
13252 2015-10-09 David Malcolm <dmalcolm@redhat.com>
13254 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
13255 using load_gcc_lib.
13257 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
13259 * oacc-ptx.h: Remove file, moving its content into...
13260 * config/nvptx/fortran.c: ... here...
13261 * config/nvptx/oacc-init.c: ..., here...
13262 * config/nvptx/oacc-parallel.c: ..., and here.
13263 * config/nvptx/openacc.f90: New file.
13264 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
13265 (link_ptx): Don't link in predefined bits of PTX code.
13267 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
13268 Bernd Schmidt <bernds@codesourcery.com>
13270 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
13271 (struct targ_ptx_obj): New.
13272 (nvptx_tdata): Move earlier, change data format.
13273 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
13275 (GOMP_OFFLOAD_load_image): Adjust.
13277 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
13279 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
13280 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
13281 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
13282 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
13283 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
13284 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
13285 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
13286 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
13287 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
13288 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
13289 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
13290 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
13291 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
13292 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
13293 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
13294 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
13295 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
13296 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
13297 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
13298 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
13299 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
13300 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
13301 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
13302 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
13303 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
13304 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
13305 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
13306 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
13307 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
13308 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
13309 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
13310 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
13311 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
13312 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
13313 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
13314 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
13315 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
13316 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
13317 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
13318 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
13319 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
13320 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
13321 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
13322 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
13323 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
13324 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
13325 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
13326 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
13327 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
13328 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
13329 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
13330 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
13331 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
13332 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
13333 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
13334 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
13335 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
13336 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
13337 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
13338 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
13339 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
13340 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
13341 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
13343 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
13345 * oacc-init.c (acc_on_device): Force optimization level.
13347 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
13349 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
13350 (cuda_errlist): Delete.
13351 (cuda_error): Reimplement.
13353 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
13355 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
13357 * libgomp.map (GOACC_parallel_keyed): New.
13358 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
13360 (GOACC_parallel_keyed): New interface. Lose geometry arguments
13361 and take keyed varargs list. Adjust call to exec_func.
13362 (GOACC_parallel): Force host fallback.
13363 * libgomp_g.h (GOACC_parallel): Remove.
13364 (GOACC_parallel_keyed): Declare.
13365 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
13366 (struct targ_gn_descriptor): Replace name field with launch field.
13367 (nvptx_exec): Lose separate geometry args, take array. Process
13368 dynamic dimensions and adjust.
13369 (struct nvptx_tdata): Replace fn_names field with fn_descs.
13370 (GOMP_OFFLOAD_load_image): Adjust for change in function table
13372 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
13374 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
13377 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
13380 * oacc-int.h (goacc_host_init): Add declaration.
13381 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
13382 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
13384 2015-09-08 Aditya Kumar <hiraditya@msn.com>
13385 Sebastian Pop <s.pop@samsung.com>
13387 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
13389 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
13390 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
13391 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
13392 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
13393 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
13395 2015-09-03 Jakub Jelinek <jakub@redhat.com>
13397 * configure.tgt: Add missing ;; in between nvptx and rtems
13400 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
13402 * config/posix/pool.h (gomp_adjust_thread_attr): New.
13403 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
13404 (gomp_thread_pool_reservoir): Add priority member.
13405 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
13407 (parse_thread_pools): Likewise.
13408 * team.c (gomp_team_start): Call configuration provided
13409 gomp_adjust_thread_attr(). Destroy thread attributes if
13411 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
13413 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
13415 * config/posix/pool.h: New.
13416 * config/rtems/pool.h: Likewise.
13417 * config/rtems/proc.c: Likewise.
13418 * libgomp.h (gomp_thread_destructor): Declare.
13419 * team.c: Include configuration provided "pool.h".
13420 (gomp_get_thread_pool): Define in configuration.
13421 (gomp_team_end): Call configuration defined
13422 gomp_release_thread_pool().
13424 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
13426 * config/rtems/bar.c: New.
13427 * config/rtems/bar.h: Likewise.
13428 * config/rtems/mutex.c: Likewise.
13429 * config/rtems/mutex.h: Likewise.
13430 * config/rtems/sem.c: Likewise.
13431 * config/rtems/sem.h: Likewise.
13432 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
13433 <sys/lock.h> header file.
13434 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
13435 supported by Newlib.
13436 * configure: Regenerate.
13438 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
13440 * team.c (gomp_new_thread_pool): Delete and move content to ...
13441 (gomp_get_thread_pool): ... new function. Allocate and
13442 initialize thread pool on demand.
13443 (get_last_team): Use gomp_get_thread_pool().
13444 (gomp_team_start): Delete thread pool initialization.
13446 2015-09-03 Tom de Vries <tom@codesourcery.com>
13448 PR tree-optimization/65637
13449 * testsuite/libgomp.c/autopar-2.c: New test.
13451 2015-08-29 Tom de Vries <tom@codesourcery.com>
13453 PR tree-optimization/46193
13454 * testsuite/libgomp.c/pr46193.c: New test.
13456 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
13459 * libgomp.map: Add 4.0.2 version.
13460 * target.c (offload_image_descr): Add version field.
13461 (gomp_load_image_to_device): Add version argument. Adjust plugin
13462 call. Improve load mismatch diagnostic.
13463 (gomp_unload_image_from_device): Add version argument. Adjust plugin
13465 (GOMP_offload_regster): Make stub function, move bulk to ...
13466 (GOMP_offload_register_ver): ... here. Process version argument.
13467 (GOMP_offload_unregister): Make stub function, move bulk to ...
13468 (GOMP_offload_unregister_ver): ... here. Process version argument.
13469 (gomp_init_device): Process version field.
13470 (gomp_unload_device): Process version field.
13471 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
13472 macros. Check plugin version.
13473 * libgomp.h (gomp_device_descr): Add version function field. Adjust
13474 loader and unloader types.
13475 * oacc-host.c: Include gomp-constants.h.
13476 (host_version): New.
13477 (host_load_image, host_unload_image): Adjust.
13478 (host_dispatch): Add host_version.
13479 * plugin/plugin-nvptx.c: Include gomp-constants.h.
13480 (GOMP_OFFLOAD_version): New.
13481 (GOMP_OFFLOAD_load_image): Add version arg and check it.
13482 (GOMP_OFFLOAD_unload_image): Likewise.
13483 * plugin/plugin-host.c: Include gomp-constants.h.
13484 (GOMP_OFFLOAD_version): New.
13485 (GOMP_OFFLOAD_load_image): Add version arg.
13486 (GOMP_OFFLOAD_unload_image): Likewise.
13488 2015-08-24 Tom de Vries <tom@codesourcery.com>
13490 PR tree-optimization/65468
13491 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
13493 2015-08-24 Tom de Vries <tom@codesourcery.com>
13495 PR tree-optimization/65468
13496 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
13498 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
13502 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
13503 (gomp_iter_guided_next): Idem.
13504 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
13505 (gomp_iter_ull_guided_next): Idem.
13506 * config/linux/wait.h (do_spin): Idem.
13508 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
13510 * libgomp-plugin.h (enum offload_target_type): Remove
13511 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
13512 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
13513 * openacc.h (enum acc_device_t): Likewise.
13514 * openacc_lib.h: Likewise.
13515 * oacc-init.c (name_of_acc_device_t): Don't handle it.
13516 (acc_on_device): Just use __builtin_acc_on_device.
13517 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
13518 of acc_on_device builtin.
13519 * plugin/plugin-host.h: Remove file.
13520 * plugin/plugin-host.c: Likewise, but salvage some content into...
13521 * oacc-host.c: ... this file.
13522 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
13523 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
13524 * Makefile.in: Regenerate.
13525 * configure: Likewise.
13526 * testsuite/lib/libgomp.exp
13527 (check_effective_target_openacc_host_nonshm_selected): Remove.
13528 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
13529 ACC_DEVICE_TYPE=host_nonshm.
13530 * testsuite/libgomp.oacc-c/c.exp: Likewise.
13531 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
13532 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
13533 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
13534 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
13535 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
13537 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
13538 Jakub Jelinek <jakub@redhat.com>
13540 * config/nvptx/affinity.c: New file.
13541 * config/nvptx/alloc.c: Likewise.
13542 * config/nvptx/bar.c: Likewise.
13543 * config/nvptx/barrier.c: Likewise.
13544 * config/nvptx/critical.c: Likewise.
13545 * config/nvptx/env.c: Likewise.
13546 * config/nvptx/error.c: Likewise.
13547 * config/nvptx/fortran.c: Likewise.
13548 * config/nvptx/iter.c: Likewise.
13549 * config/nvptx/iter_ull.c: Likewise.
13550 * config/nvptx/libgomp-plugin.c: Likewise.
13551 * config/nvptx/lock.c: Likewise.
13552 * config/nvptx/loop.c: Likewise.
13553 * config/nvptx/loop_ull.c: Likewise.
13554 * config/nvptx/mutex.c: Likewise.
13555 * config/nvptx/oacc-async.c: Likewise.
13556 * config/nvptx/oacc-cuda.c: Likewise.
13557 * config/nvptx/oacc-host.c: Likewise.
13558 * config/nvptx/oacc-init.c: Likewise.
13559 * config/nvptx/oacc-mem.c: Likewise.
13560 * config/nvptx/oacc-parallel.c: Likewise.
13561 * config/nvptx/oacc-plugin.c: Likewise.
13562 * config/nvptx/omp-lock.h: Likewise.
13563 * config/nvptx/ordered.c: Likewise.
13564 * config/nvptx/parallel.c: Likewise.
13565 * config/nvptx/proc.c: Likewise.
13566 * config/nvptx/ptrlock.c: Likewise.
13567 * config/nvptx/sections.c: Likewise.
13568 * config/nvptx/sem.c: Likewise.
13569 * config/nvptx/single.c: Likewise.
13570 * config/nvptx/splay-tree.c: Likewise.
13571 * config/nvptx/target.c: Likewise.
13572 * config/nvptx/task.c: Likewise.
13573 * config/nvptx/team.c: Likewise.
13574 * config/nvptx/time.c: Likewise.
13575 * config/nvptx/work.c: Likewise.
13576 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
13577 * configure: Regenerate.
13578 * configure.tgt (config_path): Set to "nvptx" for target
13581 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
13583 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
13585 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
13587 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
13588 (cuda_errlist): Constify.
13589 (errmsg): Move into ...
13590 (cuda_error): ... here. Make smaller.
13591 (_XSTR, _STR): Delete.
13592 (cuda_synames): Delete.
13593 (verify_device_library): Delete.
13594 (nvptx_init): Don't call it.
13596 2015-07-28 Tom de Vries <tom@codesourcery.com>
13598 * testsuite/libgomp.c/uns-outer-4.c: New test.
13600 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
13602 * testsuite/libgomp.c/pr66714.c: New test.
13604 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
13607 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
13608 (fib_ref): New function.
13609 (fib): Correct corner cases in the recursion.
13610 (main): Replace the non-simd loop with fib_ref call.
13611 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
13613 (fibonacci): Lower the parameter N to 30. Correct accordingly check
13614 for the last array element value. Replace the non-simd loop with
13615 fib_ref call. Remove redundant b_ref array. Remove the comparison
13616 of the last array element with according Fibonacci sequence element.
13617 (fib): Correct corner cases in the recursion.
13619 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
13621 * target.c (gomp_offload_image_to_device): Rename to ...
13622 (gomp_load_image_to_device): ... here.
13623 (GOMP_offload_register): Adjust call.
13624 (gomp_init_device): Likewise.
13625 (gomp_unload_image_from_device): New. Broken out of ...
13626 (GOMP_offload_unregister): ... here. Call it.
13627 (gomp_unload_device): New.
13628 * libgomp.h (gomp_unload_device): Declare.
13629 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
13632 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
13634 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
13636 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
13638 (goacc_waits): Move !num_waits handling to ...
13639 (GOACC_wait): ... here, the only caller that might have zero waits.
13641 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
13642 (struct ptx_image_data): Move earlier, add fns field.
13643 (struct ptx_device): Add images and image_lock fields.
13644 (ptx_images, ptx_image_lock): Delete.
13645 (nvptx_open_device): Initialize images and image_lock fields.
13646 (nvptx_close_device): Destroy image_lock.
13647 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
13648 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
13651 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
13653 * target.c (GOMP_offload_register): Use int for device type arg.
13654 (GOMP_offload_unregister): Likewise.
13656 * target.c (struct_offload_image_descr): Constify host_table.
13657 (gomp_offload_image_to_device): Likewise.
13658 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
13660 * libgomp.h (gomp_device_descr): Constify target data arguments.
13661 * target.c (struct offload_image_descr): Constify target_data.
13662 (gomp_offload_image_to_device): Likewise.
13663 (GOMP_offload_register): Likewise.
13664 (GOMP_offload_unregister): Likewise.
13665 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
13666 GOMP_OFFLOAD_unload_image): Constify target data.
13667 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
13668 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
13670 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
13672 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
13673 Workaround driver library const error.
13674 (struct nvptx_tdata, nvptx_tdata_t): New.
13675 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
13678 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
13680 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
13681 of EPS parameter from integer to real.
13682 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
13683 type of EPS parameter from integer to real.
13685 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
13687 * team.c (get_last_team): New.
13688 (gomp_new_team): Recycle last non-nested team if possible.
13689 (gomp_team_end): Move team work share list free lock destruction
13691 (free_team): ... here.
13693 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
13695 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
13696 and ref from int to double. Replaced their comparison with
13697 an inequality of their difference and EPS.
13698 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
13699 comparison of pri and a reference number with an inequality of their
13700 difference and EPS.
13701 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
13702 the comparison of sum and sum_ref with an inequality of their
13703 difference and EPS.
13704 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
13705 the comparison of pri and a reference number with an inequality of
13706 their difference and EPS.
13708 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
13710 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
13711 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
13712 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
13713 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
13714 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
13715 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
13716 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
13717 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
13718 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
13719 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
13720 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
13721 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
13722 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
13724 (vec_mult): Likewise. Add #pragma omp taskwait.
13725 (main): Adjust caller.
13726 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
13727 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
13728 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
13729 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
13730 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
13731 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
13732 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
13733 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
13734 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
13735 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
13736 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
13737 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
13738 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
13739 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
13740 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
13741 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
13742 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
13743 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
13744 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
13745 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
13746 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
13747 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
13748 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
13749 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
13750 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
13751 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
13752 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
13753 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
13754 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
13755 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
13756 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
13757 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
13758 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
13759 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
13760 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
13761 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
13762 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
13763 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
13764 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
13765 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
13766 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
13767 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
13768 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
13769 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
13770 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
13771 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
13772 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
13773 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
13774 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
13775 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
13776 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
13777 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
13778 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
13779 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
13780 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
13781 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
13782 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
13783 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
13784 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
13785 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
13786 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
13787 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
13788 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
13789 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
13790 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
13791 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
13792 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
13793 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
13794 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
13795 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
13796 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
13797 (vec_mult): Add !$omp taskwait.
13798 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
13799 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
13800 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
13801 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
13802 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
13803 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
13804 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
13805 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
13806 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
13807 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
13808 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
13809 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
13810 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
13811 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
13812 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
13813 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
13814 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
13815 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
13816 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
13817 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
13818 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
13819 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
13820 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
13821 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
13822 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
13823 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
13824 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
13825 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
13826 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
13827 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
13828 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
13829 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
13830 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
13831 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
13832 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
13833 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
13834 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
13835 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
13836 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
13837 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
13838 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
13839 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
13840 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
13841 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
13842 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
13843 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
13844 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
13845 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
13846 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
13847 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
13848 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
13849 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
13850 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
13851 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
13852 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
13853 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
13854 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
13855 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
13856 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
13857 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
13858 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
13859 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
13860 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
13861 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
13862 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
13863 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
13864 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
13866 2015-07-10 Tom de Vries <tom@codesourcery.com>
13868 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
13869 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
13871 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
13874 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
13875 in a 64-bit configuration.
13876 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
13877 offloading testing if no such device is available.
13878 * testsuite/libgomp.oacc-c/c.exp: Likewise.
13879 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
13881 2015-07-08 Tom de Vries <tom@codesourcery.com>
13883 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
13885 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
13887 2015-07-07 Tom de Vries <tom@codesourcery.com>
13889 PR tree-optimization/66642
13890 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
13891 iteration count case.
13892 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
13893 function, factor out of ...
13894 (main): ... here. Test low iteration count case.
13896 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
13898 * libgomp.h (gomp_thread_pool): Comment last_team field.
13900 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
13902 * testsuite/libgomp.c++/pr66702-1.C: Require
13903 vect_simd_clones effective target.
13904 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
13906 2015-06-30 Tom de Vries <tom@codesourcery.com>
13908 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
13909 already set. Use DEFAULT_CFLAGS in dg-runtest.
13910 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
13913 2015-06-30 Tom de Vries <tom@codesourcery.com>
13915 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
13916 already set. Use DEFAULT_CFLAGS in dg-runtest.
13917 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
13918 * testsuite/libgomp.c++/pr64824.C: Same.
13919 * testsuite/libgomp.c++/pr64868.C: Same.
13920 * testsuite/libgomp.c++/pr66199-1.C: Same.
13921 * testsuite/libgomp.c++/pr66199-2.C: Same.
13922 * testsuite/libgomp.c++/target-2.C: Same.
13923 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
13924 -std=<standard> option.
13925 * testsuite/libgomp.c++/udr-11.C: Same.
13926 * testsuite/libgomp.c++/udr-12.C: Same.
13927 * testsuite/libgomp.c++/udr-13.C: Same.
13928 * testsuite/libgomp.c++/udr-14.C: Same.
13929 * testsuite/libgomp.c++/udr-15.C: Same.
13930 * testsuite/libgomp.c++/udr-16.C: Same.
13931 * testsuite/libgomp.c++/udr-17.C: Same.
13932 * testsuite/libgomp.c++/udr-18.C: Same.
13933 * testsuite/libgomp.c++/udr-19.C: Same.
13934 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
13935 * testsuite/libgomp.c++/simd-1.C: Same.
13936 * testsuite/libgomp.c++/simd-2.C: Same.
13937 * testsuite/libgomp.c++/simd-3.C: Same.
13938 * testsuite/libgomp.c++/simd-4.C: Same.
13939 * testsuite/libgomp.c++/simd-5.C: Same.
13940 * testsuite/libgomp.c++/simd-6.C: Same.
13941 * testsuite/libgomp.c++/simd-7.C: Same.
13942 * testsuite/libgomp.c++/simd-8.C: Same.
13943 * testsuite/libgomp.c++/simd-9.C: Same.
13944 * testsuite/libgomp.c++/simd10.C: Same.
13945 * testsuite/libgomp.c++/simd11.C: Same.
13946 * testsuite/libgomp.c++/simd12.C: Same.
13947 * testsuite/libgomp.c++/simd13.C: Same.
13949 2015-06-30 Jakub Jelinek <jakub@redhat.com>
13951 PR middle-end/66702
13952 * testsuite/libgomp.c++/pr66702-1.C: New test.
13953 * testsuite/libgomp.c++/pr66702-2.C: New test.
13955 2015-06-30 Tom de Vries <tom@codesourcery.com>
13957 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
13958 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
13959 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
13960 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
13962 2015-06-30 Tom de Vries <tom@codesourcery.com>
13964 PR tree-optimization/66652
13965 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
13966 using restrict pointers.
13967 (main): Add arguments to calls to f.
13968 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
13970 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
13972 * configure.ac: Fix check for header <sys/sysctl.h>.
13973 * configure: Regenerate.
13974 * config.h.in: Likewise.
13976 2015-06-23 Tom de Vries <tom@codesourcery.com>
13978 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
13980 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
13982 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
13984 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
13988 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
13989 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
13991 2015-06-15 Tom de Vries <tom@codesourcery.com>
13993 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
13994 dg-additional-options for any remaining options.
13995 * testsuite/libgomp.c/atomic-2.c: Same.
13996 * testsuite/libgomp.c/atomic-4.c: Same.
13997 * testsuite/libgomp.c/atomic-5.c: Same.
13998 * testsuite/libgomp.c/atomic-6.c: Same.
13999 * testsuite/libgomp.c/autopar-1.c: Same.
14000 * testsuite/libgomp.c/copyin-1.c: Same.
14001 * testsuite/libgomp.c/copyin-2.c: Same.
14002 * testsuite/libgomp.c/copyin-3.c: Same.
14003 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
14004 * testsuite/libgomp.c/nestedfn-5.c: Same.
14005 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
14006 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
14007 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
14008 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14009 * testsuite/libgomp.c/pr32362-1.c: Same.
14010 * testsuite/libgomp.c/pr32362-2.c: Same.
14011 * testsuite/libgomp.c/pr32362-3.c: Same.
14012 * testsuite/libgomp.c/pr39591-1.c: Same.
14013 * testsuite/libgomp.c/pr39591-2.c: Same.
14014 * testsuite/libgomp.c/pr39591-3.c: Same.
14015 * testsuite/libgomp.c/pr58392.c: Same.
14016 * testsuite/libgomp.c/pr58756.c: Same.
14017 * testsuite/libgomp.c/simd-1.c: Same.
14018 * testsuite/libgomp.c/simd-10.c: Same.
14019 * testsuite/libgomp.c/simd-11.c: Same.
14020 * testsuite/libgomp.c/simd-12.c: Same.
14021 * testsuite/libgomp.c/simd-13.c: Same.
14022 * testsuite/libgomp.c/simd-14.c: Same.
14023 * testsuite/libgomp.c/simd-15.c: Same.
14024 * testsuite/libgomp.c/simd-2.c: Same.
14025 * testsuite/libgomp.c/simd-3.c: Same.
14026 * testsuite/libgomp.c/simd-4.c: Same.
14027 * testsuite/libgomp.c/simd-5.c: Same.
14028 * testsuite/libgomp.c/simd-6.c: Same.
14029 * testsuite/libgomp.c/simd-7.c: Same.
14030 * testsuite/libgomp.c/simd-8.c: Same.
14031 * testsuite/libgomp.c/simd-9.c: Same.
14033 2015-06-15 Tom de Vries <tom@codesourcery.com>
14035 * testsuite/libgomp.c/pr35625.c: Fix typo.
14037 2015-06-15 Tom de Vries <tom@codesourcery.com>
14039 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
14041 * testsuite/libgomp.c/atomic-3.c: Same.
14042 * testsuite/libgomp.c/debug-1.c: Same.
14043 * testsuite/libgomp.c/nqueens-1.c: Same.
14044 * testsuite/libgomp.c/pr26171.c: Same.
14045 * testsuite/libgomp.c/pr48591.c: Same.
14046 * testsuite/libgomp.c/pr64824.c: Same.
14047 * testsuite/libgomp.c/pr64868.c: Same.
14048 * testsuite/libgomp.c/pr66133.c: Same.
14049 * testsuite/libgomp.c/pr66199-1.c: Same.
14050 * testsuite/libgomp.c/pr66199-2.c: Same.
14051 * testsuite/libgomp.c/target-8.c: Same.
14053 2015-06-15 Tom de Vries <tom@codesourcery.com>
14055 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
14057 * testsuite/libgomp.c/for-1.c: Same.
14058 * testsuite/libgomp.c/for-2.c: Same.
14059 * testsuite/libgomp.c/for-3.c: Same.
14060 * testsuite/libgomp.c/pr35625.c: Same.
14061 * testsuite/libgomp.c/pr39154.c: Same.
14062 * testsuite/libgomp.c/simd-16.c: Same.
14063 * testsuite/libgomp.c/simd-17.c: Same.
14065 2015-06-13 Tom de Vries <tom@codesourcery.com>
14067 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
14069 2015-06-13 Tom de Vries <tom@codesourcery.com>
14071 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
14072 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14073 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
14075 (main): Use N instead of hardcoded constants.
14077 2015-06-05 Tom de Vries <tom@codesourcery.com>
14079 merge from gomp4 branch:
14080 2015-05-28 Tom de Vries <tom@codesourcery.com>
14082 PR tree-optimization/65443
14083 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
14084 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
14085 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
14087 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14089 * testsuite/libgomp.graphite/bounds.c: Adjust for
14090 cleanup-tree-dump removal.
14091 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
14092 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
14093 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
14094 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
14095 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
14096 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
14097 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
14098 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
14099 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
14100 * testsuite/libgomp.graphite/pr41118.c: Likewise.
14102 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
14104 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
14105 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
14106 (futex_wake) [!__x86_64__]: Ditto.
14108 2015-05-28 Julian Brown <julian@codesourcery.com>
14110 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
14111 function comment. Only call gomp_fatal if new argument is true.
14112 (acc_dev_num_out_of_range): New function.
14113 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
14114 acc_dev_num_out_of_range as appropriate.
14115 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
14116 (acc_get_device_num, acc_set_device_num): Update calls to
14118 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
14121 2015-05-28 Julian Brown <julian@codesourcery.com>
14124 * oacc-init.c (plugin/plugin-host.h): Include.
14125 (acc_on_device): Check whether we're in an offloaded region for
14127 plugin. Don't use __builtin_acc_on_device.
14128 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
14129 nonshm_exec flag in thread-local data.
14130 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
14131 data for host_nonshm plugin.
14132 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
14133 for host_nonshm plugin.
14134 * plugin/plugin-host.h: New.
14136 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
14138 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
14140 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
14142 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
14144 (FUTEX_PRIVATE_FLAG): Remove L suffix.
14145 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
14148 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
14150 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
14152 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
14154 * target.c (gomp_map_pointer): New function abstracting out
14155 GOMP_MAP_POINTER handling.
14156 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
14157 gomp_map_pointer().
14159 2015-05-19 Jakub Jelinek <jakub@redhat.com>
14161 PR middle-end/66199
14162 * testsuite/libgomp.c/pr66199-1.c: New test.
14163 * testsuite/libgomp.c/pr66199-2.c: New test.
14164 * testsuite/libgomp.c++/pr66199-1.C: New test.
14165 * testsuite/libgomp.c++/pr66199-2.C: New test.
14166 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
14167 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
14169 2015-05-19 Julian Brown <julian@codesourcery.com>
14171 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
14174 2015-05-13 Jakub Jelinek <jakub@redhat.com>
14176 PR middle-end/66133
14177 * testsuite/libgomp.c/pr66133.c: New test.
14179 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
14181 * Makefile.in: Regenerated with automake-1.11.6.
14182 * aclocal.m4: Likewise.
14183 * config.h.in: Likewise.
14184 * configure: Likewise.
14185 * testsuite/Makefile.in: Likewise.
14187 2015-05-08 Jason Merrill <jason@redhat.com>
14189 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
14192 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
14194 2015-05-06 Julian Brown <julian@codesourcery.com>
14196 * oacc-init.c (acc_device_lock): Add explanatory comment.
14197 (resolve_device): Add comment about locking requirement.
14198 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
14199 gomp_init_device and gomp_fini_device calls.
14200 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
14201 (acc_get_device_num, acc_set_device_num): Add locking around
14202 resolve_device and gomp_init_device calls.
14204 2015-05-06 Julian Brown <julian@codesourcery.com>
14206 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
14207 goacc_thread_lock on error paths.
14208 * oacc-mem.c (lookup_host): Remove locking from function. Note
14209 locking requirement for caller in function comment.
14210 (lookup_dev): Likewise.
14211 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
14212 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
14213 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
14216 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
14220 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
14221 don't expect "0x" prefix for "%p" format specifier, don't expect
14222 "(nil)" for NULL pointer.
14223 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14224 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14225 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14226 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14227 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14228 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14229 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14230 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14231 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14232 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14233 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14234 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14235 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14236 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14237 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14238 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14239 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14240 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14241 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14242 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14243 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14244 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14245 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14246 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14247 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14248 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14249 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14250 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14251 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
14252 accurately specify what we're looking for.
14253 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14254 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14255 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
14256 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
14257 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
14259 2015-04-30 James Norris <jnorris@codesourcery.com>
14262 * testsuite/lib/libgomp.exp
14263 (check_effective_target_openacc_host_selected)
14264 (check_effective_target_openacc_host_nonshm_selected): New
14266 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
14268 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14269 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14270 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14271 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14272 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14273 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14274 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14275 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14276 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14277 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14278 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14279 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14280 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14281 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14282 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14283 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
14284 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14285 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14286 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14287 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14288 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14289 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
14290 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14291 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14292 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14293 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14294 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14295 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14296 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14297 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14298 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14299 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14300 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14301 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
14302 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
14303 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
14304 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
14305 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
14306 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
14307 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
14308 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
14309 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
14310 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
14312 2015-04-08 Julian Brown <julian@codesourcery.com>
14314 * libgomp.h (target_mem_desc: Remove mem_map field.
14315 (acc_dispatch_t): Remove open_device_func, close_device_func,
14316 get_device_num_func, set_device_num_func, target_data members.
14317 Change create_thread_data_func argument to device number instead of
14319 * oacc-async.c (assert.h): Include.
14320 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
14321 (acc_wait_all, acc_wait_all_async): Use current host thread's
14322 active device, not base_dev.
14323 * oacc-cuda.c (acc_get_current_cuda_device)
14324 (acc_get_current_cuda_context, acc_get_cuda_stream)
14325 (acc_set_cuda_stream): Likewise.
14326 * oacc-host.c (host_dispatch): Don't set open_device_func,
14327 close_device_func, get_device_num_func or set_device_num_func.
14328 * oacc-init.c (base_dev, init_key): Remove.
14329 (cached_base_dev): New.
14330 (name_of_acc_device_t): New.
14331 (acc_init_1): Initialise default-numbered device, not zeroth.
14332 (acc_shutdown_1): Close all devices of a given type.
14333 (goacc_destroy_thread): Don't use base_dev.
14334 (lazy_open, lazy_init, lazy_init_and_open): Remove.
14335 (goacc_attach_host_thread_to_device): New.
14336 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
14337 (acc_get_num_devices): Don't use base_dev.
14338 (acc_set_device_type): Reimplement.
14339 (acc_get_device_type): Don't use base_dev.
14340 (acc_get_device_num): Tweak logic.
14341 (acc_set_device_num): Likewise.
14342 (acc_on_device): Use acc_get_device_type.
14343 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
14344 (goacc_lazy_initialize): Reimplement with acc_init and
14345 goacc_attach_host_thread_to_device.
14346 * oacc-int.h (goacc_thread): Add base_dev field.
14347 (base_dev): Remove extern declaration.
14348 (goacc_attach_host_thread_to_device): Add prototype.
14349 * oacc-mem.c (acc_malloc): Use current thread's device instead of
14351 (acc_free): Likewise.
14352 (acc_memcpy_to_device): Likewise.
14353 (acc_memcpy_from_device): Likewise.
14354 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
14355 goacc_lazy_initialize (throughout).
14356 (GOACC_parallel): Use tgt_offset to locate target functions.
14357 * target.c (gomp_map_vars): Don't set tgt->mem_map.
14358 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
14359 (gomp_load_plugin_for_device): Remove open_device, close_device,
14360 get_device_num, set_device_num openacc hook initialisation. Don't set
14361 openacc.target_data.
14362 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
14363 (GOMP_OFFLOAD_openacc_close_device)
14364 (GOMP_OFFLOAD_openacc_get_device_num)
14365 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
14366 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
14368 * plugin/plugin-nvptx.c (ptx_inited): Remove.
14369 (instantiated_devices, ptx_dev_lock): New.
14370 (struct ptx_image_data): New.
14371 (ptx_devices, ptx_images, ptx_image_lock): New.
14372 (fini_streams_for_device): Reorder cuStreamDestroy call.
14373 (nvptx_get_num_devices): Remove forward declaration.
14374 (nvptx_init): Change return type to bool.
14375 (nvptx_fini): Remove.
14376 (nvptx_attach_host_thread_to_device): New.
14377 (nvptx_open_device): Return struct ptx_device* instead of void*.
14378 (nvptx_close_device): Change argument type to struct ptx_device*,
14379 return type to void.
14380 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
14381 (kernel_target_data, kernel_host_table): Remove static globals.
14382 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
14383 (GOMP_OFFLOAD_init_device): Reimplement.
14384 (GOMP_OFFLOAD_fini_device): Likewise.
14385 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
14386 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
14387 (GOMP_OFFLOAD_host2dev): Use ORD argument.
14388 (GOMP_OFFLOAD_openacc_open_device)
14389 (GOMP_OFFLOAD_openacc_close_device)
14390 (GOMP_OFFLOAD_openacc_set_device_num)
14391 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
14392 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
14396 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
14398 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
14400 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
14401 * libgomp.h (struct gomp_memory_mapping): Remove.
14402 (struct target_mem_desc): Change type of mem_map from
14403 gomp_memory_mapping * to splay_tree_s *.
14404 (struct gomp_device_descr): Remove register_image_func, get_table_func.
14405 Add load_image_func, unload_image_func.
14406 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
14407 Remove offload_regions_registered.
14408 (gomp_init_tables): Remove.
14409 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
14411 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
14412 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
14413 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
14414 offload_regions_registered.
14415 Initialize load_image_func, unload_image_func, mem_map.root.
14416 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
14417 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
14418 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
14419 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
14420 gomp_memory_mapping *. Use dev's lock and splay_tree.
14421 (lookup_dev): Use dev's lock.
14422 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
14423 (acc_is_present): Likewise.
14424 (acc_map_data): Likewise.
14425 (acc_unmap_data): Likewise. Use dev's lock.
14426 (present_create_copy): Likewise.
14427 (delete_copyout): Pass dev to lookup_host instead of mem_map.
14428 (update_dev_host): Likewise.
14429 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
14430 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
14431 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
14432 (GOMP_OFFLOAD_get_table): Remove
14433 (GOMP_OFFLOAD_load_image): New function.
14434 (GOMP_OFFLOAD_unload_image): New function.
14435 * target.c (register_lock): New mutex for offload image registration.
14436 (num_devices): Do not guard with PLUGIN_SUPPORT.
14437 (gomp_realloc_unlock): New static function.
14438 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
14440 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
14441 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
14442 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
14444 (gomp_unmap_vars): Likewise.
14445 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
14446 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
14447 (gomp_offload_image_to_device): New static function.
14448 (GOMP_offload_register): Add mutex lock.
14449 Call gomp_offload_image_to_device for all initialized devices.
14450 Replace gomp_realloc with gomp_realloc_unlock.
14451 (GOMP_offload_unregister): New function.
14452 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
14453 get_table_func from the plugin with calls to init_device_func and
14454 gomp_offload_image_to_device.
14455 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
14457 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
14458 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
14459 (GOMP_target_data): Do not call gomp_init_tables.
14460 (GOMP_target_update): Likewise. Remove argument from gomp_update.
14461 (gomp_load_plugin_for_device): Replace register_image and get_table
14462 with load_image and unload_image in DLSYM ().
14463 (gomp_register_images_for_device): Remove function.
14464 (gomp_target_init): Do not initialize current_device.mem_map.*,
14465 current_device.offload_regions_registered.
14466 Remove call to gomp_register_images_for_device.
14467 Do not free offload_images and num_offload_images.
14469 2015-03-30 Jakub Jelinek <jakub@redhat.com>
14472 * testsuite/libgomp.fortran/pr65597.f90: New test.
14474 2015-03-27 Tom de Vries <tom@codesourcery.com>
14477 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
14478 (init, check): New function.
14479 (foo): Change return type to void.
14480 (main): Call init and check.
14482 2015-03-27 Tom de Vries <tom@codesourcery.com>
14485 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
14486 (foo): Use M for non-inner loops to scale down test-case.
14488 2015-03-25 Kai Tietz <ktietz@redhat.com>
14491 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
14492 (GOACC_data_start): Likewise.
14493 * target.c (gomp_map_vars): Likewise.
14495 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
14497 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
14500 2015-03-19 Jakub Jelinek <jakub@redhat.com>
14502 * testsuite/libgomp.c/target-10.c: New test.
14503 * testsuite/libgomp.c++/target-4.C: New test.
14505 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
14507 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
14508 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
14510 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
14512 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
14513 * configure.ac (*-*-rtems*): Assume Pthread is supported.
14514 (pthread.h): Check for this header file.
14515 * configure: Regenerate.
14517 2015-02-25 Tom de Vries <tom@codesourcery.com>
14519 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
14520 (check_reduction_op, check_reduction_macro, max, min):
14522 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
14524 (main): Use new functions.
14526 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
14528 * target.c (gomp_load_plugin_for_device): Use const char * instead of
14529 char * for variables holding dlerror return values.
14530 (DLSYM_OPT): Ditto.
14532 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
14534 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
14536 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
14537 Cesar Philippidis <cesar@codesourcery.com>
14539 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
14540 GOACC_ctaid, and GOACC_nctaid routines.
14542 2015-02-11 Jakub Jelinek <jakub@redhat.com>
14545 * testsuite/libgomp.c/atomic-18.c: New test.
14546 * testsuite/libgomp.c++/atomic-16.C: New test.
14548 2015-02-04 Jakub Jelinek <jakub@redhat.com>
14552 * testsuite/libgomp.c/pr64824.c: New test.
14553 * testsuite/libgomp.c/pr64868.c: New test.
14554 * testsuite/libgomp.c++/pr64824.C: New test.
14555 * testsuite/libgomp.c++/pr64868.C: New test.
14557 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
14560 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
14561 Link with -lpthread.
14562 * config/aix/plugin-suffix.h: Delete.
14564 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
14567 * configure.tgt (*-*-aix*): Use config_path "aix posix".
14568 (*-*-darwin*): Use config_path "bsd darwin posix".
14569 (*-*-hpux*): Use config_path "hpux posix".
14570 * target.c: Add include of plugin-suffix.h and use
14571 SONAME_SUFFIX macro.
14572 * config/aix/plugin-suffix.h: New file.
14573 * config/darwin/plugin-suffix.h: New file.
14574 * config/hpux/plugin-suffix.h: New file.
14575 * config/posix/plugin-suffix.h: New file.
14577 2015-01-23 Jakub Jelinek <jakub@redhat.com>
14579 PR middle-end/64734
14580 * libgomp.c/pr64734.c: New test.
14582 2015-01-23 Tom de Vries <tom@codesourcery.com>
14585 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
14587 2015-01-23 Tom de Vries <tom@codesourcery.com>
14590 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
14593 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
14596 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
14597 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
14598 formal parameter. Update all users.
14599 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
14600 Document unused formal parameter.
14602 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
14604 * oacc-parallel.c: Don't include <alloca.h>.
14605 (GOACC_parallel): Use gomp_alloca instead of alloca.
14607 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
14609 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
14611 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
14612 James Norris <jnorris@codesourcery.com>
14613 Tom de Vries <tom@codesourcery.com>
14614 Julian Brown <julian@codesourcery.com>
14615 Cesar Philippidis <cesar@codesourcery.com>
14616 Nathan Sidwell <nathan@codesourcery.com>
14617 Tobias Burnus <burnus@net-b.de>
14619 * Makefile.am (search_path): Add $(top_srcdir)/../include.
14620 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
14621 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
14622 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
14623 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
14624 Include $(top_srcdir)/plugin/Makefrag.am.
14625 (nodist_libsubinclude_HEADERS): Add openacc.h.
14626 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
14627 openacc.f90, openacc.mod, openacc_kinds.mod.
14628 (omp_lib.mod): Generalize into...
14629 (%.mod): ... this new rule.
14630 (openacc_kinds.mod, openacc.mod): New rules.
14631 * plugin/configfrag.ac: New file.
14632 * configure.ac: Move plugin/offloading support into it. Include
14633 it. Instantiate testsuite/libgomp-test-support.pt.exp.
14634 * plugin/Makefrag.am: New file.
14635 * testsuite/Makefile.am (OFFLOAD_TARGETS)
14636 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
14638 (libgomp-test-support.exp): New rule.
14639 (all-local): Depend on it.
14640 * Makefile.in: Regenerate.
14641 * testsuite/Makefile.in: Regenerate.
14642 * config.h.in: Likewise.
14643 * configure: Likewise.
14644 * configure.tgt: Harden shell syntax.
14645 * env.c: Include "oacc-int.h".
14646 (parse_acc_device_type): New function.
14647 (gomp_debug_var, goacc_device_type, goacc_device_num): New
14649 (initialize_env): Initialize those. Call
14650 goacc_runtime_initialize.
14651 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
14652 (gomp_fatal): Call gomp_vfatal.
14653 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
14654 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
14655 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
14656 (splay_tree_node, splay_tree, splay_tree_key)
14657 (struct target_mem_desc, struct splay_tree_key_s)
14658 (struct gomp_memory_mapping, struct acc_dispatch_t)
14659 (struct gomp_device_descr, gomp_acc_insert_pointer)
14660 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
14661 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
14662 (gomp_free_memmap, gomp_fini_device): New declarations.
14663 (gomp_vdebug, gomp_debug): New macros.
14664 Include "splay-tree.h".
14665 * libgomp.map (OACC_2.0): New symbol version. Use for
14666 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
14667 acc_set_device_type_h_, acc_get_device_type,
14668 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
14669 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
14670 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
14671 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
14672 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
14673 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
14674 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
14675 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
14676 acc_copyin_array_h_, acc_present_or_copyin,
14677 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
14678 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
14679 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
14680 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
14681 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
14682 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
14683 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
14684 acc_update_device, acc_update_device_32_h_,
14685 acc_update_device_64_h_, acc_update_device_array_h_,
14686 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
14687 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
14688 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
14689 acc_is_present_64_h_, acc_is_present_array_h_,
14690 acc_memcpy_to_device, acc_memcpy_from_device,
14691 acc_get_current_cuda_device, acc_get_current_cuda_context,
14692 acc_get_cuda_stream, acc_set_cuda_stream.
14693 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
14694 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
14695 GOACC_update, GOACC_wait, GOACC_get_thread_num,
14696 GOACC_get_num_threads.
14697 (GOMP_PLUGIN_1.0): New symbol version. Use for
14698 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
14699 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
14700 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
14701 GOMP_PLUGIN_acc_thread.
14702 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
14703 environment variable.
14704 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
14705 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
14706 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
14707 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
14708 (splay_tree_remove): New declarations.
14709 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
14710 (splay_tree_remove, splay_tree_lookup): Move into...
14711 * splay-tree.c: ... this new file.
14712 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
14713 (splay_tree_node, splay_tree, splay_tree_key)
14714 (struct target_mem_desc, struct splay_tree_key_s)
14715 (struct gomp_device_descr): Don't declare.
14716 (num_devices_openmp): New variable.
14717 (gomp_get_num_devices ): Use it.
14718 (gomp_init_targets_once): New function.
14719 (gomp_get_num_devices ): Use it.
14720 (get_kind, gomp_copy_from_async, gomp_free_memmap)
14721 (gomp_fini_device, gomp_register_image_for_device): New functions.
14722 (gomp_map_vars): Add devaddrs parameter.
14723 (gomp_update): Add mm parameter.
14724 (gomp_init_device): Move most of it into...
14725 (gomp_init_tables): ... this new function.
14726 (gomp_register_images_for_device): Remove function.
14727 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
14728 Make them hidden instead of static.
14729 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
14730 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
14731 (GOMP_target_end_data, GOMP_target_update)
14732 (gomp_load_plugin_for_device, gomp_target_init): Update for
14734 * oacc-async.c: New file.
14735 * oacc-cuda.c: Likewise.
14736 * oacc-host.c: Likewise.
14737 * oacc-init.c: Likewise.
14738 * oacc-int.h: Likewise.
14739 * oacc-mem.c: Likewise.
14740 * oacc-parallel.c: Likewise.
14741 * oacc-plugin.c: Likewise.
14742 * oacc-plugin.h: Likewise.
14743 * oacc-ptx.h: Likewise.
14744 * openacc.f90: Likewise.
14745 * openacc.h: Likewise.
14746 * openacc_lib.h: Likewise.
14747 * plugin/plugin-host.c: Likewise.
14748 * plugin/plugin-nvptx.c: Likewise.
14749 * libgomp-plugin.c: Likewise.
14750 * libgomp-plugin.h: Likewise.
14751 * libgomp_target.h: Remove file after merging content into the
14752 former file. Update all users.
14753 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
14754 (offload_targets_s, offload_targets_s_openacc): New variables.
14755 (check_effective_target_openacc_nvidia_accel_present)
14756 (check_effective_target_openacc_nvidia_accel_selected): New
14758 (libgomp_init): Update for OpenACC changes.
14759 * testsuite/libgomp-test-support.exp.in: New file.
14760 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
14761 * testsuite/libgomp.oacc-c/c.exp: Likewise.
14762 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14763 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
14764 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
14765 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14766 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
14767 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
14768 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
14769 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
14770 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
14771 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
14772 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
14773 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
14774 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
14775 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
14776 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
14777 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
14778 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
14779 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
14780 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
14781 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
14782 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
14783 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
14784 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14785 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
14786 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
14787 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
14788 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
14789 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
14790 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14791 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
14792 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
14793 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
14794 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
14795 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14796 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
14797 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14798 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
14799 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
14800 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
14801 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
14802 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14803 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14804 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14805 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
14806 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14807 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14808 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14809 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14810 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14811 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
14812 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14813 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14814 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14815 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14816 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14817 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
14818 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14819 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
14820 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
14821 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
14822 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14823 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14824 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14825 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
14826 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
14827 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14828 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
14829 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14830 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
14831 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14832 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14833 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14834 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
14835 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
14836 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14837 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14838 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
14839 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
14840 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
14841 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
14842 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14843 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14844 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14845 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
14846 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
14847 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14848 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14849 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
14850 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
14851 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
14852 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
14853 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
14854 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
14855 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
14856 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
14857 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
14858 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
14859 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
14860 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
14861 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
14862 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
14863 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
14864 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
14865 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
14866 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
14867 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
14868 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
14869 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
14870 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
14871 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
14872 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
14873 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
14874 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
14875 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
14876 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
14877 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
14878 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
14879 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
14880 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
14881 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
14882 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
14883 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
14884 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
14885 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
14886 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
14887 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
14888 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
14889 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
14890 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
14891 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
14892 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
14893 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
14894 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
14895 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
14896 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
14897 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
14898 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
14899 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
14901 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
14902 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
14903 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
14904 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
14905 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
14906 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
14907 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
14908 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
14909 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
14910 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
14911 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
14912 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
14913 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
14914 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
14915 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
14916 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
14917 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
14918 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
14919 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
14920 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
14921 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
14922 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
14923 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
14924 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
14925 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
14926 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
14927 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
14928 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
14929 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
14930 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
14931 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
14932 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
14933 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
14934 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
14935 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
14936 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
14937 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
14938 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
14939 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
14940 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
14941 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
14942 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
14943 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
14944 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
14945 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
14946 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
14947 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
14948 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
14949 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
14950 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
14951 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
14952 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
14953 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
14954 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
14955 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
14956 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
14957 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
14958 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
14959 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
14960 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
14962 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
14963 Julian Brown <julian@codesourcery.com>
14964 David Malcolm <dmalcolm@redhat.com>
14966 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
14967 to "GNU Offloading and Multi Processing Runtime Library". Change
14969 * configure: Regenerate.
14970 * libgomp.texi: Update.
14972 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
14974 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
14976 * configure: Regenerate.
14978 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
14979 "intelmic" in $offload_targets.
14981 2015-01-05 Jakub Jelinek <jakub@redhat.com>
14983 Update copyright years.
14985 * libgomp.texi: Bump @copying's copyright year.
14987 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14989 * testsuite/lib/libgomp.exp: Load target-utils.exp.
14990 Move load of target-supports.exp earlier.
14992 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
14994 * testsuite/libgomp.c/target-9.c: New test.
14996 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
14998 * config.h.in: Regenerate.
14999 * configure: Regenerate.
15000 * configure.ac: Add GCC_CHECK_EMUTLS.
15001 * libgomp.h: Add check for USE_EMUTLS: this case
15002 is equal to HAVE_TLS.
15003 * team.c: Likewise.
15005 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
15007 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
15009 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
15010 Ilya Verbin <ilya.verbin@intel.com>
15012 * testsuite/libgomp.c/target-critical-1.c: New test.
15014 2014-11-26 Jakub Jelinek <jakub@redhat.com>
15016 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
15017 to dg-options unless expensive testing is on.
15018 (TESTITERS): Define to N if not defined.
15019 (main): Use TESTITERS instead of N.
15020 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
15021 dg-additional-options depending on whether expensive testing is on.
15022 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
15023 Decrease N to 100000 and CHUNKSZ to 10000.
15025 2014-11-24 Jakub Jelinek <jakub@redhat.com>
15028 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
15029 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
15031 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
15033 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
15035 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
15038 * configure: Regenerated.
15040 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
15042 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
15043 vect_simd_clones effective target.
15044 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
15046 2014-11-14 Jakub Jelinek <jakub@redhat.com>
15048 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
15049 of 32 as block_size.
15050 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
15051 instead of 32 as block_size.
15053 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
15054 Ilya Verbin <ilya.verbin@intel.com>
15056 * Makefile.in: Regenerate.
15057 * configure: Regenerate.
15058 * configure.ac: Set up offload_additional_options,
15059 offload_additional_lib_paths and offload_targets.
15060 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
15061 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
15062 * testsuite/Makefile.in: Regenerate.
15063 * testsuite/lib/libgomp.exp (libgomp_init): Append
15064 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
15065 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
15066 build directory to LD_LIBRARY_PATH for intelmic offload targets.
15068 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
15069 Ilya Verbin <ilya.verbin@intel.com>
15070 Kirill Yukhin <kirill.yukhin@intel.com>
15071 Ilya Tocar <ilya.tocar@intel.com>
15073 * testsuite/lib/libgomp.exp
15074 (check_effective_target_offload_device): New.
15075 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
15076 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
15077 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
15078 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
15079 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
15080 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
15081 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
15082 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
15083 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
15084 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
15085 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
15086 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
15087 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
15088 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
15089 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
15090 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
15091 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
15092 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
15093 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
15094 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
15095 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
15096 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
15097 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
15098 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
15099 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
15100 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
15101 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
15102 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
15103 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
15104 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
15105 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
15106 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
15107 * testsuite/libgomp.c/target-7.c: Fix test.
15108 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
15109 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
15110 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
15111 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
15112 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
15113 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
15114 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
15115 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
15116 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
15117 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
15118 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
15119 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
15120 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
15121 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
15122 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
15123 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
15124 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
15125 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
15126 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
15127 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
15128 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
15129 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
15130 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
15131 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
15132 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
15133 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
15134 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
15135 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
15136 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
15137 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
15138 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
15140 2014-11-13 Jakub Jelinek <jakub@redhat.com>
15141 Ilya Verbin <ilya.verbin@intel.com>
15142 Thomas Schwinge <thomas@codesourcery.com>
15143 Andrey Turetskiy <andrey.turetskiy@intel.com>
15145 * libgomp.map (GOMP_4.0.1): New symbol version.
15146 Add GOMP_offload_register.
15147 * libgomp_target.h: New file.
15148 * splay-tree.h: New file.
15149 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
15150 (gomp_target_init): New forward declaration.
15151 (gomp_is_initialized): New static variable.
15152 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
15153 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
15155 (offload_images, num_offload_images, devices, num_devices): New static
15157 (splay_compare): New static function.
15158 (struct gomp_device_descr): New structure.
15159 (gomp_get_num_devices): Call gomp_target_init.
15160 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
15161 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
15162 (GOMP_offload_register): New function.
15163 (GOMP_target): Arrange for host callback to be performed in a separate
15164 initial thread and contention group, inheriting ICVs from
15165 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
15166 Add device initialization and lookup for target function in splay tree.
15167 (GOMP_target_data): Add device initialization and call gomp_map_vars.
15168 (GOMP_target_end_data): Call gomp_unmap_vars.
15169 (GOMP_target_update): Add device initialization and call gomp_update.
15170 (gomp_load_plugin_for_device, gomp_register_images_for_device)
15171 (gomp_target_init): New static functions.
15173 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
15174 Thomas Schwinge <thomas@codesourcery.com>
15175 Ilya Verbin <ilya.verbin@intel.com>
15176 Andrey Turetskiy <andrey.turetskiy@intel.com>
15178 * config.h.in: Regenerate.
15179 * configure: Regenerate.
15180 * configure.ac: Check for libdl, required for plugin support.
15181 (PLUGIN_SUPPORT): Define if plugins are supported.
15182 (enable_offload_targets): Support Intel MIC targets.
15183 (OFFLOAD_TARGETS): List of target names suitable for offloading.
15185 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15188 * configure: Regenerate.
15190 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15192 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
15194 2014-10-06 Marek Polacek <polacek@redhat.com>
15196 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
15197 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
15198 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
15199 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
15201 2014-10-06 Marek Polacek <polacek@redhat.com>
15203 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
15204 * testsuite/libgomp.c/nqueens-1.c: Likewise.
15205 * testsuite/libgomp.c/pr26943-3.c: Likewise.
15206 * testsuite/libgomp.c/pr26943-4.c: Likewise.
15207 * testsuite/libgomp.c/pr36802-2.c: Likewise.
15208 * testsuite/libgomp.c/pr36802-3.c: Likewise.
15209 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
15210 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
15211 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
15212 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
15213 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
15214 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
15215 * testsuite/libgomp.c/omp-single-1.c: Likewise.
15216 * testsuite/libgomp.c/omp-single-2.c: Likewise.
15217 * testsuite/libgomp.c/omp_matvec.c: Likewise.
15218 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
15219 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
15220 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
15223 2014-10-03 Jakub Jelinek <jakub@redhat.com>
15226 * testsuite/libgomp.c/pr61200.c: New test.
15228 2014-09-18 Jakub Jelinek <jakub@redhat.com>
15231 * testsuite/libgomp.c++/pr63248.C: New test.
15233 2014-08-04 Jakub Jelinek <jakub@redhat.com>
15235 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
15236 is not zero, but taskgroup->children is NULL and there are
15237 any task->children, schedule those instead of waiting.
15238 * testsuite/libgomp.c/depend-6.c: New test.
15239 * testsuite/libgomp.c/depend-7.c: New test.
15240 * testsuite/libgomp.c/depend-8.c: New test.
15241 * testsuite/libgomp.c/depend-9.c: New test.
15242 * testsuite/libgomp.c/depend-10.c: New test.
15244 2014-08-01 Jakub Jelinek <jakub@redhat.com>
15246 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
15247 (struct gomp_taskwait): New type.
15248 (struct gomp_task): Add taskwait and parent_depends_on, remove
15249 in_taskwait and taskwait_sem fields.
15250 (gomp_finish_task): Don't destroy taskwait_sem.
15251 * task.c (gomp_init_task): Don't init in_taskwait, instead init
15252 taskwait and parent_depends_on.
15253 (GOMP_task): For if (0) tasks with depend clause that depend on
15254 earlier tasks don't defer them, instead call
15255 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
15256 Initialize redundant_out field, for redundant out entries just
15257 move them at the end of linked list instead of removing them
15258 completely, and set redundant_out flag instead of redundant.
15259 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
15261 (gomp_task_run_post_handle_dependers): If parent is in
15262 gomp_task_maybe_wait_for_dependencies and newly runnable task
15263 is not parent_depends_on, queue it in parent->children linked
15264 list after all runnable tasks with parent_depends_on set.
15265 Adjust for addition of taskwait indirection.
15266 (gomp_task_run_post_remove_parent): If parent is in
15267 gomp_task_maybe_wait_for_dependencies and task to be removed
15268 is parent_depends_on, decrement n_depend and if needed awake
15269 parent. Adjust for addition of taskwait indirection.
15270 (GOMP_taskwait): Adjust for addition of taskwait indirection.
15271 (gomp_task_maybe_wait_for_dependencies): New function.
15272 * testsuite/libgomp.c/depend-5.c: New test.
15274 2014-07-13 Tobias Burnus <burnus@net-b.de>
15276 * testsuite/libgomp.fortran/pr34020.f90: Make compile
15277 with TS 18508/Fortran 2015.
15279 2014-07-06 Marek Polacek <polacek@redhat.com>
15282 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
15284 2014-07-03 Jakub Jelinek <jakub@redhat.com>
15286 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
15287 matches regex $lang_source_re, add $lang_include_flags to options.
15288 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
15289 * testsuite/libgomp.c++/c++.exp: Likewise.
15290 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
15291 and lang_include_flags instead of adding -fintrinsic-modules-path= to
15293 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
15295 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
15297 * testsuite/libgomp.fortran/fortran.exp: Explain
15298 gfortran-dg-runtest usage.
15300 2014-06-25 Jakub Jelinek <jakub@redhat.com>
15302 * testsuite/libgomp.fortran/simd5.f90: New test.
15303 * testsuite/libgomp.fortran/simd6.f90: New test.
15304 * testsuite/libgomp.fortran/simd7.f90: New test.
15306 2014-06-24 Jakub Jelinek <jakub@redhat.com>
15308 * testsuite/libgomp.c/for-2.c: Define SC to static for
15309 #pragma omp for simd testing.
15310 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
15311 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
15313 * testsuite/libgomp.c/simd-14.c: New test.
15314 * testsuite/libgomp.c/simd-15.c: New test.
15315 * testsuite/libgomp.c/simd-16.c: New test.
15316 * testsuite/libgomp.c/simd-17.c: New test.
15317 * testsuite/libgomp.c++/for-10.C: Define SC to static for
15318 #pragma omp for simd testing.
15319 * testsuite/libgomp.c++/simd10.C: New test.
15320 * testsuite/libgomp.c++/simd11.C: New test.
15321 * testsuite/libgomp.c++/simd12.C: New test.
15322 * testsuite/libgomp.c++/simd13.C: New test.
15324 * testsuite/libgomp.fortran/aligned1.f03: New test.
15325 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
15326 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
15327 tasks with !$omp parallel !$omp single.
15328 * testsuite/libgomp.fortran/target8.f90: New test.
15329 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
15330 not to use trim in the combiner, instead call elemental function.
15331 (fn): New elemental function.
15332 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
15334 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
15336 * testsuite/libgomp.fortran/udr12.f90: New test.
15337 * testsuite/libgomp.fortran/udr13.f90: New test.
15338 * testsuite/libgomp.fortran/udr14.f90: New test.
15339 * testsuite/libgomp.fortran/udr15.f90: New test.
15341 2014-06-18 Jakub Jelinek <jakub@redhat.com>
15343 * omp_lib.f90.in (openmp_version): Set to 201307.
15344 * omp_lib.h.in (openmp_version): Likewise.
15345 * testsuite/libgomp.c/target-8.c: New test.
15346 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
15347 and inbranch clauses.
15348 * testsuite/libgomp.fortran/depend-3.f90: New test.
15349 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
15351 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
15352 * testsuite/libgomp.fortran/target1.f90: New test.
15353 * testsuite/libgomp.fortran/target2.f90: New test.
15354 * testsuite/libgomp.fortran/target3.f90: New test.
15355 * testsuite/libgomp.fortran/target4.f90: New test.
15356 * testsuite/libgomp.fortran/target5.f90: New test.
15357 * testsuite/libgomp.fortran/target6.f90: New test.
15358 * testsuite/libgomp.fortran/target7.f90: New test.
15360 2014-06-10 Jakub Jelinek <jakub@redhat.com>
15363 * testsuite/libgomp.fortran/allocatable9.f90: New test.
15364 * testsuite/libgomp.fortran/allocatable10.f90: New test.
15365 * testsuite/libgomp.fortran/allocatable11.f90: New test.
15366 * testsuite/libgomp.fortran/allocatable12.f90: New test.
15367 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
15368 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
15369 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
15370 * testsuite/libgomp.fortran/associate1.f90: New test.
15371 * testsuite/libgomp.fortran/associate2.f90: New test.
15372 * testsuite/libgomp.fortran/procptr1.f90: New test.
15374 2014-06-06 Jakub Jelinek <jakub@redhat.com>
15376 * testsuite/libgomp.fortran/simd1.f90: New test.
15377 * testsuite/libgomp.fortran/udr1.f90: New test.
15378 * testsuite/libgomp.fortran/udr2.f90: New test.
15379 * testsuite/libgomp.fortran/udr3.f90: New test.
15380 * testsuite/libgomp.fortran/udr4.f90: New test.
15381 * testsuite/libgomp.fortran/udr5.f90: New test.
15382 * testsuite/libgomp.fortran/udr6.f90: New test.
15383 * testsuite/libgomp.fortran/udr7.f90: New test.
15384 * testsuite/libgomp.fortran/udr8.f90: New test.
15385 * testsuite/libgomp.fortran/udr9.f90: New test.
15386 * testsuite/libgomp.fortran/udr10.f90: New test.
15387 * testsuite/libgomp.fortran/udr11.f90: New test.
15389 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
15391 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
15392 vect_simd_clones effective target.
15393 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
15395 2014-05-21 Jakub Jelinek <jakub@redhat.com>
15397 PR middle-end/61252
15398 * testsuite/libgomp.c++/simd-9.C: New test.
15400 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
15402 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
15403 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
15404 texts according to their @menu entry positions.
15406 2014-05-11 Jakub Jelinek <jakub@redhat.com>
15408 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
15409 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
15410 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
15411 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
15412 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
15413 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
15414 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
15415 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
15416 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
15417 * testsuite/libgomp.fortran/depend-1.f90: New test.
15418 * testsuite/libgomp.fortran/depend-2.f90: New test.
15419 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
15420 * testsuite/libgomp.fortran/simd1.f90: New test.
15421 * testsuite/libgomp.fortran/simd2.f90: New test.
15422 * testsuite/libgomp.fortran/simd3.f90: New test.
15423 * testsuite/libgomp.fortran/simd4.f90: New test.
15424 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
15426 2014-05-02 Jakub Jelinek <jakub@redhat.com>
15428 * testsuite/libgomp.c/simd-10.c: New test.
15429 * testsuite/libgomp.c/simd-11.c: New test.
15430 * testsuite/libgomp.c/simd-12.c: New test.
15431 * testsuite/libgomp.c/simd-13.c: New test.
15433 2014-04-24 Jakub Jelinek <jakub@redhat.com>
15435 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
15436 atomic type clauses in any order and optional comma in between.
15437 * testsuite/libgomp.c++/atomic-15.C: Likewise.
15438 * testsuite/libgomp.c/atomic-17.c: Likewise.
15440 * testsuite/libgomp.c/simd-7.c: New test.
15441 * testsuite/libgomp.c/simd-8.c: New test.
15442 * testsuite/libgomp.c/simd-9.c: New test.
15443 * testsuite/libgomp.c/loop-16.c: New test.
15445 2014-04-02 Richard Henderson <rth@redhat.com>
15447 * config/linux/futex.h (futex_wait): Get error value from errno.
15448 (futex_wake): Likewise.
15450 2014-03-25 Jakub Jelinek <jakub@redhat.com>
15453 * testsuite/libgomp.c++/udr-11.C: New test.
15454 * testsuite/libgomp.c++/udr-12.C: New test.
15455 * testsuite/libgomp.c++/udr-13.C: New test.
15456 * testsuite/libgomp.c++/udr-14.C: New test.
15457 * testsuite/libgomp.c++/udr-15.C: New test.
15458 * testsuite/libgomp.c++/udr-16.C: New test.
15459 * testsuite/libgomp.c++/udr-17.C: New test.
15460 * testsuite/libgomp.c++/udr-18.C: New test.
15461 * testsuite/libgomp.c++/udr-19.C: New test.
15463 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
15465 Update copyright years
15467 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
15469 * hashtab.h: Use the standard form for the copyright notice.
15471 2014-01-02 Tobias Burnus <burnus@net-b.de>
15473 * libgomp.texi: Bump @copying's copyright year.
15475 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
15477 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
15478 alloca () with __builtin_alloca ().
15479 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
15480 * testsuite/libgomp.c/lock-3.c: Likewise.
15481 * testsuite/libgomp.c/pr48591.c: Likewise.
15483 2013-12-17 Jakub Jelinek <jakub@redhat.com>
15486 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
15489 2013-12-16 Jakub Jelinek <jakub@redhat.com>
15492 * testsuite/libgomp.c/pr58756.c: New test.
15494 2013-12-12 Jakub Jelinek <jakub@redhat.com>
15497 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
15500 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
15502 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
15504 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
15505 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
15506 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
15507 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
15510 * libgomp_g.h: Include <stddef.h> for size_t.
15512 * libgomp.spec.in: Update comment about libgomp's dependencies.
15513 * configure.ac: Likewise.
15514 * configure: Regenerate.
15516 2013-10-16 Tobias Burnus <burnus@net-b.de>
15518 * libgomp.texi: (Runtime Library Routines): Update references for
15519 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
15520 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
15521 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
15522 (Environment Variables): Update references for OpenMP 4.0. Add
15523 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
15524 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
15527 2013-10-14 Jakub Jelinek <jakub@redhat.com>
15529 * env.c (parse_bind_var): Initialize value to avoid
15530 (false positive) warning.
15532 2013-10-12 Jakub Jelinek <jakub@redhat.com>
15535 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
15537 (gomp_init_num_threads): Move i variable declaration into
15538 #ifdef CPU_ALLOC_SIZE block.
15539 * config/linux/affinity.c (gomp_affinity_init_level): Test
15540 gomp_places_list_len == 0 rather than gomp_places_list == 0
15541 when checking for topology reading error.
15542 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
15543 * env.c (parse_affinity): Add ignore argument, if true, don't populate
15544 gomp_places_list, only parse env var and always return false.
15545 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
15546 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
15547 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
15548 and either of these variables were parsed correctly into a places
15551 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
15552 Jakub Jelinek <jakub@redhat.com>
15554 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
15555 of 5 loopfn matches.
15556 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
15557 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
15558 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
15559 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
15560 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
15561 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
15562 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
15563 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
15565 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
15567 * Makefile.am (omp_lib.mod): Streamline rule.
15568 * Makefile.in: Regenerate.
15570 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
15573 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
15574 * testsuite/libgomp.fortran/lib1.f90: Likewise.
15575 * testsuite/libgomp.fortran/lib2.f: Likewise.
15576 * testsuite/libgomp.fortran/lib3.f: Likewise.
15578 * configure.ac: Typo fix.
15579 * configure: Regenerate.
15581 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
15582 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
15584 * omp.h.in: Don't touch the user's namespace.
15586 2013-10-11 Jakub Jelinek <jakub@redhat.com>
15587 Tobias Burnus <burnus@net-b.de>
15588 Richard Henderson <rth@redhat.com>
15590 * target.c: New file.
15591 * Makefile.am (libgomp_la_SOURCES): Add target.c.
15592 * Makefile.in: Regenerated.
15593 * libgomp_g.h (GOMP_task): Add depend argument.
15594 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
15595 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
15596 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
15597 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
15598 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
15599 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
15600 GOMP_taskgroup_start, GOMP_taskgroup_end,
15601 GOMP_parallel_sections): New prototypes.
15602 * fortran.c (omp_is_initial_device): Add ialias_redirect.
15603 (omp_is_initial_device_): New function.
15604 (ULP, STR1, STR2, ialias_redirect): Removed.
15605 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
15606 omp_set_default_device_8_, omp_get_default_device_,
15607 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
15609 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
15610 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
15611 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
15613 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
15614 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
15615 omp_set_default_device, omp_set_default_device_,
15616 omp_set_default_device_8_, omp_get_default_device,
15617 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
15618 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
15619 omp_get_team_num_): Export @@OMP_4.0.
15620 * team.c (struct gomp_thread_start_data): Add place field.
15621 (gomp_thread_start): Clear thr->thread_pool and
15622 thr->task before returning. Use gomp_team_barrier_wait_final
15623 instead of gomp_team_barrier_wait. Initialize thr->place.
15624 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
15625 team_cancelled and task_queued_count fields.
15626 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
15627 before calling pthread_exit.
15628 (gomp_free_thread): No longer static. Use
15629 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
15630 (gomp_team_start): Add flags argument. Set
15631 thr->thread_pool->threads_busy to nthreads immediately after creating
15632 new pool. Use gomp_managed_threads_lock instead of
15633 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
15634 (gomp_team_end): Use gomp_managed_threads_lock instead of
15635 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
15636 of gomp_team_barrier_wait. If team->team_cancelled, call
15637 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
15638 rather than thr->ts.work_share.
15639 (initialize_team): Don't call gomp_sem_init here.
15640 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
15642 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
15643 * env.c (gomp_global_icv): Add default_device_var, target_data and
15644 bind_var initializers.
15645 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
15646 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
15647 gomp_places_list_len): New variables.
15648 (parse_bind_var, parse_one_place, parse_places_var): New functions.
15649 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
15651 (gomp_cancel_var): New global variable.
15652 (parse_int): New function.
15653 (handle_omp_display_env): New function.
15654 (initialize_env): Use it. Initialize default_device_var.
15655 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
15656 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
15657 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
15658 been successfully parsed (and call gomp_init_affinity in that case).
15659 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
15660 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
15661 omp_get_team_num, omp_is_initial_device): New functions.
15662 * libgomp.h: Include stdlib.h.
15663 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
15665 (struct target_mem_desc): Forward declare.
15666 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
15667 and thread_limit_var fields.
15668 (gomp_get_num_devices): New prototype.
15669 (gomp_cancel_var): New extern decl.
15670 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
15671 team_cancelled and task_queued_count fields. Add comments about
15672 task_{,queued_,running_}count.
15673 (gomp_cancel_kind): New enum.
15674 (gomp_work_share_end_cancel): New prototype.
15675 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
15676 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
15678 (struct gomp_taskgroup): New type.
15679 (struct gomp_task_depend_entry,
15680 struct gomp_dependers_vec): New types.
15681 (gomp_finish_task): Free depend_hash if non-NULL.
15682 (struct gomp_team_state): Add place_partition_off
15683 and place_partition_len fields.
15684 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
15685 gomp_places_list_len): New extern decls.
15686 (struct gomp_thread): Add place field.
15687 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
15688 (gomp_init_thread_affinity): Add place argument.
15689 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
15690 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
15691 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
15692 gomp_affinity_init_level, gomp_affinity_print_place): New
15694 (gomp_team_start): Add flags argument.
15695 (gomp_thread_limit_var, gomp_remaining_threads_count,
15696 gomp_remaining_threads_lock): Remove.
15697 (gomp_managed_threads_lock): New variable.
15698 (struct gomp_thread_pool): Add threads_busy field.
15699 (gomp_free_thread): New prototype.
15700 * task.c: Include hashtab.h.
15701 (hash_entry_type): New typedef.
15702 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
15703 (gomp_init_task): Clear dependers, depend_hash, depend_count,
15704 copy_ctors_done and taskgroup fields.
15705 (GOMP_task): Add depend argument, handle depend clauses. If
15706 gomp_team_barrier_cancelled or if it's taskgroup has been
15707 cancelled, don't queue or start new tasks. Set copy_ctors_done
15708 field if needed. Initialize taskgroup field. If copy_ctors_done
15709 and already cancelled, don't discard the task. If taskgroup is
15710 non-NULL, enqueue the task into taskgroup queue. Increment
15711 num_children field in taskgroup. Increment task_queued_count.
15712 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
15713 gomp_task_run_post_remove_taskgroup): New inline functions.
15714 (gomp_task_run_post_handle_depend_hash,
15715 gomp_task_run_post_handle_dependers,
15716 gomp_task_run_post_handle_depend): New functions.
15717 (GOMP_taskwait): Use them. If more than one new tasks
15718 have been queued, wake other threads if needed.
15719 (gomp_barrier_handle_tasks): Likewise. If
15720 gomp_team_barrier_cancelled, don't start any new tasks, just free
15722 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
15724 (omp_proc_bind_kind, omp_proc_bind_false,
15725 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
15726 omp_proc_bind_spread): New params.
15727 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
15728 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
15729 omp_get_team_num, omp_is_initial_device): New interfaces.
15730 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
15731 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
15732 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
15733 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
15734 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
15735 useless use omp_lib_kinds.
15736 * omp.h.in (omp_proc_bind_t): New typedef.
15737 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
15738 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
15739 omp_get_team_num, omp_is_initial_device): New prototypes.
15740 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
15741 through to gomp_team_start.
15742 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
15743 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
15744 Adjust gomp_parallel_loop_start callers.
15745 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
15746 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
15747 GOMP_loop_end_cancel): New functions.
15748 (GOMP_parallel_end): Add ialias_redirect.
15749 * hashtab.h: New file.
15750 * libgomp.texi (Environment Variables): Minor cleanup,
15751 update section refs to OpenMP 4.0rc2.
15752 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
15753 environment variables.
15754 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
15755 team->work_shares_to_free to thr->ts.work_share before calling
15757 (gomp_work_share_end_cancel): New function.
15758 * config/linux/proc.c: Include errno.h.
15759 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
15760 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
15761 sizeof (cpu_set_t) to determine number of iterations. Fix up check
15762 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
15763 gomp_cpuset_size is sizeof (cpu_set_t).
15764 (gomp_init_num_threads): Initialize gomp_cpuset_size,
15765 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
15766 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
15767 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
15768 contain any logical CPUs.
15769 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
15770 is NULL. Use gomp_cpusetp instead of &cpuset and pass
15771 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
15772 pthread_getaffinity_np. Check gomp_places_list instead of
15773 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
15774 * config/linux/bar.c (gomp_barrier_wait_end,
15775 gomp_barrier_wait_last): Use BAR_* defines.
15776 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
15777 from state where needed. Set work_share_cancelled to 0 on last
15779 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
15780 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
15782 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
15783 Add cpusetsize argument.
15784 (gomp_cpuset_size, gomp_cpusetp): Declare.
15785 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
15786 (affinity_counter): Remove.
15787 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
15788 if CPU_ALLOC_SIZE isn't defined.
15789 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
15790 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
15791 bind current thread to the first place.
15792 (gomp_init_thread_affinity): Rewritten. Add place argument, just
15793 pthread_setaffinity_np to gomp_places_list[place].
15794 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
15795 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
15796 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
15797 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
15798 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
15799 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
15800 (gomp_barrier_t): Add awaited_final field.
15801 (gomp_barrier_init): Initialize awaited_final field.
15802 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
15803 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
15805 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
15807 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
15808 gomp_team_barrier_cancelled): New inline functions.
15809 (gomp_barrier_last_thread,
15810 gomp_team_barrier_set_task_pending,
15811 gomp_team_barrier_clear_task_pending,
15812 gomp_team_barrier_set_waiting_for_tasks,
15813 gomp_team_barrier_waiting_for_tasks,
15814 gomp_team_barrier_done): Use BAR_* defines.
15815 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
15816 (gomp_barrier_wait_end): Use BAR_* defines.
15817 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
15818 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
15820 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
15821 gomp_team_barrier_cancel): New functions.
15822 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
15824 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
15825 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
15826 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
15827 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
15828 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
15829 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
15830 (gomp_barrier_t): Add cancellable field.
15831 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
15832 gomp_team_barrier_cancel): New prototypes.
15833 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
15834 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
15835 gomp_team_barrier_cancelled): New inline functions.
15836 (gomp_barrier_wait_start, gomp_barrier_last_thread,
15837 gomp_team_barrier_set_task_pending,
15838 gomp_team_barrier_clear_task_pending,
15839 gomp_team_barrier_set_waiting_for_tasks,
15840 gomp_team_barrier_waiting_for_tasks,
15841 gomp_team_barrier_done): Use BAR_* defines.
15842 * barrier.c (GOMP_barrier_cancel): New function.
15843 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
15844 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
15845 omp_proc_bind_spread): New params.
15846 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
15847 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
15848 omp_get_team_num, omp_is_initial_device): New externals.
15849 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
15851 (gomp_resolve_num_threads): Adjust for thread_limit now being in
15852 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
15853 infinity. If not nested, just return minimum of max_num_threads
15854 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
15855 to the returned value. Otherwise, don't update atomically
15856 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
15857 (GOMP_parallel_end): Adjust for thread_limit now being in
15858 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
15859 infinity. Adjust threads_busy in the pool rather than
15860 gomp_remaining_threads_count. Remember team->nthreads and call
15861 gomp_team_end before adjusting threads_busy, if not nested
15862 afterwards, just set it to 1 non-atomically. Add ialias.
15863 (GOMP_parallel_start): Adjust gomp_team_start caller.
15864 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
15865 * testsuite/libgomp.c/affinity-1.c: New test.
15866 * testsuite/libgomp.c/atomic-15.c: New test.
15867 * testsuite/libgomp.c/atomic-16.c: New test.
15868 * testsuite/libgomp.c/atomic-17.c: New test.
15869 * testsuite/libgomp.c/cancel-for-1.c: New test.
15870 * testsuite/libgomp.c/cancel-for-2.c: New test.
15871 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
15872 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
15873 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
15874 * testsuite/libgomp.c/cancel-sections-1.c: New test.
15875 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
15876 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
15877 * testsuite/libgomp.c/depend-1.c: New test.
15878 * testsuite/libgomp.c/depend-2.c: New test.
15879 * testsuite/libgomp.c/depend-3.c: New test.
15880 * testsuite/libgomp.c/depend-4.c: New test.
15881 * testsuite/libgomp.c/for-1.c: New test.
15882 * testsuite/libgomp.c/for-1.h: New file.
15883 * testsuite/libgomp.c/for-2.c: New test.
15884 * testsuite/libgomp.c/for-2.h: New file.
15885 * testsuite/libgomp.c/for-3.c: New test.
15886 * testsuite/libgomp.c/pr58392.c: New test.
15887 * testsuite/libgomp.c/simd-1.c: New test.
15888 * testsuite/libgomp.c/simd-2.c: New test.
15889 * testsuite/libgomp.c/simd-3.c: New test.
15890 * testsuite/libgomp.c/simd-4.c: New test.
15891 * testsuite/libgomp.c/simd-5.c: New test.
15892 * testsuite/libgomp.c/simd-6.c: New test.
15893 * testsuite/libgomp.c/target-1.c: New test.
15894 * testsuite/libgomp.c/target-2.c: New test.
15895 * testsuite/libgomp.c/target-3.c: New test.
15896 * testsuite/libgomp.c/target-4.c: New test.
15897 * testsuite/libgomp.c/target-5.c: New test.
15898 * testsuite/libgomp.c/target-6.c: New test.
15899 * testsuite/libgomp.c/target-7.c: New test.
15900 * testsuite/libgomp.c/taskgroup-1.c: New test.
15901 * testsuite/libgomp.c/thread-limit-1.c: New test.
15902 * testsuite/libgomp.c/thread-limit-2.c: New test.
15903 * testsuite/libgomp.c/thread-limit-3.c: New test.
15904 * testsuite/libgomp.c/udr-1.c: New test.
15905 * testsuite/libgomp.c/udr-2.c: New test.
15906 * testsuite/libgomp.c/udr-3.c: New test.
15907 * testsuite/libgomp.c++/affinity-1.C: New test.
15908 * testsuite/libgomp.c++/atomic-10.C: New test.
15909 * testsuite/libgomp.c++/atomic-11.C: New test.
15910 * testsuite/libgomp.c++/atomic-12.C: New test.
15911 * testsuite/libgomp.c++/atomic-13.C: New test.
15912 * testsuite/libgomp.c++/atomic-14.C: New test.
15913 * testsuite/libgomp.c++/atomic-15.C: New test.
15914 * testsuite/libgomp.c++/cancel-for-1.C: New test.
15915 * testsuite/libgomp.c++/cancel-for-2.C: New test.
15916 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
15917 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
15918 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
15919 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
15920 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
15921 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
15922 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
15923 * testsuite/libgomp.c++/cancel-test.h: New file.
15924 * testsuite/libgomp.c++/for-9.C: New test.
15925 * testsuite/libgomp.c++/for-10.C: New test.
15926 * testsuite/libgomp.c++/for-11.C: New test.
15927 * testsuite/libgomp.c++/simd-1.C: New test.
15928 * testsuite/libgomp.c++/simd-2.C: New test.
15929 * testsuite/libgomp.c++/simd-3.C: New test.
15930 * testsuite/libgomp.c++/simd-4.C: New test.
15931 * testsuite/libgomp.c++/simd-5.C: New test.
15932 * testsuite/libgomp.c++/simd-6.C: New test.
15933 * testsuite/libgomp.c++/simd-7.C: New test.
15934 * testsuite/libgomp.c++/simd-8.C: New test.
15935 * testsuite/libgomp.c++/target-1.C: New test.
15936 * testsuite/libgomp.c++/target-2.C: New test.
15937 * testsuite/libgomp.c++/target-2-aux.cc: New file.
15938 * testsuite/libgomp.c++/target-3.C: New test.
15939 * testsuite/libgomp.c++/taskgroup-1.C: New test.
15940 * testsuite/libgomp.c++/udr-1.C: New test.
15941 * testsuite/libgomp.c++/udr-2.C: New test.
15942 * testsuite/libgomp.c++/udr-3.C: New test.
15943 * testsuite/libgomp.c++/udr-4.C: New test.
15944 * testsuite/libgomp.c++/udr-5.C: New test.
15945 * testsuite/libgomp.c++/udr-6.C: New test.
15946 * testsuite/libgomp.c++/udr-7.C: New test.
15947 * testsuite/libgomp.c++/udr-8.C: New test.
15948 * testsuite/libgomp.c++/udr-9.C: New test.
15950 2013-09-20 Jakub Jelinek <jakub@redhat.com>
15953 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
15956 2013-09-20 Alan Modra <amodra@gmail.com>
15958 * configure: Regenerate.
15960 2013-09-19 Jakub Jelinek <jakub@redhat.com>
15962 * testsuite/libgomp.c/sections-2.c: New test.
15964 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
15966 * testsuite/libgomp.fortran/strassen.f90:
15967 Add dg-skip-if aarch64_tiny.
15969 2013-06-20 Iain Sandoe <iain@codesourcery.com>
15970 Cesar Philippidis <cesar@codesourcery.com>
15972 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
15973 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
15974 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
15975 * testsuite/libgomp.fortran/fortran.exp: Likewise.
15976 * testsuite/libgomp.graphite/graphite.exp: Likewise.
15977 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
15978 Use dg-runtest rather than gfortran-dg-runtest.
15980 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
15982 * testsuite/libgomp.c/icv-2.c: Extend current handling of
15983 Linux-based x86 systems to cover all GNU systems.
15984 * testsuite/libgomp.c/lock-3.c: Likewise.
15985 * testsuite/libgomp.c/pr48591.c: Likewise.
15987 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
15989 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
15990 GNU/Hurd, as done for Linux-based systems.
15992 * config/posix/ptrlock.h: Fix comment.
15994 2013-05-27 Tobias Burnus <burnus@net-b.de>
15997 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
15998 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
15999 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
16000 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
16001 omp_destroy_nest_lock): Correct arguments to match the one in
16003 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
16004 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
16005 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
16006 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
16008 2013-05-16 Jakub Jelinek <jakub@redhat.com>
16010 * testsuite/libgomp.c/loop-13.c: New test.
16011 * testsuite/libgomp.c/loop-14.c: New test.
16012 * testsuite/libgomp.c/loop-15.c: New test.
16013 * testsuite/libgomp.c++/loop-13.C: New test.
16014 * testsuite/libgomp.c++/loop-14.C: New test.
16015 * testsuite/libgomp.c++/loop-15.C: New test.
16017 2013-02-06 Jakub Jelinek <jakub@redhat.com>
16019 PR middle-end/56217
16020 * testsuite/libgomp.c++/pr56217.C: New test.
16022 2013-02-01 Alan Modra <amodra@gmail.com>
16024 * task.c (GOMP_task, GOMP_taskwait): Comment.
16026 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
16027 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
16030 * config/linux/wait.h (do_spin): Use atomic load for addr.
16031 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
16032 for intptr and ptrlock.
16033 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
16036 2013-01-22 Alan Modra <amodra@gmail.com>
16040 * task.c (GOMP_task): Revert 2011-12-09 change.
16041 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
16042 barrier to read task->children..
16043 (gomp_barrier_handle_tasks): ..and matching atomic store with
16044 release barrier here when setting parent->children to NULL.
16046 2013-01-16 Jakub Jelinek <jakub@redhat.com>
16047 Tobias Burnus <burnus@net-b.de>
16050 * testsuite/libgomp.fortran/fortran.exp: Use
16051 -fintrinsic-modules-path= instead of
16052 -fintrinsic-modules-path.
16054 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
16056 Update copyright years.
16058 2012-12-19 Tobias Burnus <burnus@net-b.de>
16060 * testsuite/libgomp.fortran/fortran.exp: Set
16061 -fintrinsic-modules-path.
16063 2012-12-19 Tobias Burnus <burnus@net-b.de>
16065 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
16066 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
16068 2012-11-21 Jakub Jelinek <jakub@redhat.com>
16071 * team.c (gomp_free_thread): Decrease gomp_managed_threads
16072 if pool had any threads_used.
16074 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
16076 * testsuite/libgomp.c++/pr24455.C: Use
16077 -Wl,-undefined,dynamic_lookup on darwin.
16079 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
16081 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
16083 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
16085 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
16087 2012-10-23 Ian Bolton <ian.bolton@arm.com>
16088 Jim MacArthur <jim.macarthur@arm.com>
16089 Marcus Shawcroft <marcus.shawcroft@arm.com>
16090 Nigel Stephens <nigel.stephens@arm.com>
16091 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16092 Richard Earnshaw <rearnsha@arm.com>
16093 Sofiane Naci <sofiane.naci@arm.com>
16094 Stephen Thomas <stephen.thomas@arm.com>
16095 Tejas Belagod <tejas.belagod@arm.com>
16096 Yufeng Zhang <yufeng.zhang@arm.com>
16098 * configure.tgt: Add AArch64.
16100 2012-10-04 Jason Merrill <jason@redhat.com>
16102 * testsuite/libgomp.c++/tls-init1.C: New.
16104 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
16106 * configure: Regenerated.
16108 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
16110 * config/linux/mips/futex.h (sys_futex0): Change to static
16111 function with noinline, nomips16 attributes under MIPS16. Adjust
16112 asm statement to place 'li v0,SYS_futex' immediately before
16115 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
16117 * libgomp.texi (Library Index): Renamed from "Index" to prevent
16118 conflict with index.html on case-insensitive file systems.
16120 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
16122 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
16123 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
16125 2012-07-02 Richard Guenther <rguenther@suse.de>
16126 Michael Matz <matz@suse.de>
16127 Tobias Grosser <tobias@grosser.es>
16128 Sebastian Pop <sebpop@gmail.com>
16130 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
16131 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
16132 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16133 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16135 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
16137 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
16139 2012-06-22 Richard Guenther <rguenther@suse.de>
16141 Merge from graphite branch
16142 2012-01-13 Tobias Grosser <tobias@grosser.es>
16144 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
16145 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
16147 2012-06-07 Jakub Jelinek <jakub@redhat.com>
16149 PR middle-end/53580
16150 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
16151 use GOMP_barrier () call instead.
16152 * testsuite/libgomp.c/pr26943-3.c: Likewise.
16153 * testsuite/libgomp.c/pr26943-4.c: Likewise.
16154 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
16155 call GOMP_barrier instead.
16156 * testsuite/libgomp.fortran/vla5.f90: Likewise.
16158 2012-06-06 Jakub Jelinek <jakub@redhat.com>
16161 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
16162 argument to memset call.
16164 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
16166 * configure: Regenerated.
16168 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
16170 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
16172 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
16175 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
16177 2012-03-22 Jakub Jelinek <jakub@redhat.com>
16179 PR middle-end/52547
16180 * testsuite/libgomp.c/pr52547.c: New test.
16182 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16184 * testsuite/lib/libgomp.exp: load fortran-modules.exp
16186 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16188 * configure.tgt (mips-sgi-irix6*): Remove.
16190 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16192 * configure.tgt (alpha*-dec-osf*): Remove.
16194 * config/osf/sem.h: Remove.
16195 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
16197 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
16199 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
16201 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16204 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
16205 Remove ENABLE_SYMVERS_SOL2.
16206 * configure: Regenerate.
16207 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
16208 (PREPROCESS): New variable.
16209 (libgomp.ver): New target.
16210 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
16211 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
16212 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
16214 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
16215 * Makefile.in: Regenerate.
16217 2012-02-14 Walter Lee <walt@tilera.com>
16219 * configure.tgt: Handle tilegx and tilepro.
16220 * config/linux/tile/futex.h: New file.
16222 2012-02-08 Richard Guenther <rguenther@suse.de>
16224 PR tree-optimization/46886
16225 * testsuite/libgomp.c/pr46886.c: New testcase.
16227 2012-01-25 Matthias Klose <doko@ubuntu.com>
16229 * config/linux/arm: Remove empty directory.
16230 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
16232 2011-12-09 Alan Modra <amodra@gmail.com>
16235 * task.c (GOMP_taskwait): Don't access task->children outside of
16236 task_lock mutex region.
16237 (GOMP_task): Likewise.
16239 2011-12-06 Jakub Jelinek <jakub@redhat.com>
16242 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
16244 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
16245 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
16246 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16247 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16248 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
16250 2011-12-02 Alan Modra <amodra@gmail.com>
16252 * config/linux/affinity.c: Use atomic rather than sync builtin.
16253 * config/linux/lock.c: Likewise.
16254 * config/linux/ptrlock.h: Likewise.
16255 * config/linux/ptrlock.c: Likewise.
16256 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
16257 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
16258 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
16259 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
16260 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
16261 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
16262 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
16263 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
16264 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
16265 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
16267 2011-11-30 Alan Modra <amodra@gmail.com>
16270 * config/linux/bar.h: Use atomic rather than sync builtins.
16271 * config/linux/bar.c: Likewise. Add missing acquire
16272 synchronisation on generation field.
16273 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
16276 2011-11-30 Alan Modra <amodra@gmail.com>
16278 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
16279 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
16280 * config/linux/mutex.h: Use atomic rather than sync builtins.
16281 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
16282 * config/linux/omp-lock.h: Comment fix.
16283 * config/linux/arm/mutex.h: Delete.
16284 * config/linux/powerpc/mutex.h: Delete.
16285 * config/linux/ia64/mutex.h: Delete.
16286 * config/linux/mips/mutex.h: Delete.
16288 2011-11-30 Alan Modra <amodra@gmail.com>
16291 * config/linux/sem.h: Rewrite.
16292 * config/linux/sem.c: Rewrite.
16294 2011-11-28 Richard Henderson <rth@redhat.com>
16296 * libgomp.h (enum memmodel): New.
16298 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
16300 * configure: Regenerate.
16302 2011-10-10 Matthias Klose <doko@ubuntu.com>
16304 * config/posix95: Remove empty directory.
16306 2011-08-26 Jakub Jelinek <jakub@redhat.com>
16308 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
16310 2011-08-19 Jakub Jelinek <jakub@redhat.com>
16313 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
16314 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
16316 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16318 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
16320 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16323 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
16325 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
16327 * config/linux/proc.h: New.
16328 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
16329 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
16330 (gomp_init_num_threads): Update call to cpuset_popcount.
16331 (get_num_procs): Ditto.
16332 * config/linux/affinity.c (gomp_init_affinity): Call
16333 gomp_cpuset_popcount.
16335 2011-08-02 Jakub Jelinek <jakub@redhat.com>
16339 * omp.h.in (omp_in_final): New prototype.
16340 * omp_lib.f90.in (omp_in_final): New interface.
16341 (omp_integer_kind, omp_logical_kind): Remove
16342 and replace all its uses in the module with 4.
16343 (openmp_version): Change to 201107.
16344 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
16345 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
16346 kind for the parameters.
16347 (omp_in_final): New external.
16348 (openmp_version): Change to 201107.
16349 * task.c (omp_in_final): New function.
16350 (gomp_init_task): Initialize final_task.
16351 (GOMP_task): Remove unused attribute from flags. Handle final
16353 (GOMP_taskyield): New function.
16354 (omp_in_final): Return true if if (false) or final (true) task
16355 or descendant of final (true).
16356 * fortran.c (omp_in_final_): New function.
16357 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
16358 (GOMP_3.0): Export GOMP_taskyield.
16359 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
16361 (parse_unsigned_long_list): New function.
16362 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
16363 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
16364 even if parse_affinity returned false.
16365 * config/linux/affinity.c (gomp_init_affinity): Handle
16366 gomp_cpu_affinity_len == 0.
16367 * libgomp_g.h (GOMP_taskyield): New prototype.
16368 * libgomp.h (struct gomp_task): Add final_task field.
16369 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
16370 * team.c (gomp_team_start): Override new task's nthreads_var icv
16371 if list form OMP_NUM_THREADS has been used and it has value for
16372 the new nesting level.
16374 * testsuite/libgomp.c/atomic-11.c: New test.
16375 * testsuite/libgomp.c/atomic-12.c: New test.
16376 * testsuite/libgomp.c/atomic-13.c: New test.
16377 * testsuite/libgomp.c/atomic-14.c: New test.
16378 * testsuite/libgomp.c/reduction-6.c: New test.
16379 * testsuite/libgomp.c/task-5.c: New test.
16380 * testsuite/libgomp.c++/atomic-2.C: New test.
16381 * testsuite/libgomp.c++/atomic-3.C: New test.
16382 * testsuite/libgomp.c++/atomic-4.C: New test.
16383 * testsuite/libgomp.c++/atomic-5.C: New test.
16384 * testsuite/libgomp.c++/atomic-6.C: New test.
16385 * testsuite/libgomp.c++/atomic-7.C: New test.
16386 * testsuite/libgomp.c++/atomic-8.C: New test.
16387 * testsuite/libgomp.c++/atomic-9.C: New test.
16388 * testsuite/libgomp.c++/task-8.C: New test.
16389 * testsuite/libgomp.c++/reduction-4.C: New test.
16390 * testsuite/libgomp.fortran/allocatable7.f90: New test.
16391 * testsuite/libgomp.fortran/allocatable8.f90: New test.
16392 * testsuite/libgomp.fortran/crayptr3.f90: New test.
16393 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
16394 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
16395 * testsuite/libgomp.fortran/pointer1.f90: New test.
16396 * testsuite/libgomp.fortran/pointer2.f90: New test.
16397 * testsuite/libgomp.fortran/task4.f90: New test.
16399 2011-08-02 Tobias Burnus <burnus@net-b.de>
16401 * libgomp.texi: Update OpenMP spec references to 3.1.
16402 (omp_in_final,OMP_PROC_BIND): New sections.
16403 (OMP_NUM_THREADS): Document that the value can be now a list.
16404 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
16406 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
16408 * config/linux/x86/futex.h: Check __x86_64__ instead of
16411 2011-07-29 Jakub Jelinek <jakub@redhat.com>
16413 PR middle-end/49897
16414 PR middle-end/49898
16415 * testsuite/libgomp.c/pr49897-1.c: New test.
16416 * testsuite/libgomp.c/pr49897-2.c: New test.
16417 * testsuite/libgomp.c/pr49898-1.c: New test.
16418 * testsuite/libgomp.c/pr49898-2.c: New test.
16420 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
16422 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
16423 for ia32 instead of ilp32.
16425 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
16426 * testsuite/libgomp.c/atomic-6.c: Likewise.
16428 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
16430 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
16431 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
16433 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16436 * config/osf/sem.h: New file.
16437 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
16439 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16442 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
16445 2011-07-15 Jakub Jelinek <jakub@redhat.com>
16447 * config/linux/wait.h (do_spin): New inline, largely copied
16448 from do_wait, just don't do futex_wait here, instead return true if
16450 (do_wait): Implement using do_spin.
16451 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
16453 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
16454 __sync_bool_compare_and_swap, pass the oldval to
16455 gomp_mutex_lock_slow.
16456 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
16457 If all mutex contenders are just spinning and not sleeping, don't
16458 change state to 2 unnecessarily. Optimize the loop when state has
16459 already become 2 to use just one atomic operation per loop instead
16461 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
16463 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
16464 __sync_bool_compare_and_swap, pass the oldval to
16465 gomp_mutex_lock_slow.
16467 2011-06-22 Jakub Jelinek <jakub@redhat.com>
16470 * iter.c (gomp_iter_static_next): For chunk size 0
16471 only use n ceil/ nthreads size for the first
16472 n % nthreads threads in the team instead of
16473 all threads except for the last few ones which
16474 get less work or none at all.
16475 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
16476 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
16477 chunk argument, set run_sched_modifier to 0 for static
16478 resp. 1 for other kinds. If chunk argument is 0
16479 and not static, set value to 1.
16481 2011-05-19 Jakub Jelinek <jakub@redhat.com>
16484 * testsuite/libgomp.c++/pr49043.C: New test.
16487 * testsuite/libgomp.c++/pr48869.C: New test.
16489 2011-05-06 Jakub Jelinek <jakub@redhat.com>
16492 * fortran.c: Include limits.h.
16494 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
16496 (omp_set_num_threads_8_, omp_set_schedule_8_,
16497 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
16498 omp_get_team_size_8_): Use TO_INT macro.
16499 * testsuite/libgomp.fortran/pr48894.f90: New test.
16501 2011-04-13 Jakub Jelinek <jakub@redhat.com>
16503 PR middle-end/48591
16504 * testsuite/libgomp.c/pr48591.c: New test.
16506 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16509 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
16510 * configure: Regenerate.
16512 2011-02-27 Jakub Jelinek <jakub@redhat.com>
16515 * testsuite/libgomp.fortran/task3.f90: New test.
16517 2011-02-24 Tobias Burnus <burnus@net-b.de>
16519 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
16521 2011-02-23 Jakub Jelinek <jakub@redhat.com>
16524 * libgomp.texi (omp_get_wtime): Don't say time in the past
16525 must be Unix Epoch.
16527 2011-02-18 Jakub Jelinek <jakub@redhat.com>
16530 * testsuite/libgomp.fortran/fortran.exp: Check for both
16531 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
16532 but $blddir != "", still append ${blddir}/${lang_library_path}
16533 to ld_library_path.
16535 2011-02-16 Tobias Burnus <burnus@net-b.de>
16538 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
16539 of libquadmath.a before adding its libpath to ldflags.
16541 2011-02-14 Jakub Jelinek <jakub@redhat.com>
16544 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
16545 to FUTEX_WAIT futex syscall.
16546 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
16548 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16550 * configure: Regenerate.
16552 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
16555 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
16557 2011-01-16 Gerald Pfeifer
16559 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
16561 2010-12-14 Jakub Jelinek <jakub@redhat.com>
16564 * libgomp.fortran/allocatable6.f90: New test.
16566 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16568 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
16569 * configure: Regenerate.
16571 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
16575 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
16576 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
16577 * aclocal.m4: Regenerate.
16578 * configure: Regenerate.
16579 * Makefile.in: Regenerate.
16580 * testsuite/Makefile.in: Regenerate.
16582 2010-12-02 Jakub Jelinek <jakub@redhat.com>
16585 * libgomp.fortran/pr46753.f90: New test.
16588 * env.c (initialize_env): Default to spin count 300000
16589 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
16593 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
16594 at the end if sync builtins aren't supported.
16596 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16598 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
16600 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16602 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
16604 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
16606 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
16608 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16609 Tobias Burnus <burnus@net-b.de>
16613 * configure: Regenerate.
16615 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
16617 * config/linux/futex.h: New.
16618 * config/linux/arm/mutex.h: New.
16619 * configure.tgt (arm*-*-linux*): Add config path.
16621 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
16623 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
16625 2010-09-23 Tobias Burnus <burnus@net-b.de>
16627 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
16628 Change Fortran datatype to LOGICAL.
16629 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
16630 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
16632 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16634 * configure: Regenerate.
16636 2010-07-26 Jakub Jelinek <jakub@redhat.com>
16638 * libgomp.texi: Add function keyword to a couple of Fortran
16639 interfaces, use integer instead of int for Fortran.
16641 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
16643 * libgomp.texi: Fix spelling and pasto problems throughout.
16644 Adjust prototypes to match code.
16646 2010-07-24 Tobias Burnus <burnus@net-b.de>
16648 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
16649 silence -fwhole-file warning.
16651 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16653 * configure.tgt (*-*-solaris2.[56]*): Removed.
16655 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16657 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
16658 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
16659 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
16660 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
16661 targetting solaris2*.
16662 * configure: Regenerate.
16663 * config.h.in: Regenerate.
16665 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
16666 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
16667 Add libgomp_version_dep.
16668 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
16670 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
16671 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
16672 * Makefile.in: Regenerate.
16674 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
16675 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
16676 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
16677 to common block, protected by
16678 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
16680 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
16682 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
16684 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
16687 * configure: Regenerate.
16689 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16692 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
16693 * configure: Regenerate.
16694 * Makefile.in: Regenerate.
16695 * testsuite/Makefile.in: Regenerate.
16697 2010-04-26 Jakub Jelinek <jakub@redhat.com>
16700 * testsuite/libgomp.c/pr43893.c: New test.
16701 * testsuite/libgomp.c++/pr43893.C: New test.
16703 2010-04-21 Jakub Jelinek <jakub@redhat.com>
16705 PR middle-end/43570
16706 * testsuite/libgomp.fortran/vla8.f90: New test.
16708 2010-04-20 Jakub Jelinek <jakub@redhat.com>
16711 * config/linux/affinity.c (gomp_init_affinity): Decrease
16712 gomp_available_cpus if affinity mask confines the process to fewer
16714 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
16715 non-NULL, just return gomp_available_cpus.
16718 * sections.c (gomp_sections_init): Initialize ws->mode.
16720 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
16722 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
16723 not unused bar variable.
16724 * configure: Regenerate.
16726 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16728 * Makefile.in: Regenerate.
16729 * aclocal.m4: Regenerate.
16730 * testsuite/Makefile.in: Regenerate.
16732 2010-03-22 Jakub Jelinek <jakub@redhat.com>
16735 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
16736 (initialize_env): Adjust callers.
16737 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
16738 when the argument is 0.
16740 * testsuite/libgomp.c/pr42942.c: New test.
16742 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
16744 PR middle-end/42644
16745 PR middle-end/42130
16746 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
16747 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
16749 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16751 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
16752 * testsuite/libgomp.c++/task-6.C: Likewise.
16754 2010-01-28 Steve Ellcey <sje@cup.hp.com>
16756 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
16758 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
16760 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
16761 * configure: Regenerate.
16763 2010-01-26 Jakub Jelinek <jakub@redhat.com>
16766 * testsuite/libgomp.fortran/allocatable5.f90: New test.
16768 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
16770 * configure.ac: Test for executability of GFORTRAN.
16771 * configure: Regenerate.
16773 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16775 * configure: Regenerate.
16777 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
16780 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
16782 2010-01-03 Richard Guenther <rguenther@suse.de>
16784 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
16786 2009-12-23 Sebastian Pop <sebpop@gmail.com>
16788 * testsuite/libgomp.graphite/pr4118.c: New.
16790 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
16792 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
16793 for darwin, protect the test with require-effective-target tls_runtime.
16794 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
16796 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
16799 * testsuite/lib/libgomp.exp: Provide -B options to allow for
16800 link spec %s substitutions for static libraries.
16802 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
16805 * libgomp.graphite/force-parallel-2.c: Reduce array size.
16807 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16809 * Makefile.in: Regenerate.
16810 * configure: Regenerate.
16811 * testsuite/Makefile.in: Regenerate.
16813 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
16815 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
16816 settings for LC_ALL and LANG.
16818 2009-11-25 Jakub Jelinek <jakub@redhat.com>
16821 * testsuite/libgomp.fortran/pr42162.f90: New test.
16823 2009-11-13 Jakub Jelinek <jakub@redhat.com>
16825 PR middle-end/42029
16826 * testsuite/libgomp.c/pr42029.c: New test.
16828 2009-10-26 Jakub Jelinek <jakub@redhat.com>
16830 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
16831 *s. Accept ld version without text in ()s.
16832 * configure: Regenerated.
16834 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
16836 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
16838 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16841 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
16842 or a hyphen (happens with fortran language disabled).
16843 * configure: Regenerate.
16845 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16847 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
16848 use sed script portable to Solaris /bin/sed for extracting ld
16850 * configure: Regenerate.
16852 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
16854 * testsuite/libgomp.graphite/bounds.c: New test.
16856 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16858 * Makefile.am (libgomp_la_LINK): New.
16859 * Makefile.in: Regenerate.
16861 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16863 * configure.ac (AC_PREREQ): Bump to 2.64.
16865 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16867 * Makefile.am (install-html, install-pdf): Remove.
16868 * Makefile.in: Regenerate.
16870 * Makefile.in: Regenerate.
16871 * aclocal.m4: Regenerate.
16872 * config.h.in: Regenerate.
16873 * configure: Regenerate.
16874 * testsuite/Makefile.in: Regenerate.
16876 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16878 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
16879 * Makefile.in: Regenerate.
16881 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
16883 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
16884 * Makefile.in: Regenerate.
16886 2009-08-19 Tobias Burnus <burnus@net-b.de>
16889 omp_lib.h.in: Fix -std=f95 errors.
16891 2009-08-14 David Edelsohn <edelsohn@gnu.org>
16893 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
16894 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
16895 * testsuite/libgomp.graphite/graphite.exp: New.
16897 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
16899 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
16902 2009-08-04 David Daney <ddaney@caviumnetworks.com>
16904 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
16905 needed memory barrier semantics.
16906 * config/linux/mips/mutex.h: New file.
16908 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16910 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
16912 2009-07-16 Joseph Myers <joseph@codesourcery.com>
16914 * configure: Regenerate.
16916 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
16921 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
16922 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
16923 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
16925 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
16927 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
16928 options when choosing a multilib.
16930 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
16932 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
16933 ld_library_path. Use add_path. Add just find_libgcc_s to
16934 ld_library_path, not every libgcc multilib directory.
16935 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
16936 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
16937 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
16939 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
16941 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
16943 * Makefile.am (LTLDFLAGS): Define.
16945 * Makefile.in: Regenerate.
16947 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
16950 * testsuite/libgomp.fortran/fortran.exp: Don't link with
16951 libgfortranbegin, check existence of libgfortran.a instead of
16952 libgfortranbegin.a.
16954 2009-05-20 Jakub Jelinek <jakub@redhat.com>
16957 * team.c (gomp_thread_start): Destroy thr->release semaphore.
16958 (gomp_free_pool_helper): Likewise.
16960 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
16961 Jakub Jelinek <jakub@redhat.com>
16964 * testsuite/libgomp.fortran/workshare2.f90: New test.
16966 2009-04-09 Nick Clifton <nickc@redhat.com>
16968 * iter.c: Change copyright header to refer to version 3 of the
16969 GNU General Public License with version 3.1 of the GCC Runtime
16970 Library Exception and to point readers at the COPYING3 and
16971 COPYING3.RUNTIME files and the FSF's license web page.
16972 * alloc.c: Likewise.
16973 * barrier.c: Likewise.
16974 * config/bsd/proc.c: Likewise.
16975 * config/linux/affinity.c: Likewise.
16976 * config/linux/alpha/futex.h: Likewise.
16977 * config/linux/bar.c: Likewise.
16978 * config/linux/bar.h: Likewise.
16979 * config/linux/ia64/futex.h: Likewise.
16980 * config/linux/ia64/mutex.h: Likewise.
16981 * config/linux/lock.c: Likewise.
16982 * config/linux/mips/futex.h: Likewise.
16983 * config/linux/mutex.c: Likewise.
16984 * config/linux/mutex.h: Likewise.
16985 * config/linux/powerpc/futex.h: Likewise.
16986 * config/linux/proc.c: Likewise.
16987 * config/linux/ptrlock.c: Likewise.
16988 * config/linux/ptrlock.h: Likewise.
16989 * config/linux/s390/futex.h: Likewise.
16990 * config/linux/sem.c: Likewise.
16991 * config/linux/sem.h: Likewise.
16992 * config/linux/sparc/futex.h: Likewise.
16993 * config/linux/wait.h: Likewise.
16994 * config/linux/x86/futex.h: Likewise.
16995 * config/mingw32/proc.c: Likewise.
16996 * config/mingw32/time.c: Likewise.
16997 * config/posix/affinity.c: Likewise.
16998 * config/posix/bar.c: Likewise.
16999 * config/posix/bar.h: Likewise.
17000 * config/posix/lock.c: Likewise.
17001 * config/posix/mutex.h: Likewise.
17002 * config/posix/proc.c: Likewise.
17003 * config/posix/ptrlock.h: Likewise.
17004 * config/posix/sem.c: Likewise.
17005 * config/posix/sem.h: Likewise.
17006 * config/posix/time.c: Likewise.
17007 * config/posix95/lock.c: Likewise.
17008 * critical.c: Likewise.
17010 * error.c: Likewise.
17011 * fortran.c: Likewise.
17012 * iter_ull.c: Likewise.
17013 * libgomp.h: Likewise.
17014 * libgomp_f.h.in: Likewise.
17015 * libgomp_g.h: Likewise.
17016 * loop.c: Likewise.
17017 * loop_ull.c: Likewise.
17018 * omp.h.in: Likewise.
17019 * omp_lib.f90.in: Likewise.
17020 * omp_lib.h.in: Likewise.
17021 * ordered.c: Likewise.
17022 * parallel.c: Likewise.
17023 * sections.c: Likewise.
17024 * single.c: Likewise.
17025 * task.c: Likewise.
17026 * team.c: Likewise.
17027 * work.c: Likewise.
17029 2009-04-09 Jakub Jelinek <jakub@redhat.com>
17031 * testsuite/config/default.exp: Change copyright header to refer to
17032 version 3 of the GNU General Public License and to point readers
17033 at the COPYING3 file and the FSF's license web page.
17035 2009-04-08 Jakub Jelinek <jakub@redhat.com>
17037 PR middle-end/39573
17038 * libgomp.c++/pr39573.C: New test.
17040 2009-04-01 Jakub Jelinek <jakub@redhat.com>
17043 * testsuite/libgomp.c/pr39591-1.c: New test.
17044 * testsuite/libgomp.c/pr39591-2.c: New test.
17045 * testsuite/libgomp.c/pr39591-3.c: New test.
17047 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
17049 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
17050 * testsuite/libgomp.c/atomic-6.c: Ditto.
17052 2009-03-23 Jakub Jelinek <jakub@redhat.com>
17055 * testsuite/libgomp.c/loop-12.c: New test.
17056 * testsuite/libgomp.c/loop-11.c: New test.
17057 * testsuite/libgomp.c++/loop-11.C: New test.
17058 * testsuite/libgomp.c++/loop-12.C: New test.
17059 * testsuite/libgomp.c++/for-8.C: New test.
17061 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17063 * configure: Regenerate.
17065 2009-02-11 Jakub Jelinek <jakub@redhat.com>
17067 PR middle-end/39154
17068 * testsuite/libgomp.c/pr39154.c: New test.
17070 2009-01-30 Ian Lance Taylor <iant@google.com>
17072 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
17073 libgomp_ld_is_gold. Get gold version number.
17074 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
17075 * configure: Rebuild.
17077 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
17079 * testsuite/lib/libgomp.exp: Add -B option for targets that
17080 use libgfortran.a%s in their specs.
17082 2009-01-07 Jakub Jelinek <jakub@redhat.com>
17085 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
17086 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
17087 HAVE_AS_SYMVER_DIRECTIVE is not defined.
17088 * configure: Regenerated.
17089 * config.h.in: Likewise.
17091 2008-12-28 Jakub Jelinek <jakub@redhat.com>
17094 * testsuite/libgomp.c/pr38650.c: New test.
17095 * testsuite/libgomp.c++/pr38650.C: New test.
17097 2008-12-27 Jakub Jelinek <jakub@redhat.com>
17099 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
17101 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
17103 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
17105 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17107 * configure: Regenerate.
17109 2008-12-08 Jakub Jelinek <jakub@redhat.com>
17111 PR middle-end/36802
17112 * testsuite/libgomp.c/pr36802-1.c: New test.
17113 * testsuite/libgomp.c/pr36802-2.c: New test.
17114 * testsuite/libgomp.c/pr36802-3.c: New test.
17116 2008-12-01 Janis Johnson <janis187@us.ibm.com>
17119 * config/linux/powerpc/mutex.h: New.
17121 2008-12-01 Jakub Jelinek <jakub@redhat.com>
17124 * testsuite/libgomp.c++/for-7.C: New test.
17127 * testsuite/libgomp.c++/for-6.C: New test.
17129 2008-11-26 Janis Johnson <janis187@us.ibm.com>
17132 * testsuite/lib/libgomp.exp: Include new timeout library files.
17133 (libgomp_target_compile): Set timeout value from new proc.
17135 2008-11-13 Steve Ellcey <sje@cup.hp.com>
17138 * config/linux/ia64/mutex.h: New.
17140 2008-11-04 Tobias Burnus <burnus@net-b.de>
17143 * libgomp.texi (Runtime library routines, environment variables):
17144 Update for OpenMP version 3.0.
17146 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
17147 Steve Ellcey <sje@cup.hp.com>
17149 * configure: Regenerate for new libtool.
17150 * Makefile.in: Ditto.
17151 * testsuite/Makefile.in: Ditto.
17153 2008-09-19 Jakub Jelinek <jakub@redhat.com>
17154 Andreas Tobler <a.tobler@schweiz.org>
17156 * config/bsd/proc.c: New file.
17157 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
17158 * configure.ac: Check for header <sys/sysctl.h>
17159 * configure: Regenerate.
17160 * config.h.in: Likewise.
17162 2008-09-05 Janis Johnson <janis187@us.ibm.com>
17164 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
17166 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
17168 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
17169 * Makefile.in: Regenerated.
17170 * testsuite/Makefile.in: Regenerated.
17172 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
17174 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
17175 depend on blddir if blddir exists.
17176 (libgomp_target_compile): Likewise.
17177 * testsuite/libgomp.c++/c++.exp: Likewise.
17178 * testsuite/libgomp.fortran/fortran.exp: Likewise.
17180 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17182 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
17183 Do not list GPL as Invariant Section.
17185 2008-07-28 Ilie Garbacea <ilie@mips.com>
17186 Chao-ying Fu <fu@mips.com>
17188 * configure.tgt: Enable futex for MIPS.
17189 * config/linux/mips/futex.h: New file.
17191 2008-07-16 Jakub Jelinek <jakub@redhat.com>
17193 * team.c (gomp_team_end): Free team immediately if it has
17196 2008-07-08 David Edelsohn <edelsohn@gnu.org>
17198 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
17199 * testsuite/libgomp.fortran/fortran.exp: Same.
17200 * testsuite/libgomp.c/c.exp: Same.
17201 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
17202 directory to library path first.
17204 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
17206 * env.c (parse_stacksize): Add cast to avoid warning.
17207 (parse_spincount): Likewise.
17209 2008-06-27 Jakub Jelinek <jakub@redhat.com>
17211 * testsuite/libgomp.c/loop-10.c: New test.
17212 * libgomp.c/loop-3.c (main): Add lastprivate clause.
17213 * libgomp.c++/loop-6.C (main): Likewise.
17216 * testsuite/libgomp.c/debug-1.c: New test.
17218 2008-06-19 Jakub Jelinek <jakub@redhat.com>
17220 * testsuite/libgomp.c/nqueens-1.c: New test.
17223 * testsuite/libgomp.c++/task-7.C: New function.
17225 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17227 * configure: Regenerate.
17229 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17231 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
17232 mutex when HAVE_SYNC_BUILTINS isn't defined.
17234 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17236 * libgomp.texi (omp_test_lock): Fix typo.
17238 2008-06-12 Tobias Burnus <burnus@net-b.de>
17240 * omp_lib.f90.in: Add "implicit none".
17242 2008-06-12 Jakub Jelinek <jakub@redhat.com>
17244 PR middle-end/36506
17245 * testsuite/libgomp.c/reduction-5.c: New test.
17247 2008-06-11 Jakub Jelinek <jakub@redhat.com>
17249 * libgomp.h (struct gomp_task): Add in_tied_task field.
17250 * task.c (gomp_init_task): Initialize it.
17251 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
17252 unconditionally. Don't call gomp_team_barrier_wake if
17253 current task is implicit or if(0) from implicit and number of
17254 running tasks is equal to nthreads - 1.
17257 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
17258 omp_get_team_size_8): Fix pastos.
17261 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
17262 * configure: Regenerated.
17263 * config.h.in: Regenerated.
17264 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
17267 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
17270 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
17271 (GOMP_loop_ull_dynamic_start): Likewise.
17272 (GOMP_loop_ull_guided_start): Likewise.
17273 (GOMP_loop_ull_ordered_static_start): Likewise.
17274 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
17275 (GOMP_loop_ull_ordered_guided_start): Likewise.
17277 2008-06-06 Jakub Jelinek <jakub@redhat.com>
17278 Richard Henderson <rth@redhat.com>
17279 Ulrich Drepper <drepper@redhat.com>
17280 Jakob Blomer <jakob.blomer@ira.uka.de>
17282 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
17283 Substitute also OMP_*LOCK_25*.
17284 * configure: Regenerated.
17285 * config.h.in: Regenerated.
17286 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
17287 ptrlock.c and task.c.
17288 * Makefile.in: Regenerated.
17289 * testsuite/Makefile.in: Regenerated.
17290 * task.c: New file.
17291 * loop_ull.c: New file.
17292 * iter_ull.c: New file.
17293 * libgomp.h: Include ptrlock.h.
17294 (enum gomp_task_kind): New type.
17295 (struct gomp_team): Add task_lock, task_queue, task_count,
17296 task_running_count, single_count fields. Add
17297 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
17298 Remove work_share_lock, generation_mask,
17299 oldest_live_gen, num_live_gen and init_work_shares fields, add
17300 work work_share_list_alloc, work_share_list_free and work_share_chunk
17301 fields. Change work_shares from pointer to pointers into an array.
17302 Change ordered_release field into gomp_sem_t ** from flexible array
17303 member. Add implicit_task and initial_work_shares fields.
17304 Move close to the end of the struct.
17305 (struct gomp_team_state): Add single_count, last_work_share,
17306 active_level and level fields, remove work_share_generation.
17307 (gomp_barrier_handle_tasks): New prototype.
17308 (gomp_finish_task): New inline function.
17309 (struct gomp_work_share): Move chunk_size, end, incr into
17310 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
17311 next_ll fields. Reshuffle fields. Add next_alloc,
17312 next_ws, next_free and inline_ordered_team_ids fields, change
17313 ordered_team_ids into pointer from flexible array member.
17314 Add mode field. Put lock and next into a different cache line
17315 from most of the write-once fields.
17316 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
17317 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
17318 gomp_iter_ull_guided_next): New prototypes.
17319 (gomp_new_icv): New prototype.
17320 (struct gomp_thread): Add thread_pool and task fields.
17321 (struct gomp_thread_pool): New type.
17322 (gomp_new_team): New prototype.
17323 (gomp_team_start): Change type of last argument.
17324 (gomp_new_work_share): Removed.
17325 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
17326 (gomp_work_share_init_done): New static inline.
17327 (gomp_throttled_spin_count_var, gomp_available_cpus,
17328 gomp_managed_threads): New extern decls.
17329 (gomp_init_task): New prototype.
17330 (gomp_spin_count_var): New extern var decl.
17331 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
17332 or no alias support, or if not PIC.
17333 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
17334 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
17335 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
17336 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
17337 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
17338 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
17339 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
17340 gomp_test_nest_lock_25): New prototypes.
17341 (omp_lock_symver, strong_alias): Define.
17342 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
17344 (gomp_end_task): New.
17345 (struct gomp_task_icv, gomp_global_icv): New.
17346 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
17347 (struct gomp_task): New.
17348 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
17349 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
17351 (gomp_schedule_type): Reorder enum to match
17353 * team.c (struct gomp_thread_start_data): Add thread_pool and task
17355 (gomp_thread_start): Add gomp_team_barrier_wait call.
17356 For non-nested case remove clearing of docked thread thr fields.
17357 Use pool fields instead of global gomp_* variables. Use
17358 gomp_barrier_wait_last when needed. Initialize ts.active_level.
17359 Create tasks for each member thread.
17360 (free_team): Only destroy team barrier, task_lock here and free it.
17361 (gomp_free_thread): Free last_team if non-NULL.
17362 (gomp_team_end): Call gomp_team_barrier_wait instead of
17363 gomp_barrier_wait. For nested case call one extra
17364 gomp_barrier_wait. Move here some destruction from free_team.
17365 Call free_team on pool->last_team if any, rather than freeing
17366 current team. Destroy work_share_list_free_lock ifndef
17367 HAVE_SYNC_BUILTINS.
17368 (gomp_new_icv): New function.
17369 (gomp_threads, gomp_threads_size, gomp_threads_used,
17370 gomp_threads_dock): Removed.
17371 (gomp_thread_destructor): New variable.
17372 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
17374 (gomp_team_start): Create new pool if current thread doesn't have
17375 one. Use pool fields instead of global gomp_* variables.
17376 Initialize thread_pool field for new threads. Clear single_count.
17377 Change last argument from ws to team, don't create
17378 new team, set ts.work_share to &team->work_shares[0] and clear
17379 ts.last_work_share. Don't clear ts.work_share_generation.
17380 If number of threads changed, adjust atomically gomp_managed_threads.
17381 Use gomp_init_task instead of gomp_new_task,
17382 set thr->task to the corresponding implicit_task array entry.
17383 Create tasks for each member thread. Initialize ts.level.
17384 (initialize_team): Call pthread_key_create on
17385 gomp_thread_destructor.
17386 (team_destructor): New function.
17387 (new_team): Removed.
17388 (gomp_new_team): New function.
17389 (free_team): Free gomp_work_share blocks chained through next_alloc,
17390 instead of freeing work_shares and destroying work_share_lock.
17391 (gomp_team_end): Call gomp_fini_work_share. If number of threads
17392 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
17393 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
17394 of gomp_barrier_wait.
17395 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
17396 instead of gomp_barrier_wait. Call gomp_work_share_init_done
17397 if gomp_work_share_start returned true. Don't unlock ws->lock.
17398 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
17399 of gomp_barrier_wait.
17400 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
17401 gomp_work_share_init_done if gomp_work_share_start returned true.
17402 Don't unlock ws->lock.
17403 * work.c: Include stddef.h.
17404 (free_work_share): Use work_share_list_free_lock instead
17405 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
17406 Call gomp_fini_work_share and then either free ws if orphaned, or
17407 put it into work_share_list_free list of the current team.
17408 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
17410 (gomp_work_share_start, gomp_work_share_end,
17411 gomp_work_share_end_nowait): Rewritten.
17412 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
17413 (openmp_version): Set to 200805.
17414 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
17415 omp_sched_guided, omp_sched_auto): New parameters.
17416 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
17417 omp_set_max_active_levels, omp_get_max_active_levels,
17418 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
17419 omp_get_active_level): New interfaces.
17420 * omp_lib.h.in (openmp_version): Set to 200805.
17421 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
17422 omp_sched_guided, omp_sched_auto): New parameters.
17423 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
17424 omp_set_max_active_levels, omp_get_max_active_levels,
17425 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
17426 omp_get_active_level): New externals.
17427 * loop.c: Include limits.h.
17428 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
17430 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
17431 Likewise. Use gomp_icv.
17432 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
17433 ts.static_trip here.
17434 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
17435 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
17436 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
17437 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
17438 don't unlock ws->lock, otherwise lock it.
17439 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
17440 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
17441 (gomp_parallel_loop_start): Call gomp_new_team instead of
17442 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
17443 Adjust gomp_team_start caller. Pass 0 as second argument to
17444 gomp_resolve_num_threads.
17445 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
17446 If adding ws->chunk_size nthreads + 1 times after end won't
17447 overflow, set ws->mode to 1.
17448 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
17449 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
17450 GOMP_loop_ull_ordered_static_start,
17451 GOMP_loop_ull_ordered_dynamic_start,
17452 GOMP_loop_ull_ordered_guided_start,
17453 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
17454 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
17455 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
17456 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
17457 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
17459 * libgomp.map: Export lock routines also @@OMP_2.0.
17460 (GOMP_loop_ordered_dynamic_first,
17461 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
17462 GOMP_loop_ordered_static_first): Remove.
17463 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
17464 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
17465 GOMP_loop_ull_ordered_dynamic_next,
17466 GOMP_loop_ull_ordered_dynamic_start,
17467 GOMP_loop_ull_ordered_guided_next,
17468 GOMP_loop_ull_ordered_guided_start,
17469 GOMP_loop_ull_ordered_runtime_next,
17470 GOMP_loop_ull_ordered_runtime_start,
17471 GOMP_loop_ull_ordered_static_next,
17472 GOMP_loop_ull_ordered_static_start,
17473 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
17474 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
17475 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
17476 (omp_set_schedule, omp_get_schedule,
17477 omp_get_thread_limit, omp_set_max_active_levels,
17478 omp_get_max_active_levels, omp_get_level,
17479 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
17480 omp_set_schedule_, omp_set_schedule_8_,
17481 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
17482 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
17483 omp_get_max_active_levels_, omp_get_level_,
17484 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
17485 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
17486 New exports @@OMP_3.0.
17487 * omp.h.in (omp_sched_t): New type.
17488 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
17489 omp_set_max_active_levels, omp_get_max_active_levels,
17490 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
17491 omp_get_active_level): New prototypes.
17492 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
17493 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
17494 gomp_thread_limit_var, gomp_remaining_threads_count,
17495 gomp_remaining_threads_lock): New variables.
17496 (parse_spincount): New function.
17497 (initialize_env): Call gomp_init_num_threads unconditionally.
17498 Initialize gomp_available_cpus. Call parse_spincount,
17499 initialize gomp_{,throttled_}spin_count_var
17500 depending on presence and value of OMP_WAIT_POLICY and
17501 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
17502 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
17503 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
17504 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
17505 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
17506 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
17507 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
17508 (gomp_global_icv): New.
17509 (parse_schedule): Use it. Parse "auto".
17510 (omp_set_num_threads): Use gomp_icv.
17511 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
17513 (omp_get_max_threads): Move from parallel.c.
17514 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
17515 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
17517 (parse_stacksize, parse_wait_policy): New functions.
17518 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
17519 both wrappers for compatibility and new locks.
17520 (omp_set_schedule, omp_get_schedule,
17521 omp_get_thread_limit, omp_set_max_active_levels,
17522 omp_get_max_active_levels, omp_get_level,
17523 omp_get_ancestor_thread_num, omp_get_team_size,
17524 omp_get_active_level): New ialias_redirect.
17525 (omp_set_schedule_, omp_set_schedule_8_,
17526 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
17527 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
17528 omp_get_max_active_levels_, omp_get_level_,
17529 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
17530 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
17532 * parallel.c: Include limits.h.
17533 (gomp_resolve_num_threads): Add count argument. Rewritten.
17534 (GOMP_parallel_start): Call gomp_new_team and pass that as last
17535 argument to gomp_team_start. Pass 0 as second argument to
17536 gomp_resolve_num_threads.
17537 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
17538 if gomp_thread_limit_var != ULONG_MAX.
17539 (omp_in_parallel): Implement using ts.active_level.
17540 (omp_get_max_threads): Move to env.c.
17541 (omp_get_level, omp_get_ancestor_thread_num,
17542 omp_get_team_size, omp_get_active_level): New functions,
17544 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
17545 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
17546 gomp_iter_dynamic_next instead of the _locked variant and don't take
17547 lock around it, otherwise acquire it before calling
17548 gomp_iter_dynamic_next_locked.
17549 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
17550 gomp_iter_dynamic_next instead of the _locked variant and don't take
17552 (GOMP_parallel_sections_start): Call gomp_new_team instead of
17553 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
17554 Adjust gomp_team_start caller. Pass count as second argument to
17555 gomp_resolve_num_threads, don't adjust num_threads after the call.
17557 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
17558 ws->chunk_size by incr.
17559 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
17561 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
17563 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
17564 (omp_check_defines): Check even the compat defines.
17565 * config/linux/ptrlock.c: New file.
17566 * config/linux/ptrlock.h: New file.
17567 * config/linux/wait.h: New file.
17568 * config/posix/ptrlock.c: New file.
17569 * config/posix/ptrlock.h: New file.
17570 * config/linux/bar.h (gomp_team_barrier_wait,
17571 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
17572 (gomp_team_barrier_set_task_pending,
17573 gomp_team_barrier_clear_task_pending,
17574 gomp_team_barrier_set_waiting_for_tasks,
17575 gomp_team_barrier_waiting_for_tasks,
17576 gomp_team_barrier_done): New inlines.
17577 (gomp_barrier_t): Rewritten.
17578 (gomp_barrier_state_t): New typedef.
17579 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
17580 gomp_barrier_wait_start): Rewritten.
17581 (gomp_barrier_wait_end): Change second argument to
17582 gomp_barrier_state_t.
17583 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
17585 * config/linux/bar.c: Include wait.h instead of libgomp.h and
17587 (gomp_barrier_wait_end): Rewritten.
17588 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
17589 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
17590 * config/posix/bar.h (gomp_barrier_t): Add generation field.
17591 (gomp_barrier_state_t): New typedef.
17592 (gomp_team_barrier_wait,
17593 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
17594 (gomp_barrier_wait_start): Or all but low 2 bits from generation
17595 into the return value. Return gomp_barrier_state_t.
17596 (gomp_team_barrier_set_task_pending,
17597 gomp_team_barrier_clear_task_pending,
17598 gomp_team_barrier_set_waiting_for_tasks,
17599 gomp_team_barrier_waiting_for_tasks,
17600 gomp_team_barrier_done): New inlines.
17601 (gomp_barrier_wait_end): Change second argument to
17602 gomp_barrier_state_t.
17603 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
17605 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
17606 (gomp_barrier_wait_end): Change second argument to
17607 gomp_barrier_state_t.
17608 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
17609 gomp_team_barrier_wake): New functions.
17610 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
17612 (gomp_futex_wake, gomp_futex_wait): New variables.
17613 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
17614 * config/linux/lock.c: Rewrite to make locks task owned,
17615 for backwards compatibility provide the old entrypoints
17616 if symbol versioning. Include wait.h instead of libgomp.h and
17618 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
17619 * config/posix95/lock.c: Rewrite to make locks task owned,
17620 for backwards compatibility provide the old entrypoints
17621 if symbol versioning.
17622 * config/posix/lock.c: Rewrite to make locks task owned,
17623 for backwards compatibility provide the old entrypoints
17624 if symbol versioning.
17625 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
17626 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
17627 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
17628 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
17629 (sys_futex0): Return error code.
17630 (futex_wake, futex_wait): If ENOSYS was returned, clear
17631 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
17632 (cpu_relax, atomic_write_barrier): New static inlines.
17633 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
17634 (futex_wake, futex_wait): If ENOSYS was returned, clear
17635 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
17636 (cpu_relax, atomic_write_barrier): New static inlines.
17637 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
17638 (sys_futex0): Return error code.
17639 (futex_wake, futex_wait): If ENOSYS was returned, clear
17640 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
17641 (cpu_relax, atomic_write_barrier): New static inlines.
17642 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
17643 (sys_futex0): Return error code.
17644 (futex_wake, futex_wait): If ENOSYS was returned, clear
17645 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
17646 (cpu_relax, atomic_write_barrier): New static inlines.
17647 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
17648 (sys_futex0): Return error code.
17649 (futex_wake, futex_wait): If ENOSYS was returned, clear
17650 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
17651 (cpu_relax, atomic_write_barrier): New static inlines.
17652 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
17653 (sys_futex0): Return error code.
17654 (futex_wake, futex_wait): If ENOSYS was returned, clear
17655 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
17656 (cpu_relax, atomic_write_barrier): New static inlines.
17657 * config/linux/sem.c: Include wait.h instead of libgomp.h and
17659 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
17660 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
17661 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
17663 (omp_nest_lock_t): Change owner into void *, add lock field.
17664 * config/posix95/omp-lock.h: Include semaphore.h.
17665 (omp_lock_25_t, omp_nest_lock_25_t): New types.
17666 (omp_lock_t): Use sem_t instead of mutex if semaphores
17668 (omp_nest_lock_t): Likewise. Change owner to void *.
17669 * config/posix/omp-lock.h: Include semaphore.h.
17670 (omp_lock_25_t, omp_nest_lock_25_t): New types.
17671 (omp_lock_t): Use sem_t instead of mutex if semaphores
17673 (omp_nest_lock_t): Likewise. Add owner field.
17675 2008-06-06 Jakub Jelinek <jakub@redhat.com>
17677 * testsuite/libgomp.c/collapse-1.c: New test.
17678 * testsuite/libgomp.c/collapse-2.c: New test.
17679 * testsuite/libgomp.c/collapse-3.c: New test.
17680 * testsuite/libgomp.c/icv-1.c: New test.
17681 * testsuite/libgomp.c/icv-2.c: New test.
17682 * testsuite/libgomp.c/lib-2.c: New test.
17683 * testsuite/libgomp.c/lock-1.c: New test.
17684 * testsuite/libgomp.c/lock-2.c: New test.
17685 * testsuite/libgomp.c/lock-3.c: New test.
17686 * testsuite/libgomp.c/loop-4.c: New test.
17687 * testsuite/libgomp.c/loop-5.c: New test.
17688 * testsuite/libgomp.c/loop-6.c: New test.
17689 * testsuite/libgomp.c/loop-7.c: New test.
17690 * testsuite/libgomp.c/loop-8.c: New test.
17691 * testsuite/libgomp.c/loop-9.c: New test.
17692 * testsuite/libgomp.c/nested-3.c: New test.
17693 * testsuite/libgomp.c/nestedfn-6.c: New test.
17694 * testsuite/libgomp.c/sort-1.c: New test.
17695 * testsuite/libgomp.c/task-1.c: New test.
17696 * testsuite/libgomp.c/task-2.c: New test.
17697 * testsuite/libgomp.c/task-3.c: New test.
17698 * testsuite/libgomp.c/task-4.c: New test.
17699 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
17700 to C++ testsuite default compiler options.
17701 * testsuite/libgomp.c++/collapse-1.C: New test.
17702 * testsuite/libgomp.c++/collapse-2.C: New test.
17703 * testsuite/libgomp.c++/ctor-10.C: New test.
17704 * testsuite/libgomp.c++/for-1.C: New test.
17705 * testsuite/libgomp.c++/for-2.C: New test.
17706 * testsuite/libgomp.c++/for-3.C: New test.
17707 * testsuite/libgomp.c++/for-4.C: New test.
17708 * testsuite/libgomp.c++/for-5.C: New test.
17709 * testsuite/libgomp.c++/loop-8.C: New test.
17710 * testsuite/libgomp.c++/loop-9.C: New test.
17711 * testsuite/libgomp.c++/loop-10.C: New test.
17712 * testsuite/libgomp.c++/task-1.C: New test.
17713 * testsuite/libgomp.c++/task-2.C: New test.
17714 * testsuite/libgomp.c++/task-3.C: New test.
17715 * testsuite/libgomp.c++/task-4.C: New test.
17716 * testsuite/libgomp.c++/task-5.C: New test.
17717 * testsuite/libgomp.c++/task-6.C: New test.
17718 * testsuite/libgomp.fortran/allocatable1.f90: New test.
17719 * testsuite/libgomp.fortran/allocatable2.f90: New test.
17720 * testsuite/libgomp.fortran/allocatable3.f90: New test.
17721 * testsuite/libgomp.fortran/allocatable4.f90: New test.
17722 * testsuite/libgomp.fortran/collapse1.f90: New test.
17723 * testsuite/libgomp.fortran/collapse2.f90: New test.
17724 * testsuite/libgomp.fortran/collapse3.f90: New test.
17725 * testsuite/libgomp.fortran/collapse4.f90: New test.
17726 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
17727 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
17728 * testsuite/libgomp.fortran/lib4.f90: New test.
17729 * testsuite/libgomp.fortran/lock-1.f90: New test.
17730 * testsuite/libgomp.fortran/lock-2.f90: New test.
17731 * testsuite/libgomp.fortran/nested1.f90: New test.
17732 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
17733 * testsuite/libgomp.fortran/strassen.f90: New test.
17734 * testsuite/libgomp.fortran/tabs1.f90: New test.
17735 * testsuite/libgomp.fortran/tabs2.f: New test.
17736 * testsuite/libgomp.fortran/task1.f90: New test.
17737 * testsuite/libgomp.fortran/task2.f90: New test.
17738 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
17739 * testsuite/libgomp.fortran/vla5.f90: Likewise.
17740 * testsuite/libgomp.c/pr26943-2.c: Likewise.
17741 * testsuite/libgomp.c/pr26943-3.c: Likewise.
17742 * testsuite/libgomp.c/pr26943-4.c: Likewise.
17744 2008-05-23 Jakub Jelinek <jakub@redhat.com>
17747 * testsuite/libgomp.c++/ctor-11.C: New test.
17748 * testsuite/libgomp.c++/ctor-12.C: New test.
17750 2008-05-15 Janis Johnson <janis187@us.ibm.com>
17752 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
17754 2008-05-07 Jakub Jelinek <jakub@redhat.com>
17756 PR middle-end/36106
17757 * testsuite/libgomp.c/atomic-5.c: New test.
17758 * testsuite/libgomp.c/atomic-6.c: New test.
17759 * testsuite/libgomp.c/autopar-1.c: New test.
17761 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17763 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
17764 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
17765 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
17766 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
17767 * configure: Regenerate.
17768 * Makefile.in, testsuite/Makefile.in: Likewise.
17770 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
17773 * aclocal.m4: Regenerate.
17774 * configure: Regenerate.
17776 2008-03-18 Jakub Jelinek <jakub@redhat.com>
17778 PR middle-end/35611
17779 * testsuite/libgomp.c/atomic-4.c: New test.
17782 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
17783 (gomp_iter_guided_next): Likewise.
17784 * testsuite/libgomp.c/pr35625.c: New test.
17786 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17788 * aclocal.m4: Regenerate.
17789 * configure: Likewise.
17790 * Makefile.in: Likewise.
17791 * testsuite/Makefile.in: Likewise.
17793 2008-03-13 Jakub Jelinek <jakub@redhat.com>
17795 PR middle-end/35185
17796 * testsuite/libgomp.c++/pr35185.C: New test.
17798 2008-03-12 Jakub Jelinek <jakub@redhat.com>
17800 PR middle-end/35549
17801 * testsuite/libgomp.c/pr35549.c: New test.
17803 2008-03-06 Jakub Jelinek <jakub@redhat.com>
17805 * testsuite/libgomp.c/atomic-3.c: New test.
17807 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17810 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
17811 .F08 file suffixes.
17813 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
17816 * configure.ac: Add ACX_HEADER_STRING.
17817 * env.c: Include strings.h.
17818 * aclocal.m4: Regenerate.
17819 * config.h.in: Regenerate.
17820 * configure: Regenerate.
17821 * Makefile.in: Regenerate.
17822 * testsuite/Makefile.in: Regenerate.
17824 2008-02-15 Jakub Jelinek <jakub@redhat.com>
17826 PR middle-end/35196
17827 * testsuite/libgomp.c/pr35196.c: New test.
17829 PR middle-end/35130
17830 * testsuite/libgomp.fortran/pr35130.f90: New test.
17831 * testsuite/libgomp.c/pr35130.c: New test.
17833 2008-01-25 Jakub Jelinek <jakub@redhat.com>
17835 PR middle-end/33880
17836 * testsuite/libgomp.c/pr33880.c: New test.
17837 * testsuite/libgomp.fortran/pr33880.f90: New test.
17839 2008-01-24 David Edelsohn <edelsohn@gnu.org>
17841 * configure: Regenerate.
17843 2008-01-08 Jakub Jelinek <jakub@redhat.com>
17845 * configure.ac: Move futex checking into ../config/futex.m4.
17846 * configure: Rebuilt.
17847 * aclocal.m4: Rebuilt.
17848 * Makefile.in: Rebuilt.
17850 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
17851 2007-10-15 ../config/tls.m4 change.
17853 2007-12-19 Jakub Jelinek <jakub@redhat.com>
17856 * testsuite/libgomp.c/pr34513.c: New test.
17857 * testsuite/libgomp.c++/pr34513.C: New test.
17859 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
17862 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
17864 2007-12-04 Jakub Jelinek <jakub@redhat.com>
17866 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
17868 2007-12-03 Jakub Jelinek <jakub@redhat.com>
17870 * testsuite/libgomp.c/private-1.c: New test.
17872 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
17873 Paolo Bonzini <bonzini@gnu.org>
17875 * Makefile.am: Use space as vpath separator. Use 'vpath %'
17876 instead of 'VPATH ='.
17877 * Makefile.in: Regenerate.
17879 2007-11-23 Matthias Klose <doko@ubuntu.com>
17881 * configure.ac: Adjust makeinfo version check.
17882 * configure: Regenerate.
17884 2007-11-10 Jakub Jelinek <jakub@redhat.com>
17887 * testsuite/libgomp.fortran/pr34020.f90: New test.
17889 2007-11-06 Jakub Jelinek <jakub@redhat.com>
17892 * testsuite/libgomp.c++/atomic-1.C: New test.
17894 2007-10-25 Jakub Jelinek <jakub@redhat.com>
17897 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
17898 Make x and y integers rather than (implicit) reals. Add private (j)
17899 clause to the last omp parallel.
17901 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
17903 * configure: Regenerate following changes to ../config/tls.m4.
17905 2007-09-28 Jakub Jelinek <jakub@redhat.com>
17907 * testsuite/libgomp.fortran/stack.f90: New test.
17909 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
17911 * config/mingw32/proc.c: New file.
17913 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
17915 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
17916 (main): Use __get_cpuid to get i386 target fetaures.
17917 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
17918 (main): Use __get_cpuid to get x86_64 target fetaures.
17920 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
17923 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
17924 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
17926 2007-07-12 Jakub Jelinek <jakub@redhat.com>
17929 * testsuite/libgomp.fortran/pr32550.f90: New test.
17930 * testsuite/libgomp.fortran/crayptr2.f90: New test.
17932 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
17934 * aclocal.m4: Regenerated.
17936 2007-07-05 Tobias Burnus <burnus@net-b.de>
17939 * testsuite/libgomp.fortran/pr32359.f90: New.
17941 2007-07-02 Jakub Jelinek <jakub@redhat.com>
17944 * sections.c (GOMP_parallel_sections_start): Only decrease
17945 number of threads to COUNT if dyn_var is true.
17946 * testsuite/libgomp.c/pr32468.c: New test.
17948 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17951 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
17953 2007-06-21 Jakub Jelinek <jakub@redhat.com>
17955 PR middle-end/32362
17956 * testsuite/libgomp.c/pr32362-1.c: New test.
17957 * testsuite/libgomp.c/pr32362-2.c: New test.
17958 * testsuite/libgomp.c/pr32362-3.c: New test.
17960 2007-06-07 Jakub Jelinek <jakub@redhat.com>
17962 * team.c (gomp_team_start): Fix setting up thread_attr
17965 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
17967 * configure: Regenerate.
17969 2007-05-23 Steve Ellcey <sje@cup.hp.com>
17971 * Makefile.in: Regenerate.
17972 * configure: Regenerate.
17973 * aclocal.m4: Regenerate.
17974 * testsuite/Makefile.in: Regenerate.
17976 2007-05-04 Jakub Jelinek <jakub@redhat.com>
17978 * config/linux/proc.c: New file.
17981 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
17983 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
17985 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
17987 2007-04-16 Matthias Klose <doko@debian.org>
17989 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
17990 flags if not building with -m64.
17991 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
17992 flag for i?86-*-* targets, if current target matches -m64.
17994 2007-04-14 Steve Ellcey <sje@cup.hp.com>
17996 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
17997 * Makefile.in: Regenerate.
17999 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18002 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
18004 * testsuite/libgomp.fortran/fortran.exp: Likewise.
18006 2007-04-04 Jakub Jelinek <jakub@redhat.com>
18008 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
18010 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
18011 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
18012 (parse_affinity): New function.
18013 (initialize_env): Call it and gomp_init_affinity.
18014 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
18015 create new pthread_attr_t and call gomp_init_thread_affinity
18016 on it for each thread before passing the attribute to pthread_create.
18017 * config/linux/affinity.c: New file.
18018 * config/posix/affinity.c: New file.
18019 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
18020 * configure: Rebuilt.
18021 * config.h.in: Rebuilt.
18022 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
18023 * Makefile.in: Rebuilt.
18025 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
18027 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
18029 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
18030 and use it if found.
18032 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
18034 * testsuite/config/default.exp: New file.
18035 * testsuite/lib/libgomp.exp: New file.
18036 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
18037 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
18038 load_lib *, load_gcc_lib *): Move to libgomp.exp.
18039 (libgomp_load): Remove.
18040 * testsuite/lib/libgomp.exp (libgomp_init): Compute
18041 always_ld_library_path, not ld_library_path. Set additional_flags
18042 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
18043 (target_compile): Do not call libgomp_init. Append lang_library_path
18044 and lang_link_flags to options.
18045 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
18046 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
18048 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
18049 always_ld_library_path. Set LD_LIBRARY_PATH here.
18050 * testsuite/libgomp.fortran/fortran.exp: Ditto.
18051 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
18052 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
18054 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
18055 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
18056 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
18057 * testsuite/libgomp.c/pr29947-1.c: Ditto.
18058 * testsuite/libgomp.c/atomic-10.c: Ditto.
18060 2007-03-21 Jakub Jelinek <jakub@redhat.com>
18062 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
18063 dg-final cleanup-modules line.
18064 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
18065 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
18066 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
18067 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
18068 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
18069 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
18070 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
18072 2007-03-18 Andreas Schwab <schwab@suse.de>
18074 * acinclude.m4: Adjust regular expression for ld version
18076 * configure: Regenerate.
18078 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
18080 * Makefile.am: Add install-pdf target as copied from
18081 automake v1.10 rules.
18082 * Makefile.in: Regenerate
18084 2007-02-07 Jakub Jelinek <jakub@redhat.com>
18087 * configure: Regenerate.
18090 * testsuite/libgomp.c++/pr30703.C: New test.
18092 2007-02-02 Jakub Jelinek <jakub@redhat.com>
18095 2006-07-05 Eric Christopher <echristo@apple.com>
18096 * configure.ac: Depend addition of -pthread on host OS.
18097 * configure: Regenerate.
18099 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18101 * libgomp.texi: Fix spacing after abbreviations.
18103 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
18106 * configure.ac: Add check for makeinfo
18107 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
18108 if an appropriate version of makeinfo is found.
18109 * aclocal.m4: Regenerated.
18110 * configure: Regenerated.
18111 * Makefile.in: Regenerated.
18112 * testsuite/Makefile.in: Regenerated.
18114 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
18117 * libgomp.texi: More about implementation-dependent settings.
18119 2007-01-26 Tobias Burnus <burnus@net-b.de>
18121 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
18123 2007-01-24 Jakub Jelinek <jakub@redhat.com>
18125 PR middle-end/30494
18126 * testsuite/libgomp.c/pr30494.c: New test.
18128 2007-01-15 Tom Tromey <tromey@redhat.com>
18130 * configure: Rebuilt.
18131 * configure.ac: Fixed comment.
18133 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
18135 * libgomp.texi: Document implementation specific default values of
18136 environment variables.
18138 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
18141 * libgomp.texi: New file.
18142 * configure.ac: Add --enable-generated-files-in-srcdir option.
18143 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
18145 * Makefile.in: Regenerated.
18146 * config.h.in: Regenerated.
18147 * testsuite/Makefile.in: Regenerated.
18150 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
18153 * env.c (omp_set_num_threads): Set illegal thread count to 1.
18155 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
18157 * configure: Regenerate.
18159 2006-12-04 Jakub Jelinek <jakub@redhat.com>
18162 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
18163 start if there shouldn't be any loop iterations.
18164 (gomp_loop_ordered_static_start): Remove start == end test.
18165 * testsuite/libgomp.c/pr29947-1.c: New test.
18166 * testsuite/libgomp.c/pr29947-2.c: New test.
18168 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
18170 * configure.tgt: Force initial-exec TLS model on Linux only.
18172 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
18174 * configure: Regenerated.
18176 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
18178 * env.c (parse_schedule): Reject out of range values.
18179 (parse_unsigned_long): Reject out of range, negative or zero values.
18181 2006-10-29 Jakub Jelinek <jakub@redhat.com>
18184 * testsuite/libgomp.fortran/pr29629.f90: New test.
18186 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
18189 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
18190 * config/posix95: New directory.
18191 * config/posix95/omp-lock.h: New file.
18192 * config/posix95/lock.c: Likewise.
18194 2006-10-14 Geoffrey Keating <geoffk@apple.com>
18196 * aclocal.m4: Regenerate.
18197 * configure: Regenerate.
18199 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
18201 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
18204 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
18206 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
18208 * configure: Regenerate.
18209 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
18211 2006-09-26 Jakub Jelinek <jakub@redhat.com>
18213 PR middle-end/25261
18214 PR middle-end/28790
18215 * testsuite/libgomp.c/nestedfn-4.c: New test.
18216 * testsuite/libgomp.c/nestedfn-5.c: New test.
18217 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
18220 * testsuite/libgomp.fortran/condinc1.f: New test.
18221 * testsuite/libgomp.fortran/condinc2.f: New test.
18222 * testsuite/libgomp.fortran/condinc3.f90: New test.
18223 * testsuite/libgomp.fortran/condinc4.f90: New test.
18224 * testsuite/libgomp.fortran/condinc1.inc: New file.
18226 2006-09-18 Tom Tromey <tromey@redhat.com>
18228 * configure: Rebuilt.
18230 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
18233 PR preprocessor/14634
18234 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
18236 * configure: Regenerate.
18238 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
18240 * testsuite/libgomp.fortran/reduction3.f90: Change
18241 -2147483648 to -huge(i)-1 to avoid overflow.
18242 * testsuite/libgomp.fortran/reduction4.f90: Change
18243 Z'ffffffff' to not(0) to avoid overflow.
18245 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
18248 * Makefile.am (libsubincludedir): New.
18249 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
18250 * Makefile.in: Regenerate.
18252 2006-08-17 Jakub Jelinek <jakub@redhat.com>
18255 * env.c: Include ctype.h.
18256 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
18257 leading and/or trailing whitespace and compare strings case
18260 2006-07-16 Jakub Jelinek <jakub@redhat.com>
18263 * testsuite/libgomp.fortran/pr28390.f: New test.
18265 2006-07-05 Eric Christopher <echristo@apple.com>
18267 * configure.ac: Depend addition of -pthread on host OS.
18268 * configure: Regenerate.
18270 2006-06-21 Jakub Jelinek <jakub@redhat.com>
18272 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
18273 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
18276 2006-06-20 Jakub Jelinek <jakub@redhat.com>
18280 * configure.ac: If neither --enable-linux-futex nor
18281 --disable-linux-futex is passed, determine the default by checking
18282 for compiling and/or running against NPTL. With --enable-linux-futex,
18283 check if SYS_gettid and SYS_futex are defined.
18284 * configure: Rebuilt.
18286 2006-06-14 Richard Henderson <rth@redhat.com>
18289 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
18290 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
18292 2006-06-09 Richard Henderson <rth@redhat.com>
18294 * env.c (gomp_nthreads_var): Change to unsigned long.
18295 (gomp_run_sched_chunk): Likewise.
18296 (parse_unsigned_long): Rename from parse_num_threads and generalize.
18297 (initialize_env): Initialize gomp_thread_attr.
18298 * libgomp.h (gomp_nthreads_var): Update decl.
18299 (gomp_run_sched_chunk): Likewise.
18300 (gomp_thread_attr): Declare.
18301 * team.c (gomp_thread_attr): Export.
18302 (initialize_team): Don't initialize it.
18304 2006-06-09 Jakub Jelinek <jakub@redhat.com>
18307 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
18308 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
18310 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
18312 * config/mingw32/time.c: New file.
18313 * configure.tgt: Use it.
18315 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
18317 * Makefile.am: Add install-html target. Add install-html to .PHONY
18318 * Makefile.in: Regenerate.
18320 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18323 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
18324 * testsuite/libgomp.c/critical-1.c: Likewise.
18325 * testsuite/libgomp.c/loop-1.c: Likewise.
18326 * testsuite/libgomp.c/loop-2.c: Likewise.
18327 * testsuite/libgomp.c/single-1.c: Likewise.
18328 * testsuite/libgomp.c/ordered-1.c: Likewise.
18329 * testsuite/libgomp.c/ordered-2.c: Likewise.
18331 2006-05-15 Jakub Jelinek <jakub@redhat.com>
18333 PR middle-end/27416
18334 * libgomp.fortran/pr27416-1.f90: New test.
18336 2006-05-03 Jakub Jelinek <jakub@redhat.com>
18339 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
18340 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
18342 2006-05-02 Jakub Jelinek <jakub@redhat.com>
18345 * testsuite/libgomp.c/pr26943-1.c: New test.
18346 * testsuite/libgomp.c/pr26943-2.c: New test.
18347 * testsuite/libgomp.c/pr26943-3.c: New test.
18348 * testsuite/libgomp.c/pr26943-4.c: New test.
18349 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
18350 * testsuite/libgomp.c++/pr26943.C: New test.
18352 2006-05-02 Jakub Jelinek <jakub@redhat.com>
18354 PR middle-end/27337
18355 * testsuite/libgomp.c++/pr27337.C: New test.
18357 2006-04-26 Jakub Jelinek <jakub@redhat.com>
18360 * testsuite/libgomp.c/pr26171.c: New test.
18362 2006-04-25 Richard Henderson <rth@redhat.com>
18365 * configure.ac: Use GCC_CHECK_TLS.
18366 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
18367 * Makefile.in, aclocal.m4, configure: Regenerate.
18369 2006-04-10 Matthias Klose <doko@debian.org>
18371 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
18372 directory names containing underscores.
18374 2006-03-21 Jakub Jelinek <jakub@redhat.com>
18377 * testsuite/libgomp.c++/pr26691.C: New test.
18379 2006-03-13 Jakub Jelinek <jakub@redhat.com>
18381 * testsuite/libgomp.fortran/retval2.f90: New test.
18383 2006-03-09 Diego Novillo <dnovillo@redhat.com>
18385 * testsuite/libgomp.c++: New directory.
18387 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
18389 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
18390 * config/posix/sem.c: Implement the above.
18392 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
18394 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
18395 define HAVE_BROKEN_POSIX_SEMAPHORES.
18396 * configure: Rebuilt.
18397 * config.h.in: Rebuilt.
18399 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
18402 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
18403 for the other pthread check.
18404 * configure: Regenerate.
18405 * config.h.in: Regenerate.
18407 2006-02-15 Jakub Jelinek <jakub@redhat.com>
18411 * Makefile.am (fincludedir): New variable.
18412 (nodist_include_HEADERS): Remove Fortran files.
18413 (nodist_finclude_HEADERS): New variable.
18414 * Makefile.in: Regenerated.
18416 2006-02-13 Jakub Jelinek <jakub@redhat.com>
18418 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
18419 Remove tests for returning assumed character length arrays.
18421 2006-02-12 Roger Sayle <roger@eyesopen.com>
18422 John David Anglin <dave@hiauly1.hia.nrc.ca>
18425 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
18427 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
18429 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
18431 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
18433 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
18434 part of LD_LIBRARY_PATH manually.
18436 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
18439 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
18442 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
18445 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
18446 * configure.ac (PERL): Don't set.
18447 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
18448 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
18449 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
18450 * omp.h.in: Wrap the new configure substitutions with @ characters.
18451 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
18452 * aclocal.m4, configure, Makefile.in: Regenerate.
18453 * mkomp_h.pl: Delete.
18455 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
18458 * configure.ac: Use GCC_HEADER_STDINT.
18459 * libgomp.h: Include gstdint.h.
18460 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
18461 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
18463 2006-01-24 Richard Henderson <rth@redhat.com>
18466 * configure.ac: Add AM_MAINTAINER_MODE.
18467 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
18469 2006-01-24 Diego Novillo <dnovillo@redhat.com>
18471 * Makefile.in: Regenerate.
18472 * testsuite/Makefile.in: Regenerate.
18473 * aclocal.m4: Regenerate.
18475 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
18477 * config/posix/proc.c: Conditional include of sys/loadavg.h for
18479 * configure.ac: Add check for loadavg.h.
18480 (link_gomp): Adjust comment.
18481 * configure: Regenerate.
18482 * config.h.in: Regenerate.
18484 2006-01-21 Steve Ellcey <sje@cup.hp.com>
18487 * configure.ac: Remove check for alloca.h.
18488 * configure: Regenerate.
18489 * config.h.in: Regenerate.
18490 * libgomp.h: define gomp_alloca to be __builtin_alloca.
18491 * team.c: Remove use of alloca.h.
18492 Call gomp_alloca instead of alloca.
18494 2006-01-20 Steve Ellcey <sje@cup.hp.com>
18497 * team.c: Add include of alloca.h.
18498 * configure.ac: Add check for alloca.h.
18499 * configure: Regenerate.
18500 * config.h.in: Regenerate.
18502 2006-01-17 Jakub Jelinek <jakub@redhat.com>
18505 * testsuite/libgomp.fortran/pr25219.f90: New test.
18507 2005-12-05 Uros Bizjak <uros@kss-loka.si>
18509 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
18510 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
18511 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
18512 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
18513 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
18514 testsuite/libgomp.fortran/threadprivate1.f90,
18515 testsuite/libgomp.fortran/threadprivate2.f90,
18516 testsuite/libgomp.fortran/threadprivate3.f90,
18517 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
18518 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
18519 testsuite/libgomp.fortran/omp_parse3.f90: Change required
18520 effective-target to TLS runtime.
18522 * testsuite/libgomp.fortran/pr25162.f: Require
18523 effective-target TLS runtime.
18525 2005-12-01 Jakub Jelinek <jakub@redhat.com>
18527 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
18528 * testsuite/libgomp.c/nestedfn-3.c: New test.
18530 2005-11-30 Jakub Jelinek <jakub@redhat.com>
18533 * testsuite/libgomp.fortran/pr25162.f: New test.
18535 2005-11-28 Jakub Jelinek <jakub@redhat.com>
18537 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
18538 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
18540 2005-11-25 Jakub Jelinek <jakub@redhat.com>
18542 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
18543 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
18544 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
18545 single.c, team.c, work.c, config/linux/alpha/futex.h,
18546 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
18547 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
18548 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
18549 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
18550 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
18551 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
18552 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
18555 2005-11-18 Jakub Jelinek <jakub@redhat.com>
18557 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
18558 to nodist_noinst_HEADERS.
18559 * Makefile.in: Rebuilt.
18561 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
18562 add integer count field.
18563 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
18564 omp_nest_lock_t type change.
18565 (omp_init_nest_lock): Likewise. Initialize count to 0.
18566 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
18568 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
18570 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
18571 Increment count if successful and return the new nesting level.
18572 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
18573 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
18574 * testsuite/libgomp.c/lib-1.c: New test.
18575 * testsuite/libgomp.fortran/lib1.f90: New test.
18576 * testsuite/libgomp.fortran/lib2.f: New test.
18577 * testsuite/libgomp.fortran/lib3.f: New test.
18579 2005-11-17 Richard Henderson <rth@redhat.com>
18582 * Makefile.am (nodist_toolexeclib_HEADERS): New.
18583 * configure.ac (link_gomp): New. Substitute it.
18584 (AC_CONFIG_FILES): Add libgomp.spec.
18585 * libgomp.spec.in: New file.
18586 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
18587 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
18589 2005-11-18 Jakub Jelinek <jakub@redhat.com>
18591 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
18592 reduction(-:var) behaving the same as reduction(+:var).
18593 * testsuite/libgomp.c/reduction-4.c: New test.
18595 2005-11-15 Uros Bizjak <uros@kss-loka.si>
18597 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
18598 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
18599 testsuite/libgomp.c/copyin-3.c,
18600 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
18601 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
18602 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
18603 testsuite/libgomp.c++/pr24455.C,
18604 testsuite/libgomp.fortran/threadprivate1.f90,
18605 testsuite/libgomp.fortran/threadprivate2.f90,
18606 testsuite/libgomp.fortran/threadprivate3.f90,
18607 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
18608 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
18609 testsuite/libgomp.fortran/omp_parse3.f90: Require
18610 effective-target TLS.
18612 2005-11-14 Diego Novillo <dnovillo@redhat.com>
18616 2005-11-13 Jakub Jelinek <jakub@redhat.com>
18619 * team.c (initialize_team): Pass NULL rather than free as
18620 pthread_key_create destructor. Initialize thread specific data
18621 pointer in initial thread to a static local variable rather than
18624 2005-11-11 Uros Bizjak <uros@kss-loka.si>
18626 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
18627 its location to ld_library_path.
18629 2005-11-10 Diego Novillo <dnovillo@redhat.com>
18631 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
18633 2005-11-10 Diego Novillo <dnovillo@redhat.com>
18635 * testsuite/libgomp.c: Rename from libgomp.dg.
18637 2005-11-09 Diego Novillo <dnovillo@redhat.com>
18639 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
18640 threadprivate variable 'i'.
18642 2005-11-09 Jakub Jelinek <jakub@redhat.com>
18644 * config/linux/s390/futex.h: New file.
18645 * configure.tgt: Use it.
18647 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
18648 before the parallel.
18650 2005-11-08 Jakub Jelinek <jakub@redhat.com>
18653 * testsuite/libgomp.c++/master-1.C: New test.
18655 2005-11-07 Jakub Jelinek <jakub@redhat.com>
18657 * testsuite/libgomp.dg/copyin-3.c: New test.
18659 2005-11-07 Jakub Jelinek <jakub@redhat.com>
18661 * testsuite/libgomp.fortran/retval1.f90: New test.
18662 * testsuite/libgomp.fortran/vla7.f90: New test.
18664 2005-11-06 Jakub Jelinek <jakub@redhat.com>
18666 * testsuite/libgomp.fortran/vla2.f90: New test.
18667 * testsuite/libgomp.fortran/vla3.f90: New test.
18668 * testsuite/libgomp.fortran/vla4.f90: New test.
18669 * testsuite/libgomp.fortran/vla5.f90: New test.
18670 * testsuite/libgomp.fortran/vla6.f90: New test.
18672 2005-11-01 Jakub Jelinek <jakub@redhat.com>
18674 * config/linux/sparc/futex.h: New file.
18675 * configure.tgt: Use it.
18676 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
18678 * critical.c: Include stdlib.h.
18679 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
18680 ignoring return value.
18681 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
18682 LIBGOMP_CHECK_SYNC_BUILTINS check.
18683 * configure: Rebuilt.
18685 2005-10-31 Jakub Jelinek <jakub@redhat.com>
18687 * testsuite/libgomp.fortran/vla1.f90: New test.
18689 2005-10-31 Richard Henderson <rth@redhat.com>
18691 * testsuite/libgomp.fortran/character2.f90: Fix race condition
18692 setting 's' in different threads.
18694 2005-10-31 Jakub Jelinek <jakub@redhat.com>
18696 * libgomp.h (attribute_hidden, ialias): Define.
18697 * config/posix/proc.c (omp_get_num_procs): Add ialias.
18698 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
18699 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
18700 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
18701 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
18702 omp_test_lock, omp_test_nest_lock): Likewise.
18703 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
18704 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
18705 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
18706 omp_test_lock, omp_test_nest_lock): Likewise.
18707 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
18708 omp_get_dynamic, omp_get_nested): Likewise.
18709 * parallel.c (omp_get_num_threads, omp_get_max_threads,
18710 omp_get_thread_num, omp_in_parallel): Likewise.
18711 * fortran.c (ialias_redirect): Define.
18712 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
18713 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
18714 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
18715 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
18716 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
18717 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
18718 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
18719 omp_get_wtime): Add ialias_redirect.
18721 2005-10-30 Jakub Jelinek <jakub@redhat.com>
18723 * fortran.c: Include stdlib.h.
18725 2005-10-29 Jakub Jelinek <jakub@redhat.com>
18727 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
18728 * Makefile.in: Regenerated.
18730 2005-10-28 Jakub Jelinek <jakub@redhat.com>
18732 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
18733 * libgomp_f.h.in (omp_check_defines): New function.
18734 * env.c: Include libgomp_f.h.
18735 (initialize_env): Call omp_check_defines.
18737 * testsuite/libgomp.dg/copyin-2.c: New test.
18738 * testsuite/libgomp.c++/copyin-2.C: New test.
18739 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
18741 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
18742 * testsuite/libgomp.fortran/sharing2.f90: New test.
18744 * testsuite/libgomp.dg/copyin-1.c: New test.
18745 * testsuite/libgomp.c++/copyin-1.C: New test.
18747 2005-10-26 Jakub Jelinek <jakub@redhat.com>
18749 * testsuite/libgomp.fortran/crayptr1.f90: New test.
18751 * testsuite/libgomp.fortran/workshare1.f90: New test.
18753 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
18755 * libgomp.fortran/sharing1.f90: New test.
18757 2005-10-24 Jakub Jelinek <jakub@redhat.com>
18760 * testsuite/libgomp.c++/loop-7.C: New test.
18762 * testsuite/libgomp.dg/nestedfn-2.c: New test.
18764 * testsuite/libgomp.dg/nestedfn-1.c: New test.
18765 * testsuite/libgomp.fortran/reduction6.f90: New test.
18766 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
18768 2005-10-23 Richard Henderson <rth@redhat.com>
18770 * testsuite/libgomp.c++/ctor-1.C: New.
18771 * testsuite/libgomp.c++/ctor-2.C: New.
18772 * testsuite/libgomp.c++/ctor-3.C: New.
18773 * testsuite/libgomp.c++/ctor-4.C: New.
18774 * testsuite/libgomp.c++/ctor-5.C: New.
18775 * testsuite/libgomp.c++/ctor-6.C: New.
18776 * testsuite/libgomp.c++/ctor-7.C: New.
18777 * testsuite/libgomp.c++/ctor-8.C: New.
18778 * testsuite/libgomp.c++/ctor-9.C: New.
18780 2005-10-21 Diego Novillo <dnovillo@redhat.com>
18783 * testsuite/libgomp.c++/pr24455-1.C: New test.
18784 * testsuite/libgomp.c++/pr24455.C: New test.
18785 * testsuite/libgomp.dg/pr24455-1.c: New test.
18786 * testsuite/libgomp.dg/pr24455.c: New test.
18788 2005-10-20 Richard Henderson <rth@redhat.com>
18790 * testsuite/libgomp.c++/loop-6.C: New.
18791 * testsuite/libgomp.dg/loop-3.c: New.
18793 2005-10-20 Jakub Jelinek <jakub@redhat.com>
18795 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
18796 explicitly private.
18797 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
18800 2005-10-19 Diego Novillo <dnovillo@redhat.com>
18802 * testsuite/libgomp.fortran/jacobi.f: New test.
18804 2005-10-19 Richard Henderson <rth@redhat.com>
18806 * configure.tgt (i?86-linux): Default to with_arch instead of
18807 CFLAGS. Add -mtune to match target_cpu.
18808 (x86_64-linux): Tune to i686.
18810 * fortran.c (omp_test_nest_lock_): Fix typo.
18812 2005-10-19 Jakub Jelinek <jakub@redhat.com>
18814 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
18815 gomp_ordered_sync): Do nothing if team->nthreads == 1.
18816 * testsuite/libgomp.dg/ordered-3.c: New test.
18818 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
18819 Remove volatile keyword.
18821 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
18822 in COMMON block to avoid warnings on 64-bit targets.
18824 2005-10-18 Diego Novillo <dnovillo@redhat.com>
18826 * testsuite/libgomp.dg/shared-3.c: New test.
18828 2005-10-18 Jakub Jelinek <jakub@redhat.com>
18830 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
18831 * testsuite/libgomp.fortran/reduction5.f90: New test.
18833 2005-10-18 Jakub Jelinek <jakub@redhat.com>
18835 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
18837 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
18838 flush loop now that __sync_synchronize has proper memory barrier.
18839 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
18840 Add -ffixed-form to dg-options.
18842 2005-10-17 Diego Novillo <dnovillo@redhat.com>
18844 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
18845 from subdirectories.
18846 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
18847 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
18848 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
18849 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
18850 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
18851 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
18852 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
18853 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
18854 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
18855 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
18856 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
18857 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
18858 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
18859 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
18860 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
18861 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
18862 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
18863 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
18864 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
18865 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
18866 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
18867 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
18868 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
18869 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
18870 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
18872 2005-10-17 Jakub Jelinek <jakub@redhat.com>
18874 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
18875 lang_library_path exists. Use find instead of glob to gather tests.
18876 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
18878 2005-10-17 Diego Novillo <dnovillo@redhat.com>
18880 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
18881 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
18882 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
18883 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
18884 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
18885 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
18886 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
18887 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
18888 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
18889 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
18890 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
18891 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
18892 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
18894 2005-10-15 Jakub Jelinek <jakub@redhat.com>
18896 * testsuite/libgomp.dg/vla-1.c: New test.
18898 * testsuite/libgomp.fortran/reference2.f90: New test.
18900 * testsuite/libgomp.fortran/character2.f90: Remove explicit
18901 declaration of omp_get_thread_num.
18902 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
18905 * testsuite/libgomp.fortran/reduction1.f90: New test.
18906 * testsuite/libgomp.fortran/reduction2.f90: New test.
18907 * testsuite/libgomp.fortran/reduction3.f90: New test.
18908 * testsuite/libgomp.fortran/reduction4.f90: New test.
18910 2005-10-13 Richard Henderson <rth@redhat.com>
18912 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
18913 * Makefile.in: Regenerate.
18914 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
18915 * libgomp.h: Include bar.h.
18916 (struct gomp_barrier): Remove.
18917 (struct gomp_team): Add barrier. Replace master_barrier with
18918 master_release. Replace threads with ordered_release.
18919 (struct gomp_thread): Replace barrier with release.
18920 * ordered.c (gomp_ordered_first): Update for ordered_release change.
18921 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
18922 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
18923 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
18924 (GOMP_single_copy_end): Likewise.
18925 * team.c (gomp_threads_dock): New.
18926 (gomp_barrier_init, gomp_barrier_destroy): Remove.
18927 (gomp_thread_start): Use gomp_barrier_wait.
18928 (new_team, free_team): Update for gomp_team changes.
18929 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
18930 (gomp_team_end): Use gomp_barrier_wait.
18931 (initialize_team): Update for gomp_thread changes.
18932 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
18933 (gomp_work_share_end_nowait): Use atomic ops when available.
18934 * config/linux/bar.c, config/linux/bar.h: New files.
18935 * config/posix/bar.c, config/posix/bar.h: New files.
18937 2005-10-13 Jakub Jelinek <jakub@redhat.com>
18939 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
18940 * testsuite/libgomp.dg/single-2.c: New test.
18942 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
18943 lang_link_flags): Unset, so that they aren't inherited from previously
18946 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
18948 2005-10-12 Richard Henderson <rth@redhat.com>
18950 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
18951 (libgomp_init): Use lang_test_file, lang_library_path, and
18952 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
18954 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
18955 (lang_test_file, lang_link_flags): New.
18956 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
18958 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
18959 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
18960 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
18961 testsuite/libgomp.c++/parallel-1.C,
18962 testsuite/libgomp.c++/reduction-1.C,
18963 testsuite/libgomp.c++/reduction-2.C,
18964 testsuite/libgomp.c++/reduction-3.C,
18965 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
18966 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
18967 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
18968 New files, largely cribbed from the C testsuite.
18970 2005-10-12 Jakub Jelinek <jakub@redhat.com>
18972 * testsuite/libgomp.fortran/character1.f90: New test.
18973 * testsuite/libgomp.fortran/character2.f90: New test.
18975 * testsuite/libgomp.dg/nested-1.c: New test.
18976 * testsuite/libgomp.dg/nested-2.c: New test.
18977 * testsuite/libgomp.fortran/do1.f90: New test.
18978 * testsuite/libgomp.fortran/do2.f90: New test.
18980 * testsuite/libgomp.fortran/reference1.f90: New test.
18982 2005-10-11 Jakub Jelinek <jakub@redhat.com>
18984 * testsuite/libgomp.dg/reduction-1.c: New test.
18985 * testsuite/libgomp.dg/reduction-2.c: New test.
18986 * testsuite/libgomp.dg/reduction-3.c: New test.
18988 2005-10-10 Jakub Jelinek <jakub@redhat.com>
18990 * testsuite/libgomp.dg/atomic-1.c: New test.
18991 * testsuite/libgomp.dg/atomic-2.c: New test.
18993 2005-10-09 Richard Henderson <rth@redhat.com>
18995 * critical.c (atomic_lock): New.
18996 (initialize_critical): Initialize it.
18997 (GOMP_atomic_start, GOMP_atomic_end): New.
18998 * libgomp.map: Export them.
18999 * libgomp_g.h: Declare them.
19001 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
19003 2005-10-02 Richard Henderson <rth@redhat.com>
19005 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
19006 to XCFLAGS instead of CFLAGS.
19008 2005-09-30 Richard Henderson <rth@redhat.com>
19010 * configure.ac: Determine whether -pthread or -lpthread is needed.
19011 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
19012 * Makefile.in, configure: Rebuild.
19014 2005-09-28 Richard Henderson <rth@redhat.com>
19016 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
19017 * testsuite/libgomp.dg/omp-single-3.c: New test.
19019 2005-09-28 Diego Novillo <dnovillo@redhat.com>
19021 * testsuite/libgomp.dg/omp-single-2.c: New test.
19022 * testsuite/libgomp.dg/shared-2.c: Fix return code.
19024 2005-09-27 Richard Henderson <rth@redhat.com>
19026 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
19027 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
19029 2005-09-27 Jakub Jelinek <jakub@redhat.com>
19031 * testsuite/libgomp.dg/omp-loop03.c: New test.
19033 2005-09-27 Diego Novillo <dnovillo@redhat.com>
19035 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
19037 2005-09-27 Diego Novillo <dnovillo@redhat.com>
19039 * testsuite/libgomp.dg/omp-single-1.c: New test.
19040 * testsuite/libgomp.dg/shared-1.c: Return 0.
19041 Add prototype for abort.
19042 * testsuite/libgomp.dg/shared-2.c: Likewise.
19044 2005-09-26 Jakub Jelinek <jakub@redhat.com>
19046 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
19049 2005-09-26 Diego Novillo <dnovillo@redhat.com>
19051 * testsuite/libgomp.dg/shared-1.c: New test.
19052 * testsuite/libgomp.dg/shared-2.c: New test.
19054 2005-09-24 Richard Henderson <rth@redhat.com>
19056 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
19058 2005-09-24 Richard Henderson <rth@redhat.com>
19060 * iter.c (gomp_iter_static_next): Round up when computing number
19061 of iterations. Don't bother distributing a remainder equally.
19063 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
19064 Don't call srand. Zero b before testing.
19067 2005-09-24 Jakub Jelinek <jakub@redhat.com>
19069 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
19070 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
19072 2005-09-23 Jakub Jelinek <jakub@redhat.com>
19074 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
19075 without !$omp end do, followed immediately by subroutine end.
19077 2005-09-23 Diego Novillo <dnovillo@redhat.com>
19079 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
19081 2005-09-22 Richard Henderson <rth@redhat.com>
19083 * critical.c (GOMP_critical_name_start): Change argument to void**.
19084 Reuse the pointer space if the mutex fits.
19085 (GOMP_critical_name_end): Likewise.
19086 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
19087 * libgomp_g.h (GOMP_critical_name_start): Update decl.
19088 (GOMP_critical_name_end): Likewise.
19089 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
19090 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
19092 2005-09-20 Richard Henderson <rth@redhat.com>
19094 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
19095 (create_lock_lock): New.
19096 (initialize_critical): Initialize it.
19097 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
19098 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
19100 2005-09-20 Diego Novillo <dnovillo@redhat.com>
19102 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
19104 2005-09-20 Diego Novillo <dnovillo@redhat.com>
19106 * testsuite/libgomp.dg/omp-loop01.c: New test.
19107 * testsuite/libgomp.dg/omp-loop02.c: New test.
19109 2005-09-20 Jakub Jelinek <jakub@redhat.com>
19111 * configure.ac (AC_PROG_FC): Add.
19112 (USE_FORTRAN): New automake conditional.
19113 * configure: Rebuilt.
19114 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
19115 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
19116 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
19117 Add rules to build them.
19118 * Makefile.in: Rebuilt.
19119 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
19120 OMP_NEST_LOCK_KIND.
19121 * libgomp.map: Add Fortran wrappers.
19122 * libgomp_f.h.in: New file.
19123 * omp_lib.h.in: New file.
19124 * omp_lib.f90.in: New file.
19125 * fortran.c: New file.
19126 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
19127 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
19128 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
19129 libgfortran has been built.
19130 * testsuite/libgomp.fortran/fortran.exp: New file.
19131 * testsuite/libgomp.fortran/omp_cond1.f: New test.
19132 * testsuite/libgomp.fortran/omp_cond2.f: New test.
19133 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
19134 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
19135 * testsuite/libgomp.fortran/omp_hello.f: New test.
19136 * testsuite/libgomp.fortran/omp_orphan.f: New test.
19137 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
19138 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
19139 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
19140 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
19141 * testsuite/libgomp.fortran/omp_reduction.f: New test.
19142 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
19143 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
19145 2005-08-30 Richard Henderson <rth@redhat.com>
19147 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
19148 function for when aliases are not usable.
19149 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
19150 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
19151 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
19152 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
19153 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
19154 GOMP_loop_ordered_guided_next): Likewise.
19155 * ordered.c (GOMP_ordered_start): Likewise.
19157 2005-08-01 Diego Novillo <dnovillo@redhat.com>
19159 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
19160 * testsuite/libgomp.dg/omp_hello.c: Fix return code
19161 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
19162 * testsuite/libgomp.dg/omp_orphan.c: Likewise
19163 * testsuite/libgomp.dg/omp_reduction.c: Likewise
19164 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
19165 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
19166 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
19167 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
19169 2005-07-07 Eric Christopher <echristo@redhat.com>
19170 Diego Novillo <dnovillo@redhat.com>
19172 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
19173 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
19175 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
19176 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
19177 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
19178 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
19179 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
19180 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
19181 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
19183 2005-06-13 Diego Novillo <dnovillo@redhat.com>
19185 * TOPLEVEL.patch: Remove.
19187 2005-05-16 Richard Henderson <rth@redhat.com>
19189 * configure.ac: Test for clock_gettime.
19190 * config.h.in, configure: Rebuild.
19191 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
19192 (omp_get_wtime): Use clock_gettime if available.
19193 (omp_get_wtick): Use clock_getres if available.
19195 2005-05-11 Richard Henderson <rth@redhat.com>
19197 * config/linux/ia64/futex.h: New file.
19198 * configure.tgt: Use it.
19200 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
19202 2005-05-07 Richard Henderson <rth@redhat.com>
19204 * config/linux/powerpc/futex.h: New file.
19205 * configure.tgt: Use it.
19207 * config/linux/i486/futex.h: Merge ...
19208 * config/linux/x86_64/futex.h: ... into ...
19209 * config/linux/x86/futex.h: ... here.
19210 * configure.tgt: Update to match.
19212 2005-05-06 Richard Henderson <rth@redhat.com>
19214 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
19215 * config/linux/i486/futex.h: Likewise.
19216 * config/linux/x86_64/futex.h: Likewise.
19218 * config/linux/lock.c: New file.
19219 * config/linux/omp-lock.h: New file.
19221 * critical.c, env.h: Don't include omp.h
19222 * config/posix/lock.c: Include libgomp.h instead of omp.h.
19223 * config/posix/time.c: Likewise.
19224 * config/posix/omp-lock.h: New file.
19225 * libgomp.h: Include omp-lock.h and omp.h.
19226 * Makefile.am (nodist_include_HEADERS): New.
19228 * configure.ac (PERL): New.
19229 * mkomp_h.pl: New file.
19230 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
19232 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
19234 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
19235 build directory. Re-add -march=i486 hack.
19237 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
19238 (libgomp_link_flags): Remove.
19239 (libgomp_initialized): Remove.
19240 (libgomp_init): Don't protect from reinitialization. Copy code
19241 from libstdc++ for getting the multilib set correctly.
19243 2005-05-05 Richard Henderson <rth@redhat.com>
19245 * config/linux/alpha/futex.h: New file.
19246 * configure.tgt (alpha*-*-linux*): Use it.
19248 * config/posix/mutex.c: New file.
19249 * config/posix/sem.c: Use libgomp.h.
19251 * configure.tgt (x86_64-linux): Also test CC for -m32.
19252 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
19254 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
19257 * Makefile.am (SUBDIRS): New.
19258 (libgomp_la_LDFLAGS): Add -lpthread.
19259 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
19260 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
19262 * libgomp_g.h: New file.
19263 * libgomp.h: Split out all public declarations to libgomp_g.h.
19264 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
19265 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
19266 * config/linux/sem.h: Likewise.
19267 * config/posix/sem.h: Likewise.
19269 * Makefile.am (AM_LDFLAGS): New.
19270 (libgomp_version_script): Split out from ...
19271 (libgomp_la_LDFLAGS): ... here.
19272 (libgomp_version_info): New.
19273 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
19274 (LIBGOMP_ENABLE): New.
19275 (LIBGOMP_CHECK_LINKER_FEATURES): New.
19276 (LIBGOMP_ENABLE_SYMVERS): New.
19277 * configure.ac (AC_INIT): Version 1.0.
19278 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
19279 (enable-linux-futex): Likewise. Rename from enable-futex.
19280 (libtool_VERSION): New.
19281 (LIBGOMP_ENABLE_SYMVERS): Use it.
19282 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
19283 * Makefile.in, aclocal.m4, configure: Rebuild.
19285 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
19286 (gomp_mutex_unlock_slow): Fix typo.
19287 * config/linux/sem.c: Similarly.
19288 (gomp_sem_post_slow): Fix typo.
19289 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
19290 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
19291 [__PIC__] (sys_futex0): Don't use tmp output in asm.
19293 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
19294 (libgomp_la_LDFLAGS): Add top_srcdir to path.
19295 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
19296 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
19297 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
19298 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
19299 LDFLAGS. Pull enable_futex check to top-level.
19300 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
19301 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
19303 First attempt at real configury.
19304 * Makefile, config.h: Remove file.
19305 * Makefile.am, Makefile.in: New file.
19306 * acinclude.m4 aclocal.m4: New file.
19307 * configure.ac, configure.tgt, configure: New file.
19309 * config/posix/lock.c: Rename from sys-lock.c.
19310 * config/posix/mutex.h: Rename from sys-mutex.h.
19311 * config/posix/sem.c: Rename from sys-sem.c.
19312 * config/posix/sem.h: Rename from sys-sem.h.
19313 * config/posix/proc.c: Rename from sys-proc.c.
19314 * config/posix/time.c: Rename from sys-proc.c.
19316 * config/linux/mutex.c: New file.
19317 * config/linux/mutex.h: New file.
19318 * config/linux/sem.c: New file.
19319 * config/linux/sem.h: New file.
19320 * config/linux/i486/futex.h: New file.
19321 * config/linux/x86_64/futex.h: New file.
19323 2005-05-04 Richard Henderson <rth@redhat.com>
19325 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
19326 * libgomp.h: Declare them.
19327 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
19328 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
19330 2005-05-04 Richard Henderson <rth@redhat.com>
19332 * libgomp-1 code drop
19334 2005-05-04 Richard Henderson <rth@redhat.com>
19336 * iter.c (gomp_iter_static_next): Return tri-state on 0.
19337 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
19338 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
19339 (gomp_iter_static_next): Update.
19340 (gomp_ordered_static_next): Update.
19341 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
19342 (gomp_loop_ordered_static_start): Likewise. Exit early for a
19343 totally empty range.
19344 (gomp_loop_ordered_static_next): Refine test for calling
19345 gomp_ordered_static_next.
19346 * testsuite/ordered-1.c: Add case for more threads than iterations.
19348 * iter.c (gomp_iter_runtime_next_locked): Remove.
19349 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
19350 gomp_loop_guided_start, gomp_loop_ordered_static_start,
19351 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
19352 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
19353 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
19354 gomp_loop_ordered_guided_next): Downcase name, make static, add
19355 an external alias with the old name.
19356 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
19357 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
19358 switch and call one of the above static functions.
19359 * libgomp.h: Update.
19361 * work.c (gomp_work_share_start): Lock the mutex for !first too.
19362 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
19363 GOMP_loop_guided_start, GOMP_loop_runtime_start,
19364 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
19365 GOMP_loop_ordered_guided_start): Update to match.
19366 * sections.c (GOMP_sections_start): Likewise.
19367 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
19369 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
19370 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
19371 Use bounds check instead of modulus.
19372 (gomp_ordered_sync): Split out of GOMP_ordered_start.
19373 (gomp_ordered_last): Don't sync with ordered_owner here.
19374 (gomp_ordered_next): Likewise.
19375 (gomp_ordered_static_loop_next): Likewise.
19376 * loop.c, libgomp.h: Update to match.
19378 * libgomp.h (GOMP_barrier): Declare.
19380 * testsuite/barrier-1.c: New file.
19381 * testsuite/critical-1.c: New file.
19382 * testsuite/ordered-2.c: New file.
19383 * testsuite/ordered-1.c: New file.
19384 * testsuite/sections-1.c: New file.
19385 * testsuite/single-1.c: New file.
19386 * testsuite/Makefile (TESTS): Add them.
19388 2005-05-04 Richard Henderson <rth@redhat.com>
19390 * libgomp.h (struct gomp_work_share): Add ordered_owner.
19391 * loop.c (GOMP_loop_static_start): If not the startup thread,
19392 acquire the mutex to wait for initialization complete.
19393 (GOMP_loop_ordered_static_start): Likewise.
19394 (GOMP_loop_ordered_runtime_start): Likewise.
19395 (GOMP_loop_ordered_static_first): Remove.
19396 (GOMP_loop_ordered_dynamic_first): Remove.
19397 (GOMP_loop_ordered_guided_first): Remove.
19398 (GOMP_loop_ordered_runtime_first): Remove.
19399 * ordered.c (gomp_ordered_loop_first): Post to own release when
19400 we're the first thread.
19401 (gomp_ordered_loop_last): Wait on release if not owner.
19402 (gomp_ordered_loop_next): Likewise.
19403 (gomp_ordered_static_loop_init): New.
19404 (gomp_ordered_static_loop_next): Use ordered_owner.
19405 (GOMP_ordered_start): Likewise.
19406 * work.c (gomp_new_work_share): Initialize ordered_owner.
19408 2005-05-03 Richard Henderson <rth@redhat.com>
19410 * Makefile (OPT): New.
19413 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
19414 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
19415 * libgomp.h, libgomp.map, NOTES: Update to match.
19417 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
19418 Add initialized and thr members.
19419 (gomp_thread_start): Pause when initially spawned to wait for
19420 the whole team to be created.
19421 (gomp_team_start): Release team members at the end.
19423 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
19424 (f_foo_1): Use GOMP_loop_end.
19425 (f_foo_2): Use GOMP_loop_end_nowait.
19427 * testsuite/loop-2.c: New file.
19428 * testsuite/Makefile (TESTS): Add it.
19430 2005-05-03 Richard Henderson <rth@redhat.com>
19432 * iter.c (gomp_iter_static_next): Fix overflow check typo.
19433 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
19434 * team.c (new_team): Initialize oldest_live_gen to 1 if no
19435 initial work_share.
19437 * testsuite/Makefile: New file.
19438 * testsuite/loop-1.c: New file.
19440 2005-05-03 Richard Henderson <rth@redhat.com>
19442 Initial implementation and checkin.
19444 Copyright (C) 2005-2022 Free Software Foundation, Inc.
19446 Copying and distribution of this file, with or without modification,
19447 are permitted in any medium without royalty provided the copyright
19448 notice and this notice are preserved.