]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/ChangeLog
cf55107ddfd051e6520c5d7f0d4e7e046c0b4c85
[thirdparty/gcc.git] / libgomp / ChangeLog
1 2023-02-02 Andrew Stubbs <ams@codesourcery.com>
2
3 * config/gcn/libgomp-gcn.h (DEFAULT_GCN_STACK_SIZE): New define.
4 (DEFAULT_TEAM_ARENA_SIZE): New define.
5 (struct heap): Move to this file.
6 (struct kernargs_abi): Likewise.
7 * config/gcn/team.c (gomp_gcn_enter_kernel): Use team arena size from
8 the kernargs.
9 * libgomp.h: Include libgomp-gcn.h.
10 (TEAM_ARENA_SIZE): Remove.
11 (team_malloc): Update the error message.
12 * plugin/plugin-gcn.c (struct kernargs): Move common content to
13 struct kernargs_abi.
14 (struct agent_info): Rename team arenas to ephemeral memories.
15 (struct team_arena_list): Rename ....
16 (struct ephemeral_memories_list): to this.
17 (struct heap): Delete.
18 (team_arena_size): New variable.
19 (stack_size): New variable.
20 (print_kernel_dispatch): Update debug messages.
21 (init_environment_variables): Read GCN_TEAM_ARENA_SIZE.
22 Read GCN_STACK_SIZE.
23 (get_team_arena): Rename ...
24 (configure_ephemeral_memories): ... to this, and set up stacks.
25 (release_team_arena): Rename ...
26 (release_ephemeral_memories): ... to this.
27 (destroy_team_arenas): Rename ...
28 (destroy_ephemeral_memories): ... to this.
29 (create_kernel_dispatch): Add num_threads parameter.
30 Adjust for kernargs_abi refactor and ephemeral memories.
31 (release_kernel_dispatch): Adjust for ephemeral memories.
32 (run_kernel): Pass thread-count to create_kernel_dispatch.
33 (GOMP_OFFLOAD_init_device): Adjust for ephemeral memories.
34 (GOMP_OFFLOAD_fini_device): Adjust for ephemeral memories.
35
36 2023-02-02 Tobias Burnus <tobias@codesourcery.com>
37
38 * libgomp.texi (OpenMP TR11): Fix item for 'strict' modifier.
39
40 2023-02-01 Tobias Burnus <tobias@codesourcery.com>
41
42 * testsuite/libgomp.fortran/allocate-3.f90: Fix ALIGN
43 usage, remove unused -fdump-tree-original.
44 * testsuite/libgomp.fortran/allocate-4.f90: New.
45
46 2023-02-01 Tobias Burnus <tobias@codesourcery.com>
47
48 * libgomp.texi (5.0 Impl. Status): Update 'requires' and 'ancestor'.
49 (GCN): Add item about 'omp requires'.
50 (nvptx): Likewise; add item about reverse offload.
51
52 2023-01-27 Tobias Burnus <tobias@codesourcery.com>
53
54 PR fortran/108558
55 * testsuite/libgomp.fortran/has_device_addr.f90: New test.
56
57 2023-01-23 Tobias Burnus <tobias@codesourcery.com>
58
59 * libgomp.texi (OpenMP 5.0): Set non-rectangular
60 loop nest back to 'P' as Fortran support is incomplete.
61
62 2023-01-19 Jakub Jelinek <jakub@redhat.com>
63
64 PR middle-end/108459
65 * testsuite/libgomp.c/pr108459.c: New test.
66
67 2023-01-17 Martin Liska <mliska@suse.cz>
68
69 * Makefile.in: Regenerate.
70 * configure: Regenerate.
71
72 2023-01-07 LIU Hao <lh_mouse@126.com>
73
74 PR middle-end/108300
75 * config/mingw32/proc.c: Define `WIN32_LEAN_AND_MEAN` before
76 <windows.h>.
77
78 2023-01-05 Jakub Jelinek <jakub@redhat.com>
79
80 PR c++/108286
81 * testsuite/libgomp.c++/pr108286.C: New test.
82
83 2023-01-02 Jakub Jelinek <jakub@redhat.com>
84
85 * libgomp.texi: Bump @copying's copyright year.
86
87 2022-12-21 Chung-Lin Tang <cltang@codesourcery.com>
88
89 PR target/99555
90 * config/nvptx/bar.c (generation_to_barrier): Remove.
91 (futex_wait,futex_wake,do_spin,do_wait): Remove.
92 (GOMP_WAIT_H): Remove.
93 (#include "../linux/bar.c"): Remove.
94 (gomp_barrier_wait_end): New function.
95 (gomp_barrier_wait): Likewise.
96 (gomp_barrier_wait_last): Likewise.
97 (gomp_team_barrier_wait_end): Likewise.
98 (gomp_team_barrier_wait): Likewise.
99 (gomp_team_barrier_wait_final): Likewise.
100 (gomp_team_barrier_wait_cancel_end): Likewise.
101 (gomp_team_barrier_wait_cancel): Likewise.
102 (gomp_team_barrier_cancel): Likewise.
103 * config/nvptx/bar.h (gomp_barrier_t): Remove waiters, lock fields.
104 (gomp_barrier_init): Remove init of waiters, lock fields.
105 (gomp_team_barrier_wake): Remove prototype, add new static inline
106 function.
107
108 2022-12-21 Jakub Jelinek <jakub@redhat.com>
109
110 PR c++/108180
111 * testsuite/libgomp.c++/pr108180.C: New test.
112
113 2022-12-16 Tobias Burnus <tobias@codesourcery.com>
114
115 PR libfortran/108056
116 * testsuite/libgomp.fortran/allocate-4.f90: Remove
117 accidentally added file.
118
119 2022-12-15 Tobias Burnus <tobias@codesourcery.com>
120
121 PR libfortran/108056
122 * testsuite/libgomp.fortran/allocate-4.f90: New file.
123
124 2022-12-14 Julian Brown <julian@codesourcery.com>
125
126 * testsuite/libgomp.fortran/combined-directive-splitting-1.f90: New
127 test.
128
129 2022-12-10 Tobias Burnus <tobias@codesourcery.com>
130
131 * libgomp.h (struct target_mem_desc): Predeclare; move
132 below after 'reverse_splay_tree_node' and add rev_array
133 member.
134 (struct reverse_splay_tree_key_s, reverse_splay_compare): New.
135 (reverse_splay_tree_node, reverse_splay_tree,
136 reverse_splay_tree_key): New typedef.
137 (struct gomp_device_descr): Add mem_map_rev member.
138 * oacc-host.c (host_dispatch): NULL init .mem_map_rev.
139 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Claim
140 support for GOMP_REQUIRES_REVERSE_OFFLOAD.
141 * splay-tree.h (splay_tree_callback_stop): New typedef; like
142 splay_tree_callback but returning int not void.
143 (splay_tree_foreach_lazy): Define; like splay_tree_foreach but
144 taking splay_tree_callback_stop as argument.
145 * splay-tree.c (splay_tree_foreach_internal_lazy,
146 splay_tree_foreach_lazy): New; but early exit if callback returns
147 nonzero.
148 * target.c: Instatiate splay_tree_c with splay_tree_prefix 'reverse'.
149 (gomp_map_lookup_rev): New.
150 (gomp_load_image_to_device): Handle reverse-offload function
151 lookup table.
152 (gomp_unload_image_from_device): Free devicep->mem_map_rev.
153 (struct gomp_splay_tree_rev_lookup_data, gomp_splay_tree_rev_lookup,
154 gomp_map_rev_lookup, struct cpy_data, gomp_map_cdata_lookup_int,
155 gomp_map_cdata_lookup): New auxiliary structs and functions for
156 gomp_target_rev.
157 (gomp_target_rev): Implement reverse offloading and its mapping.
158 (gomp_target_init): Init current_device.mem_map_rev.root.
159 * testsuite/libgomp.fortran/reverse-offload-2.f90: New test.
160 * testsuite/libgomp.fortran/reverse-offload-3.f90: New test.
161 * testsuite/libgomp.fortran/reverse-offload-4.f90: New test.
162 * testsuite/libgomp.fortran/reverse-offload-5.f90: New test.
163 * testsuite/libgomp.fortran/reverse-offload-5a.f90: New test without
164 mapping of on-device allocated variables.
165
166 2022-12-09 Tobias Burnus <tobias@codesourcery.com>
167
168 * libgomp.texi (5.1 Impl. Status): Split allocate clause/directive
169 item about 'align'; mark clause as 'Y' and directive as 'N'.
170 * testsuite/libgomp.fortran/allocate-2.f90: New test.
171 * testsuite/libgomp.fortran/allocate-3.f90: New test.
172
173 2022-12-06 Marcel Vollweiler <marcel@codesourcery.com>
174
175 * config/gcn/icv-device.c (omp_get_teams_thread_limit): Added to
176 allow processing of device-specific values.
177 (omp_set_teams_thread_limit): Likewise.
178 (ialias): Likewise.
179 * config/nvptx/icv-device.c (omp_get_teams_thread_limit): Likewise.
180 (omp_set_teams_thread_limit): Likewise.
181 (ialias): Likewise.
182 * icv-device.c (omp_get_teams_thread_limit): Likewise.
183 (ialias): Likewise.
184 (omp_set_teams_thread_limit): Likewise.
185 * icv.c (omp_set_teams_thread_limit): Removed.
186 (omp_get_teams_thread_limit): Likewise.
187 (ialias): Likewise.
188 * libgomp.texi: Updated documentation for nvptx and gcn corresponding
189 to the limitation of the number of teams.
190 * plugin/plugin-gcn.c (limit_teams): New helper function that limits
191 the number of teams by twice the number of compute units.
192 (parse_target_attributes): Limit the number of teams on gcn offload
193 devices.
194 * target.c (get_gomp_offload_icvs): Added teams_thread_limit_var
195 handling.
196 (gomp_load_image_to_device): Added a size check for the ICVs struct
197 variable.
198 (gomp_copy_back_icvs): New function that is used in GOMP_target_ext to
199 copy back the ICV values from device to host.
200 (GOMP_target_ext): Update the number of teams and threads in the kernel
201 args also considering device-specific values.
202 * testsuite/libgomp.c-c++-common/icv-4.c: Fixed an error in the reading
203 of OMP_TEAMS_THREAD_LIMIT from the environment.
204 * testsuite/libgomp.c-c++-common/icv-5.c: Extended.
205 * testsuite/libgomp.c-c++-common/icv-6.c: Extended.
206 * testsuite/libgomp.c-c++-common/icv-7.c: Extended.
207 * testsuite/libgomp.c-c++-common/icv-9.c: New test.
208 * testsuite/libgomp.fortran/icv-5.f90: New test.
209 * testsuite/libgomp.fortran/icv-6.f90: New test.
210
211 2022-12-06 Tobias Burnus <tobias@codesourcery.com>
212
213 * libgomp.texi (OpenMP 5.2): Add missing 'the'.
214 (TR11): Add missing '@tab N @tab'.
215
216 2022-11-30 Tobias Burnus <tobias@codesourcery.com>
217
218 * libgomp.texi (OpenMP Context Selectors): Add 'gfx803' to gcn's isa.
219
220 2022-11-30 Paul-Antoine Arras <pa@codesourcery.com>
221
222 * testsuite/libgomp.c/declare-variant-4-fiji.c: New test.
223 * testsuite/libgomp.c/declare-variant-4-gfx803.c: New test.
224 * testsuite/libgomp.c/declare-variant-4-gfx900.c: New test.
225 * testsuite/libgomp.c/declare-variant-4-gfx906.c: New test.
226 * testsuite/libgomp.c/declare-variant-4-gfx908.c: New test.
227 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: New test.
228 * testsuite/libgomp.c/declare-variant-4.h: New header file.
229
230 2022-11-28 Tobias Burnus <tobias@codesourcery.com>
231
232 * libgomp.texi (OpenMP 5.2): Mark end-directive as Y.
233
234 2022-11-25 Sandra Loosemore <sandra@codesourcery.com>
235
236 * testsuite/lib/libgomp.exp: Load scanoffloadipa.exp library.
237 * testsuite/libgomp.c/target-simd-clone-1.c: New.
238 * testsuite/libgomp.c/target-simd-clone-2.c: New.
239 * testsuite/libgomp.c/target-simd-clone-3.c: New.
240
241 2022-11-25 Tobias Burnus <tobias@codesourcery.com>
242
243 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Use unsigned int
244 for 'i' to match 'fn_entries'; regard absent GOMP_REV_OFFLOAD_VAR
245 as valid and the code having no reverse-offload code.
246 * testsuite/libgomp.c-c++-common/reverse-offload-2.c: New test.
247
248 2022-11-25 Tobias Burnus <tobias@codesourcery.com>
249
250 * libgomp.texi (OpenMP Implementation Status): Add three 5.1 items
251 and status for Technical Report (TR) 11.
252
253 2022-11-21 Tobias Burnus <tobias@codesourcery.com>
254
255 * config/gcn/libgomp-gcn.h (struct output):
256 Remove 'msg_u64' from the union, change
257 value_u64[2] to value_u64[6].
258 * config/gcn/target.c (GOMP_target_ext): Update accordingly.
259 * plugin/plugin-gcn.c (process_reverse_offload, console_output):
260 Likewise.
261
262 2022-11-19 Tobias Burnus <tobias@codesourcery.com>
263
264 * config/gcn/libgomp-gcn.h: New file; contains
265 struct output, declared previously in plugin-gcn.c.
266 * config/gcn/target.c: Include it.
267 (GOMP_ADDITIONAL_ICVS): Declare as extern var.
268 (GOMP_target_ext): Handle reverse offload.
269 * plugin/plugin-gcn.c: Include libgomp-gcn.h.
270 (struct kernargs): Replace struct def by the one
271 from libgomp-gcn.h for output_data.
272 (process_reverse_offload): New.
273 (console_output): Call it.
274
275 2022-11-16 Tobias Burnus <tobias@codesourcery.com>
276 Andrew Stubbs <ams@codesourcery.com>
277
278 * config/gcn/team.c (gomp_gcn_enter_kernel): Use
279 __builtin_gcn_kernarg_ptr instead of asm ("s8").
280
281 2022-11-14 Martin Liska <mliska@suse.cz>
282
283 Revert:
284 2022-11-14 Martin Liska <mliska@suse.cz>
285
286 * doc/amd-radeon-gcn.rst: New file.
287 * doc/conf.py: New file.
288 * doc/copyright.rst: New file.
289 * doc/cuda-streams-usage.rst: New file.
290 * doc/enabling-openacc.rst: New file.
291 * doc/enabling-openmp.rst: New file.
292 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
293 * doc/first-invocation-openacc-library-api.rst: New file.
294 * doc/funding.rst: New file.
295 * doc/general-public-license-3.rst: New file.
296 * doc/gnu-free-documentation-license.rst: New file.
297 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
298 * doc/index.rst: New file.
299 * doc/indices-and-tables.rst: New file.
300 * doc/introduction.rst: New file.
301 * doc/memory-allocation-with-libmemkind.rst: New file.
302 * doc/nvptx.rst: New file.
303 * doc/offload-target-specifics.rst: New file.
304 * doc/openacc-environment-variables.rst: New file.
305 * doc/openacc-environment-variables/accdevicenum.rst: New file.
306 * doc/openacc-environment-variables/accdevicetype.rst: New file.
307 * doc/openacc-environment-variables/accproflib.rst: New file.
308 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
309 * doc/openacc-introduction.rst: New file.
310 * doc/openacc-library-and-environment-variables.rst: New file.
311 * doc/openacc-library-interoperability.rst: New file.
312 * doc/openacc-profiling-interface.rst: New file.
313 * doc/openacc-runtime-library-routines.rst: New file.
314 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
315 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
316 * doc/openacc-runtime-library-routines/accattach.rst: New file.
317 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
318 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
319 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
320 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
321 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
322 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
323 * doc/openacc-runtime-library-routines/accfree.rst: New file.
324 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
325 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
326 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
327 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
328 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
329 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
330 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
331 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
332 * doc/openacc-runtime-library-routines/accinit.rst: New file.
333 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
334 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
335 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
336 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
337 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
338 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
339 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
340 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
341 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
342 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
343 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
344 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
345 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
346 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
347 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
348 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
349 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
350 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
351 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
352 * doc/openacc-runtime-library-routines/accwait.rst: New file.
353 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
354 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
355 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
356 * doc/openmp-context-selectors.rst: New file.
357 * doc/openmp-environment-variables.rst: New file.
358 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
359 * doc/openmp-environment-variables/gompdebug.rst: New file.
360 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
361 * doc/openmp-environment-variables/gompspincount.rst: New file.
362 * doc/openmp-environment-variables/gompstacksize.rst: New file.
363 * doc/openmp-environment-variables/ompcancellation.rst: New file.
364 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
365 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
366 * doc/openmp-environment-variables/ompdynamic.rst: New file.
367 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
368 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
369 * doc/openmp-environment-variables/ompnested.rst: New file.
370 * doc/openmp-environment-variables/ompnumteams.rst: New file.
371 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
372 * doc/openmp-environment-variables/ompplaces.rst: New file.
373 * doc/openmp-environment-variables/ompprocbind.rst: New file.
374 * doc/openmp-environment-variables/ompschedule.rst: New file.
375 * doc/openmp-environment-variables/ompstacksize.rst: New file.
376 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
377 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
378 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
379 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
380 * doc/openmp-implementation-specifics.rst: New file.
381 * doc/openmp-implementation-status.rst: New file.
382 * doc/openmp-implementation-status/openmp-45.rst: New file.
383 * doc/openmp-implementation-status/openmp-50.rst: New file.
384 * doc/openmp-implementation-status/openmp-51.rst: New file.
385 * doc/openmp-implementation-status/openmp-52.rst: New file.
386 * doc/openmp-runtime-library-routines.rst: New file.
387 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
388 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
389 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
390 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
391 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
392 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
393 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
394 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
395 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
396 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
397 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
398 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
399 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
400 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
401 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
402 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
403 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
404 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
405 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
406 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
407 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
408 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
409 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
410 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
411 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
412 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
413 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
414 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
415 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
416 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
417 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
418 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
419 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
420 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
421 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
422 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
423 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
424 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
425 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
426 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
427 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
428 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
429 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
430 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
431 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
432 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
433 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
434 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
435 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
436 * doc/reporting-bugs.rst: New file.
437 * doc/the-libgomp-abi.rst: New file.
438 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
439 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
440 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
441 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
442 New file.
443 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
444 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
445 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
446 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
447 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
448 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
449 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
450 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
451 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
452 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
453 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
454
455 2022-11-14 Martin Liska <mliska@suse.cz>
456
457 Revert:
458 2022-11-14 Martin Liska <mliska@suse.cz>
459
460 * Makefile.in: Support Sphinx based documentation.
461
462 2022-11-14 Martin Liska <mliska@suse.cz>
463
464 Revert:
465 2022-11-14 Martin Liska <mliska@suse.cz>
466
467 * libgomp.texi: Removed.
468
469 2022-11-14 Martin Liska <mliska@suse.cz>
470
471 Revert:
472 2022-11-14 Martin Liska <mliska@suse.cz>
473
474 * Makefile.in: Support --with-sphinx-build.
475 * configure.ac: Likewise..
476 * configure: Regenerate.
477
478 2022-11-14 Martin Liska <mliska@suse.cz>
479
480 Revert:
481 2022-11-09 Martin Liska <mliska@suse.cz>
482
483 * Makefile.in: Build info pages conditionally.
484
485 2022-11-14 Martin Liska <mliska@suse.cz>
486
487 Revert:
488 2022-11-14 Martin Liska <mliska@suse.cz>
489
490 * doc/amd-radeon-gcn.rst:
491 Add trailing newline.
492 * doc/copyright.rst:
493 Add trailing newline.
494 * doc/cuda-streams-usage.rst:
495 Add trailing newline.
496 * doc/enabling-openacc.rst:
497 Add trailing newline.
498 * doc/enabling-openmp.rst:
499 Add trailing newline.
500 * doc/first-invocation-nvidia-cublas-library-api.rst:
501 Add trailing newline.
502 * doc/first-invocation-openacc-library-api.rst:
503 Add trailing newline.
504 * doc/funding.rst:
505 Add trailing newline.
506 * doc/general-public-license-3.rst:
507 Add trailing newline.
508 * doc/gnu-free-documentation-license.rst:
509 Add trailing newline.
510 * doc/implementation-status-and-implementation-defined-behavior.rst:
511 Add trailing newline.
512 * doc/index.rst:
513 Add trailing newline.
514 * doc/indices-and-tables.rst:
515 Add trailing newline.
516 * doc/introduction.rst:
517 Add trailing newline.
518 * doc/memory-allocation-with-libmemkind.rst:
519 Add trailing newline.
520 * doc/nvptx.rst:
521 Add trailing newline.
522 * doc/offload-target-specifics.rst:
523 Add trailing newline.
524 * doc/openacc-environment-variables.rst:
525 Add trailing newline.
526 * doc/openacc-environment-variables/accdevicenum.rst:
527 Add trailing newline.
528 * doc/openacc-environment-variables/accdevicetype.rst:
529 Add trailing newline.
530 * doc/openacc-environment-variables/accproflib.rst:
531 Add trailing newline.
532 * doc/openacc-environment-variables/gccaccnotify.rst:
533 Add trailing newline.
534 * doc/openacc-introduction.rst:
535 Add trailing newline.
536 * doc/openacc-library-and-environment-variables.rst:
537 Add trailing newline.
538 * doc/openacc-library-interoperability.rst:
539 Add trailing newline.
540 * doc/openacc-profiling-interface.rst:
541 Add trailing newline.
542 * doc/openacc-runtime-library-routines.rst:
543 Add trailing newline.
544 * doc/openacc-runtime-library-routines/accasynctest.rst:
545 Add trailing newline.
546 * doc/openacc-runtime-library-routines/accasynctestall.rst:
547 Add trailing newline.
548 * doc/openacc-runtime-library-routines/accattach.rst:
549 Add trailing newline.
550 * doc/openacc-runtime-library-routines/acccopyin.rst:
551 Add trailing newline.
552 * doc/openacc-runtime-library-routines/acccopyout.rst:
553 Add trailing newline.
554 * doc/openacc-runtime-library-routines/acccreate.rst:
555 Add trailing newline.
556 * doc/openacc-runtime-library-routines/accdelete.rst:
557 Add trailing newline.
558 * doc/openacc-runtime-library-routines/accdetach.rst:
559 Add trailing newline.
560 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
561 Add trailing newline.
562 * doc/openacc-runtime-library-routines/accfree.rst:
563 Add trailing newline.
564 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
565 Add trailing newline.
566 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
567 Add trailing newline.
568 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
569 Add trailing newline.
570 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
571 Add trailing newline.
572 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
573 Add trailing newline.
574 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
575 Add trailing newline.
576 * doc/openacc-runtime-library-routines/accgetproperty.rst:
577 Add trailing newline.
578 * doc/openacc-runtime-library-routines/acchostptr.rst:
579 Add trailing newline.
580 * doc/openacc-runtime-library-routines/accinit.rst:
581 Add trailing newline.
582 * doc/openacc-runtime-library-routines/accispresent.rst:
583 Add trailing newline.
584 * doc/openacc-runtime-library-routines/accmalloc.rst:
585 Add trailing newline.
586 * doc/openacc-runtime-library-routines/accmapdata.rst:
587 Add trailing newline.
588 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
589 Add trailing newline.
590 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
591 Add trailing newline.
592 * doc/openacc-runtime-library-routines/accondevice.rst:
593 Add trailing newline.
594 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
595 Add trailing newline.
596 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
597 Add trailing newline.
598 * doc/openacc-runtime-library-routines/accproflookup.rst:
599 Add trailing newline.
600 * doc/openacc-runtime-library-routines/accprofregister.rst:
601 Add trailing newline.
602 * doc/openacc-runtime-library-routines/accprofunregister.rst:
603 Add trailing newline.
604 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
605 Add trailing newline.
606 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
607 Add trailing newline.
608 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
609 Add trailing newline.
610 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
611 Add trailing newline.
612 * doc/openacc-runtime-library-routines/accshutdown.rst:
613 Add trailing newline.
614 * doc/openacc-runtime-library-routines/accunmapdata.rst:
615 Add trailing newline.
616 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
617 Add trailing newline.
618 * doc/openacc-runtime-library-routines/accupdateself.rst:
619 Add trailing newline.
620 * doc/openacc-runtime-library-routines/accwait.rst:
621 Add trailing newline.
622 * doc/openacc-runtime-library-routines/accwaitall.rst:
623 Add trailing newline.
624 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
625 Add trailing newline.
626 * doc/openacc-runtime-library-routines/accwaitasync.rst:
627 Add trailing newline.
628 * doc/openmp-context-selectors.rst:
629 Add trailing newline.
630 * doc/openmp-environment-variables.rst:
631 Add trailing newline.
632 * doc/openmp-environment-variables/gompcpuaffinity.rst:
633 Add trailing newline.
634 * doc/openmp-environment-variables/gompdebug.rst:
635 Add trailing newline.
636 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
637 Add trailing newline.
638 * doc/openmp-environment-variables/gompspincount.rst:
639 Add trailing newline.
640 * doc/openmp-environment-variables/gompstacksize.rst:
641 Add trailing newline.
642 * doc/openmp-environment-variables/ompcancellation.rst:
643 Add trailing newline.
644 * doc/openmp-environment-variables/ompdefaultdevice.rst:
645 Add trailing newline.
646 * doc/openmp-environment-variables/ompdisplayenv.rst:
647 Add trailing newline.
648 * doc/openmp-environment-variables/ompdynamic.rst:
649 Add trailing newline.
650 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
651 Add trailing newline.
652 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
653 Add trailing newline.
654 * doc/openmp-environment-variables/ompnested.rst:
655 Add trailing newline.
656 * doc/openmp-environment-variables/ompnumteams.rst:
657 Add trailing newline.
658 * doc/openmp-environment-variables/ompnumthreads.rst:
659 Add trailing newline.
660 * doc/openmp-environment-variables/ompplaces.rst:
661 Add trailing newline.
662 * doc/openmp-environment-variables/ompprocbind.rst:
663 Add trailing newline.
664 * doc/openmp-environment-variables/ompschedule.rst:
665 Add trailing newline.
666 * doc/openmp-environment-variables/ompstacksize.rst:
667 Add trailing newline.
668 * doc/openmp-environment-variables/omptargetoffload.rst:
669 Add trailing newline.
670 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
671 Add trailing newline.
672 * doc/openmp-environment-variables/ompthreadlimit.rst:
673 Add trailing newline.
674 * doc/openmp-environment-variables/ompwaitpolicy.rst:
675 Add trailing newline.
676 * doc/openmp-implementation-specifics.rst:
677 Add trailing newline.
678 * doc/openmp-implementation-status.rst:
679 Add trailing newline.
680 * doc/openmp-implementation-status/openmp-45.rst:
681 Add trailing newline.
682 * doc/openmp-implementation-status/openmp-50.rst:
683 Add trailing newline.
684 * doc/openmp-implementation-status/openmp-51.rst:
685 Add trailing newline.
686 * doc/openmp-implementation-status/openmp-52.rst:
687 Add trailing newline.
688 * doc/openmp-runtime-library-routines.rst:
689 Add trailing newline.
690 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
691 Add trailing newline.
692 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
693 Add trailing newline.
694 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
695 Add trailing newline.
696 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
697 Add trailing newline.
698 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
699 Add trailing newline.
700 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
701 Add trailing newline.
702 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
703 Add trailing newline.
704 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
705 Add trailing newline.
706 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
707 Add trailing newline.
708 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
709 Add trailing newline.
710 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
711 Add trailing newline.
712 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
713 Add trailing newline.
714 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
715 Add trailing newline.
716 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
717 Add trailing newline.
718 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
719 Add trailing newline.
720 * doc/openmp-runtime-library-routines/ompgetnested.rst:
721 Add trailing newline.
722 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
723 Add trailing newline.
724 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
725 Add trailing newline.
726 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
727 Add trailing newline.
728 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
729 Add trailing newline.
730 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
731 Add trailing newline.
732 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
733 Add trailing newline.
734 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
735 Add trailing newline.
736 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
737 Add trailing newline.
738 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
739 Add trailing newline.
740 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
741 Add trailing newline.
742 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
743 Add trailing newline.
744 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
745 Add trailing newline.
746 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
747 Add trailing newline.
748 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
749 Add trailing newline.
750 * doc/openmp-runtime-library-routines/ompinfinal.rst:
751 Add trailing newline.
752 * doc/openmp-runtime-library-routines/ompinitlock.rst:
753 Add trailing newline.
754 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
755 Add trailing newline.
756 * doc/openmp-runtime-library-routines/ompinparallel.rst:
757 Add trailing newline.
758 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
759 Add trailing newline.
760 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
761 Add trailing newline.
762 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
763 Add trailing newline.
764 * doc/openmp-runtime-library-routines/ompsetlock.rst:
765 Add trailing newline.
766 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
767 Add trailing newline.
768 * doc/openmp-runtime-library-routines/ompsetnested.rst:
769 Add trailing newline.
770 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
771 Add trailing newline.
772 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
773 Add trailing newline.
774 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
775 Add trailing newline.
776 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
777 Add trailing newline.
778 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
779 Add trailing newline.
780 * doc/openmp-runtime-library-routines/omptestlock.rst:
781 Add trailing newline.
782 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
783 Add trailing newline.
784 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
785 Add trailing newline.
786 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
787 Add trailing newline.
788 * doc/reporting-bugs.rst:
789 Add trailing newline.
790 * doc/the-libgomp-abi.rst:
791 Add trailing newline.
792 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
793 Add trailing newline.
794 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
795 Add trailing newline.
796 * doc/the-libgomp-abi/implementing-critical-construct.rst:
797 Add trailing newline.
798 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
799 Add trailing newline.
800 * doc/the-libgomp-abi/implementing-flush-construct.rst:
801 Add trailing newline.
802 * doc/the-libgomp-abi/implementing-for-construct.rst:
803 Add trailing newline.
804 * doc/the-libgomp-abi/implementing-master-construct.rst:
805 Add trailing newline.
806 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
807 Add trailing newline.
808 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
809 Add trailing newline.
810 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
811 Add trailing newline.
812 * doc/the-libgomp-abi/implementing-private-clause.rst:
813 Add trailing newline.
814 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
815 Add trailing newline.
816 * doc/the-libgomp-abi/implementing-sections-construct.rst:
817 Add trailing newline.
818 * doc/the-libgomp-abi/implementing-single-construct.rst:
819 Add trailing newline.
820 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
821 Add trailing newline.
822
823 2022-11-14 Martin Liska <mliska@suse.cz>
824
825 Revert:
826 2022-11-09 Martin Liska <mliska@suse.cz>
827
828 * Makefile.in: Add missing HAS_SPHINX_BUILD.
829
830 2022-11-14 Martin Liska <mliska@suse.cz>
831
832 Revert:
833 2022-11-14 Martin Liska <mliska@suse.cz>
834
835 * doc/conf.py: Add newline at last line.
836
837 2022-11-14 Martin Liska <mliska@suse.cz>
838
839 Revert:
840 2022-11-14 Martin Liska <mliska@suse.cz>
841
842 PR other/107620
843 * configure: Regenerate.
844 * configure.ac: Always set sphinx-build.
845
846 2022-11-13 Martin Liska <mliska@suse.cz>
847
848 PR other/107620
849 * configure: Regenerate.
850 * configure.ac: Always set sphinx-build.
851
852 2022-11-12 Jakub Jelinek <jakub@redhat.com>
853
854 PR libgomp/107641
855 * env.c (parse_unsigned_long): Cast params[2] to uintptr_t rather than
856 unsigned long. Change type of upper from unsigned to unsigned long.
857
858 2022-11-10 Martin Liska <mliska@suse.cz>
859
860 * doc/conf.py: Add newline at last line.
861
862 2022-11-09 Martin Liska <mliska@suse.cz>
863
864 * Makefile.in: Add missing HAS_SPHINX_BUILD.
865
866 2022-11-09 Martin Liska <mliska@suse.cz>
867
868 * doc/amd-radeon-gcn.rst:
869 Add trailing newline.
870 * doc/copyright.rst:
871 Add trailing newline.
872 * doc/cuda-streams-usage.rst:
873 Add trailing newline.
874 * doc/enabling-openacc.rst:
875 Add trailing newline.
876 * doc/enabling-openmp.rst:
877 Add trailing newline.
878 * doc/first-invocation-nvidia-cublas-library-api.rst:
879 Add trailing newline.
880 * doc/first-invocation-openacc-library-api.rst:
881 Add trailing newline.
882 * doc/funding.rst:
883 Add trailing newline.
884 * doc/general-public-license-3.rst:
885 Add trailing newline.
886 * doc/gnu-free-documentation-license.rst:
887 Add trailing newline.
888 * doc/implementation-status-and-implementation-defined-behavior.rst:
889 Add trailing newline.
890 * doc/index.rst:
891 Add trailing newline.
892 * doc/indices-and-tables.rst:
893 Add trailing newline.
894 * doc/introduction.rst:
895 Add trailing newline.
896 * doc/memory-allocation-with-libmemkind.rst:
897 Add trailing newline.
898 * doc/nvptx.rst:
899 Add trailing newline.
900 * doc/offload-target-specifics.rst:
901 Add trailing newline.
902 * doc/openacc-environment-variables.rst:
903 Add trailing newline.
904 * doc/openacc-environment-variables/accdevicenum.rst:
905 Add trailing newline.
906 * doc/openacc-environment-variables/accdevicetype.rst:
907 Add trailing newline.
908 * doc/openacc-environment-variables/accproflib.rst:
909 Add trailing newline.
910 * doc/openacc-environment-variables/gccaccnotify.rst:
911 Add trailing newline.
912 * doc/openacc-introduction.rst:
913 Add trailing newline.
914 * doc/openacc-library-and-environment-variables.rst:
915 Add trailing newline.
916 * doc/openacc-library-interoperability.rst:
917 Add trailing newline.
918 * doc/openacc-profiling-interface.rst:
919 Add trailing newline.
920 * doc/openacc-runtime-library-routines.rst:
921 Add trailing newline.
922 * doc/openacc-runtime-library-routines/accasynctest.rst:
923 Add trailing newline.
924 * doc/openacc-runtime-library-routines/accasynctestall.rst:
925 Add trailing newline.
926 * doc/openacc-runtime-library-routines/accattach.rst:
927 Add trailing newline.
928 * doc/openacc-runtime-library-routines/acccopyin.rst:
929 Add trailing newline.
930 * doc/openacc-runtime-library-routines/acccopyout.rst:
931 Add trailing newline.
932 * doc/openacc-runtime-library-routines/acccreate.rst:
933 Add trailing newline.
934 * doc/openacc-runtime-library-routines/accdelete.rst:
935 Add trailing newline.
936 * doc/openacc-runtime-library-routines/accdetach.rst:
937 Add trailing newline.
938 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
939 Add trailing newline.
940 * doc/openacc-runtime-library-routines/accfree.rst:
941 Add trailing newline.
942 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
943 Add trailing newline.
944 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
945 Add trailing newline.
946 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
947 Add trailing newline.
948 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
949 Add trailing newline.
950 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
951 Add trailing newline.
952 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
953 Add trailing newline.
954 * doc/openacc-runtime-library-routines/accgetproperty.rst:
955 Add trailing newline.
956 * doc/openacc-runtime-library-routines/acchostptr.rst:
957 Add trailing newline.
958 * doc/openacc-runtime-library-routines/accinit.rst:
959 Add trailing newline.
960 * doc/openacc-runtime-library-routines/accispresent.rst:
961 Add trailing newline.
962 * doc/openacc-runtime-library-routines/accmalloc.rst:
963 Add trailing newline.
964 * doc/openacc-runtime-library-routines/accmapdata.rst:
965 Add trailing newline.
966 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
967 Add trailing newline.
968 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
969 Add trailing newline.
970 * doc/openacc-runtime-library-routines/accondevice.rst:
971 Add trailing newline.
972 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
973 Add trailing newline.
974 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
975 Add trailing newline.
976 * doc/openacc-runtime-library-routines/accproflookup.rst:
977 Add trailing newline.
978 * doc/openacc-runtime-library-routines/accprofregister.rst:
979 Add trailing newline.
980 * doc/openacc-runtime-library-routines/accprofunregister.rst:
981 Add trailing newline.
982 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
983 Add trailing newline.
984 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
985 Add trailing newline.
986 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
987 Add trailing newline.
988 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
989 Add trailing newline.
990 * doc/openacc-runtime-library-routines/accshutdown.rst:
991 Add trailing newline.
992 * doc/openacc-runtime-library-routines/accunmapdata.rst:
993 Add trailing newline.
994 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
995 Add trailing newline.
996 * doc/openacc-runtime-library-routines/accupdateself.rst:
997 Add trailing newline.
998 * doc/openacc-runtime-library-routines/accwait.rst:
999 Add trailing newline.
1000 * doc/openacc-runtime-library-routines/accwaitall.rst:
1001 Add trailing newline.
1002 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
1003 Add trailing newline.
1004 * doc/openacc-runtime-library-routines/accwaitasync.rst:
1005 Add trailing newline.
1006 * doc/openmp-context-selectors.rst:
1007 Add trailing newline.
1008 * doc/openmp-environment-variables.rst:
1009 Add trailing newline.
1010 * doc/openmp-environment-variables/gompcpuaffinity.rst:
1011 Add trailing newline.
1012 * doc/openmp-environment-variables/gompdebug.rst:
1013 Add trailing newline.
1014 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
1015 Add trailing newline.
1016 * doc/openmp-environment-variables/gompspincount.rst:
1017 Add trailing newline.
1018 * doc/openmp-environment-variables/gompstacksize.rst:
1019 Add trailing newline.
1020 * doc/openmp-environment-variables/ompcancellation.rst:
1021 Add trailing newline.
1022 * doc/openmp-environment-variables/ompdefaultdevice.rst:
1023 Add trailing newline.
1024 * doc/openmp-environment-variables/ompdisplayenv.rst:
1025 Add trailing newline.
1026 * doc/openmp-environment-variables/ompdynamic.rst:
1027 Add trailing newline.
1028 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
1029 Add trailing newline.
1030 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
1031 Add trailing newline.
1032 * doc/openmp-environment-variables/ompnested.rst:
1033 Add trailing newline.
1034 * doc/openmp-environment-variables/ompnumteams.rst:
1035 Add trailing newline.
1036 * doc/openmp-environment-variables/ompnumthreads.rst:
1037 Add trailing newline.
1038 * doc/openmp-environment-variables/ompplaces.rst:
1039 Add trailing newline.
1040 * doc/openmp-environment-variables/ompprocbind.rst:
1041 Add trailing newline.
1042 * doc/openmp-environment-variables/ompschedule.rst:
1043 Add trailing newline.
1044 * doc/openmp-environment-variables/ompstacksize.rst:
1045 Add trailing newline.
1046 * doc/openmp-environment-variables/omptargetoffload.rst:
1047 Add trailing newline.
1048 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
1049 Add trailing newline.
1050 * doc/openmp-environment-variables/ompthreadlimit.rst:
1051 Add trailing newline.
1052 * doc/openmp-environment-variables/ompwaitpolicy.rst:
1053 Add trailing newline.
1054 * doc/openmp-implementation-specifics.rst:
1055 Add trailing newline.
1056 * doc/openmp-implementation-status.rst:
1057 Add trailing newline.
1058 * doc/openmp-implementation-status/openmp-45.rst:
1059 Add trailing newline.
1060 * doc/openmp-implementation-status/openmp-50.rst:
1061 Add trailing newline.
1062 * doc/openmp-implementation-status/openmp-51.rst:
1063 Add trailing newline.
1064 * doc/openmp-implementation-status/openmp-52.rst:
1065 Add trailing newline.
1066 * doc/openmp-runtime-library-routines.rst:
1067 Add trailing newline.
1068 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
1069 Add trailing newline.
1070 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
1071 Add trailing newline.
1072 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
1073 Add trailing newline.
1074 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
1075 Add trailing newline.
1076 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
1077 Add trailing newline.
1078 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
1079 Add trailing newline.
1080 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
1081 Add trailing newline.
1082 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
1083 Add trailing newline.
1084 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
1085 Add trailing newline.
1086 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
1087 Add trailing newline.
1088 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
1089 Add trailing newline.
1090 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
1091 Add trailing newline.
1092 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
1093 Add trailing newline.
1094 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
1095 Add trailing newline.
1096 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
1097 Add trailing newline.
1098 * doc/openmp-runtime-library-routines/ompgetnested.rst:
1099 Add trailing newline.
1100 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
1101 Add trailing newline.
1102 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
1103 Add trailing newline.
1104 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
1105 Add trailing newline.
1106 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
1107 Add trailing newline.
1108 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
1109 Add trailing newline.
1110 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
1111 Add trailing newline.
1112 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
1113 Add trailing newline.
1114 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
1115 Add trailing newline.
1116 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
1117 Add trailing newline.
1118 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
1119 Add trailing newline.
1120 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
1121 Add trailing newline.
1122 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
1123 Add trailing newline.
1124 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
1125 Add trailing newline.
1126 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
1127 Add trailing newline.
1128 * doc/openmp-runtime-library-routines/ompinfinal.rst:
1129 Add trailing newline.
1130 * doc/openmp-runtime-library-routines/ompinitlock.rst:
1131 Add trailing newline.
1132 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
1133 Add trailing newline.
1134 * doc/openmp-runtime-library-routines/ompinparallel.rst:
1135 Add trailing newline.
1136 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
1137 Add trailing newline.
1138 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
1139 Add trailing newline.
1140 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
1141 Add trailing newline.
1142 * doc/openmp-runtime-library-routines/ompsetlock.rst:
1143 Add trailing newline.
1144 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
1145 Add trailing newline.
1146 * doc/openmp-runtime-library-routines/ompsetnested.rst:
1147 Add trailing newline.
1148 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
1149 Add trailing newline.
1150 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
1151 Add trailing newline.
1152 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
1153 Add trailing newline.
1154 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
1155 Add trailing newline.
1156 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
1157 Add trailing newline.
1158 * doc/openmp-runtime-library-routines/omptestlock.rst:
1159 Add trailing newline.
1160 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
1161 Add trailing newline.
1162 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
1163 Add trailing newline.
1164 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
1165 Add trailing newline.
1166 * doc/reporting-bugs.rst:
1167 Add trailing newline.
1168 * doc/the-libgomp-abi.rst:
1169 Add trailing newline.
1170 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
1171 Add trailing newline.
1172 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
1173 Add trailing newline.
1174 * doc/the-libgomp-abi/implementing-critical-construct.rst:
1175 Add trailing newline.
1176 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1177 Add trailing newline.
1178 * doc/the-libgomp-abi/implementing-flush-construct.rst:
1179 Add trailing newline.
1180 * doc/the-libgomp-abi/implementing-for-construct.rst:
1181 Add trailing newline.
1182 * doc/the-libgomp-abi/implementing-master-construct.rst:
1183 Add trailing newline.
1184 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
1185 Add trailing newline.
1186 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
1187 Add trailing newline.
1188 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
1189 Add trailing newline.
1190 * doc/the-libgomp-abi/implementing-private-clause.rst:
1191 Add trailing newline.
1192 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
1193 Add trailing newline.
1194 * doc/the-libgomp-abi/implementing-sections-construct.rst:
1195 Add trailing newline.
1196 * doc/the-libgomp-abi/implementing-single-construct.rst:
1197 Add trailing newline.
1198 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
1199 Add trailing newline.
1200
1201 2022-11-09 Martin Liska <mliska@suse.cz>
1202
1203 * Makefile.in: Build info pages conditionally.
1204
1205 2022-11-09 Martin Liska <mliska@suse.cz>
1206
1207 * Makefile.in: Support --with-sphinx-build.
1208 * configure.ac: Likewise..
1209 * configure: Regenerate.
1210
1211 2022-11-09 Martin Liska <mliska@suse.cz>
1212
1213 * libgomp.texi: Removed.
1214
1215 2022-11-09 Martin Liska <mliska@suse.cz>
1216
1217 * Makefile.in: Support Sphinx based documentation.
1218
1219 2022-11-09 Martin Liska <mliska@suse.cz>
1220
1221 * doc/amd-radeon-gcn.rst: New file.
1222 * doc/conf.py: New file.
1223 * doc/copyright.rst: New file.
1224 * doc/cuda-streams-usage.rst: New file.
1225 * doc/enabling-openacc.rst: New file.
1226 * doc/enabling-openmp.rst: New file.
1227 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
1228 * doc/first-invocation-openacc-library-api.rst: New file.
1229 * doc/funding.rst: New file.
1230 * doc/general-public-license-3.rst: New file.
1231 * doc/gnu-free-documentation-license.rst: New file.
1232 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
1233 * doc/index.rst: New file.
1234 * doc/indices-and-tables.rst: New file.
1235 * doc/introduction.rst: New file.
1236 * doc/memory-allocation-with-libmemkind.rst: New file.
1237 * doc/nvptx.rst: New file.
1238 * doc/offload-target-specifics.rst: New file.
1239 * doc/openacc-environment-variables.rst: New file.
1240 * doc/openacc-environment-variables/accdevicenum.rst: New file.
1241 * doc/openacc-environment-variables/accdevicetype.rst: New file.
1242 * doc/openacc-environment-variables/accproflib.rst: New file.
1243 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
1244 * doc/openacc-introduction.rst: New file.
1245 * doc/openacc-library-and-environment-variables.rst: New file.
1246 * doc/openacc-library-interoperability.rst: New file.
1247 * doc/openacc-profiling-interface.rst: New file.
1248 * doc/openacc-runtime-library-routines.rst: New file.
1249 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
1250 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
1251 * doc/openacc-runtime-library-routines/accattach.rst: New file.
1252 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
1253 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
1254 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
1255 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
1256 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
1257 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
1258 * doc/openacc-runtime-library-routines/accfree.rst: New file.
1259 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
1260 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
1261 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
1262 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
1263 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
1264 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
1265 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
1266 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
1267 * doc/openacc-runtime-library-routines/accinit.rst: New file.
1268 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
1269 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
1270 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
1271 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
1272 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
1273 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
1274 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
1275 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
1276 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
1277 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
1278 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
1279 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
1280 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
1281 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
1282 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
1283 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
1284 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
1285 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
1286 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
1287 * doc/openacc-runtime-library-routines/accwait.rst: New file.
1288 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
1289 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
1290 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
1291 * doc/openmp-context-selectors.rst: New file.
1292 * doc/openmp-environment-variables.rst: New file.
1293 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
1294 * doc/openmp-environment-variables/gompdebug.rst: New file.
1295 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
1296 * doc/openmp-environment-variables/gompspincount.rst: New file.
1297 * doc/openmp-environment-variables/gompstacksize.rst: New file.
1298 * doc/openmp-environment-variables/ompcancellation.rst: New file.
1299 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
1300 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
1301 * doc/openmp-environment-variables/ompdynamic.rst: New file.
1302 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
1303 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
1304 * doc/openmp-environment-variables/ompnested.rst: New file.
1305 * doc/openmp-environment-variables/ompnumteams.rst: New file.
1306 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
1307 * doc/openmp-environment-variables/ompplaces.rst: New file.
1308 * doc/openmp-environment-variables/ompprocbind.rst: New file.
1309 * doc/openmp-environment-variables/ompschedule.rst: New file.
1310 * doc/openmp-environment-variables/ompstacksize.rst: New file.
1311 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
1312 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
1313 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
1314 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
1315 * doc/openmp-implementation-specifics.rst: New file.
1316 * doc/openmp-implementation-status.rst: New file.
1317 * doc/openmp-implementation-status/openmp-45.rst: New file.
1318 * doc/openmp-implementation-status/openmp-50.rst: New file.
1319 * doc/openmp-implementation-status/openmp-51.rst: New file.
1320 * doc/openmp-implementation-status/openmp-52.rst: New file.
1321 * doc/openmp-runtime-library-routines.rst: New file.
1322 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
1323 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
1324 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
1325 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
1326 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
1327 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
1328 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
1329 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
1330 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
1331 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
1332 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
1333 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
1334 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
1335 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
1336 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
1337 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
1338 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
1339 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
1340 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
1341 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
1342 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
1343 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
1344 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
1345 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
1346 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
1347 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
1348 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
1349 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
1350 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
1351 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
1352 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
1353 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
1354 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
1355 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
1356 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
1357 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
1358 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
1359 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
1360 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
1361 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
1362 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
1363 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
1364 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
1365 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
1366 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
1367 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
1368 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
1369 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
1370 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
1371 * doc/reporting-bugs.rst: New file.
1372 * doc/the-libgomp-abi.rst: New file.
1373 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
1374 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
1375 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
1376 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1377 New file.
1378 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
1379 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
1380 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
1381 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
1382 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
1383 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
1384 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
1385 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
1386 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
1387 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
1388 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
1389
1390 2022-11-04 Thomas Schwinge <thomas@codesourcery.com>
1391
1392 * libgomp-plugin.h (OFFLOAD_TARGET_TYPE_INTEL_MIC): Remove.
1393 * libgomp.texi (OpenMP Context Selectors): Remove Intel MIC
1394 documentation.
1395 * plugin/configfrag.ac <enable_offload_targets>
1396 [*-intelmic-* | *-intelmicemul-*]: Remove.
1397 * configure: Regenerate.
1398 * testsuite/lib/libgomp.exp (libgomp_init): Remove 'liboffloadmic'
1399 handling.
1400 (offload_target_to_openacc_device_type)
1401 [$offload_target = *-intelmic*]: Remove.
1402 (check_effective_target_offload_device_intel_mic)
1403 (check_effective_target_offload_device_any_intel_mic): Remove.
1404 * testsuite/libgomp.c-c++-common/on_device_arch.h
1405 (device_arch_intel_mic, on_device_arch_intel_mic, any_device_arch)
1406 (any_device_arch_intel_mic): Remove.
1407 * testsuite/libgomp.c-c++-common/target-45.c: Remove
1408 'offload_device_any_intel_mic' XFAIL.
1409 * testsuite/libgomp.fortran/target10.f90: Likewise.
1410
1411 2022-11-03 Tobias Burnus <tobias@codesourcery.com>
1412
1413 * testsuite/libgomp.fortran/target-11.f90: New test.
1414 * testsuite/libgomp.fortran/target-13.f90: New test.
1415
1416 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
1417
1418 PR libgomp/106643
1419 PR fortran/96668
1420 * oacc-mem.c (goacc_enter_data_internal): Support
1421 OpenACC 'declare create' with Fortran allocatable arrays, part II.
1422 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
1423 Adjust.
1424 * testsuite/libgomp.oacc-fortran/pr106643-1.f90: New.
1425
1426 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
1427
1428 PR libgomp/106643
1429 * oacc-mem.c (goacc_enter_data_internal): Support
1430 OpenACC 'declare create' with Fortran allocatable arrays, part I.
1431 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90:
1432 New.
1433 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
1434 New.
1435
1436 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
1437
1438 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-runtime.f90:
1439 New.
1440
1441 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
1442
1443 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90:
1444 New.
1445
1446 2022-11-02 Cesar Philippidis <cesar@codesourcery.com>
1447 Thomas Schwinge <thomas@codesourcery.com>
1448
1449 * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: New.
1450
1451 2022-10-28 Julian Brown <julian@codesourcery.com>
1452 Thomas Schwinge <thomas@codesourcery.com>
1453
1454 PR middle-end/90115
1455 * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
1456 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
1457 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
1458 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
1459 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1460
1461 2022-10-24 Thomas Schwinge <thomas@codesourcery.com>
1462
1463 * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
1464 'ptx_dev->rev_data'.
1465
1466 2022-10-24 Tobias Burnus <tobias@codesourcery.com>
1467
1468 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
1469 'static' for this variable.
1470 * config/nvptx/libgomp-nvptx.h: New file.
1471 * config/nvptx/target.c: Include it.
1472 (GOMP_ADDITIONAL_ICVS): Declare extern var.
1473 (GOMP_REV_OFFLOAD_VAR): Declare var.
1474 (GOMP_target_ext): Handle reverse offload.
1475 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
1476 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
1477 * target.c (gomp_target_rev): ... this new stub function.
1478 * libgomp.h (gomp_target_rev): Declare.
1479 * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
1480 * plugin/cuda-lib.def (cuMemHostAlloc): Add.
1481 * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
1482 (struct ptx_device): Add rev_data member.
1483 (nvptx_open_device): Remove async_engines query, last used in
1484 r10-304-g1f4c5b9b; add unified-address assert check.
1485 (GOMP_OFFLOAD_get_num_devices): Claim unified address
1486 support.
1487 (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
1488 offload functions exist. Make offload var available
1489 on host and device.
1490 (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
1491 (GOMP_OFFLOAD_run): Handle reverse offload.
1492
1493 2022-10-21 Thomas Schwinge <thomas@codesourcery.com>
1494
1495 PR tree-optimization/107195
1496 PR target/107344
1497 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
1498 regions checking.
1499
1500 2022-10-20 Tobias Burnus <tobias@codesourcery.com>
1501
1502 * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
1503 New.
1504 * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
1505 on_device_arch_gcn): New.
1506 * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
1507 requires-4.c but using heap-allocated memory.
1508
1509 2022-10-20 Thomas Schwinge <thomas@codesourcery.com>
1510
1511 PR target/105421
1512 * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
1513
1514 2022-10-17 Thomas Schwinge <thomas@codesourcery.com>
1515
1516 * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
1517 '-foffload-options' syntax.
1518
1519 2022-10-13 Tobias Burnus <tobias@codesourcery.com>
1520
1521 * testsuite/libgomp.fortran/task-7.f90: New test.
1522 * testsuite/libgomp.fortran/task-8.f90: New test.
1523 * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
1524 * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
1525 * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
1526 * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
1527 * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
1528
1529 2022-10-12 Jakub Jelinek <jakub@redhat.com>
1530
1531 * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
1532 in deprecation bullet.
1533
1534 2022-10-12 Jakub Jelinek <jakub@redhat.com>
1535
1536 * omp.h.in (omp_in_explicit_task): Declare.
1537 * omp_lib.h.in (omp_in_explicit_task): Likewise.
1538 * omp_lib.f90.in (omp_in_explicit_task): New interface.
1539 * libgomp.map (OMP_5.2): New symbol version, export
1540 omp_in_explicit_task and omp_in_explicit_task_.
1541 * task.c (omp_in_explicit_task): New function.
1542 * fortran.c (omp_in_explicit_task): Add ialias_redirect.
1543 (omp_in_explicit_task_): New function.
1544 * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
1545 * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
1546 * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
1547 * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
1548
1549 2022-10-12 Jakub Jelinek <jakub@redhat.com>
1550
1551 * task.c (gomp_create_artificial_team): Fix up handling of invocations
1552 from within explicit task.
1553 * target.c (GOMP_target_ext): Likewise.
1554 * testsuite/libgomp.c/task-7.c: New test.
1555 * testsuite/libgomp.c/task-8.c: New test.
1556 * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
1557 * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
1558
1559 2022-10-12 Martin Liska <mliska@suse.cz>
1560
1561 * configure: Regenerate.
1562
1563 2022-10-11 Olivier Hainque <hainque@adacore.com>
1564 Olivier Hainque <hainque@adacore.com>
1565
1566 * configure: Regenerate.
1567
1568 2022-10-05 Tobias Burnus <tobias@codesourcery.com>
1569
1570 * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
1571
1572 2022-10-04 Jakub Jelinek <jakub@redhat.com>
1573
1574 * libgomp.texi (Support begin/end declare target syntax in C/C++):
1575 Mark as implemented.
1576
1577 2022-09-30 Tobias Burnus <tobias@codesourcery.com>
1578
1579 PR fortran/105318
1580 * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
1581
1582 2022-09-28 Tobias Burnus <tobias@codesourcery.com>
1583
1584 * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
1585 for C/C++. Remove duplicated 'begin declare target' entry.
1586
1587 2022-09-24 Jakub Jelinek <jakub@redhat.com>
1588
1589 PR c/106981
1590 * testsuite/libgomp.c-c++-common/pr106981.c: New test.
1591
1592 2022-09-14 Julian Brown <julian@codesourcery.com>
1593
1594 * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
1595 * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
1596 * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
1597 * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
1598 test to here, make "run" test.
1599
1600 2022-09-13 Jakub Jelinek <jakub@redhat.com>
1601
1602 PR libgomp/106906
1603 * env.c (get_icv_member_addr): Cast false to void * before assigning
1604 it to icv_addr[1], and comment the whole assignment out.
1605
1606 2022-09-13 Tobias Burnus <tobias@codesourcery.com>
1607
1608 * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
1609 (nvptx): ... here.
1610
1611 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
1612
1613 * libgomp.texi (Offload-Target Specifics: nvptx): Document
1614 that reverse offload requires >= -march=sm_35.
1615 * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
1616 with -misa=sm_35.
1617 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
1618 * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
1619 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
1620 * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
1621 * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
1622
1623 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
1624
1625 * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
1626 (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
1627
1628 2022-09-12 Jakub Jelinek <jakub@redhat.com>
1629
1630 PR libgomp/106894
1631 * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
1632 (main): Avoid tests for which corresponding non-_ALL suffixed variable
1633 is in the environment, or for OMP_NUM_TEAMS on the device
1634 OMP_NUM_TEAMS_DEV_?.
1635
1636 2022-09-10 Iain Sandoe <iain@sandoe.co.uk>
1637
1638 * env.c (initialize_env): Include libiberty environ.h.
1639
1640 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
1641
1642 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
1643 function address table '$offload_func_table' if rev_fn_table
1644 is not NULL.
1645
1646 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
1647
1648 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
1649 .offload_func_table to populate rev_fn_table when requested.
1650
1651 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
1652
1653 * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
1654 'uint64_t **rev_fn_table' argument.
1655 * oacc-host.c (host_load_image): Likewise.
1656 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
1657 currently unused.
1658 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
1659 * target.c (gomp_load_image_to_device): Update call but pass
1660 NULL for now.
1661
1662 2022-09-09 Jakub Jelinek <jakub@redhat.com>
1663
1664 PR libgomp/106894
1665 * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
1666 char * for dest[1] initialization from params[1]. Formatting fixes.
1667
1668 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
1669
1670 PR fortran/106670
1671 * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
1672
1673 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
1674
1675 * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
1676 section; move OpenMP Context Selectors from ...
1677 (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
1678 'nvptx' sections.
1679
1680 2022-09-08 Marcel Vollweiler <marcel@codesourcery.com>
1681
1682 * config/gcn/icv-device.c (omp_get_default_device): Return device-
1683 specific ICV.
1684 (omp_get_max_teams): Added for GCN devices.
1685 (omp_set_num_teams): Likewise.
1686 (ialias): Likewise.
1687 * config/nvptx/icv-device.c (omp_get_default_device): Return device-
1688 specific ICV.
1689 (omp_get_max_teams): Added for NVPTX devices.
1690 (omp_set_num_teams): Likewise.
1691 (ialias): Likewise.
1692 * env.c (struct gomp_icv_list): New struct to store entries of initial
1693 ICV values.
1694 (struct gomp_offload_icv_list): New struct to store entries of device-
1695 specific ICV values that are copied to the device and back.
1696 (struct gomp_default_icv_values): New struct to store default values of
1697 ICVs according to the OpenMP standard.
1698 (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
1699 (print_env_var_error): Function that prints an error for invalid values
1700 for ICVs.
1701 (parse_unsigned_long_1): Removed getenv. Generalized.
1702 (parse_unsigned_long): Likewise.
1703 (parse_int_1): Likewise.
1704 (parse_int): Likewise.
1705 (parse_int_secure): Likewise.
1706 (parse_unsigned_long_list): Likewise.
1707 (parse_target_offload): Likewise.
1708 (parse_bind_var): Likewise.
1709 (parse_stacksize): Likewise.
1710 (parse_boolean): Likewise.
1711 (parse_wait_policy): Likewise.
1712 (parse_allocator): Likewise.
1713 (omp_display_env): Extended to output different variants of environment
1714 variables.
1715 (print_schedule): New helper function for omp_display_env which prints
1716 the values of run_sched_var.
1717 (print_proc_bind): New helper function for omp_display_env which prints
1718 the values of proc_bind_var.
1719 (enum gomp_parse_type): Collection of types used for parsing environment
1720 variables.
1721 (ENTRY): Preprocess string lengths of environment variables.
1722 (OMP_VAR_CNT): Preprocess table size.
1723 (OMP_HOST_VAR_CNT): Likewise.
1724 (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
1725 number.
1726 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
1727 (gomp_set_icv_flag): Sets a flag for a particular ICV.
1728 (print_device_specific_icvs): New helper function for omp_display_env to
1729 print device specific ICV values.
1730 (get_device_num): New helper function for parse_device_specific.
1731 Extracts the device number from an environment variable name.
1732 (get_icv_member_addr): Gets the memory address for a particular member
1733 of an ICV struct.
1734 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
1735 (initialize_icvs): New function to initialize a gomp_initial_icvs
1736 struct.
1737 (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
1738 (startswith): Checks if a string starts with a given prefix.
1739 (initialize_env): Extended to parse the new syntax of environment
1740 variables.
1741 * icv-device.c (omp_get_max_teams): Added.
1742 (ialias): Likewise.
1743 (omp_set_num_teams): Likewise.
1744 * icv.c (omp_set_num_teams): Moved to icv-device.c.
1745 (omp_get_max_teams): Likewise.
1746 (ialias): Likewise.
1747 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
1748 (GOMP_ADDITIONAL_ICVS): New target-side struct that
1749 holds the designated ICVs of the target device.
1750 * libgomp.h (enum gomp_icvs): Collection of ICVs.
1751 (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
1752 no suffix.
1753 (enum gomp_env_suffix): Collection of possible suffixes of environment
1754 variables.
1755 (struct gomp_initial_icvs): Contains all ICVs for which we need to store
1756 initial values.
1757 (struct gomp_default_icv):New struct to hold ICVs for which we need
1758 to store initial values.
1759 (struct gomp_icv_list): Definition of a linked list that is used for
1760 storing ICVs for the devices and also for _DEV, _ALL, and without
1761 suffix.
1762 (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
1763 a device.
1764 (struct gomp_offload_icv_list): Definition of a linked list that holds
1765 device-specific ICVs that are copied to devices.
1766 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
1767 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
1768 * libgomp.texi: Updated.
1769 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
1770 further ICVs from the offload image.
1771 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
1772 * target.c (gomp_get_offload_icv_item): Get a list item of
1773 gomp_offload_icv_list.
1774 (get_gomp_offload_icvs): New. Returns the ICV values
1775 depending on the device num and the variable hierarchy.
1776 (gomp_load_image_to_device): Extended to copy further ICVs to a device.
1777 * testsuite/libgomp.c-c++-common/icv-5.c: New test.
1778 * testsuite/libgomp.c-c++-common/icv-6.c: New test.
1779 * testsuite/libgomp.c-c++-common/icv-7.c: New test.
1780 * testsuite/libgomp.c-c++-common/icv-8.c: New test.
1781 * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
1782 * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
1783
1784 2022-09-08 Jakub Jelinek <jakub@redhat.com>
1785
1786 * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
1787 fully supported.
1788 * testsuite/libgomp.c/doacross-4.c: New test.
1789 * testsuite/libgomp.c/doacross-5.c: New test.
1790 * testsuite/libgomp.c/doacross-6.c: New test.
1791 * testsuite/libgomp.c/doacross-7.c: New test.
1792
1793 2022-09-05 Tobias Burnus <tobias@codesourcery.com>
1794
1795 * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
1796
1797 2022-08-26 Tobias Burnus <tobias@codesourcery.com>
1798
1799 * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
1800 refer to 'requires'.
1801 * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
1802 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
1803 * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
1804 * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
1805
1806 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
1807
1808 PR middle-end/106548
1809 * testsuite/libgomp.c/linear-2.c: New test.
1810
1811 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
1812
1813 * splay-tree.h: Fix splay_* macro unsetting if
1814 splay_tree_prefix is defined.
1815
1816 2022-07-29 Tobias Burnus <tobias@codesourcery.com>
1817
1818 * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
1819
1820 2022-07-29 Jakub Jelinek <jakub@redhat.com>
1821
1822 PR middle-end/106449
1823 * testsuite/libgomp.c-c++-common/pr106449.c: New test.
1824
1825 2022-07-12 Tobias Burnus <tobias@codesourcery.com>
1826
1827 * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
1828
1829 2022-07-12 Thomas Schwinge <thomas@codesourcery.com>
1830
1831 PR middle-end/101551
1832 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
1833 'offloading_enabled' diagnostics issue.
1834
1835 2022-07-11 Thomas Schwinge <thomas@codesourcery.com>
1836
1837 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
1838 '_Pragma' diagnostics verification.
1839
1840 2022-07-10 Lewis Hyatt <lhyatt@gmail.com>
1841
1842 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
1843 improved warning locations.
1844 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
1845
1846 2022-07-08 Thomas Schwinge <thomas@codesourcery.com>
1847
1848 * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
1849 * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
1850 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
1851 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
1852 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
1853
1854 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
1855
1856 * target.c (GOMP_offload_register, GOMP_offload_unregister):
1857 Denote as legacy entry points.
1858 * testsuite/lib/libgomp.exp
1859 (check_effective_target_offload_target_any): New proc.
1860 * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
1861 'offload_target_any'.
1862 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
1863 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
1864 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
1865
1866 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
1867
1868 * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
1869 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
1870
1871 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
1872
1873 * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
1874
1875 2022-07-06 Thomas Schwinge <thomas@codesourcery.com>
1876
1877 * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
1878 'data'.
1879 (GOMP_offload_unregister_ver): Likewise. Fix up 'target_data'.
1880
1881 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
1882 Jakub Jelinek <jakub@redhat.com>
1883
1884 * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
1885
1886 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
1887 Chung-Lin Tang <cltang@codesourcery.com>
1888 Thomas Schwinge <thomas@codesourcery.com>
1889
1890 * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
1891 omp_requires_mask arg.
1892 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
1893 return -1 when device available but omp_requires_mask != 0.
1894 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
1895 * oacc-host.c (host_get_num_devices, host_openacc_get_property):
1896 Update call.
1897 * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
1898 goacc_attach_host_thread_to_device, acc_get_num_devices,
1899 acc_set_device_num, get_property_any): Likewise.
1900 * target.c (omp_requires_mask): New global var.
1901 (gomp_requires_to_name): New.
1902 (GOMP_offload_register_ver): Handle passed omp_requires_mask.
1903 (gomp_target_init): Handle omp_requires_mask.
1904 * libgomp.texi (OpenMP 5.0): Update requires impl. status.
1905 (OpenMP 5.1): Add a missed item.
1906 (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
1907 * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
1908 * testsuite/libgomp.c-c++-common/requires-1.c: New test.
1909 * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
1910 * testsuite/libgomp.c-c++-common/requires-2.c: New test.
1911 * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
1912 * testsuite/libgomp.c-c++-common/requires-3.c: New test.
1913 * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
1914 * testsuite/libgomp.c-c++-common/requires-4.c: New test.
1915 * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
1916 * testsuite/libgomp.c-c++-common/requires-5.c: New test.
1917 * testsuite/libgomp.c-c++-common/requires-6.c: New test.
1918 * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
1919 * testsuite/libgomp.c-c++-common/requires-7.c: New test.
1920 * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
1921 * testsuite/libgomp.fortran/requires-1.f90: New test.
1922
1923 2022-07-01 Tobias Burnus <tobias@codesourcery.com>
1924
1925 * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
1926 with fromto as implemented.
1927
1928 2022-06-28 Martin Liska <mliska@suse.cz>
1929
1930 * acinclude.m4: Fix typo in mold linker detection.
1931 * Makefile.in: Regenerate.
1932 * configure: Regenerate.
1933
1934 2022-06-21 Jakub Jelinek <jakub@redhat.com>
1935 Paul Iannetta <piannetta@kalrayinc.com>
1936
1937 PR libgomp/106045
1938 * testsuite/libgomp.c/target-31.c: Add private (i) clause.
1939
1940 2022-06-17 Martin Liska <mliska@suse.cz>
1941
1942 * libgomp.texi: Add table header for new features of
1943 OpenMP 5.2.
1944
1945 2022-06-15 Jakub Jelinek <jakub@redhat.com>
1946
1947 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
1948 q to ddress of an automatic variable. Use -5 instead of -1 in
1949 omp_get_mapped_ptr call. Add test with omp_initial_device.
1950 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
1951 of -1 in omp_get_mapped_ptr call. Add test with omp_initial_device.
1952 Renumber stop arguments afterwards.
1953
1954 2022-06-13 Jakub Jelinek <jakub@redhat.com>
1955
1956 * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
1957 * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
1958 parameters.
1959 * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
1960 * target.c (resolve_device): Add remapped argument, handle
1961 GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
1962 for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
1963 if remapped, otherwise treat omp_initial_device that way. For
1964 omp_invalid_device, always emit gomp_fatal, even when
1965 OMP_TARGET_OFFLOAD isn't mandatory.
1966 (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
1967 GOMP_target_update, GOMP_target_update_ext,
1968 GOMP_target_enter_exit_data): Pass true as remapped argument to
1969 resolve_device.
1970 (omp_target_alloc, omp_target_free, omp_target_is_present,
1971 omp_target_memcpy_check, omp_target_associate_ptr,
1972 omp_target_disassociate_ptr, omp_get_mapped_ptr,
1973 omp_target_is_accessible): Pass false as remapped argument to
1974 resolve_device. Treat omp_initial_device the same as
1975 gomp_get_num_devices (). Don't bypass resolve_device calls if
1976 device_num is negative.
1977 (omp_pause_resource): Treat omp_initial_device the same as
1978 gomp_get_num_devices (). Call resolve_device.
1979 * icv-device.c (omp_set_default_device): Always set to device_num
1980 even when it is negative.
1981 * libgomp.texi: Document that Conforming device numbers,
1982 omp_initial_device and omp_invalid_device is implemented.
1983 * testsuite/libgomp.c/target-41.c (main): Add test with
1984 omp_initial_device.
1985 * testsuite/libgomp.c/target-45.c: New test.
1986 * testsuite/libgomp.c/target-46.c: New test.
1987 * testsuite/libgomp.c/target-47.c: New test.
1988 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
1989 test with omp_initial_device. Use -5 instead of -1 for negative value
1990 test.
1991 * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
1992 Likewise. Reorder stop numbers.
1993
1994 2022-06-10 Jakub Jelinek <jakub@redhat.com>
1995
1996 * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
1997 rather than "libmemkind.so".
1998
1999 2022-06-10 Thomas Schwinge <thomas@codesourcery.com>
2000
2001 * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
2002 * plugin/configfrag.ac (--with-cuda-driver)
2003 (--with-cuda-driver-include, --with-cuda-driver-lib)
2004 (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
2005 (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
2006 Remove.
2007 * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
2008 (cuda_driver_lib): Remove.
2009 * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
2010 * Makefile.in: Regenerate.
2011 * configure: Likewise.
2012 * testsuite/Makefile.in: Likewise.
2013
2014 2022-06-09 Jakub Jelinek <jakub@redhat.com>
2015
2016 * config/linux/allocator.c: Fix up #include directive.
2017
2018 2022-06-09 Jakub Jelinek <jakub@redhat.com>
2019
2020 * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
2021 (enum gomp_memkind_kind): New type.
2022 (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
2023 is defined.
2024 (struct gomp_memkind_data): New type.
2025 (memkind_data, memkind_data_once): New variables.
2026 (gomp_init_memkind, gomp_get_memkind): New functions.
2027 (omp_init_allocator): Initialize data.memkind, don't fail for
2028 omp_high_bw_mem_space if libmemkind supports it.
2029 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
2030 memkind support of LIBGOMP_USE_MEMKIND is defined.
2031 * config/linux/allocator.c: New file.
2032
2033 2022-06-03 Tobias Burnus <tobias@codesourcery.com>
2034
2035 * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
2036 * testsuite/libgomp.fortran/scope-2.f90: New test.
2037
2038 2022-06-02 David Malcolm <dmalcolm@redhat.com>
2039
2040 * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
2041
2042 2022-05-31 Jakub Jelinek <jakub@redhat.com>
2043
2044 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
2045 scope construct with allocate clause.
2046 * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
2047 * testsuite/libgomp.c-c++-common/scope-2.c: New test.
2048
2049 2022-05-28 Tobias Burnus <tobias@codesourcery.com>
2050
2051 * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
2052 * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
2053 explicit 'to' and 'enter' clause.
2054 * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
2055
2056 2022-05-28 Jakub Jelinek <jakub@redhat.com>
2057
2058 PR libgomp/105745
2059 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
2060 defined(HAVE__ALIGNED_MALLOC) case.
2061 * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
2062 handling as last option before fallback instead of first.
2063 (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
2064 _aligned_free.
2065
2066 2022-05-27 Jakub Jelinek <jakub@redhat.com>
2067
2068 * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
2069 clauses to enter.
2070 * testsuite/libgomp.c/target-41.c: Likewise.
2071
2072 2022-05-27 Tobias Burnus <tobias@codesourcery.com>
2073
2074 * libgomp.texi (Other new OpenMP 5.1 features): Add
2075 'begin declare target'.
2076 (Other new OpenMP 5.2 features): New.
2077
2078 2022-05-25 Jakub Jelinek <jakub@redhat.com>
2079
2080 * task.c (gomp_task_run_post_handle_dependers): If empty_task
2081 is the last task taskwait depend depends on, wake it up.
2082 Similarly if it is the last child of a taskgroup, use atomic
2083 store instead of decrement and awak taskgroup wait if any.
2084 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
2085
2086 2022-05-24 Andrew Stubbs <ams@codesourcery.com>
2087
2088 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
2089 EF_AMDGPU_MACH_AMDGCN_GFX90a.
2090 (gcn_gfx90a_s): New.
2091 (isa_hsa_name): Support gfx90a.
2092 (isa_code): Likewise.
2093
2094 2022-05-24 Tobias Burnus <tobias@codesourcery.com>
2095
2096 PR c/105378
2097 * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
2098 * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
2099
2100 2022-05-24 Jakub Jelinek <jakub@redhat.com>
2101
2102 PR c/105378
2103 * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
2104 * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
2105 * task.c (empty_task): New function.
2106 (gomp_task_run_post_handle_depend_hash): Declare earlier.
2107 (gomp_task_run_post_handle_depend): Declare.
2108 (GOMP_task): Optimize fn == empty_task if there is nothing to wait
2109 for.
2110 (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
2111 (GOMP_taskwait_depend_nowait): New function.
2112 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
2113
2114 2022-05-23 Tobias Burnus <tobias@codesourcery.com>
2115
2116 PR fortran/104949
2117 * target.c (gomp_map_vars_internal, copy_firstprivate_data):
2118 Support attach for GOMP_MAP_FIRSTPRIVATE.
2119 * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
2120 * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
2121 * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
2122
2123 2022-05-20 Marcel Vollweiler <marcel@codesourcery.com>
2124
2125 * libgomp.map: Added omp_target_memcpy_async and
2126 omp_target_memcpy_rect_async.
2127 * libgomp.texi: Both functions are now supported.
2128 * omp.h.in: Added omp_target_memcpy_async and
2129 omp_target_memcpy_rect_async.
2130 * omp_lib.f90.in: Added interfaces for both new functions.
2131 * omp_lib.h.in: Likewise.
2132 * target.c (ialias_redirect): Added for GOMP_task.
2133 (omp_target_memcpy): Restructured into check and copy part.
2134 (omp_target_memcpy_check): New helper function for omp_target_memcpy and
2135 omp_target_memcpy_async that checks requirements.
2136 (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
2137 omp_target_memcpy_async that performs the memcpy.
2138 (omp_target_memcpy_async_helper): New helper function that is used in
2139 omp_target_memcpy_async for the asynchronous task.
2140 (omp_target_memcpy_async): Added.
2141 (omp_target_memcpy_rect): Restructured into check and copy part.
2142 (omp_target_memcpy_rect_check): New helper function for
2143 omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
2144 requirements.
2145 (omp_target_memcpy_rect_copy): New helper function for
2146 omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
2147 the memcpy.
2148 (omp_target_memcpy_rect_async_helper): New helper function that is used
2149 in omp_target_memcpy_rect_async for the asynchronous task.
2150 (omp_target_memcpy_rect_async): Added.
2151 * task.c (ialias): Added for GOMP_task.
2152 * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
2153 * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
2154 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
2155 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
2156 * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
2157 * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
2158 * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
2159 * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
2160
2161 2022-05-18 Tobias Burnus <tobias@codesourcery.com>
2162
2163 * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
2164 (OpenMP Context Selectors): Add missing comma.
2165 * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
2166 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
2167 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
2168 * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
2169
2170 2022-05-17 Jakub Jelinek <jakub@redhat.com>
2171
2172 * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
2173 comment for omp_display_env feature.
2174
2175 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
2176
2177 * libgomp.texi (Offload-Target Specifics): New chapter; add section
2178 to document OpenMP context selectors.
2179
2180 2022-05-17 Jakub Jelinek <jakub@redhat.com>
2181
2182 * libgomp.h (struct gomp_task_depend_entry): Change is_in type
2183 from bool to unsigned char.
2184 * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
2185 Ignore dependencies where
2186 task->depend[i].is_in && task->depend[i].is_in == ent->is_in
2187 rather than just task->depend[i].is_in && ent->is_in. Remember
2188 whether GOMP_DEPEND_IN loop is needed and guard the loop with that
2189 conditional.
2190 (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
2191 Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
2192 rather than just elem.is_in && ent->is_in.
2193 * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
2194 inoutset depend-kind.
2195 * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
2196 * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
2197 * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
2198
2199 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
2200
2201 * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
2202
2203 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
2204
2205 * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
2206 * testsuite/libgomp.fortran/depend-5.f90: New test.
2207 * testsuite/libgomp.fortran/depend-6.f90: New test.
2208 * testsuite/libgomp.fortran/depend-7.f90: New test.
2209
2210 2022-05-16 Marcel Vollweiler <marcel@codesourcery.com>
2211
2212 * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
2213 * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
2214 * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
2215
2216 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
2217
2218 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
2219
2220 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
2221
2222 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
2223
2224 2022-05-13 Thomas Schwinge <thomas@codesourcery.com>
2225
2226 * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
2227 [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
2228 (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
2229 append '$(PLUGIN_NVPTX_LDFLAGS)'.
2230 * Makefile.in: Regenerate.
2231
2232 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
2233
2234 * Makefile.am (libgomp_la_LIBADD): Initialize.
2235 * plugin/configfrag.ac (DL_LIBS): New.
2236 (PLUGIN_GCN_LIBS): Remove.
2237 (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
2238 * plugin/Makefrag.am (libgomp_la_LIBADD)
2239 (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
2240 (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
2241 * Makefile.in: Regenerate.
2242 * config.h.in: Likewise.
2243 * configure: Likewise.
2244 * testsuite/Makefile.in: Likewise.
2245
2246 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
2247
2248 * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
2249 * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
2250 'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
2251 * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
2252 'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
2253 'PLUGIN_NVPTX_LINK_LIBCUDA'.
2254 * Makefile.in: Regenerate.
2255 * config.h.in: Likewise.
2256 * configure: Likewise.
2257
2258 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
2259
2260 * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
2261 for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
2262 * Makefile.in: Regenerate.
2263 * config.h.in: Likewise.
2264 * configure: Likewise.
2265 * testsuite/Makefile.in: Likewise.
2266
2267 2022-05-12 Jakub Jelinek <jakub@redhat.com>
2268
2269 * libgomp.h (struct gomp_task): Add depend_all_memory member.
2270 * task.c (gomp_init_task): Initialize depend_all_memory.
2271 (gomp_task_handle_depend): Handle omp_all_memory.
2272 (gomp_task_run_post_handle_depend_hash): Clear
2273 parent->depend_all_memory if equal to current task.
2274 (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
2275 * testsuite/libgomp.c-c++-common/depend-1.c: New test.
2276 * testsuite/libgomp.c-c++-common/depend-2.c: New test.
2277 * testsuite/libgomp.c-c++-common/depend-3.c: New test.
2278
2279 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
2280
2281 * plugin/configfrag.ac: Remove '--with-hsa-runtime',
2282 '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
2283 * Makefile.in: Regenerate.
2284 * configure: Likewise.
2285 * testsuite/Makefile.in: Likewise.
2286
2287 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
2288
2289 * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
2290 consider 'PLUGIN_GCN_CPPFLAGS'.
2291 (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
2292 'PLUGIN_GCN_LDFLAGS'.
2293 * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
2294 Remove.
2295 * Makefile.in: Regenerate.
2296 * configure: Likewise.
2297 * testsuite/Makefile.in: Likewise.
2298
2299 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
2300
2301 * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
2302 (HSA_RUNTIME_LDFLAGS): Remove.
2303 * configure: Regenerate.
2304
2305 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
2306
2307 * testsuite/lib/libgomp.exp (libgomp_init): Don't
2308 'append always_ld_library_path ":$hsa_runtime_lib"'.
2309 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
2310
2311 2022-05-10 Thomas Schwinge <thomas@codesourcery.com>
2312
2313 * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
2314 multi-device testing.
2315
2316 2022-05-06 Marcel Vollweiler <marcel@codesourcery.com>
2317
2318 * libgomp.map: Added omp_target_is_accessible.
2319 * libgomp.texi: Tagged omp_target_is_accessible as supported.
2320 * omp.h.in: Added omp_target_is_accessible.
2321 * omp_lib.f90.in: Added interface for omp_target_is_accessible.
2322 * omp_lib.h.in: Likewise.
2323 * target.c (omp_target_is_accessible): Added implementation of
2324 omp_target_is_accessible.
2325 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
2326 * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
2327
2328 2022-05-05 Sandra Loosemore <sandra@codesourcery.com>
2329
2330 * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
2331
2332 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
2333
2334 * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
2335
2336 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
2337
2338 * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
2339
2340 2022-05-03 Marcel Vollweiler <marcel@codesourcery.com>
2341
2342 * libgomp.map: Added omp_get_mapped_ptr.
2343 * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
2344 * omp.h.in: Added omp_get_mapped_ptr.
2345 * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
2346 * omp_lib.h.in: Likewise.
2347 * target.c (omp_get_mapped_ptr): Added implementation of
2348 omp_get_mapped_ptr.
2349 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
2350 * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
2351 * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
2352 * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
2353 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
2354 * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
2355 * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
2356 * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
2357
2358 2022-04-28 Thomas Schwinge <thomas@codesourcery.com>
2359
2360 PR fortran/104717
2361 * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
2362 privatization scanning. For GCN offloading compilation, raise
2363 '-mgang-private-size'.
2364
2365 2022-04-26 Jakub Jelinek <jakub@redhat.com>
2366
2367 PR libgomp/105358
2368 * work.c (gomp_init_work_share): Don't mask of adjustment for
2369 dynamic long long realignment if struct gomp_work_share has smaller
2370 alignof than long long.
2371 * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
2372 struct gomp_work_share has smaller alignof than long long or if
2373 sizeof (struct gomp_work_share) is smaller than
2374 INLINE_ORDERED_TEAM_IDS_OFF.
2375 * loop_ull.c (GOMP_loop_ull_start): Likewise.
2376 * sections.c (GOMP_sections2_start): Likewise.
2377
2378 2022-04-25 Jakub Jelinek <jakub@redhat.com>
2379 Thomas Schwinge <thomas@codesourcery.com>
2380
2381 PR fortran/104717
2382 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
2383
2384 2022-04-13 Jakub Jelinek <jakub@redhat.com>
2385
2386 * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
2387
2388 2022-04-06 Thomas Schwinge <thomas@codesourcery.com>
2389
2390 * plugin/cuda/cuda.h: Remove file.
2391 * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
2392 "cuda/cuda.h" instead of <cuda.h>.
2393 * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
2394 'PLUGIN_NVPTX_CPPFLAGS'.
2395 * configure: Regenerate.
2396
2397 2022-04-05 Chung-Lin Tang <cltang@codesourcery.com>
2398
2399 * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
2400
2401 2022-04-04 Tom de Vries <tdevries@suse.de>
2402
2403 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
2404 on_device_arch_nvptx instead of offload_target_nvptx.
2405 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
2406
2407 2022-04-01 Tom de Vries <tdevries@suse.de>
2408
2409 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
2410 and use REC_DEPTH.
2411 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
2412
2413 2022-04-01 Tom de Vries <tdevries@suse.de>
2414
2415 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
2416 num_workers check.
2417
2418 2022-03-29 Chenghua Xu <xuchenghua@loongson.cn>
2419 Lulu Cheng <chenglulu@loongson.cn>
2420
2421 * configure.tgt: Add LoongArch triplet.
2422
2423 2022-03-28 Tom de Vries <tdevries@suse.de>
2424
2425 * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
2426 instead of /libexec/.
2427 * configure: Regenerate.
2428
2429 2022-03-25 Tom de Vries <tdevries@suse.de>
2430
2431 PR libgomp/105042
2432 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
2433 execution time.
2434 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
2435 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
2436
2437 2022-03-23 Tobias Burnus <tobias@codesourcery.com>
2438
2439 PR middle-end/104285
2440 * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
2441 * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
2442 * testsuite/libgomp.c++/target-same-name-2.C: New test.
2443 * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
2444 * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
2445 * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
2446
2447 2022-03-22 Tom de Vries <tdevries@suse.de>
2448
2449 PR target/104916
2450 PR target/104783
2451 * testsuite/libgomp.c/pr104783-2.c: New test.
2452
2453 2022-03-18 Tobias Burnus <tobias@codesourcery.com>
2454
2455 PR fortran/103039
2456 * testsuite/libgomp.fortran/associate4.f90: New test.
2457
2458 2022-03-18 Tom de Vries <tdevries@suse.de>
2459
2460 PR target/104952
2461 * testsuite/libgomp.c/pr104952-1.c: New test.
2462 * testsuite/libgomp.c/pr104952-2.c: New test.
2463
2464 2022-03-18 Jakub Jelinek <jakub@redhat.com>
2465
2466 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
2467 variable next to pl variable.
2468
2469 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
2470
2471 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
2472 Enhance.
2473 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
2474 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2475
2476 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
2477
2478 PR middle-end/90115
2479 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
2480 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2481
2482 2022-03-16 Marcel Vollweiler <marcel@codesourcery.com>
2483
2484 * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
2485 omp_set_max_active_levels.
2486 * testsuite/libgomp.fortran/icv-8.f90: New test.
2487
2488 2022-03-16 Thomas Schwinge <thomas@codesourcery.com>
2489
2490 PR testsuite/102841
2491 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
2492
2493 2022-03-13 Tobias Burnus <tobias@codesourcery.com>
2494
2495 * libgomp.texi: Fix typo.
2496
2497 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
2498
2499 PR middle-end/100280
2500 PR middle-end/104892
2501 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
2502 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
2503 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2504 Likewise.
2505 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
2506 Likewise.
2507 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2508 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
2509 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
2510 Likewise.
2511
2512 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
2513
2514 PR middle-end/104892
2515 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
2516 to PR104892.
2517 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
2518 enable '--param=openacc-kernels=decompose' and adjust.
2519 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
2520 Likewise.
2521 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2522 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
2523 Likewise.
2524
2525 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
2526
2527 PR middle-end/90115
2528 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
2529 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
2530 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2531 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
2532
2533 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
2534
2535 PR middle-end/100280
2536 PR middle-end/104086
2537 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
2538 Merge this...
2539 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
2540 ..., and this...
2541 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
2542 this, and adjust.
2543 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2544 Extend.
2545
2546 2022-03-10 Hafiz Abid Qadeer <abidh@codesourcery.com>
2547
2548 * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
2549 trait. Test last index in w and v array. Remove redundant
2550 assignment to V(1). Move alignment checks at the end of
2551 parallel region.
2552
2553 2022-03-10 Tom de Vries <tdevries@suse.de>
2554
2555 * testsuite/libgomp.c/pr104783.c: New test.
2556
2557 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
2558
2559 PR middle-end/90115
2560 PR middle-end/102330
2561 PR middle-end/104774
2562 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2563 Enhance.
2564 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
2565 Adjust.
2566 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
2567 Likewise.
2568 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
2569 Likewise.
2570 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
2571 Likewise.
2572 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
2573 Likewise.
2574 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
2575 Likewise.
2576 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
2577 Likewise.
2578 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
2579 Likewise.
2580 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
2581 Likewise.
2582 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
2583 Likewise.
2584 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
2585 Likewise.
2586 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
2587 Likewise.
2588 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
2589 Likewise.
2590 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
2591 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
2592 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2593
2594 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
2595
2596 PR middle-end/90115
2597 * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
2598 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
2599 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
2600 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
2601
2602 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
2603
2604 PR testsuite/104791
2605 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
2606 expected diagnostics.
2607
2608 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
2609
2610 PR middle-end/104784
2611 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
2612 Test with '--param=openacc-kernels=decompose'.
2613 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
2614 Likewise.
2615 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
2616 Likewise.
2617 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
2618 Likewise.
2619 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
2620 Likewise.
2621 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
2622 Likewise.
2623 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
2624 Likewise.
2625 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
2626 Likewise.
2627 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
2628 Likewise.
2629 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
2630 Likewise.
2631 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
2632 Likewise.
2633 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
2634 Likewise.
2635 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
2636 Likewise.
2637 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
2638 Likewise.
2639 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
2640 Likewise.
2641 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
2642 Likewise.
2643 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
2644 Likewise.
2645 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
2646 Likewise.
2647 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
2648 Likewise.
2649 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
2650 Likewise.
2651 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
2652 Likewise.
2653 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
2654 Likewise.
2655 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
2656 Likewise.
2657 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
2658 Likewise.
2659 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
2660 Likewise.
2661 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
2662 Likewise.
2663 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
2664 Likewise.
2665 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
2666 Likewise.
2667 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
2668 Likewise.
2669 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
2670 Likewise.
2671 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
2672 Likewise.
2673 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
2674 Likewise.
2675 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
2676 Likewise.
2677
2678 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
2679
2680 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
2681 Test '-fopt-info-omp-all'.
2682 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
2683 Likewise.
2684 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
2685 Likewise.
2686 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
2687 Likewise.
2688 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
2689 Likewise.
2690 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
2691 Likewise.
2692 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
2693 Likewise.
2694 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
2695 Likewise.
2696 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
2697 Likewise.
2698 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
2699 Likewise.
2700 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
2701 Likewise.
2702 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
2703 Likewise.
2704 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
2705 Likewise.
2706 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
2707 Likewise.
2708 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
2709 Likewise.
2710 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
2711 Likewise.
2712 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
2713 Likewise.
2714 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
2715 Likewise.
2716 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
2717 Likewise.
2718 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
2719 Likewise.
2720 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
2721 Likewise.
2722 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
2723 Likewise.
2724 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
2725 Likewise.
2726 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
2727 Likewise.
2728 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
2729 Likewise.
2730 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
2731 Likewise.
2732 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
2733 Likewise.
2734 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
2735 Likewise.
2736 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
2737 Likewise.
2738 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
2739 Likewise.
2740 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
2741 Likewise.
2742 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
2743 Likewise.
2744 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
2745 Likewise.
2746
2747 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
2748
2749 PR middle-end/100280
2750 PR middle-end/104132
2751 PR middle-end/104133
2752 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2753 Extend.
2754
2755 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
2756
2757 PR middle-end/100280
2758 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
2759 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2760 Likewise.
2761
2762 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
2763
2764 PR middle-end/100280
2765 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
2766 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2767 Likewise.
2768
2769 2022-02-28 Tom de Vries <tdevries@suse.de>
2770
2771 * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
2772 * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
2773 * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
2774 * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
2775 * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
2776 * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
2777
2778 2022-02-24 Tom de Vries <tdevries@suse.de>
2779
2780 * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
2781 * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
2782 * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
2783 * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
2784 * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
2785 * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
2786 * testsuite/libgomp.c/declare-variant-3.h: New header file.
2787
2788 2022-02-22 Thomas Schwinge <thomas@codesourcery.com>
2789
2790 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
2791 gang-redundant execution.
2792
2793 2022-02-22 Tom de Vries <tdevries@suse.de>
2794
2795 PR target/99555
2796 * config/nvptx/bar.c (generation_to_barrier): New function, copied
2797 from config/rtems/bar.c.
2798 (futex_wait, futex_wake): New function.
2799 (do_spin, do_wait): New function, copied from config/linux/wait.h.
2800 (gomp_barrier_wait_end, gomp_barrier_wait_last)
2801 (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
2802 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
2803 and replace with include of config/linux/bar.c.
2804 * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
2805 (gomp_barrier_init): Init new fields.
2806 * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
2807 workarounds.
2808 * testsuite/libgomp.c/pr99555-1.c: Same.
2809 * testsuite/libgomp.fortran/task-detach-6.f90: Same.
2810
2811 2022-02-22 Tom de Vries <tdevries@suse.de>
2812
2813 PR testsuite/104146
2814 * testsuite/libgomp.c++/pr96390.C: Add additional-option
2815 -foffload=-Wa,--verify for nvptx.
2816 * testsuite/libgomp.c-c++-common/pr96390.c: Same.
2817
2818 2022-02-15 Tobias Burnus <tobias@codesourcery.com>
2819
2820 * testsuite/libgomp.fortran/depend-4.f90: New test.
2821
2822 2022-02-10 Tobias Burnus <tobias@codesourcery.com>
2823
2824 PR c++/102204
2825 * testsuite/libgomp.c++/target-virtual-1.C: New test.
2826
2827 2022-02-10 Marcel Vollweiler <marcel@codesourcery.com>
2828
2829 * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
2830 * target.c (copy_firstprivate_data): Copy only if host address is not
2831 NULL.
2832 * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
2833 * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
2834 * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
2835 * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
2836 * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
2837 * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
2838 * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
2839 * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
2840 * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
2841 * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
2842
2843 2022-02-08 Jakub Jelinek <jakub@redhat.com>
2844
2845 PR libgomp/104385
2846 * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
2847 clear task->parent.
2848 * testsuite/libgomp.c/pr104385.c: New test.
2849
2850 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
2851
2852 * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
2853 STOP of previous commit.
2854
2855 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
2856
2857 * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
2858 from is_64bit_aligned_.
2859 * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
2860 and use it, more implicit none, remove unused argument.
2861
2862 2022-02-03 David Seifert <soap@gentoo.org>
2863 Jakub Jelinek <jakub@redhat.com>
2864
2865 * configure.ac: Support --disable-werror.
2866 * configure: Regenerate.
2867
2868 2022-02-01 Tom de Vries <tdevries@suse.de>
2869
2870 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
2871 PR83812 workaround.
2872 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
2873 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
2874
2875 2022-02-01 Tom de Vries <tdevries@suse.de>
2876
2877 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
2878 num_workers for nvidia accelerator to fix libgomp error 'insufficient
2879 resources'.
2880 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
2881 Same.
2882 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
2883
2884 2022-02-01 Tom de Vries <tdevries@suse.de>
2885
2886 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
2887 recursion depth.
2888 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
2889
2890 2022-01-31 Martin Liska <mliska@suse.cz>
2891
2892 * acinclude.m4: Detect *_ld_is_mold and use it.
2893 * configure: Regenerate.
2894
2895 2022-01-27 Tobias Burnus <tobias@codesourcery.com>
2896
2897 * libgomp.texi (OpenMP 5.0): Update implementation status.
2898
2899 2022-01-21 Thomas Schwinge <thomas@codesourcery.com>
2900
2901 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
2902 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
2903 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
2904 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
2905 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
2906 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
2907 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
2908 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
2909 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
2910 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
2911 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
2912 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
2913 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
2914 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
2915 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
2916
2917 2022-01-19 Marcel Vollweiler <marcel@codesourcery.com>
2918
2919 * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
2920 "static") to make the device num available in the offload image.
2921
2922 2022-01-19 Martin Liska <mliska@suse.cz>
2923 Thomas Schwinge <thomas@codesourcery.com>
2924
2925 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
2926 patterns.
2927 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
2928 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
2929 Likewise.
2930 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
2931 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2932 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
2933 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
2934 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
2935 Likewise.
2936 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
2937 Likewise.
2938 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
2939 Likewise.
2940 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
2941 Likewise.
2942 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
2943 Likewise.
2944 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
2945 Likewise.
2946 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
2947 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
2948 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
2949
2950 2022-01-18 Martin Liska <mliska@suse.cz>
2951
2952 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
2953 in dg-warning.
2954 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
2955 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
2956 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
2957 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2958 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
2959 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
2960 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
2961 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
2962 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
2963 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
2964 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
2965 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
2966 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
2967 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
2968 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
2969
2970 2022-01-17 Thomas Schwinge <thomas@codesourcery.com>
2971
2972 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
2973 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
2974 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
2975
2976 2022-01-17 Julian Brown <julian@codesourcery.com>
2977 Thomas Schwinge <thomas@codesourcery.com>
2978
2979 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
2980 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
2981 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
2982
2983 2022-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
2984 Andrew Stubbs <ams@codesourcery.com>
2985
2986 * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
2987 the number of teams and threads if necessary.
2988 (gcn_exec): Automatically set the number of gangs and workers if
2989 necessary.
2990
2991 2022-01-13 Hafiz Abid Qadeer <abidh@codesourcery.com>
2992
2993 * testsuite/libgomp.fortran/allocate-1.c: New test.
2994 * testsuite/libgomp.fortran/allocate-1.f90: New test.
2995 * libgomp.texi: Remove string that says that allocate clause
2996 support is for C/C++ only.
2997
2998 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
2999
3000 * testsuite/libgomp.c-c++-common/on_device_arch.h
3001 (any_device_arch, any_device_arch_intel_mic): New.
3002 * testsuite/lib/libgomp.exp
3003 (check_effective_target_offload_device_any_intel_mic): New.
3004 * testsuite/libgomp.c-c++-common/target-45.c: Use it.
3005 * testsuite/libgomp.fortran/target10.f90: Likewise.
3006
3007 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3008
3009 PR tree-optimization/102192
3010 * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
3011 '-Wuninitialized' diagnostics.
3012
3013 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3014
3015 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
3016 current '-Wuninitialized' diagnostics.
3017 * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
3018 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
3019 * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
3020 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
3021 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3022 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
3023 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
3024 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3025 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3026 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
3027 * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
3028 Likewise.
3029
3030 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3031
3032 * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
3033 for 'offload_device_intel_mic'.
3034
3035 2022-01-13 Julian Brown <julian@codesourcery.com>
3036 Thomas Schwinge <thomas@codesourcery.com>
3037
3038 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
3039 offloading execution XFAIL.
3040
3041 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3042
3043 PR middle-end/100280
3044 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3045 Update.
3046 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
3047 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3048 Likewise.
3049
3050 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3051
3052 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3053 Enhance.
3054 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3055 Likewise.
3056 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
3057 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
3058 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
3059 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
3060 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3061 Likewise.
3062 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3063 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
3064 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
3065 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
3066
3067 2022-01-04 Tobias Burnus <tobias@codesourcery.com>
3068
3069 * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
3070 * testsuite/libgomp.fortran/target10.f90: Likewise.
3071
3072 2022-01-04 Chung-Lin Tang <cltang@codesourcery.com>
3073
3074 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
3075 into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
3076 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
3077
3078 2022-01-03 Jakub Jelinek <jakub@redhat.com>
3079
3080 * libgomp.texi: Bump @copying's copyright year.
3081
3082 2021-12-13 Tobias Burnus <tobias@codesourcery.com>
3083
3084 * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
3085 * testsuite/libgomp.fortran/atomic-19.f90: New test.
3086
3087 2021-12-10 Andrew Stubbs <ams@codesourcery.com>
3088
3089 * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
3090 (GOMP_OFFLOAD_load_image): Locate the offload variables via the
3091 table, not individual symbols.
3092
3093 2021-12-09 Chung-Lin Tang <cltang@codesourcery.com>
3094
3095 * testsuite/libgomp.c++/target-lambda-1.C: Only run under
3096 "target offload_device_nonshared_as"
3097 * testsuite/libgomp.c++/target-this-3.C: Likewise.
3098 * testsuite/libgomp.c++/target-this-4.C: Likewise.
3099
3100 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
3101
3102 * target.c (gomp_map_vars_existing): Make sure attached pointer is
3103 not overwritten during cross-host/device copying.
3104 (gomp_update): Likewise.
3105 (gomp_exit_data): Likewise.
3106 * testsuite/libgomp.c++/target-11.C: Adjust testcase.
3107 * testsuite/libgomp.c++/target-12.C: Likewise.
3108 * testsuite/libgomp.c++/target-15.C: Likewise.
3109 * testsuite/libgomp.c++/target-16.C: Likewise.
3110 * testsuite/libgomp.c++/target-17.C: Likewise.
3111 * testsuite/libgomp.c++/target-21.C: Likewise.
3112 * testsuite/libgomp.c++/target-23.C: Likewise.
3113 * testsuite/libgomp.c/target-23.c: Likewise.
3114 * testsuite/libgomp.c/target-29.c: Likewise.
3115 * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
3116
3117 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
3118
3119 PR middle-end/92120
3120 * libgomp.h (gomp_attach_pointer): Add bool parameter.
3121 * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
3122 (goacc_enter_data_internal): Likewise.
3123 * target.c (gomp_map_vars_existing): Update assert condition to
3124 include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
3125 (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
3126 parameter, add support for mapping a pointer with NULL target.
3127 (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
3128 parameter, add support for attaching a pointer with NULL target.
3129 (gomp_map_vars_internal): Update calls to gomp_map_pointer and
3130 gomp_attach_pointer, add handling for
3131 GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
3132 GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
3133 * testsuite/libgomp.c++/target-23.C: New testcase.
3134 * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
3135 * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
3136 * testsuite/libgomp.c++/target-this-1.C: New testcase.
3137 * testsuite/libgomp.c++/target-this-2.C: New testcase.
3138 * testsuite/libgomp.c++/target-this-3.C: New testcase.
3139 * testsuite/libgomp.c++/target-this-4.C: New testcase.
3140 * testsuite/libgomp.c++/target-this-5.C: New testcase.
3141
3142 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
3143
3144 * libgomp.texi (OpenMP 5.1): Update status.
3145
3146 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
3147
3148 * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
3149
3150 2021-12-02 Chung-Lin Tang <cltang@codesourcery.com>
3151
3152 PR fortran/90030
3153 * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
3154 * testsuite/libgomp.fortran/pr90030.f90: New test.
3155
3156 2021-11-30 Kwok Cheung Yeung <kcy@codesourcery.com>
3157 Thomas Schwinge <thomas@codesourcery.com>
3158
3159 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
3160 temporary skip.
3161
3162 2021-11-30 Cesar Philippidis <cesar@codesourcery.com>
3163 Thomas Schwinge <thomas@codesourcery.com>
3164
3165 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
3166 skip.
3167
3168 2021-11-29 Richard Biener <rguenther@suse.de>
3169
3170 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
3171 return.
3172
3173 2021-11-24 Jakub Jelinek <jakub@redhat.com>
3174
3175 PR middle-end/103384
3176 * testsuite/libgomp.c/declare-variant-2.c: New test.
3177
3178 2021-11-18 David Edelsohn <dje.gcc@gmail.com>
3179
3180 * alloc.c (gomp_aligned_alloc): Fix typo.
3181
3182 2021-11-18 Jakub Jelinek <jakub@redhat.com>
3183
3184 PR libgomp/102838
3185 * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
3186 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
3187 (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
3188 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
3189 * work.c (alloc_work_share, gomp_work_share_start): Likewise.
3190 * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
3191 gomp_aligned_alloc instead of team_malloc.
3192
3193 2021-11-18 Jakub Jelinek <jakub@redhat.com>
3194
3195 PR libgomp/102838
3196 * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
3197 memalign over posix_memalign over aligned_alloc over fallback
3198 with malloc instead of aligned_alloc over _aligned_alloc over
3199 posix_memalign over memalign over fallback with malloc. For
3200 aligned_alloc, round up size up to multiple of al.
3201
3202 2021-11-16 Jakub Jelinek <jakub@redhat.com>
3203
3204 * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
3205 construct as implemented.
3206
3207 2021-11-15 Tobias Burnus <tobias@codesourcery.com>
3208
3209 * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
3210
3211 2021-11-15 Jakub Jelinek <jakub@redhat.com>
3212
3213 * task.c (gomp_create_target_task): Copy args array as well.
3214 * target.c (gomp_target_fallback): Add args argument.
3215 Set gomp_icv (true)->thread_limit_var if thread_limit is present.
3216 (GOMP_target): Adjust gomp_target_fallback caller.
3217 (GOMP_target_ext): Likewise.
3218 (gomp_target_task_fn): Likewise.
3219 * config/nvptx/team.c (gomp_nvptx_main): Set
3220 gomp_global_icv.thread_limit_var.
3221 * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
3222
3223 2021-11-15 Jakub Jelinek <jakub@redhat.com>
3224
3225 * config/nvptx/team.c (__gomp_team_num): Define as
3226 __attribute__((shared)) var.
3227 (gomp_nvptx_main): Initialize __gomp_team_num to 0.
3228 * config/nvptx/target.c (__gomp_team_num): Declare as
3229 extern __attribute__((shared)) var.
3230 (GOMP_teams4): Use __gomp_team_num as the team number instead of
3231 %ctaid.x. If first, initialize it to %ctaid.x. If num_teams_lower
3232 is bigger than num_blocks, use num_teams_lower teams and arrange for
3233 bumping of __gomp_team_num if !first and returning false once we run
3234 out of teams.
3235 * config/nvptx/teams.c (__gomp_team_num): Declare as
3236 extern __attribute__((shared)) var.
3237 (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
3238
3239 2021-11-15 Jakub Jelinek <jakub@redhat.com>
3240
3241 * testsuite/libgomp.c/teams-5.c: New test.
3242
3243 2021-11-12 Jakub Jelinek <jakub@redhat.com>
3244
3245 PR target/103201
3246 * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
3247 to ...
3248 * config/gcn/teams.c: ... here. New file.
3249
3250 2021-11-12 Chung-Lin Tang <cltang@codesourcery.com>
3251
3252 * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
3253 implicit map handling to allow a "superset" existing map as valid case.
3254 (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
3255 (get_implicit): New function to extract implicit status.
3256 (gomp_map_fields_existing): Adjust arguments in calls to
3257 gomp_map_vars_existing, and add uses of get_implicit.
3258 (gomp_map_vars_internal): Likewise.
3259 * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
3260
3261 2021-11-12 Jakub Jelinek <jakub@redhat.com>
3262
3263 * libgomp_g.h (GOMP_teams4): Declare.
3264 * libgomp.map (GOMP_5.1): Export GOMP_teams4.
3265 * target.c (GOMP_teams4): New function.
3266 * config/nvptx/target.c (GOMP_teams): Remove.
3267 (GOMP_teams4): New function.
3268 * config/gcn/target.c (GOMP_teams): Remove.
3269 (GOMP_teams4): New function.
3270 * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
3271 teams instead of <= 2.
3272 * testsuite/libgomp.c-c++-common/teams-2.c: New test.
3273
3274 2021-11-11 Tobias Burnus <tobias@codesourcery.com>
3275
3276 * testsuite/libgomp.fortran/teams-1.f90: New test.
3277
3278 2021-11-11 Jakub Jelinek <jakub@redhat.com>
3279
3280 * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
3281 * team.c (struct gomp_thread_start_data): Likewise.
3282 (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
3283 (gomp_team_start): Initialize start_data->num_teams and
3284 start_data->team_num. Update nthr->num_teams and nthr->team_num.
3285 * teams.c (gomp_num_teams, gomp_team_num): Remove.
3286 (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
3287 instead of gomp_num_teams and gomp_team_num.
3288 (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
3289 (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
3290 * testsuite/libgomp.c/teams-4.c: New test.
3291
3292 2021-11-11 Jakub Jelinek <jakub@redhat.com>
3293
3294 * testsuite/libgomp.c-c++-common/teams-1.c: New test.
3295
3296 2021-11-09 Thomas Schwinge <thomas@codesourcery.com>
3297
3298 * env.c (parse_gomp_openacc_dim): Restore parsing.
3299
3300 2021-10-30 Tobias Burnus <tobias@codesourcery.com>
3301
3302 PR middle-end/102972
3303 * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
3304 parallel construct.
3305 * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
3306 * testsuite/libgomp.c/target-3.c: Likewise.
3307 * testsuite/libgomp.c/target-5.c: Likewise.
3308 * testsuite/libgomp.c/target-6.c: Likewise.
3309 * testsuite/libgomp.c/target-teams-1.c: Likewise.
3310 * testsuite/libgomp.c/teams-1.c: Likewise.
3311 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
3312 * testsuite/libgomp.c/thread-limit-3.c: Likewise.
3313 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
3314 * testsuite/libgomp.c/thread-limit-5.c: Likewise.
3315 * testsuite/libgomp.fortran/icv-3.f90: Likewise.
3316 * testsuite/libgomp.fortran/icv-4.f90: Likewise.
3317 * testsuite/libgomp.fortran/teams1.f90: Likewise.
3318
3319 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
3320
3321 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
3322 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
3323
3324 2021-10-27 Jakub Jelinek <jakub@redhat.com>
3325
3326 * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
3327 aren't implemented for Fortran yet.
3328
3329 2021-10-27 Jakub Jelinek <jakub@redhat.com>
3330
3331 * testsuite/libgomp.c/loop-26.c: New test.
3332 * testsuite/libgomp.c/loop-27.c: New test.
3333
3334 2021-10-25 Tobias Burnus <tobias@codesourcery.com>
3335
3336 PR testsuite/102910
3337 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
3338 instead of #include <alloca.h> + alloca.
3339
3340 2021-10-21 Chung-Lin Tang <cltang@codesourcery.com>
3341
3342 * libgomp.texi (Support of strictly structured blocks in Fortran):
3343 Adjust to 'Y'.
3344 * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
3345
3346 2021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
3347
3348 * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
3349 * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
3350
3351 2021-10-20 Jakub Jelinek <jakub@redhat.com>
3352
3353 PR libgomp/102838
3354 * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
3355 (struct gomp_work_share): Only use aligned(64) attribute if
3356 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
3357 add padding before lock to ensure lock is at offset 64 bytes
3358 into the structure.
3359 (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
3360 New poor man's static assertions.
3361 * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
3362 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
3363
3364 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
3365 Richard Biener <rguenther@suse.de>
3366
3367 * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
3368
3369 2021-10-18 Jakub Jelinek <jakub@redhat.com>
3370
3371 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
3372 && gomp_places_list_len < count after nfirst <= nlast loop condition.
3373
3374 2021-10-18 Tobias Burnus <tobias@codesourcery.com>
3375
3376 PR fortran/102086
3377 PR fortran/92189
3378 PR fortran/92621
3379 PR fortran/101308
3380 PR fortran/101309
3381 PR fortran/101635
3382 PR fortran/92482
3383 * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
3384
3385 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3386
3387 * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
3388 type from char [50] to const char *.
3389 (places_array): Add a testcase for simplified syntax place followed
3390 by length or length and stride.
3391
3392 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3393
3394 * env.c (parse_one_place): Handle non-negative-number the same
3395 as { non-negative-number }. Reject even !number:1 and
3396 !number:1:stride or !place:1 or !place:1:stride instead of just
3397 length other than 1.
3398 * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
3399 and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
3400 omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
3401 as implemented.
3402 * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
3403 simplified syntax.
3404
3405 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3406
3407 * env.c (parse_schedule): For strtoul or strtoull calls which don't
3408 clearly reject return value 0 as invalid handle the case where end
3409 pointer is the same as first argument as invalid.
3410 (parse_unsigned_long_1): Likewise.
3411 (parse_one_place): Likewise.
3412 (parse_places_var): Likewise.
3413 (parse_stacksize): Likewise.
3414 (parse_spincount): Likewise.
3415 (parse_affinity): Likewise.
3416 (parse_gomp_openacc_dim): Likewise. Avoid strict aliasing violation.
3417 Make code valid C89.
3418 * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
3419 For strtoul calls which don't clearly reject return value 0 as
3420 invalid handle the case where end pointer is the same as first
3421 argument as invalid.
3422 (gomp_affinity_init_level_1): Likewise.
3423 (gomp_affinity_init_numa_domains): Likewise.
3424 * config/rtems/proc.c (parse_thread_pools): Likewise.
3425
3426 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3427
3428 * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
3429 after creating count places clean up and return immediately.
3430 * testsuite/libgomp.c/places-6.c: New test.
3431 * testsuite/libgomp.c/places-7.c: New test.
3432 * testsuite/libgomp.c/places-8.c: New test.
3433 * testsuite/libgomp.c/places-9.c: New test.
3434 * testsuite/libgomp.c/places-10.c: New test.
3435
3436 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3437
3438 * env.c (parse_places_var): Handle numa_domains as level 5.
3439 * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
3440 function.
3441 (gomp_affinity_init_level): Use it instead of
3442 gomp_affinity_init_level_1 for level == 5.
3443 * testsuite/libgomp.c/places-5.c: New test.
3444
3445 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3446
3447 * env.c (parse_places_var): Handle ll_caches as level 4.
3448 * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
3449 function.
3450 (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
3451 last level cache.
3452 (gomp_affinity_init_level): Likewise.
3453 * testsuite/libgomp.c/places-1.c: New test.
3454 * testsuite/libgomp.c/places-2.c: New test.
3455 * testsuite/libgomp.c/places-3.c: New test.
3456 * testsuite/libgomp.c/places-4.c: New test.
3457
3458 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
3459
3460 * libgomp.texi (OpenMP 5.0): Update entry for declare variant
3461 directive.
3462
3463 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
3464
3465 * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
3466
3467 2021-10-12 Julian Brown <julian@codesourcery.com>
3468
3469 * target.c (gomp_copy_host2dev): Release device lock on cbuf
3470 error path.
3471
3472 2021-10-12 Tobias Burnus <tobias@codesourcery.com>
3473
3474 * testsuite/libgomp.fortran/icv-3.f90: New.
3475 * testsuite/libgomp.fortran/icv-4.f90: New.
3476
3477 2021-10-12 Jakub Jelinek <jakub@redhat.com>
3478
3479 * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
3480 omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
3481 OMP_TEAMS_THREAD_LIMIT): Document.
3482
3483 2021-10-12 Jakub Jelinek <jakub@redhat.com>
3484
3485 * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
3486 to avoid makeinfo warnings.
3487
3488 2021-10-12 Jakub Jelinek <jakub@redhat.com>
3489
3490 * testsuite/libgomp.c-c++-common/icv-3.c: New test.
3491 * testsuite/libgomp.c-c++-common/icv-4.c: New test.
3492
3493 2021-10-12 Jakub Jelinek <jakub@redhat.com>
3494
3495 PR libgomp/102628
3496 PR libgomp/102668
3497 * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
3498 allocation sizes from 420 to 320 and from 768 to 568.
3499 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
3500 * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
3501 for cr from 16 to 4.
3502
3503 2021-10-12 Jakub Jelinek <jakub@redhat.com>
3504
3505 * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
3506 * testsuite/libgomp.c/scan-12.c: Likewise.
3507 * testsuite/libgomp.c/scan-13.c: Likewise.
3508 * testsuite/libgomp.c/scan-14.c: Likewise.
3509 * testsuite/libgomp.c/scan-15.c: Likewise.
3510 * testsuite/libgomp.c/scan-16.c: Likewise.
3511 * testsuite/libgomp.c/scan-17.c: Likewise.
3512 * testsuite/libgomp.c/scan-18.c: Likewise.
3513 * testsuite/libgomp.c/scan-19.c: Likewise.
3514 * testsuite/libgomp.c/scan-20.c: Likewise.
3515 * testsuite/libgomp.c/scan-21.c: Likewise.
3516 * testsuite/libgomp.c/scan-22.c: Likewise.
3517 * testsuite/libgomp.c++/scan-9.C: Likewise.
3518 * testsuite/libgomp.c++/scan-10.C: Likewise.
3519 * testsuite/libgomp.c++/scan-11.C: Likewise.
3520 * testsuite/libgomp.c++/scan-12.C: Likewise.
3521 * testsuite/libgomp.c++/scan-13.C: Likewise.
3522 * testsuite/libgomp.c++/scan-14.C: Likewise.
3523 * testsuite/libgomp.c++/scan-15.C: Likewise.
3524 * testsuite/libgomp.c++/scan-16.C: Likewise.
3525
3526 2021-10-12 Kewen Lin <linkw@linux.ibm.com>
3527
3528 * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
3529
3530 2021-10-11 Marcel Vollweiler <marcel@codesourcery.com>
3531
3532 * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
3533 omp_atv_serialized.
3534 * omp.h.in: Add deprecated flag for omp_atv_sequential.
3535 * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
3536 * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
3537 * testsuite/libgomp.fortran/alloc-12.f90: New test.
3538
3539 2021-10-11 Jakub Jelinek <jakub@redhat.com>
3540
3541 * omp.h.in (omp_set_num_teams, omp_get_max_teams,
3542 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
3543 * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
3544 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
3545 * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
3546 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
3547 * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
3548 * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
3549 omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
3550 omp_set_teams_thread_limit{,_,_8_}.
3551 * icv.c (omp_set_num_teams, omp_get_max_teams,
3552 omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
3553 functions.
3554 * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
3555 (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
3556 (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
3557 vars.
3558 * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
3559 gomp_teams_thread_limit_var as fallback if not zero. If num_teams
3560 is not specified, use gomp_nteams_var.
3561 * fortran.c (omp_set_num_teams, omp_get_max_teams,
3562 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
3563 ialias_redirect.
3564 (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
3565 omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
3566 omp_get_teams_thread_limit_): New functions.
3567
3568 2021-10-09 liuhongt <hongtao.liu@intel.com>
3569
3570 * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
3571 * testsuite/libgomp.c++/scan-11.C: Ditto.
3572 * testsuite/libgomp.c++/scan-12.C: Ditto.
3573 * testsuite/libgomp.c++/scan-13.C: Ditto.
3574 * testsuite/libgomp.c++/scan-14.C: Ditto.
3575 * testsuite/libgomp.c++/scan-15.C: Ditto.
3576 * testsuite/libgomp.c++/scan-16.C: Ditto.
3577 * testsuite/libgomp.c++/scan-9.C: Ditto.
3578 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
3579 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
3580 * testsuite/libgomp.c/scan-11.c: Ditto.
3581 * testsuite/libgomp.c/scan-12.c: Ditto.
3582 * testsuite/libgomp.c/scan-13.c: Ditto.
3583 * testsuite/libgomp.c/scan-14.c: Ditto.
3584 * testsuite/libgomp.c/scan-15.c: Ditto.
3585 * testsuite/libgomp.c/scan-16.c: Ditto.
3586 * testsuite/libgomp.c/scan-17.c: Ditto.
3587 * testsuite/libgomp.c/scan-18.c: Ditto.
3588 * testsuite/libgomp.c/scan-19.c: Ditto.
3589 * testsuite/libgomp.c/scan-20.c: Ditto.
3590 * testsuite/libgomp.c/scan-21.c: Ditto.
3591 * testsuite/libgomp.c/scan-22.c: Ditto.
3592
3593 2021-10-09 Jakub Jelinek <jakub@redhat.com>
3594
3595 * libgomp.texi (OpenMP 5.1): Mention implemented support for
3596 structured block sequences in C/C++. Mention support for
3597 unconstrained/reproducible modifiers on order clause.
3598 Mention partial (C/C++ only) support of extentensions to atomics
3599 construct. Mention partial (C/C++ on clause only) support of
3600 align/allocator modifiers on allocate clause.
3601
3602 2021-10-02 Tobias Burnus <tobias@codesourcery.com>
3603
3604 * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
3605 based on libgomp.c-c++-common/order-reproducible-1.c.
3606 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
3607 * testsuite/libgomp.fortran/my-usleep.c: New test.
3608
3609 2021-10-01 Tobias Burnus <tobias@codesourcery.com>
3610
3611 * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
3612 * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
3613 * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
3614 * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
3615 based on libgomp.c-c++-common/alloc-9.c.
3616
3617 2021-10-01 Jakub Jelinek <jakub@redhat.com>
3618
3619 * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
3620 * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
3621
3622 2021-10-01 Jakub Jelinek <jakub@redhat.com>
3623
3624 * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
3625 ialias_redirect.
3626 * env.c (handle_omp_display_env): Use ialias_call.
3627 * icv-device.c: Move ialias right below each function.
3628 (omp_get_device_num): Use ialias_call.
3629 * fortran.c (omp_fulfill_event): Add ialias_redirect.
3630 * icv.c (omp_get_active_level): Add ialias_redirect.
3631
3632 2021-10-01 Jakub Jelinek <jakub@redhat.com>
3633
3634 * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
3635 __alloc_align__ (1) attribute.
3636 * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
3637
3638 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
3639
3640 * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
3641 for -fintrinsic-modules-path= warning of the C compiler.
3642 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
3643 * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
3644
3645 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
3646
3647 * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
3648 omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
3649 * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
3650 omp_realloc): Add.
3651 * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
3652 omp_realloc): Add.
3653 * testsuite/libgomp.fortran/alloc-10.f90: New test.
3654 * testsuite/libgomp.fortran/alloc-6.f90: New test.
3655 * testsuite/libgomp.fortran/alloc-7.c: New test.
3656 * testsuite/libgomp.fortran/alloc-7.f90: New test.
3657 * testsuite/libgomp.fortran/alloc-8.f90: New test.
3658 * testsuite/libgomp.fortran/alloc-9.f90: New test.
3659
3660 2021-09-30 Jakub Jelinek <jakub@redhat.com>
3661
3662 * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
3663 omp_realloc): New prototypes.
3664 (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
3665 attribute.
3666 * allocator.c: Include string.h.
3667 (omp_aligned_alloc): No longer static, add ialias. Add new_alignment
3668 variable and use it instead of alignment so that when retrying the old
3669 alignment is used again. Don't retry if new alignment is the same
3670 as old alignment, unless allocator had pool size.
3671 (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
3672 (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
3673 * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
3674 omp_aligned_calloc and omp_realloc.
3675 * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
3676 omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
3677 * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
3678 * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
3679 * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
3680 * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
3681
3682 2021-09-28 Tobias Burnus <tobias@codesourcery.com>
3683
3684 PR libgomp/96661
3685 * configure.ac: Only check for int-type = 2*size_t support when
3686 building with Fortran support.
3687 * configure: Regenerate.
3688
3689 2021-09-28 Thomas Schwinge <thomas@codesourcery.com>
3690
3691 * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
3692 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3693
3694 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
3695
3696 * team.c: Initialize start_data.
3697 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
3698 * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
3699
3700 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
3701
3702 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
3703 dg-message back to dg-note.
3704
3705 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
3706
3707 PR fortran/94070
3708 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
3709 expected dg-note output.
3710
3711 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
3712
3713 PR fortran/55534
3714 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
3715 r12-3722 by removing -Wno-missing-include-dirs.
3716 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
3717
3718 2021-09-22 Jakub Jelinek <jakub@redhat.com>
3719
3720 * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
3721 * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
3722
3723 2021-09-21 Tobias Burnus <tobias@codesourcery.com>
3724
3725 PR fortran/55534
3726 * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
3727 to ALWAYS_CFLAGS.
3728 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
3729
3730 2021-09-18 Jakub Jelinek <jakub@redhat.com>
3731
3732 * testsuite/libgomp.c++/default-1.C: New test.
3733 * testsuite/libgomp.c-c++-common/default-1.c: New test.
3734 * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
3735 to default clause in C and C++" as implemented.
3736
3737 2021-09-17 Julian Brown <julian@codesourcery.com>
3738
3739 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
3740
3741 2021-09-17 Julian Brown <julian@codesourcery.com>
3742
3743 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
3744
3745 2021-09-17 Jakub Jelinek <jakub@redhat.com>
3746
3747 * libgomp.texi (OpenMP 5.1): Spelling fix,
3748 declare variante -> declare variant.
3749
3750 2021-09-17 Jakub Jelinek <jakub@redhat.com>
3751
3752 * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
3753 Use /* */ comments instead of //.
3754 * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
3755 * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
3756 * testsuite/libgomp.c++/atomic-16.C: New test.
3757 * testsuite/libgomp.c++/atomic-17.C: New test.
3758
3759 2021-09-10 Jakub Jelinek <jakub@redhat.com>
3760
3761 * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
3762 * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
3763 * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
3764
3765 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
3766
3767 * libgomp.texi (OpenMP Implementation Status): Extend
3768 OpenMP 5.0 section.
3769 (OpenACC Profiling Interface): Fix typo.
3770
3771 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
3772
3773 * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
3774 not to 4.5; link to new section.
3775 (OpenMP Implementation Status): New.
3776
3777 2021-09-06 Thomas Schwinge <thomas@codesourcery.com>
3778
3779 * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
3780
3781 2021-09-03 Tobias Burnus <tobias@codesourcery.com>
3782
3783 * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
3784 dg-output.
3785 * testsuite/libgomp.fortran/error-1.f90: Likewise.
3786
3787 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
3788 Jakub Jelinek <jakub@redhat.com>
3789
3790 * testsuite/libgomp.c/address-space-1.c: New file.
3791
3792 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
3793
3794 * testsuite/lib/libgomp.exp
3795 (check_effective_target_offload_target_intelmic): Remove 'proc'.
3796 (check_effective_target_offload_device_intel_mic): New 'proc'.
3797 * testsuite/libgomp.c-c++-common/on_device_arch.h
3798 (device_arch_intel_mic, on_device_arch_intel_mic): New.
3799 * testsuite/libgomp.c-c++-common/target-45.c: Use that for
3800 'dg-xfail-run-if'.
3801 * testsuite/libgomp.fortran/target10.f90: Likewise.
3802
3803 2021-08-23 Tobias Burnus <tobias@codesourcery.com>
3804
3805 * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
3806 * testsuite/libgomp.fortran/taskloop-4.f90: New test.
3807 * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
3808 * testsuite/libgomp.fortran/taskloop-5.f90: New test.
3809
3810 2021-08-23 Jakub Jelinek <jakub@redhat.com>
3811
3812 * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
3813 * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
3814 * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
3815
3816 2021-08-22 Thomas Schwinge <thomas@codesourcery.com>
3817
3818 * config/nvptx/error.c (fwrite, exit): Override, too.
3819 * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
3820 of offloading testing.
3821 * testsuite/libgomp.fortran/error-1.f90: Likewise.
3822
3823 2021-08-20 Tobias Burnus <tobias@codesourcery.com>
3824
3825 * testsuite/libgomp.fortran/error-1.f90: New test.
3826
3827 2021-08-20 Jakub Jelinek <jakub@redhat.com>
3828
3829 * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
3830 * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
3831 * error.c (GOMP_warning, GOMP_error): New functions.
3832 * testsuite/libgomp.c-c++-common/error-1.c: New test.
3833
3834 2021-08-18 Tobias Burnus <tobias@codesourcery.com>
3835
3836 * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
3837 omp_target_free. omp_target_is_present, omp_target_memcpy,
3838 omp_target_memcpy_rect, omp_target_associate_ptr,
3839 omp_target_disassociate_ptr): Add interface.
3840 * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
3841 omp_target_free. omp_target_is_present, omp_target_memcpy,
3842 omp_target_memcpy_rect, omp_target_associate_ptr,
3843 omp_target_disassociate_ptr): Add interface.
3844 * testsuite/libgomp.fortran/alloc-1.F90: Remove local
3845 interface block for omp_alloc + omp_free.
3846 * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
3847 * testsuite/libgomp.fortran/refcount-1.f90: New test.
3848 * testsuite/libgomp.fortran/target-12.f90: New test.
3849
3850 2021-08-18 Jakub Jelinek <jakub@redhat.com>
3851
3852 * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
3853
3854 2021-08-17 Tobias Burnus <tobias@codesourcery.com>
3855
3856 * testsuite/libgomp.fortran/scope-1.f90: New test.
3857 * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
3858
3859 2021-08-17 Jakub Jelinek <jakub@redhat.com>
3860
3861 * Makefile.am (libgomp_la_SOURCES): Add scope.c
3862 * Makefile.in: Regenerated.
3863 * libgomp_g.h (GOMP_scope_start): Declare.
3864 * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
3865 * scope.c: New file.
3866 * testsuite/libgomp.c-c++-common/scope-1.c: New test.
3867 * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
3868
3869 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
3870
3871 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
3872 '?:' issues.
3873
3874 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
3875
3876 * testsuite/libgomp.fortran/masked-1.f90: New test.
3877
3878 2021-08-13 Thomas Schwinge <thomas@codesourcery.com>
3879
3880 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
3881
3882 2021-08-12 Jakub Jelinek <jakub@redhat.com>
3883
3884 * testsuite/libgomp.c-c++-common/masked-1.c: New test.
3885
3886 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
3887
3888 * env.c (parse_bind_var): Accept 'primary' as alias for
3889 'master'.
3890 (omp_display_env): Add TODO comment to
3891 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
3892 * libgomp.texi: Change 'master thread' to 'primary thread'
3893 in line with OpenMP 5.1.
3894 (omp_get_proc_bind): Add omp_proc_bind_primary and note that
3895 omp_proc_bind_master is an alias of it.
3896 (OMP_PROC_BIND): Mention 'PRIMARY'.
3897 * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
3898 (omp_proc_bind_primary): Add.
3899 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
3900 * omp_lib.f90.in (omp_proc_bind_primary): Add.
3901 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
3902 * omp_lib.h.in (omp_proc_bind_primary): Add.
3903 * testsuite/libgomp.c/affinity-1.c: Check that
3904 'primary' works and is identical to 'master'.
3905
3906 2021-08-09 Julian Brown <julian@codesourcery.com>
3907 Kwok Cheung Yeung <kcy@codesourcery.com>
3908 Thomas Schwinge <thomas@codesourcery.com>
3909
3910 * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
3911 16.
3912 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
3913 [acc_device_radeon]: Update.
3914 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
3915 [ACC_DEVICE_TYPE_radeon]: Likewise.
3916 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
3917 [acc_device_radeon]: Likewise.
3918 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
3919 [ACC_DEVICE_TYPE_radeon]: Likewise.
3920 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
3921 'openacc_radeon_accel_selected' and '-O0'.
3922 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
3923
3924 2021-08-05 Chung-Lin Tang <cltang@codesourcery.com>
3925
3926 * icv-device.c (omp_get_device_num): New API function, host side.
3927 * fortran.c (omp_get_device_num_): New interface function.
3928 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
3929 * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
3930 omp_get_device_num_.
3931 * libgomp.texi (omp_get_device_num): Add documentation for new API
3932 function.
3933 * omp.h.in (omp_get_device_num): Add declaration.
3934 * omp_lib.f90.in (omp_get_device_num): Likewise.
3935 * omp_lib.h.in (omp_get_device_num): Likewise.
3936 * target.c (gomp_load_image_to_device): If additional entry for device
3937 number exists at end of returned entries from 'load_image_func' hook,
3938 copy the assigned device number over to the device variable.
3939 * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
3940 (omp_get_device_num): New API function, device side.
3941 * plugin/plugin-gcn.c ("symcat.h"): Add include.
3942 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
3943 at end of returned 'target_table' entries.
3944 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
3945 (omp_get_device_num): New API function, device side.
3946 * plugin/plugin-nvptx.c ("symcat.h"): Add include.
3947 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
3948 at end of returned 'target_table' entries.
3949 * testsuite/lib/libgomp.exp
3950 (check_effective_target_offload_target_intelmic): New function for
3951 testing for intelmic offloading.
3952 * testsuite/libgomp.c-c++-common/target-45.c: New test.
3953 * testsuite/libgomp.fortran/target10.f90: New test.
3954
3955 2021-07-30 Thomas Schwinge <thomas@codesourcery.com>
3956 Ulrich Drepper <drepper@redhat.com>
3957
3958 * fortran.c (omp_display_env_, omp_display_env_8_): Only
3959 '#ifndef LIBGOMP_OFFLOADED_ONLY'.
3960
3961 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
3962 Julian Brown <julian@codesourcery.com>
3963 Kwok Cheung Yeung <kcy@codesourcery.com>
3964
3965 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
3966 's%oaccdevlow%oaccloops%g'.
3967 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
3968 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3969 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
3970 Likewise.
3971 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
3972 Likewise.
3973 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
3974 Likewise.
3975 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
3976 Likewise.
3977 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
3978 Likewise.
3979 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
3980 Likewise.
3981 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
3982 Likewise.
3983 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
3984 Likewise.
3985 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
3986
3987 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
3988
3989 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
3990 threader.
3991 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
3992
3993 2021-07-27 Ulrich Drepper <drepper@gmail.com>
3994
3995 * env.c (wait_policy, stacksize): New static variables,
3996 move out of handle_omp_display_env.
3997 (omp_display_env): New function. The meat of the old
3998 handle_omp_display_env function.
3999 (handle_omp_display_env): Change to not take parameters
4000 and instead use the global variables. Only perform
4001 parsing, defer to omp_display_env for the implementation.
4002 (initialize_env): Remove local variables wait_policy and
4003 stacksize. Don't pass parameters to handle_omp_display_env.
4004 * fortran.c: Add ialias_redirect for omp_display_env.
4005 (omp_display_env_, omp_display_env_8_): New functions.
4006 * libgomp.map (OMP_5.1): New version. Add omp_display_env,
4007 omp_display_env_, and omp_display_env_8_.
4008 * omp.h.in: Declare omp_display_env.
4009 * omp_lib.f90.in: Likewise.
4010 * omp_lib.h.in: Likewise.
4011
4012 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
4013 Julian Brown <julian@codesourcery.com>
4014
4015 * target.c (gomp_coalesce_buf_add): Update comment.
4016 (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
4017 'aq && cbuf'.
4018 (gomp_map_vars_internal): Only 'if (!aq)', do
4019 'gomp_coalesce_buf_add'.
4020 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
4021 XFAIL.
4022
4023 2021-07-27 Julian Brown <julian@codesourcery.com>
4024 Thomas Schwinge <thomas@codesourcery.com>
4025
4026 * libgomp.h (gomp_copy_host2dev): Update prototype.
4027 * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
4028 argument to gomp_copy_host2dev (false).
4029 * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
4030 (copy_data): Don't free src.
4031 (queue_push_copy): Remove free_src handling.
4032 (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
4033 (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
4034 snapshotting.
4035 (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
4036 queue_push_copy.
4037 * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
4038 (gomp_copy_host2dev): Add EPHEMERAL parameter. Snapshot source
4039 data when true, and set up deferred freeing of temporary buffer.
4040 (gomp_copy_dev2host): Update call to goacc_device_copy_async.
4041 (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
4042 (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
4043 calls to gomp_copy_host2dev with appropriate ephemeral argument.
4044 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
4045 XFAIL.
4046
4047 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
4048 Tom de Vries <tom@codesourcery.com>
4049
4050 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
4051 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
4052
4053 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
4054
4055 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
4056 sequencing of 'async' data copying vs. profiling events.
4057 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
4058 Likewise.
4059
4060 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
4061 Julian Brown <julian@codesourcery.com>
4062
4063 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
4064 'async'/'wait' issue.
4065 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
4066 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
4067 * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
4068
4069 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
4070 Joseph Myers <joseph@codesourcery.com>
4071 Cesar Philippidis <cesar@codesourcery.com>
4072
4073 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
4074 file.
4075 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
4076 Likewise.
4077 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
4078 Likewise.
4079 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
4080
4081 2021-07-20 Thomas Schwinge <thomas@codesourcery.com>
4082
4083 PR target/101484
4084 * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
4085 '-Wno-error=array-bounds'.
4086 * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
4087 * libgomp.h [__AMDGCN__]: Likewise.
4088
4089 2021-07-19 Thomas Schwinge <thomas@codesourcery.com>
4090
4091 PR target/101484
4092 * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
4093 * libgomp.h [__AMDGCN__]: Likewise.
4094
4095 2021-07-13 Jakub Jelinek <jakub@redhat.com>
4096 Florian Weimer <fweimer@redhat.com>
4097
4098 * config/linux/sem.h: Don't include limits.h.
4099 (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
4100 * config/linux/affinity.c: Include limits.h.
4101
4102 2021-07-01 Jakub Jelinek <jakub@redhat.com>
4103
4104 PR middle-end/94366
4105 * testsuite/libgomp.c-c++-common/pr94366.c: New test.
4106
4107 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
4108
4109 PR other/67300
4110 * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
4111 -foffload=nvptx-none= by -foffload-options=nvptx-none= to
4112 avoid disabling other offload targets.
4113 * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
4114 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
4115 * testsuite/libgomp.c/target-44.c: Likewise.
4116
4117 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
4118
4119 * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
4120 target has shared memory and disable some scalar pointer/allocatable
4121 checks if not as firstprivate does not work.
4122
4123 2021-06-25 Chung-Lin Tang <cltang@codesourcery.com>
4124
4125 PR testsuite/101114
4126 * testsuite/libgomp.c-c++-common/struct-elem-5.c:
4127 Add "target offload_device_nonshared_as" condition for enabling test.
4128
4129 2021-06-24 Jakub Jelinek <jakub@redhat.com>
4130
4131 * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
4132 * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
4133 * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
4134 * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
4135
4136 2021-06-23 Jakub Jelinek <jakub@redhat.com>
4137
4138 PR middle-end/101167
4139 * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
4140
4141 2021-06-17 Chung-Lin Tang <cltang@codesourcery.com>
4142
4143 * hashtab.h (htab_clear): New function with initialization code
4144 factored out from...
4145 (htab_create): ...here, adjust to use htab_clear function.
4146 * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
4147 special refcount values, add comments.
4148 (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
4149 (REFCOUNT_LINK): Likewise.
4150 (REFCOUNT_STRUCTELEM): New special refcount range for structure
4151 element siblings.
4152 (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
4153 sibling maps.
4154 (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
4155 (REFCOUNT_STRUCTELEM_FLAG_LAST): Flag to indicate last sibling.
4156 (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
4157 (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
4158 (struct splay_tree_key_s): Add structelem_refcount and
4159 structelem_refcount_ptr fields into a union with dynamic_refcount.
4160 Add comments.
4161 (gomp_map_vars): Delete declaration.
4162 (gomp_map_vars_async): Likewise.
4163 (gomp_unmap_vars): Likewise.
4164 (gomp_unmap_vars_async): Likewise.
4165 (goacc_map_vars): New declaration.
4166 (goacc_unmap_vars): Likewise.
4167 * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
4168 (goacc_enter_datum): Likewise.
4169 (goacc_enter_data_internal): Likewise.
4170 * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
4171 and goacc_unmap_vars.
4172 (GOACC_data_start): Adjust to use goacc_map_vars.
4173 (GOACC_data_end): Adjust to use goacc_unmap_vars.
4174 * target.c (hash_entry_type): New typedef.
4175 (htab_alloc): New function hook for hashtab.h.
4176 (htab_free): Likewise.
4177 (htab_hash): Likewise.
4178 (htab_eq): Likewise.
4179 (hashtab.h): Add file include.
4180 (gomp_increment_refcount): New function.
4181 (gomp_decrement_refcount): Likewise.
4182 (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
4183 gomp_increment_refcount.
4184 (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
4185 to gomp_map_vars_existing.
4186 (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
4187 variable to guard OpenMP specific paths, adjust calls to
4188 gomp_map_vars_existing, add structure element sibling splay_tree_key
4189 sequence creation code, adjust Fortran map case to avoid increment
4190 under OpenMP.
4191 (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
4192 local refcount_set if caller passed in NULL, adjust call to
4193 gomp_map_vars_internal.
4194 (gomp_map_vars_async): Adjust and rename into...
4195 (goacc_map_vars): ...this new function, adjust call to
4196 gomp_map_vars_internal.
4197 (gomp_remove_splay_tree_key): New function with code factored out from
4198 gomp_remove_var_internal.
4199 (gomp_remove_var_internal): Add code to handle removing multiple
4200 splay_tree_key sequence for structure elements, adjust code to use
4201 gomp_remove_splay_tree_key for splay-tree key removal.
4202 (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
4203 gomp_decrement_refcount.
4204 (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
4205 local refcount_set if caller passed in NULL, adjust call to
4206 gomp_unmap_vars_internal.
4207 (gomp_unmap_vars_async): Adjust and rename into...
4208 (goacc_unmap_vars): ...this new function, adjust call to
4209 gomp_unmap_vars_internal.
4210 (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
4211 gomp_unmap_vars.
4212 (GOMP_target_ext): Likewise.
4213 (gomp_target_data_fallback): Adjust call to gomp_map_vars.
4214 (GOMP_target_data): Likewise.
4215 (GOMP_target_data_ext): Likewise.
4216 (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
4217 (gomp_exit_data): Add refcount_set parameter, adjust to use
4218 gomp_decrement_refcount, adjust to queue splay-tree keys for removal
4219 after main loop.
4220 (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
4221 gomp_map_vars and gomp_exit_data.
4222 (gomp_target_task_fn): Likewise.
4223 * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
4224 * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
4225 * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
4226 * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
4227 * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
4228 * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
4229
4230 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
4231
4232 PR fortran/92568
4233 * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
4234
4235 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
4236 Thomas Schwinge <thomas@codesourcery.com>
4237
4238 * libgomp.map (GOACC_2.0.2): New symbol version.
4239 * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
4240 * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
4241
4242 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
4243 Andrew Stubbs <ams@codesourcery.com>
4244
4245 * oacc-mem.c (goacc_enter_exit_data_internal): New function,
4246 extracted from...
4247 (GOACC_enter_exit_data): ... here.
4248 (GOACC_declare): Use it.
4249
4250 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
4251
4252 * oacc-parallel.c (GOACC_declare): Move...
4253 * oacc-mem.c: ... here.
4254 * libgomp_g.h: Adjust.
4255
4256 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
4257 Thomas Schwinge <thomas@codesourcery.com>
4258
4259 * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
4260 handling.
4261
4262 2021-06-10 Jakub Jelinek <jakub@redhat.com>
4263
4264 PR tree-optimization/100981
4265 * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
4266 dsdotr and dsdoti to 0.
4267
4268 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
4269
4270 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
4271 if atomic compare-and-swap is supported on 'int'.
4272
4273 2021-06-09 Richard Biener <rguenther@suse.de>
4274
4275 PR tree-optimization/100981
4276 * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
4277
4278 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4279
4280 * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
4281 unconditionally.
4282 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
4283 Update.
4284 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4285 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
4286
4287 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4288
4289 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
4290 '-DACC_MEM_SHARED=0'.
4291 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
4292 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
4293 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
4294 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
4295 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
4296 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
4297 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
4298 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
4299 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
4300 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
4301 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
4302 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
4303 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
4304 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
4305 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
4306 'acc_device_radeon' testing.
4307 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
4308 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
4309 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
4310 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
4311 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
4312 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
4313 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
4314 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
4315 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
4316 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
4317 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
4318 for non-'openacc_nvidia_accel_selected'.
4319 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
4320 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
4321 all implement this checking".
4322 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
4323 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
4324 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
4325 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
4326 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
4327
4328 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4329
4330 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
4331 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
4332
4333 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4334
4335 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
4336 for 'acc_device_radeon'.
4337
4338 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4339
4340 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
4341 for non-'acc_device_nvidia'.
4342
4343 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4344
4345 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
4346 'acc_device_radeon' testing.
4347 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
4348 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
4349 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
4350
4351 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4352
4353 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
4354 require 'openacc_nvidia_accel_selected'. Fix up for
4355 'ACC_DEVICE_TYPE_radeon'.
4356
4357 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4358
4359 * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
4360 'openacc_nvidia_accel_selected'.
4361 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
4362
4363 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4364
4365 * testsuite/lib/libgomp.exp
4366 (check_effective_target_openacc_radeon_accel_selected):
4367 Streamline.
4368
4369 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4370
4371 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
4372 PR80547 workaround.
4373
4374 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4375
4376 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
4377 <acc_device_nvidia>: Update comment.
4378
4379 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
4380
4381 * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
4382
4383 2021-05-27 Jakub Jelinek <jakub@redhat.com>
4384
4385 * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
4386 check_effective_target_openacc_cublas,
4387 check_effective_target_openacc_cudart): New.
4388 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
4389 target openacc_cublas.
4390 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
4391 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
4392 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
4393 target openacc_cuda.
4394 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
4395 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
4396 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
4397 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
4398 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
4399 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
4400 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
4401 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
4402 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
4403 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
4404 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
4405 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
4406 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
4407 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
4408 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
4409 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
4410 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
4411 targets openacc_cublas and openacc_cudart.
4412 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
4413 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
4414 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
4415 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
4416 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
4417 Require effective target openacc_cudart.
4418 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
4419 for effective target openacc_cuda and add && defined USE_CUDA_H to
4420 preprocessor conditionals. Guard -lcuda also on openacc_cuda
4421 effective target.
4422
4423 2021-05-26 Jakub Jelinek <jakub@redhat.com>
4424
4425 PR libgomp/100573
4426 * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
4427 GOMP_target_end_data, GOMP_target_update_ext,
4428 GOMP_target_enter_exit_data): New dummy entrypoints.
4429 * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
4430 GOMP_target_end_data, GOMP_target_update_ext,
4431 GOMP_target_enter_exit_data): Likewise.
4432 * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
4433 OMPFROM, OMPTO): Define.
4434 (main): Remove #pragma omp target teams around all the tests.
4435 * testsuite/libgomp.c-c++-common/target-41.c: New test.
4436 * testsuite/libgomp.c-c++-common/target-42.c: New test.
4437
4438 2021-05-25 Jakub Jelinek <jakub@redhat.com>
4439
4440 PR middle-end/99928
4441 * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
4442
4443 2021-05-24 Tobias Burnus <tobias@codesourcery.com>
4444
4445 PR fortran/86470
4446 * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
4447 * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
4448 * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
4449
4450 2021-05-22 Thomas Schwinge <thomas@codesourcery.com>
4451
4452 PR testsuite/90115
4453 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
4454 uninteresting/varying diagnostics.
4455
4456 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
4457
4458 PR middle-end/90115
4459 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
4460 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4461
4462 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
4463
4464 PR middle-end/90115
4465 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
4466 file.
4467 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
4468 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
4469 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4470 Likewise.
4471 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4472 Likewise.
4473 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4474 Likewise.
4475 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4476 Likewise.
4477 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4478 Likewise.
4479 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4480 Likewise.
4481 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
4482 Likewise.
4483 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
4484 Likewise.
4485 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
4486 Likewise.
4487 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
4488 Likewise.
4489 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
4490 Likewise.
4491 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
4492 Likewise.
4493 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4494 Likewise.
4495 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4496 Likewise.
4497 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
4498 Likewise.
4499 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4500 Likewise.
4501 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4502 Likewise.
4503 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4504 Likewise.
4505 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4506 Likewise.
4507 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4508 Likewise.
4509 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4510 Likewise.
4511 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
4512 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
4513 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
4514 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
4515 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
4516 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4517 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4518 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
4519 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4520 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4521 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4522 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
4523 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4524 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
4525 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
4526 Likewise.
4527 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
4528 Likewise.
4529 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
4530 Likewise.
4531 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
4532 Likewise.
4533 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
4534 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
4535 Likewise.
4536 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
4537 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
4538 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
4539 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
4540 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
4541 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
4542 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4543 Likewise.
4544 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4545 Likewise.
4546 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4547 Likewise.
4548 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4549 Likewise.
4550 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
4551 Likewise.
4552 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
4553 Likewise.
4554 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
4555 Likewise.
4556 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
4557 Likewise.
4558 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
4559 Likewise.
4560 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
4561 Likewise.
4562 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
4563 Likewise.
4564 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
4565 Likewise.
4566 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
4567 Likewise.
4568 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
4569 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4570 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
4571 Likewise.
4572 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
4573 Likewise.
4574 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
4575 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4576 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
4577
4578 2021-05-21 Julian Brown <julian@codesourcery.com>
4579 Chung-Lin Tang <cltang@codesourcery.com>
4580 Thomas Schwinge <thomas@codesourcery.com>
4581
4582 PR middle-end/90115
4583 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
4584 test.
4585 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
4586 Likewise.
4587 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
4588 Likewise.
4589
4590 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
4591
4592 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
4593 for nvptx offloading.
4594
4595 2021-05-21 Tobias Burnus <tobias@codesourcery.com>
4596
4597 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
4598
4599 2021-05-19 Thomas Schwinge <thomas@codesourcery.com>
4600
4601 PR target/83812
4602 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
4603
4604 2021-05-19 Julian Brown <julian@codesourcery.com>
4605
4606 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
4607
4608 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
4609
4610 * testsuite/lib/libgomp.exp
4611 (check_effective_target_offload_target_nvptx): Don't shadow global
4612 'offload_targets' variable.
4613
4614 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
4615
4616 * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
4617 '-latomic' to nvptx offloading compilation.
4618 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
4619
4620 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
4621
4622 * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
4623 offloading compilation.
4624
4625 2021-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
4626
4627 * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
4628 if new tasks generated.
4629 * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
4630
4631 2021-05-14 Tobias Burnus <tobias@codesourcery.com>
4632
4633 * testsuite/libgomp.fortran/parallel-master.f90: New test.
4634
4635 2021-05-13 Martin Liska <mliska@suse.cz>
4636
4637 PR testsuite/100569
4638 * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
4639 * testsuite/libgomp.c/pr46032-2.c: Likewise.
4640 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
4641 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
4642
4643 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
4644
4645 * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
4646 * testsuite/libgomp.fortran/task-detach-12.f90: New test.
4647
4648 2021-05-11 Jakub Jelinek <jakub@redhat.com>
4649
4650 PR middle-end/100471
4651 * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
4652 GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
4653 reduction pointer.
4654 * testsuite/libgomp.c/task-reduction-4.c: New test.
4655
4656 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
4657 Tom de Vries <tdevries@suse.de>
4658
4659 * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
4660 complex/floating-point || + && reduction with 'omp target'.
4661 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
4662
4663 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
4664
4665 * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
4666 * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
4667 * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
4668 * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
4669
4670 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
4671
4672 PR testsuite/100397
4673 * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
4674 declaration to scope of non-'depend'-guarded assignment to avoid races.
4675
4676 2021-05-03 Tom de Vries <tdevries@suse.de>
4677
4678 PR target/100321
4679 * testsuite/libgomp.c/target-44.c: New test.
4680
4681 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
4682
4683 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
4684
4685 2021-04-29 Tom de Vries <tdevries@suse.de>
4686
4687 * testsuite/libgomp.c/pr81778.c: New test.
4688
4689 2021-04-29 Tom de Vries <tdevries@suse.de>
4690
4691 PR target/100232
4692 * testsuite/libgomp.c/target-43.c: New file.
4693
4694 2021-04-28 Jakub Jelinek <jakub@redhat.com>
4695 Tobias Burnus <tobias@codesourcery.com>
4696
4697 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
4698 * target.c (gomp_load_plugin_for_device): If set and if a plugin
4699 can't be dlopened, silently assume it has no devices.
4700 * Makefile.in: Regenerate.
4701 * config.h.in: Regenerate.
4702 * configure: Regenerate.
4703
4704 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
4705
4706 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
4707 Use [Ww]arning in dg-bogus as FE diagnostic and default
4708 diagnostic differ and the result depends on ENABLE_OFFLOAD.
4709 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4710 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4711 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4712
4713 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
4714
4715 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
4716 Correct spelling in dg-bogus to match -Wopenacc-parallelism.
4717 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4718 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4719 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4720
4721 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
4722 Nathan Sidwell <nathan@codesourcery.com>
4723 Tom de Vries <vries@codesourcery.com>
4724 Julian Brown <julian@codesourcery.com>
4725 Kwok Cheung Yeung <kcy@codesourcery.com>
4726
4727 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
4728 '-Wopenacc-parallelism', and match diagnostics, as appropriate.
4729 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
4730 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4731 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4732 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4733 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
4734 Likewise.
4735 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
4736 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
4737 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4738 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
4739 Likewise.
4740 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
4741 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
4742 Likewise.
4743 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
4744 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
4745 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
4746 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
4747 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
4748 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
4749 Likewise.
4750 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
4751 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
4752 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4753 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4754 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4755 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
4756 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
4757 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
4758 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4759 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4760 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
4761
4762 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
4763
4764 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
4765 compile with '-w'.
4766 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
4767 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
4768 Likewise.
4769 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
4770 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
4771 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4772 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
4773 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4774 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4775 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4776
4777 2021-04-22 Richard Biener <rguenther@suse.de>
4778
4779 * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
4780 only on nvptx-none.
4781
4782 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
4783
4784 * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
4785 omp_depend_kind instead of defining it as 16.
4786
4787 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
4788
4789 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
4790 New, based on check_effective_target_offload_target_nvptx.
4791 (check_effective_target_offload_target_nvptx): Call it.
4792 (check_effective_target_offload_target_amdgcn): New.
4793 * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
4794 Require target offload_target_nvptx || offload_target_amdgcn.
4795 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
4796 * testsuite/libgomp.c/pr86416-1.c: Likewise.
4797 * testsuite/libgomp.c/pr86416-2.c: Likewise.
4798
4799 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
4800
4801 * testsuite/libgomp.fortran/depobj-1.f90: New test.
4802
4803 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
4804
4805 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4806 '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
4807 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
4808 Likewise.
4809 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4810 Likewise.
4811 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
4812
4813 2021-04-15 Thomas Schwinge <thomas@codesourcery.com>
4814
4815 PR target/99555
4816 * testsuite/lib/libgomp.exp
4817 (check_effective_target_offload_device_nvptx): New.
4818 * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
4819 resolved, make sure that we exit quickly, with error status,
4820 XFAILed.
4821 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
4822 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
4823
4824 2021-04-14 Jakub Jelinek <jakub@redhat.com>
4825
4826 PR testsuite/100071
4827 * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
4828 cp = omp_alloc with cp, p arguments instead of cq, q and call
4829 c_f_pointer after last cq = omp_alloc with cq, q.
4830
4831 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
4832
4833 PR middle-end/98088
4834 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
4835 for loop with GT/GE condition.
4836 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
4837
4838 2021-04-09 Thomas Schwinge <thomas@codesourcery.com>
4839
4840 PR middle-end/84991
4841 PR middle-end/84992
4842 PR middle-end/90779
4843 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
4844
4845 2021-04-09 Jakub Jelinek <jakub@redhat.com>
4846
4847 PR libgomp/99984
4848 * team.c (gomp_thread_start): Call pthread_setspecific for
4849 !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
4850 has been initialized to avoid false positive warning.
4851
4852 2021-03-29 Tobias Burnus <tobias@codesourcery.com>
4853
4854 PR target/99555
4855 * testsuite/lib/on_device_arch.c: Move to ...
4856 * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
4857 * testsuite/libgomp.fortran/on_device_arch.c: New file;
4858 #include on_device_arch.h.
4859 * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
4860 on_device_arch.h instead of using dg-additional-source.
4861 * testsuite/libgomp.c/pr99555-1.c: Likewise.
4862 * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
4863 on_device_arch.c without relative paths.
4864
4865 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
4866
4867 * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
4868 the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
4869 * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
4870 * config.h.in: Regenerate.
4871 * configure: Likewise.
4872
4873 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
4874
4875 PR target/99555
4876 * testsuite/lib/on_device_arch.c: New file.
4877 * testsuite/libgomp.c/pr99555-1.c: Likewise.
4878 * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
4879 skip for nvptx offloading, with error status.
4880 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
4881
4882 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
4883
4884 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
4885 OpenACC 'serial' construct diagnostic for nvptx offloading.
4886
4887 2021-03-15 Tobias Burnus <tobias@codesourcery.com>
4888
4889 PR c++/99509
4890 * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
4891
4892 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
4893
4894 PR fortran/98858
4895 * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
4896
4897 2021-03-04 Jakub Jelinek <jakub@redhat.com>
4898
4899 * configure.ac: Add AC_CHECK_SIZEOF([void *]).
4900 * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
4901 checking of -m32 or -mx32 options on the command line.
4902 * config.h.in: Regenerated.
4903 * configure: Regenerated.
4904
4905 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
4906
4907 * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
4908 support from the target.
4909
4910 2021-02-25 Kwok Cheung Yeung <kcy@codesourcery.com>
4911 Jakub Jelinek <jakub@redhat.com>
4912
4913 PR libgomp/98738
4914 * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
4915 (struct gomp_task): Replace detach and completion_sem fields with
4916 union containing completion_sem and detach_team. Add deferred_p
4917 field.
4918 (struct gomp_team): Remove task_detach_queue.
4919 * task.c: Include assert.h.
4920 (gomp_init_task): Initialize deferred_p and completion_sem fields.
4921 Rearrange initialization order of fields.
4922 (task_fulfilled_p): Delete.
4923 (GOMP_task): Use address of task as the event handle. Remove
4924 initialization of detach field. Initialize deferred_p field.
4925 Use automatic local for completion_sem. Initialize detach_team field
4926 for deferred tasks.
4927 (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
4928 Set kind of suspended detach task to GOMP_TASK_DETACHED and
4929 decrement task_running_count. Move finish_cancelled block out of
4930 else branch. Relocate call to gomp_team_barrier_done.
4931 (GOMP_taskwait): Handle tasks with completion events that have not
4932 been fulfilled.
4933 (GOMP_taskgroup_end): Likewise.
4934 (omp_fulfill_event): Use address of task as event handle. Post to
4935 completion_sem for undeferred tasks. Clear detach_team if task
4936 has not finished. For finished tasks, handle post-execution tasks,
4937 call gomp_team_barrier_wake if necessary, and free task.
4938 * team.c (gomp_new_team): Remove initialization of task_detach_queue.
4939 (free_team): Remove free of task_detach_queue.
4940 * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
4941 * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
4942 * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
4943 * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
4944 * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
4945 Change data-sharing of detach events on enclosing parallel to private.
4946 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise. Remove
4947 taskwait directive.
4948 * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
4949 * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
4950 * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
4951 * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
4952 * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
4953 * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
4954 * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
4955 * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
4956 * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
4957 * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
4958 Change data-sharing of detach events on enclosing parallel to private.
4959 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise. Remove
4960 taskwait directive.
4961 * testsuite/libgomp.fortran/task-detach-7.f90: New.
4962 * testsuite/libgomp.fortran/task-detach-8.f90: New.
4963 * testsuite/libgomp.fortran/task-detach-9.f90: New.
4964 * testsuite/libgomp.fortran/task-detach-10.f90: New.
4965 * testsuite/libgomp.fortran/task-detach-11.f90: New.
4966
4967 2021-02-22 Tobias Burnus <tobias@codesourcery.com>
4968
4969 PR fortran/99171
4970 * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
4971
4972 2021-02-17 Julian Brown <julian@codesourcery.com>
4973
4974 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
4975 expected errors.
4976
4977 2021-02-17 Julian Brown <julian@codesourcery.com>
4978
4979 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
4980 * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
4981
4982 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
4983
4984 * config/linux/x86/futex.h (__futex_wait):
4985 Revert output type back to long.
4986 (__futex_wake): Ditto.
4987 (futex_wait): Update for revert.
4988 (futex_wake): Ditto.
4989
4990 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
4991
4992 * config/linux/x86/futex.h (__futex_wait): New static inline
4993 wrapper function. Correct output type to int and
4994 timeout type to void *.
4995 (__futex_wake): New static inline wrapper function.
4996 Correct output type to int.
4997 (futex_wait): Use __futex_wait.
4998 (futex_wake): Use __futex_wake.
4999
5000 2021-02-10 Julian Brown <julian@codesourcery.com>
5001
5002 PR fortran/98979
5003 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
5004 errors.
5005
5006 2021-02-04 Julian Brown <julian@codesourcery.com>
5007
5008 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
5009
5010 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
5011
5012 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
5013 EF_AMDGPU_MACH_AMDGCN_GFX908.
5014 (gcn_gfx908_s): New constant string.
5015 (isa_hsa_name): Add gfx908.
5016 (isa_code): Add gfx908.
5017
5018 2021-01-25 Kwok Cheung Yeung <kcy@codesourcery.com>
5019
5020 * libgomp.texi (omp_fulfill_event): New entry.
5021
5022 2021-01-20 Jakub Jelinek <jakub@redhat.com>
5023
5024 * task.c (GOMP_task): Rename priority argument to priority_arg,
5025 add priority automatic variable and modify that variable. Instead of
5026 clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
5027 check flags for that bit.
5028
5029 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
5030
5031 PR fortran/98476
5032 * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
5033
5034 2021-01-18 Andreas Schwab <schwab@suse.de>
5035
5036 * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
5037
5038 2021-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
5039
5040 * config/rtems/sem.h (gomp_sem_getcount): New function.
5041
5042 2021-01-18 Jakub Jelinek <jakub@redhat.com>
5043
5044 * config/linux/sem.h (gomp_sem_getcount): New function.
5045 * config/posix/sem.h (gomp_sem_getcount): New function.
5046 * config/posix/sem.c (gomp_sem_getcount): New function.
5047 * config/accel/sem.h (gomp_sem_getcount): New function.
5048 * task.c (task_fulfilled_p): Use gomp_sem_getcount.
5049 (omp_fulfill_event): Likewise.
5050
5051 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
5052
5053 * fortran.c (omp_fulfill_event_): New.
5054 * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
5055 (struct gomp_team): Add task_detach_queue and task_detach_count
5056 fields.
5057 * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
5058 * libgomp_g.h (GOMP_task): Add extra argument.
5059 * omp.h.in (enum omp_event_handle_t): New.
5060 (omp_fulfill_event): New.
5061 * omp_lib.f90.in (omp_event_handle_kind): New.
5062 (omp_fulfill_event): New.
5063 * omp_lib.h.in (omp_event_handle_kind): New.
5064 (omp_fulfill_event): Declare.
5065 * priority_queue.c (priority_tree_find): New.
5066 (priority_list_find): New.
5067 (priority_queue_find): New.
5068 * priority_queue.h (priority_queue_predicate): New.
5069 (priority_queue_find): New.
5070 * task.c (gomp_init_task): Initialize detach field.
5071 (task_fulfilled_p): New.
5072 (GOMP_task): Add detach argument. Ignore detach argument if
5073 GOMP_TASK_FLAG_DETACH not set in flags. Initialize completion_sem
5074 field. Copy address of completion_sem into detach argument and
5075 into the start of the data record. Wait for detach event if task
5076 not deferred.
5077 (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
5078 Remove completed tasks and requeue dependent tasks.
5079 (omp_fulfill_event): New.
5080 * team.c (gomp_new_team): Initialize task_detach_queue and
5081 task_detach_count fields.
5082 (free_team): Free task_detach_queue field.
5083 * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
5084 * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
5085 * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
5086 * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
5087 * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
5088 * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
5089 * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
5090 * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
5091 * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
5092 * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
5093 * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
5094 * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
5095
5096 2021-01-15 Jakub Jelinek <jakub@redhat.com>
5097
5098 PR target/70454
5099 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
5100 be added through preprocessor check on
5101 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
5102
5103 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
5104
5105 PR libgomp/65099
5106 * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
5107 configurations.
5108 * configure: Regenerate.
5109 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
5110 check.
5111
5112 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
5113
5114 * configure: Re-generate.
5115
5116 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
5117
5118 * configure: Re-generate.
5119
5120 2021-01-05 Julian Brown <julian@codesourcery.com>
5121
5122 * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
5123 (struct ptx_device): Add omp_stacks struct.
5124 (nvptx_open_device): Initialise cached-stacks housekeeping info.
5125 (nvptx_close_device): Free cached stacks block and mutex.
5126 (nvptx_stacks_free): New function.
5127 (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
5128 (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
5129 (nvptx_stacks_alloc): Rename to...
5130 (nvptx_stacks_acquire): This. Cache stacks block between runs if same
5131 size or smaller is required.
5132 (nvptx_stacks_free): Remove.
5133 (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
5134 during kernel execution.
5135
5136 2021-01-01 Jakub Jelinek <jakub@redhat.com>
5137
5138 * libgomp.texi: Bump @copying's copyright year.
5139
5140 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
5141
5142 * libgomp.texi (Top): Avoid bad "up" link.
5143
5144 2020-12-18 Jakub Jelinek <jakub@redhat.com>
5145
5146 * testsuite/libgomp.c/task-6.c: New test.
5147
5148 2020-12-09 Andrew Stubbs <ams@codesourcery.com>
5149
5150 * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
5151 (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
5152
5153 2020-12-08 Tobias Burnus <tobias@codesourcery.com>
5154
5155 * testsuite/libgomp.fortran/scan-1.f90: New test.
5156
5157 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
5158
5159 PR target/97865
5160 * configure: Regenerate.
5161
5162 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
5163
5164 * configure: Regenerate.
5165
5166 2020-11-25 Thomas Schwinge <thomas@codesourcery.com>
5167
5168 * testsuite/libgomp.oacc-c++/cache-1.C: New.
5169 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
5170
5171 2020-11-25 Andrew Stubbs <ams@codesourcery.com>
5172
5173 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
5174 expected results.
5175
5176 2020-11-24 Andrew Stubbs <ams@codesourcery.com>
5177
5178 * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
5179 (reserved): Delete unused define.
5180
5181 2020-11-24 Thomas Schwinge <thomas@codesourcery.com>
5182
5183 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
5184 Tcl 8.5-specific behavior.
5185 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
5186
5187 2020-11-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5188
5189 * env.c (gomp_global_icv): Remove nest_var field. Add
5190 max_active_levels_var field.
5191 (gomp_max_active_levels_var): Remove.
5192 (parse_boolean): Return true on success.
5193 (handle_omp_display_env): Express OMP_NESTED in terms of
5194 max_active_levels_var. Change format specifier for
5195 max_active_levels_var.
5196 (initialize_env): Set max_active_levels_var from
5197 OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
5198 OMP_PROC_BIND.
5199 * icv.c (omp_set_nested): Express in terms of
5200 max_active_levels_var.
5201 (omp_get_nested): Likewise.
5202 (omp_set_max_active_levels): Use max_active_levels_var field instead
5203 of gomp_max_active_levels_var.
5204 (omp_get_max_active_levels): Likewise.
5205 * libgomp.h (struct gomp_task_icv): Remove nest_var field. Add
5206 max_active_levels_var field.
5207 (gomp_supported_active_levels): Set to UCHAR_MAX.
5208 (gomp_max_active_levels_var): Delete.
5209 * libgomp.texi (omp_get_nested): Update documentation.
5210 (omp_set_nested): Likewise.
5211 (OMP_MAX_ACTIVE_LEVELS): Likewise.
5212 (OMP_NESTED): Likewise.
5213 (OMP_NUM_THREADS): Likewise.
5214 (OMP_PROC_BIND): Likewise.
5215 * parallel.c (gomp_resolve_num_threads): Replace reference
5216 to nest_var with max_active_levels_var. Use max_active_levels_var
5217 field instead of gomp_max_active_levels_var.
5218
5219 2020-11-18 Tobias Burnus <tobias@codesourcery.com>
5220
5221 * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
5222 nvptx_usleep; use also for device={arch(gcn)}.
5223
5224 2020-11-14 Jakub Jelinek <jakub@redhat.com>
5225
5226 * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
5227 (foo): Add tests for non-VLA private and firstprivate clauses on
5228 omp task.
5229 (bar): Likewise. Remove taking of address from private/firstprivate
5230 variables.
5231 * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
5232 (foo): Add p, q, px and s arguments. Add tests for array reductions
5233 and for non-VLA private and firstprivate clauses on omp task.
5234 (bar): Removed.
5235 (main): Adjust foo caller. Don't call bar.
5236
5237 2020-11-13 Gergö Barany <gergo@codesourcery.com>
5238 Thomas Schwinge <thomas@codesourcery.com>
5239
5240 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
5241 New.
5242 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
5243 Likewise.
5244 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5245 Likewise.
5246 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
5247 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
5248
5249 2020-11-13 Gergö Barany <gergo@codesourcery.com>
5250 Thomas Schwinge <thomas@codesourcery.com>
5251
5252 PR fortran/94358
5253 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
5254
5255 2020-11-13 Jakub Jelinek <jakub@redhat.com>
5256
5257 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
5258 for array reductions.
5259 (main): Adjust foo callers.
5260
5261 2020-11-12 Jakub Jelinek <jakub@redhat.com>
5262
5263 * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
5264 * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
5265 * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
5266 * allocator.c (omp_aligned_alloc): New for now static function,
5267 add alignment argument and handle it.
5268 (omp_alloc): Reimplement using omp_aligned_alloc.
5269 (GOMP_alloc, GOMP_free): New functions.
5270 (omp_free): Add ialias.
5271 * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
5272 * testsuite/libgomp.c++/allocate-1.C: New test.
5273
5274 2020-11-12 Thomas Schwinge <thomas@codesourcery.com>
5275
5276 PR fortran/97782
5277 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
5278
5279 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
5280
5281 * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
5282 usable.
5283 * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
5284 'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
5285 (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
5286 (goacc_enter_data_internal): Likewise.
5287 * target.c (gomp_map_vars_internal):
5288 Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
5289 of gomp_attach_pointer for OpenMP cases.
5290 (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
5291 (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
5292 * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
5293
5294 2020-11-05 Ulrich Drepper <drepper@redhat.com>
5295 Kwok Cheung Yeung <kcy@codesourcery.com>
5296
5297 * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
5298 * Makefile.in: Regenerate.
5299 * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
5300 pragmas to ignore -Wdeprecated-declarations warnings.
5301 * icv.c: Likewise.
5302 * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
5303 Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
5304 and omp_get_nested with __GOMP_DEPRECATED_5_0.
5305 * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
5306 deprecated.
5307 * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
5308 to test options.
5309 * testsuite/libgomp.c/affinity-1.c: Likewise.
5310 * testsuite/libgomp.c/affinity-2.c: Likewise.
5311 * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
5312 * testsuite/libgomp.c/lib-1.c: Likewise.
5313 * testsuite/libgomp.c/nested-1.c: Likewise.
5314 * testsuite/libgomp.c/nested-2.c: Likewise.
5315 * testsuite/libgomp.c/nested-3.c: Likewise.
5316 * testsuite/libgomp.c/pr32362-1.c: Likewise.
5317 * testsuite/libgomp.c/pr32362-2.c: Likewise.
5318 * testsuite/libgomp.c/pr32362-3.c: Likewise.
5319 * testsuite/libgomp.c/pr35549.c: Likewise.
5320 * testsuite/libgomp.c/pr42942.c: Likewise.
5321 * testsuite/libgomp.c/pr61200.c: Likewise.
5322 * testsuite/libgomp.c/sort-1.c: Likewise.
5323 * testsuite/libgomp.c/target-5.c: Likewise.
5324 * testsuite/libgomp.c/target-6.c: Likewise.
5325 * testsuite/libgomp.c/teams-1.c: Likewise.
5326 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
5327 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
5328 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
5329 * testsuite/libgomp.fortran/affinity1.f90: Likewise.
5330 * testsuite/libgomp.fortran/lib1.f90: Likewise.
5331 * testsuite/libgomp.fortran/lib2.f: Likewise.
5332 * testsuite/libgomp.fortran/nested1.f90: Likewise.
5333 * testsuite/libgomp.fortran/teams1.f90: Likewise.
5334
5335 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
5336
5337 PR target/85486
5338 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
5339 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
5340 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
5341
5342 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
5343
5344 PR testsuite/80219
5345 PR testsuite/85303
5346 * testsuite/lib/libgomp.exp (libgomp_init): Set
5347 'gcc_warning_prefix', 'gcc_error_prefix'.
5348
5349 2020-10-30 Jakub Jelinek <jakub@redhat.com>
5350
5351 * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
5352 even in field_tgt_clear initializer.
5353
5354 2020-10-28 Jakub Jelinek <jakub@redhat.com>
5355
5356 * testsuite/libgomp.c/target-42.c: New test.
5357
5358 2020-10-28 Jakub Jelinek <jakub@redhat.com>
5359 Tom de Vries <tdevries@suse.de>
5360
5361 PR testsuite/81690
5362 * testsuite/libgomp.c/usleep.h: New file.
5363 * testsuite/libgomp.c/target-32.c: Include usleep.h.
5364 (main): Use tgt_usleep instead of usleep.
5365 * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
5366 (main): Use tgt_usleep instead of usleep.
5367
5368 2020-10-28 Jakub Jelinek <jakub@redhat.com>
5369
5370 PR lto/96680
5371 * testsuite/libgomp.c/declare-variant-1.c: New test.
5372
5373 2020-10-22 Jakub Jelinek <jakub@redhat.com>
5374
5375 * testsuite/libgomp.c/target-41.c: New test.
5376
5377 2020-10-22 Jakub Jelinek <jakub@redhat.com>
5378
5379 * icv.c (omp_get_initial_device): Remove including corresponding
5380 ialias.
5381 * icv-device.c (omp_get_initial_device): New function. Return
5382 gomp_get_num_devices (). Add ialias.
5383 * target.c (resolve_device): Don't fail with
5384 OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
5385 gomp_get_num_devices ().
5386 (omp_target_alloc, omp_target_free, omp_target_is_present,
5387 omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
5388 omp_target_disassociate_ptr, omp_pause_resource): Use
5389 gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
5390 first use in the functions, in uses dominated by the
5391 gomp_get_num_devices call use num_devices_openmp instead.
5392 * libgomp.texi (omp_get_initial_device): Document.
5393 * config/gcn/icv-device.c (omp_get_initial_device): New function.
5394 Add ialias.
5395 * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
5396 * testsuite/libgomp.c/target-40.c: New test.
5397
5398 2020-10-21 Jakub Jelinek <jakub@redhat.com>
5399
5400 * env.c (parse_target_offload): Change new_offload var type to int,
5401 preinitialize to -1, remove found var and test new_offload != -1
5402 instead of found.
5403
5404 2020-10-20 Jakub Jelinek <jakub@redhat.com>
5405
5406 * target.c (gomp_target_init): Inside of the function, use automatic
5407 variables corresponding to num_devices, num_devices_openmp and devices
5408 global variables and update the globals only at the end of the
5409 function.
5410
5411 2020-10-20 Kwok Cheung Yeung <kcy@codesourcery.com>
5412
5413 * env.c (gomp_target_offload_var): New.
5414 (parse_target_offload): New.
5415 (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
5416 (initialize_env): Parse OMP_TARGET_OFFLOAD.
5417 * libgomp.h (gomp_target_offload_t): New.
5418 (gomp_target_offload_var): New.
5419 * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
5420 * target.c (resolve_device): Generate error if device not found and
5421 offloading is mandatory.
5422 (gomp_target_fallback): Generate error if offloading is mandatory.
5423 (GOMP_target): Add argument in call to gomp_target_fallback.
5424 (GOMP_target_ext): Likewise.
5425 (gomp_target_data_fallback): Generate error if offloading is mandatory.
5426 (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
5427 (GOMP_target_data_ext): Likewise.
5428 (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
5429 (gomp_target_init): Return early if offloading is disabled.
5430
5431 2020-10-15 Kwok Cheung Yeung <kcy@codesourcery.com>
5432
5433 * libgomp.texi (omp_get_max_active_levels): Modify description.
5434 (omp_get_supported_active_levels): Make descriptions consistent.
5435
5436 2020-10-14 Jakub Jelinek <jakub@redhat.com>
5437
5438 * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
5439
5440 2020-10-13 Kwok Cheung Yeung <kcy@codesourcery.com>
5441
5442 * env.c (gomp_max_active_levels_var): Initialize to
5443 gomp_supported_active_levels.
5444 (initialize_env): Limit gomp_max_active_levels_var to be at most
5445 equal to gomp_supported_active_levels.
5446 * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
5447 (omp_get_supported_active_levels_): New.
5448 * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
5449 to at most equal to gomp_supported_active_levels.
5450 (omp_get_supported_active_levels): New.
5451 * libgomp.h (gomp_supported_active_levels): New.
5452 * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
5453 omp_get_supported_active_levels_.
5454 * libgomp.texi (omp_get_supported_active_levels): New.
5455 (omp_set_max_active_levels): Update. Add reference to
5456 omp_get_supported_active_levels.
5457 * omp.h.in (omp_get_supported_active_levels): New.
5458 * omp_lib.f90.in (omp_get_supported_active_levels): New.
5459 * omp_lib.h.in (omp_get_supported_active_levels): New.
5460 * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
5461 against omp_get_supported_active_levels.
5462 * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
5463
5464 2020-10-11 Clement Chigot <clement.chigot@atos.net>
5465
5466 * config/t-aix: Delete and recreate libgomp before creating
5467 FAT library.
5468
5469 2020-10-08 Tom de Vries <tdevries@suse.de>
5470
5471 PR libgomp/81802
5472 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
5473 dimensions.
5474
5475 2020-10-06 Tom de Vries <tdevries@suse.de>
5476
5477 * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
5478
5479 2020-10-06 Tom de Vries <tdevries@suse.de>
5480
5481 PR middle-end/90861
5482 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
5483
5484 2020-10-05 Tom de Vries <tdevries@suse.de>
5485
5486 PR fortran/95654
5487 * testsuite/libgomp.fortran/pr95654.f90: New test.
5488
5489 2020-10-02 Tobias Burnus <tobias@codesourcery.com>
5490
5491 * Makefile.in: Regenerate with automake 1.15.1.
5492 * aclocal.m4: Likewise.
5493 * configure: Likewise.
5494 * testsuite/Makefile.in: Likewise.
5495
5496 2020-09-30 Andrew Stubbs <ams@codesourcery.com>
5497
5498 * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
5499 and amdgcn targets.
5500
5501 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
5502
5503 * testsuite/libgomp.fortran/declare-target-3.f90: New test.
5504
5505 2020-09-29 Andrew Stubbs <ams@codesourcery.com>
5506
5507 * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
5508 total number of threads is one.
5509 (gomp_team_barrier_wake): Likewise.
5510 (gomp_team_barrier_wait_end): Likewise.
5511 (gomp_team_barrier_wait_cancel_end): Likewise.
5512 * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
5513 (gomp_team_barrier_wake): Likewise.
5514 (gomp_team_barrier_wait_end): Likewise.
5515 (gomp_team_barrier_wait_cancel_end): Likewise.
5516 * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
5517
5518 2020-09-28 Tobias Burnus <tobias@codesourcery.com>
5519
5520 PR middle-end/96390
5521 * testsuite/libgomp.c++/pr96390.C: New test.
5522 * testsuite/libgomp.c-c++-common/pr96390.c: New test.
5523
5524 2020-09-27 Clement Chigot <clement.chigot@atos.net>
5525
5526 * config/t-aix: Use $(AR) without -X32_64.
5527
5528 2020-09-25 Jakub Jelinek <jakub@redhat.com>
5529
5530 * testsuite/libgomp.c/loop-25.c: New test.
5531
5532 2020-09-22 Tobias Burnus <tobias@codesourcery.com>
5533
5534 PR fortran/95654
5535 * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
5536
5537 2020-09-22 Tom de Vries <tdevries@suse.de>
5538
5539 * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
5540 fails.
5541
5542 2020-09-16 Nathan Sidwell <nathan@acm.org>
5543
5544 * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
5545
5546 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
5547
5548 PR fortran/96668
5549 * target.c (gomp_map_vars_internal): Initialize has_nullptr.
5550
5551 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
5552
5553 PR fortran/96668
5554 * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
5555 * target.c (gomp_map_vars_existing): Add always_to_flag flag.
5556 (gomp_map_vars_existing): Update call to it.
5557 (gomp_map_fields_existing): Likewise
5558 (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
5559 now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
5560 remapped.
5561 (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
5562 GOMP_MAP_POINTER.
5563 * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
5564 * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
5565
5566 2020-09-14 Tom de Vries <tdevries@suse.de>
5567
5568 * config/nvptx/atomic.c: New file. Add
5569 __sync_val_compare_and_swap_16.
5570 * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
5571 target offload_target_nvptx.
5572
5573 2020-09-08 Julian Brown <julian@codesourcery.com>
5574
5575 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
5576 iteration-ordering assumptions.
5577
5578 2020-09-08 Julian Brown <julian@codesourcery.com>
5579
5580 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
5581 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
5582
5583 2020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
5584
5585 * plugin/plugin-nvptx.c (nvptx_free):
5586 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
5587 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
5588 comments.
5589
5590 2020-08-20 Tobias Burnus <tobias@codesourcery.com>
5591
5592 * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
5593
5594 2020-08-13 Kwok Cheung Yeung <kcy@codesourcery.com>
5595
5596 * testsuite/libgomp.c-c++-common/reduction-16.c: New.
5597
5598 2020-08-13 Jakub Jelinek <jakub@redhat.com>
5599
5600 * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
5601 * testsuite/libgomp.c/loop-23.c (main): Likewise.
5602 * testsuite/libgomp.c/loop-24.c: New test.
5603
5604 2020-08-08 Jakub Jelinek <jakub@redhat.com>
5605 Tobias Burnus <tobias@codesourcery.com>
5606
5607 PR fortran/93553
5608 * testsuite/libgomp.fortran/pr93553.f90: New test.
5609
5610 2020-08-05 Jakub Jelinek <jakub@redhat.com>
5611
5612 * testsuite/libgomp.c/loop-22.c: New test.
5613 * testsuite/libgomp.c/loop-23.c: New test.
5614
5615 2020-08-05 Jakub Jelinek <jakub@redhat.com>
5616
5617 PR middle-end/96459
5618 * testsuite/libgomp.c/teams-3.c: New test.
5619 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
5620 if not defined yet.
5621 (N(test)): Use it before all N(f*) calls.
5622 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
5623 (main): Don't call all test_* functions from within
5624 #pragma omp teams reduction(|:err), call them directly.
5625
5626 2020-08-04 Tom de Vries <tdevries@suse.de>
5627
5628 PR target/96428
5629 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
5630 * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
5631
5632 2020-08-03 Julian Brown <julian@codesourcery.com>
5633 Thomas Schwinge <thomas@codesourcery.com>
5634
5635 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
5636 shared-memory devices. Extend with further checking.
5637
5638 2020-08-03 Martin Jambor <mjambor@suse.cz>
5639
5640 * plugin/Makefrag.am: Remove configuration of HSA plugin.
5641 * aclocal.m4: Regenerated.
5642 * Makefile.in: Regenerated.
5643 * config.h.in: Regenerated.
5644 * configure: Regenerated.
5645 * plugin/configfrag.ac: Likewise.
5646 * plugin/hsa_ext_finalize.h: Removed.
5647 * plugin/plugin-hsa.c: Likewise.
5648 * testsuite/Makefile.in: Regenerated.
5649 * testsuite/lib/libgomp.exp
5650 (offload_target_to_openacc_device_type): Remove hsa case.
5651 (check_effective_target_hsa_offloading_selected_nocache): Removed
5652 (check_effective_target_hsa_offloading_selected): Likewise.
5653 (libgomp_init): Do not add -Wno-hsa to additional_flags.
5654 * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
5655 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
5656 * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
5657 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
5658 * testsuite/libgomp.hsa.c/c.exp: Likewise.
5659 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
5660 * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
5661 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
5662 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
5663 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
5664 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
5665 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
5666 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
5667 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
5668 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
5669 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
5670 * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
5671 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
5672 * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
5673 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
5674 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
5675 * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
5676 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
5677 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
5678
5679 2020-07-27 Julian Brown <julian@codesourcery.com>
5680 Thomas Schwinge <thomas@codesourcery.com>
5681
5682 * libgomp.h (struct target_var_desc): Rename do_detach field to
5683 is_attach.
5684 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
5685 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
5686 (goacc_enter_data_internal): Don't affect reference counts
5687 for attach mappings.
5688 (goacc_exit_data_internal): Don't affect reference counts for detach
5689 mappings.
5690 * target.c (gomp_map_vars_existing): Don't affect reference counts for
5691 attach mappings.
5692 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
5693 mark attach mappings.
5694 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
5695 reference count for attach mappings.
5696 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
5697 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
5698 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
5699 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
5700 test as shouldfail.
5701 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
5702 gracefully in no-finalize mode.
5703 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
5704
5705 2020-07-24 Thomas Schwinge <thomas@codesourcery.com>
5706
5707 * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
5708 use.
5709 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5710 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5711
5712 2020-07-23 Julian Brown <julian@codesourcery.com>
5713 Thomas Schwinge <thomas@codesourcery.com>
5714
5715 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
5716 finalization for detach operation.
5717 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
5718 New test.
5719
5720 2020-07-23 Tobias Burnus <tobias@codesourcery.com>
5721
5722 * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
5723 * libgomp_f.h.in (omp_check_defines): Check whether
5724 sizeof of determined Fortran kind and C typedef match.
5725 * omp_lib.f90.in: Add omp_depened_kind.
5726 * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
5727 * configure: Regenerate.
5728 * Makefile.in: Regenerate.
5729 * testsuite/Makefile.in: Regenerate.
5730
5731 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
5732
5733 * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
5734 gcc/testsuite/c-c++-common/gomp/.
5735 * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
5736 * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
5737 from gcc/testsuite/gfortran.dg/gomp/.
5738 * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
5739
5740 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
5741
5742 * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
5743 * omp_lib.h.in: Likewise.
5744
5745 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
5746
5747 PR target/95620
5748 * testsuite/libgomp.c/pr95620.c: New test.
5749
5750 2020-07-16 Julian Brown <julian@codesourcery.com>
5751 Thomas Schwinge <thomas@codesourcery.com>
5752
5753 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
5754 * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
5755
5756 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
5757
5758 * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
5759 avoid conversion on 32bit systems from 32bit to 64bit due
5760 to -fdefault-integer-8.
5761
5762 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
5763
5764 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
5765 variables; add character(kind=4) tests; update TODO comment.
5766
5767 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
5768
5769 * allocator.c: Add ialias for omp_init_allocator and
5770 omp_destroy_allocator.
5771 * configure.ac: Set INTPTR_T_KIND.
5772 * configure: Regenerate.
5773 * Makefile.in: Regenerate.
5774 * testsuite/Makefile.in: Regenerate.
5775 * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
5776 omp_set_default_allocator_, omp_get_default_allocator_): New
5777 functions and ialias_redirect.
5778 * icv.c: Add ialias for omp_set_default_allocator and
5779 omp_get_default_allocator.
5780 * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
5781 omp_destroy_allocator_, omp_set_default_allocator_ and
5782 omp_get_default_allocator_.
5783 * omp_lib.f90.in: Add allocator traits parameters, declare
5784 allocator routines and add related kind parameters.
5785 * omp_lib.h.in: Likewise.
5786 * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
5787 * testsuite/libgomp.fortran/alloc-1.F90: New test.
5788 * testsuite/libgomp.fortran/alloc-2.F90: New test.
5789 * testsuite/libgomp.fortran/alloc-3.F: New test.
5790 * testsuite/libgomp.fortran/alloc-4.f90: New test.
5791 * testsuite/libgomp.fortran/alloc-5.f90: New test.
5792
5793 2020-07-14 Tom de Vries <tom@codesourcery.com>
5794 Cesar Philippidis <cesar@codesourcery.com>
5795 Thomas Schwinge <thomas@codesourcery.com>
5796 Kwok Cheung Yeung <kcy@codesourcery.com>
5797
5798 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
5799 New variable.
5800 (acc_init_1): Set acc_init_thread to pthread_self (). Set
5801 acc_init_state to initializing at the start, and to initialized at the
5802 end.
5803 (self_initializing_p): New function.
5804 (acc_get_device_type): Return acc_device_none if called by thread that
5805 is currently executing acc_init_1.
5806 * libgomp.texi (acc_get_device_type): Update documentation.
5807 (Implementation Status and Implementation-Defined Behavior): Likewise.
5808 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
5809
5810 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
5811
5812 * config/t-aix: Set BITS from compiler cpp macro.
5813
5814 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
5815
5816 * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
5817
5818 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
5819
5820 PR fortran/67311
5821 * testsuite/libgomp.fortran/target-map-1.f90: New test.
5822
5823 2020-07-14 Jakub Jelinek <jakub@redhat.com>
5824
5825 * testsuite/libgomp.c/loop-21.c: New test.
5826
5827 2020-07-13 Julian Brown <julian@codesourcery.com>
5828 Thomas Schwinge <thomas@codesourcery.com>
5829
5830 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
5831
5832 2020-07-10 Julian Brown <julian@codesourcery.com>
5833 Thomas Schwinge <thomas@codesourcery.com>
5834
5835 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
5836 dynamic_refcount.
5837 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
5838 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
5839 dynamic_refcount.
5840 (acc_unmap_data): Update comment.
5841 (goacc_map_var_existing, goacc_enter_datum): Adjust for
5842 dynamic_refcount semantics.
5843 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
5844 Adjust for dynamic_refcount semantics.
5845 (goacc_enter_data_internal): Implement "present" case of dynamic
5846 memory-map handling here. Update "non-present" case for
5847 dynamic_refcount semantics.
5848 (goacc_exit_data_internal): Use goacc_exit_datum_1.
5849 * target.c (gomp_map_vars_internal): Remove
5850 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
5851 handling.
5852 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
5853 (gomp_load_image_to_device): Substitute dynamic_refcount for
5854 virtual_refcount.
5855 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
5856 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
5857 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
5858 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
5859 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
5860 trace output.
5861 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
5862 trace output.
5863 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
5864 test.
5865 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
5866 Remove stale comment.
5867 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
5868 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
5869 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
5870 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
5871 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
5872 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
5873
5874 2020-07-10 Julian Brown <julian@codesourcery.com>
5875 Thomas Schwinge <thomas@codesourcery.com>
5876
5877 * oacc-mem.c (goacc_map_var_existing): New function.
5878 (goacc_enter_datum): Use above function.
5879 (goacc_exit_datum_1): New function.
5880 (goacc_exit_datum): Use above function.
5881
5882 2020-07-09 Julian Brown <julian@codesourcery.com>
5883 Thomas Schwinge <thomas@codesourcery.com>
5884
5885 PR middle-end/95270
5886 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
5887 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
5888
5889 2020-07-09 Julian Brown <julian@codesourcery.com>
5890
5891 * oacc-mem.c (find_group_last): Group data-movement clauses
5892 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
5893 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
5894
5895 2020-07-09 Jakub Jelinek <jakub@redhat.com>
5896
5897 * testsuite/libgomp.c/loop-19.c: New test.
5898 * testsuite/libgomp.c/loop-20.c: New test.
5899
5900 2020-07-09 Jakub Jelinek <jakub@redhat.com>
5901
5902 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
5903 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
5904 it. Remove __omp_alloctrait_value_max__.
5905 * allocator.c (omp_init_allocator): Handle omp_atv_default for
5906 omp_atk_alignment and omp_atk_pool_size.
5907
5908 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
5909
5910 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
5911 behavior for 'GOMP_MAP_FORCE_FROM'.
5912 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
5913
5914 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
5915
5916 * oacc-mem.c (goacc_exit_data_internal): Remove
5917 'GOMP_MAP_ALWAYS_FROM' handling.
5918
5919 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
5920
5921 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
5922 'scan-assembler' with 'scan-offload-rtl'.
5923 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
5924 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
5925 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
5926 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
5927
5928 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
5929
5930 * target.c (gomp_map_vars_existing): Assert 'kind !=
5931 GOMP_MAP_ATTACH'.
5932 (gomp_map_vars_internal): Clean up.
5933
5934 2020-06-27 Jakub Jelinek <jakub@redhat.com>
5935
5936 * testsuite/libgomp.c/loop-17.c: New test.
5937 * testsuite/libgomp.c/loop-18.c: New test.
5938
5939 2020-06-26 Marek Polacek <polacek@redhat.com>
5940
5941 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
5942
5943 2020-06-23 Alexandre Oliva <oliva@adacore.com>
5944
5945 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
5946 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
5947
5948 2020-06-22 David Edelsohn <dje.gcc@gmail.com>
5949
5950 * Makefile.am: Use -include.
5951 * Makefile.in: Regenerate.
5952
5953 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
5954
5955 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
5956 * Makefile.in: Regenerate
5957 * configure.ac (tmake_file): Substitute.
5958 * configure: Regenerate.
5959 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
5960 * config/t-aix: New file.
5961
5962 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
5963
5964 PR lto/94848
5965 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
5966 'dg-do run'.
5967
5968 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
5969
5970 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
5971 variant for HSA_RUNTIME_LIB name.
5972 (find_executable_symbol_1): Delete.
5973 (find_executable_symbol): Delete.
5974 (init_kernel_properties): Add ".kd" suffix to symbol names.
5975 (find_load_offset): Delete.
5976 (create_and_finalize_hsa_program): Remove relocation handling.
5977
5978 2020-06-16 Tobias Burnus <tobias@codesourcery.com>
5979
5980 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
5981
5982 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
5983
5984 PR lto/94848
5985 PR middle-end/95551
5986 * testsuite/libgomp.fortran/target-var.f90: New test.
5987
5988 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
5989 Julian Brown <julian@codesourcery.com>
5990
5991 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
5992 special handling.
5993
5994 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
5995 Julian Brown <julian@codesourcery.com>
5996
5997 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
5998 Simplify.
5999
6000 2020-06-05 Julian Brown <julian@codesourcery.com>
6001
6002 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
6003 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
6004
6005 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6006
6007 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
6008 Evaluate 'copyfrom' individually for each entry.
6009 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
6010
6011 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6012
6013 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
6014 Evaluate 'finalize' individually for each entry.
6015 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
6016 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
6017 file.
6018
6019 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6020
6021 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
6022 usage.
6023 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
6024
6025 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6026 Julian Brown <julian@codesourcery.com>
6027
6028 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
6029 checking.
6030 (acc_unmap_data, goacc_exit_data_internal): Restore
6031 'is_tgt_unmapped' checking.
6032 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
6033 file.
6034 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
6035 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
6036 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6037 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6038 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6039 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
6040
6041 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6042 Julian Brown <julian@codesourcery.com>
6043
6044 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
6045
6046 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6047
6048 PR libgomp/92854
6049 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
6050
6051 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6052
6053 PR libgomp/92854
6054 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
6055 more.
6056
6057 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6058 Julian Brown <julian@codesourcery.com>
6059
6060 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
6061 'gomp_map_vars'.
6062 (acc_map_data): Clean up accordingly.
6063
6064 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6065
6066 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
6067 of over-eager 'finalize' clause.
6068 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
6069 file.
6070 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
6071 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
6072 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6073 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6074 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6075 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
6076 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
6077 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
6078
6079 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6080
6081 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
6082
6083 2020-06-04 Julian Brown <julian@codesourcery.com>
6084
6085 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
6086 error path.
6087 (goacc_detach_internal): Likewise.
6088
6089 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6090
6091 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
6092 the checkpoint.
6093 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
6094 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
6095 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
6096 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
6097 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
6098
6099 2020-06-02 Jakub Jelinek <jakub@redhat.com>
6100
6101 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
6102 defined.
6103
6104 2020-05-30 Jakub Jelinek <jakub@redhat.com>
6105
6106 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
6107
6108 2020-05-30 Jakub Jelinek <jakub@redhat.com>
6109
6110 * allocator.c (omp_alloc): For size == 0, return NULL early.
6111
6112 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
6113
6114 PR bootstrap/95413
6115 * configure: Regenerated.
6116
6117 2020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
6118
6119 PR libfortran/95191
6120 * testsuite/libgomp.fortran/async_io_9.f90: New test.
6121
6122 2020-05-19 Jakub Jelinek <jakub@redhat.com>
6123
6124 * omp.h.in (omp_uintptr_t): New typedef.
6125 (__GOMP_UINTPTR_T_ENUM): Define.
6126 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
6127 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
6128 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
6129 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
6130 omp_get_default_allocator, omp_alloc, omp_free): Declare.
6131 * libgomp.h (struct gomp_team_state): Add def_allocator field.
6132 (gomp_def_allocator): Declare.
6133 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
6134 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
6135 omp_alloc and omp_free.
6136 * team.c (gomp_team_start): Copy over ts.def_allocator.
6137 * env.c (gomp_def_allocator): New variable.
6138 (parse_wait_policy): Adjust function comment.
6139 (parse_allocator): New function.
6140 (handle_omp_display_env): Print OMP_ALLOCATOR.
6141 (initialize_env): Call parse_allocator.
6142 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
6143 * allocator.c: New file.
6144 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
6145 functions.
6146 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
6147 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
6148 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
6149 * Makefile.in: Regenerated.
6150
6151 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
6152
6153 PR bootstrap/95147
6154 * configure: Regenerated.
6155
6156 2020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
6157
6158 PR libfortran/95119
6159 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
6160
6161 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
6162
6163 * configure: Regenerated.
6164
6165 2020-05-14 Jakub Jelinek <jakub@redhat.com>
6166
6167 * testsuite/libgomp.c-c++-common/target-40.c: New test.
6168
6169 2020-05-13 Tobias Burnus <tobias@codesourcery.com>
6170
6171 PR fortran/94690
6172 * testsuite/libgomp.fortran/pr66199-3.f90: New.
6173 * testsuite/libgomp.fortran/pr66199-4.f90: New.
6174 * testsuite/libgomp.fortran/pr66199-5.f90: New.
6175 * testsuite/libgomp.fortran/pr66199-6.f90: New.
6176 * testsuite/libgomp.fortran/pr66199-7.f90: New.
6177 * testsuite/libgomp.fortran/pr66199-8.f90: New.
6178 * testsuite/libgomp.fortran/pr66199-9.f90: New.
6179
6180 2020-05-12 Jakub Jelinek <jakub@redhat.com>
6181
6182 * testsuite/libgomp.c/target-39.c: New test.
6183
6184 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
6185
6186 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
6187 * openacc.f90 (acc_device_current): Likewise.
6188 * openacc.h (acc_device_current): Likewise.
6189 * openacc_lib.h (acc_device_current): Likewise.
6190
6191 PR target/94282
6192 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
6193 'dg-allow-blank-lines-in-output'.
6194
6195 * oacc-init.c (get_openacc_name): Handle 'gcn'.
6196 * testsuite/lib/libgomp.exp
6197 (offload_target_to_openacc_device_type) [amdgcn*]: Return
6198 'radeon'. Adjust all users.
6199 (check_effective_target_openacc_amdgcn_accel_present): Rename
6200 to...
6201 (check_effective_target_openacc_radeon_accel_present): ... this.
6202 Adjust all users.
6203 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
6204 (check_effective_target_openacc_radeon_accel_selected): ... this.
6205 Adjust all users.
6206
6207 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
6208 'dg-do run'.
6209
6210 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
6211
6212 PR other/94629
6213
6214 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
6215 hsa_iterate_agents.
6216 (GOMP_OFFLOAD_init_device): Check return values from both calls to
6217 hsa_agent_iterate_regions.
6218
6219 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
6220
6221 PR middle-end/94635
6222 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
6223 run'.
6224
6225 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
6226
6227 PR middle-end/94120
6228 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
6229 test case.
6230
6231 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
6232
6233 PR middle-end/94635
6234 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
6235
6236 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
6237
6238 PR libgomp/92843
6239 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
6240 Rename to...
6241 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
6242 ... this.
6243 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
6244 Rename to...
6245 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
6246 ... this.
6247 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
6248 Rename to...
6249 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
6250 ... this.
6251 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
6252 Rename to...
6253 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
6254 ... this.
6255 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
6256 Rename to...
6257 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
6258 ... this.
6259 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
6260 Rename to...
6261 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
6262 ... this.
6263 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
6264 Rename to...
6265 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
6266 ... this.
6267 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
6268 Rename to...
6269 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
6270 ... this.
6271 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
6272 Rename to...
6273 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
6274 ... this.
6275 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
6276 Rename to...
6277 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
6278 ... this.
6279 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
6280 Rename to...
6281 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
6282 ... this.
6283 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
6284 Rename to...
6285 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
6286 ... this.
6287 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
6288 Rename to...
6289 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
6290 ... this.
6291 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
6292 Rename to...
6293 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
6294 ... this.
6295 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
6296 Rename to...
6297 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
6298 ... this.
6299 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
6300 Rename to...
6301 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
6302 ... this.
6303
6304 2020-04-10 Julian Brown <julian@codesourcery.com>
6305 Thomas Schwinge <thomas@codesourcery.com>
6306
6307 PR libgomp/92843
6308 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
6309 New file.
6310 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
6311 Likewise.
6312 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
6313 Likewise.
6314 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
6315 Likewise.
6316 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
6317 Likewise.
6318 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
6319 Likewise.
6320 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
6321 Likewise.
6322 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
6323 Likewise.
6324 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
6325 Likewise.
6326 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
6327 Likewise.
6328 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
6329 Likewise.
6330 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
6331 Likewise.
6332 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
6333 Likewise.
6334 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
6335 Likewise.
6336 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
6337 Likewise.
6338 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
6339 Likewise.
6340
6341 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
6342
6343 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
6344 run'.
6345
6346 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
6347
6348 PR middle-end/94120
6349 * libgomp.oacc-c++/declare-pr94120.C: New.
6350
6351 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
6352
6353 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
6354 files.
6355 * configure: Regenerate.
6356 * testsuite/libgomp-site-extra.exp.in: New file.
6357 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
6358 variable.
6359 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
6360 variable.
6361 * testsuite/Makefile.in: Regenerate.
6362
6363 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
6364
6365 PR tree-optimization/89713
6366 PR c/94392
6367 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
6368 'bar.sync'.
6369 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
6370
6371 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
6372
6373 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
6374 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
6375
6376 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
6377
6378 PR libgomp/81689
6379 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
6380
6381 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
6382
6383 PR libgomp/94251
6384 * target.c (gomp_load_image_to_device): Fix link
6385 variable handling.
6386
6387 2020-03-19 Jakub Jelinek <jakub@redhat.com>
6388
6389 PR c++/93931
6390 * testsuite/libgomp.c++/pr93931.C: New test.
6391
6392 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
6393
6394 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
6395 dg-allow-blank-lines-in-output.
6396
6397 2020-03-18 Julian Brown <julian@codesourcery.com>
6398 Tobias Burnus <tobias@codesourcery.com>
6399
6400 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
6401 it work concurrently.
6402
6403 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
6404
6405 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
6406 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
6407 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
6408
6409 2020-03-14 Jakub Jelinek <jakub@redhat.com>
6410
6411 PR middle-end/93566
6412 * testsuite/libgomp.c/pr93566.c: New test.
6413
6414 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
6415
6416 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
6417 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
6418 integer(acc_device_property) for the type of the return value of
6419 acc_get_property.
6420
6421 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
6422
6423 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
6424 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
6425 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
6426 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
6427 (acc_set_device_num): Fix Fortran argument name, use same name for C.
6428 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
6429 corrections; add note about the previous interface and named constant.
6430 (OpenACC library and environment variables): Fix two typos.
6431 * openacc.f90: Use for all procedures the argument names from the spec
6432 as for …_h they are user visible.
6433 (openacc_kinds): Rename acc_device_property to
6434 acc_device_property_kinds and change value to int32 ; and update users.
6435 Re-add acc_device_property for for backward compatibility.
6436 (acc_get_property_string_h): Clean up as acc_device_property_kind
6437 changed.
6438 (acc_get_property_h): Likewise and return c_size_t instead of
6439 acc_device_property.
6440 (openacc): Also export acc_device_property_kinds.
6441 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
6442 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
6443 handling; check against /= 0 instead of == 1 to match C.
6444 * openacc_lib.h: Use for all procedures the argument names from the spec
6445 as for …_h they are user visible. Place !GCC$ into the first column to
6446 be active also for fixed-form souce form.
6447 (acc_device_current, acc_device_property_kind, acc_device_property,
6448 acc_property_memory, acc_property_free_memory, acc_property_name,
6449 acc_property_vendor, acc_property_driver): New named constants.
6450 (acc_get_property, acc_get_property_string): New generic interface.
6451
6452 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
6453
6454 PR libgomp/93481
6455 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
6456 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
6457 optional.
6458 (gomp_target_task_fn): Assert "devicep->async_run_func".
6459 (clear_unsupported_flags): New function to remove unsupported flags
6460 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
6461 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
6462 * testsuite/libgomp.c/target-33.c:
6463 Remove xfail for offload_target_nvptx.
6464 * testsuite/libgomp.c/target-34.c: Likewise.
6465
6466 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
6467
6468 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
6469 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
6470 * testsuite/libgomp.c/target-34.c: Likewise.
6471 * testsuite/libgomp.c/target-link-1.c: Add xfail for
6472 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
6473
6474 2020-02-09 Jakub Jelinek <jakub@redhat.com>
6475
6476 * testsuite/libgomp.c/target-38.c: New test.
6477
6478 2020-02-06 Jakub Jelinek <jakub@redhat.com>
6479
6480 PR libgomp/93515
6481 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
6482
6483 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
6484
6485 * testsuite/lib/libgomp.exp
6486 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
6487 and not as 'source' argument to libgomp_target_compile.
6488
6489 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
6490
6491 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
6492 (gcn_gfx801_s): Remove.
6493 (isa_hsa_name): Remove gfx801.
6494 (isa_gcc_name): Remove gfx801/carizzo.
6495 (isa_code): Remove gfx801.
6496
6497 2020-02-03 Julian Brown <julian@codesourcery.com>
6498 Tobias Burnus <tobias@codesourcery.com>
6499
6500 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
6501 and *_finalize variants; document acc_attach and acc_detach; update
6502 references from OpenACC 2.0 to 2.6.
6503 * openacc.f90 (openacc_version): Update to 201711.
6504 * openacc_lib.h (openacc_version): Update to 201711.
6505 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
6506 openacc_version to 201711.
6507 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
6508
6509 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
6510
6511 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
6512 and vgpr_count fields.
6513 (struct kernel_info): Add a field for a hsa_kernel_description.
6514 (run_kernel): Reduce the number of threads/workers if the requested
6515 number would require too many VGPRs.
6516 (init_basic_kernel_info): Initialize description field with
6517 the hsa_kernel_description entry for the kernel.
6518
6519 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
6520
6521 PR bootstrap/93409
6522 * plugin/configfrag.ac (enable_offload_targets): Skip
6523 HSA and GCN plugin besides -m32 also for -mx32.
6524 * configure: Regenerate.
6525
6526 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
6527
6528 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
6529
6530 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
6531
6532 * plugin-gcn.c (struct agent_info): Add fields "name" and
6533 "vendor_name" ...
6534 (GOMP_OFFLOAD_init_device): ... and init from here.
6535 (struct hsa_context_info): Add field "driver_version_s" ...
6536 (init_hsa_contest): ... and init from here.
6537 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
6538 implementation.
6539 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
6540 Enable test execution for amdgcn and host offloading targets.
6541 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
6542 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
6543 (expect_device_properties): Split function into ...
6544 (expect_device_string_properties): ... this new function ...
6545 (expect_device_memory): ... and this new function.
6546 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
6547 Add test.
6548
6549 2020-01-28 Julian Brown <julian@codesourcery.com>
6550
6551 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
6552 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
6553 component/non-component variable refs in a single directive.
6554 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
6555
6556 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
6557
6558 * configure.ac: Handle `--with-toolexeclibdir='.
6559 * Makefile.in: Regenerate.
6560 * aclocal.m4: Regenerate.
6561 * configure: Regenerate.
6562 * testsuite/Makefile.in: Regenerate.
6563
6564 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
6565
6566 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
6567 (expect_device_properties): Remove "expected_free_mem" argument,
6568 change "expected_total_mem" argument type to size_t;
6569 change types of acc_get_property results to size_t,
6570 adapt format strings.
6571 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
6572 Use %zu instead of %zd to print size_t values.
6573 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
6574 rename to ...
6575 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
6576 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
6577 rename to ...
6578 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
6579
6580 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
6581
6582 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
6583 the device id.
6584
6585 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
6586
6587 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
6588 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
6589 Adjust test dimensions for amdgcn.
6590 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
6591 gang/worker/vector expectations dynamically.
6592 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
6593 (main): Likewise.
6594 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
6595 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
6596 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
6597 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
6598 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
6599 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
6600 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
6601 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
6602 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
6603 (acc_gang): Recognise acc_device_radeon.
6604 (acc_worker): Likewise.
6605 (acc_vector): Likewise.
6606 (main): Set expectations for amdgcn.
6607 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
6608 (main): Adjust gang/worker/vector expectations dynamically.
6609 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
6610 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
6611 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
6612 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
6613 for amdgcn.
6614
6615 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
6616
6617 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
6618 acc_device_radeon.
6619 (openacc): Likewise.
6620 * openacc.f90 (openacc_kinds): Likewise.
6621 (openacc): Likewise.
6622 * openacc.h (acc_device_t): Likewise.
6623 * openacc_lib.h: Likewise.
6624 * testsuite/lib/libgomp.exp
6625 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
6626 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
6627 (cb_compute_construct_end): Likewise.
6628 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
6629 (cb_enqueue_launch_start): Likewise.
6630 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
6631 (cb_enter_data_end): Likewise.
6632 (cb_exit_data_start): Likewise.
6633 (cb_exit_data_end): Likewise.
6634 (cb_compute_construct_end): Likewise.
6635 (cb_enqueue_launch_start): Likewise.
6636 (cb_enqueue_launch_end): Likewise.
6637 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
6638 (main): Likewise.
6639
6640 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
6641
6642 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
6643 to use this instead of 'enum gomp_device_property'.
6644 (GOMP_OFFLOAD_get_property): Rename to...
6645 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
6646 * libgomp.h (struct gomp_device_descr): Move
6647 'GOMP_OFFLOAD_openacc_get_property'...
6648 (struct acc_dispatch_t): ... here. Adjust all users.
6649 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
6650
6651 * target.c (gomp_map_vars_internal)
6652 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
6653 paths.
6654
6655 2020-01-10 Jakub Jelinek <jakub@redhat.com>
6656
6657 PR libgomp/93219
6658 * libgomp.h (gomp_print_string): Change return type from void to int.
6659 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
6660 not all characters have been written.
6661
6662 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
6663
6664 * libgomp.texi: Fix typos, use https.
6665
6666 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
6667
6668 * testsuite/libgomp.fortran/optional-map.f90: Add test for
6669 unallocated/disassociated actual arguments to nonallocatable/nonpointer
6670 dummy arguments; those are/shall be regarded as absent arguments.
6671 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
6672 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
6673
6674 2020-01-01 Jakub Jelinek <jakub@redhat.com>
6675
6676 Update copyright years.
6677
6678 * libgomp.texi: Bump @copying's copyright year.
6679
6680 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
6681
6682 PR libgomp/93065
6683 * oacc-init.c (goacc_runtime_deinitialize): New function.
6684
6685 2019-12-28 Jakub Jelinek <jakub@redhat.com>
6686
6687 PR bootstrap/93074
6688 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
6689 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
6690
6691 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
6692 Frederik Harwath <frederik@codesourcery.com>
6693 Thomas Schwinge <tschwinge@codesourcery.com>
6694
6695 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
6696 * libgomp-plugin.h (gomp_device_property_value): New union.
6697 (gomp_device_property_value): New prototype.
6698 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
6699 constant.
6700 (acc_device_property_t): New enum.
6701 (acc_get_property, acc_get_property_string): New prototypes.
6702 * oacc-init.c (acc_get_device_type): Also assert that result
6703 is not `acc_device_current'.
6704 (get_property_any, acc_get_property, acc_get_property_string):
6705 New functions.
6706 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
6707 `acc_property_memory', `acc_property_free_memory',
6708 `acc_property_name', `acc_property_vendor' and
6709 `acc_property_driver' constants. Add `acc_device_property' data
6710 type.
6711 (openacc_internal): Add `acc_get_property' and
6712 `acc_get_property_string' interfaces. Add `acc_get_property_h',
6713 `acc_get_property_string_h', `acc_get_property_l' and
6714 `acc_get_property_string_l'.
6715 * oacc-host.c (host_get_property): New function.
6716 (host_dispatch): Wire it.
6717 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
6718 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
6719 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
6720 * libgomp.texi (OpenACC Runtime Library Routines): Add
6721 `acc_get_property'.
6722 (acc_get_property): New node.
6723 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
6724 function (stub).
6725 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
6726 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
6727 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
6728 calls.
6729 (GOMP_OFFLOAD_get_property): New function.
6730 (struct ptx_device): Add new field "name".
6731 (cuda_driver_version_s): Add new static variable ...
6732 (nvptx_init): ... and init from here.
6733
6734 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
6735 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
6736 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
6737 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
6738 with test helper functions.
6739
6740 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
6741
6742 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
6743
6744 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
6745 variable.
6746
6747 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
6748
6749 * target.c (gomp_map_vars_internal): Restore 'omp declare target
6750 link' handling.
6751
6752 2019-12-19 Julian Brown <julian@codesourcery.com>
6753
6754 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
6755 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
6756 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
6757
6758 2019-12-19 Julian Brown <julian@codesourcery.com>
6759 Cesar Philippidis <cesar@codesourcery.com>
6760
6761 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
6762 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
6763 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
6764 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
6765 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
6766 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
6767 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
6768 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
6769 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
6770 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
6771 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
6772 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
6773 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
6774
6775 2019-12-19 Julian Brown <julian@codesourcery.com>
6776
6777 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
6778 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
6779 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
6780 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
6781 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
6782 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
6783 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
6784 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
6785 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
6786 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
6787 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
6788 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
6789
6790 2019-12-19 Julian Brown <julian@codesourcery.com>
6791
6792 * libgomp.h (struct target_var_desc): Add do_detach flag.
6793 * oacc-init.c (acc_shutdown_1): Free aux block if present.
6794 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
6795 struct components. Tidy up and add some new checks.
6796 (goacc_enter_data_internal): Update call to find_group_last.
6797 (goacc_exit_data_internal): Support detach operations and
6798 GOMP_MAP_STRUCT.
6799 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
6800 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
6801 attach/detach in enter/exit data detection code.
6802 * target.c (gomp_map_vars_existing): Initialise do_detach field of
6803 tgt_var_desc.
6804 (gomp_map_vars_internal): Support attach.
6805 (gomp_unmap_vars_internal): Support detach.
6806
6807 2019-12-19 Julian Brown <julian@codesourcery.com>
6808 Thomas Schwinge <thomas@codesourcery.com>
6809
6810 * libgomp.h (struct splay_tree_aux): Add attach_count field.
6811 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
6812 * libgomp.map (OACC_2.6): New section. Add acc_attach,
6813 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
6814 acc_detach_finalize_async.
6815 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
6816 acc_detach, acc_detach_async, acc_detach_finalize,
6817 acc_detach_finalize_async): New functions.
6818 * openacc.h (acc_attach, acc_attach_async, acc_detach,
6819 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
6820 prototypes.
6821 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
6822 (gomp_remove_var_internal): Free attachment counts if present.
6823 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
6824 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
6825
6826 2019-12-19 Julian Brown <julian@codesourcery.com>
6827 Cesar Philippidis <cesar@codesourcery.com>
6828
6829 * libgomp.h (gomp_map_val): Add prototype.
6830 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
6831 open-coding device-address calculation.
6832 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
6833 non-present case.
6834
6835 2019-12-19 Julian Brown <julian@codesourcery.com>
6836
6837 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
6838 field for virtual_refcount.
6839 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
6840 (gomp_free_memmap): Remove prototype.
6841 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
6842 instead of calling gomp_free_memmap.
6843 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
6844 dynamic_refcount.
6845 (acc_unmap_data): Open code instead of forcing target_mem_desc's
6846 to_free field to NULL then calling gomp_unmap_vars. Handle
6847 REFCOUNT_INFINITY on target blocks.
6848 (goacc_enter_data): Rename to...
6849 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
6850 handling for mapping groups. Use virtual_refcount instead of
6851 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
6852 map_map_vars_async call. Re-do lookup for target pointer return value.
6853 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
6854 renamed goacc_enter_datum function.
6855 (goacc_exit_data): Rename to...
6856 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
6857 (acc_delete, acc_delete_async, acc_delete_finalize,
6858 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
6859 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
6860 goacc_exit_datum function.
6861 (gomp_acc_remove_pointer, find_pointer): Remove functions.
6862 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
6863 New functions.
6864 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
6865 goacc_exit_data_internal helper functions.
6866 * target.c (gomp_map_vars_internal): Handle
6867 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
6868 semantics.
6869 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
6870 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
6871 virtual_refcount field instead of dynamic_refcount.
6872 (gomp_free_memmap): Remove function.
6873 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
6874 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
6875 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
6876
6877 2019-12-19 Julian Brown <julian@codesourcery.com>
6878 Thomas Schwinge <thomas@codesourcery.com>
6879
6880 * libgomp.h (struct splay_tree_aux): New.
6881 (struct splay_tree_key_s): Replace link_key field with aux pointer.
6882 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
6883 to aux struct.
6884 (gomp_remove_var_internal): Free aux block if present.
6885 (gomp_load_image_to_device): Zero-initialise aux field instead of
6886 link_key field.
6887 (omp_target_associate_pointer): Zero-initialise aux field.
6888
6889 2019-12-18 Jakub Jelinek <jakub@redhat.com>
6890
6891 PR middle-end/86416
6892 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
6893 q or none.
6894 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
6895 L or none.
6896
6897 2019-12-19 Julian Brown <julian@codesourcery.com>
6898 Maciej W. Rozycki <macro@codesourcery.com>
6899 Tobias Burnus <tobias@codesourcery.com>
6900 Thomas Schwinge <thomas@codesourcery.com>
6901
6902 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
6903 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
6904 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
6905 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
6906 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
6907 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
6908 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
6909 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
6910 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
6911
6912 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
6913
6914 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
6915 called...
6916 (goacc_insert_pointer): ... from here, "present" case.
6917 (goacc_insert_pointer): Inline function into...
6918 (GOACC_enter_exit_data): ... here, and simplify.
6919
6920 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
6921 called...
6922 (goacc_insert_pointer): ... from here, "not present" case.
6923
6924 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
6925 all users.
6926
6927 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
6928 'goacc_enter_data', 'goacc_exit_data'.
6929
6930 * oacc-mem.c (delete_copyout): Refactor into...
6931 (goacc_exit_data): ... this. Adjust all users.
6932
6933 * oacc-mem.c (present_create_copy): Refactor into...
6934 (goacc_enter_data): ... this. Adjust all users.
6935
6936 * target.c (gomp_unmap_vars_internal): Add a safeguard to
6937 'gomp_remove_var'.
6938
6939 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
6940 like 'GOMP_MAP_FROM'.
6941
6942 PR libgomp/92726
6943 PR libgomp/92970
6944 PR libgomp/92984
6945 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
6946 fails.
6947 (GOACC_enter_exit_data): Simplify accordingly.
6948 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
6949 subsuming...
6950 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
6951 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
6952 file.
6953 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
6954 subsuming...
6955 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
6956 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
6957 file.
6958 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
6959 subsuming...
6960 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
6961
6962 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
6963 'finalize' handling.
6964
6965 PR libgomp/92848
6966 * oacc-mem.c (acc_map_data, present_create_copy)
6967 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
6968 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
6969 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
6970 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
6971 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
6972 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
6973 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
6974 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
6975 Remove "XFAIL"s.
6976
6977 * target.c (gomp_unmap_tgt): Make it 'static'.
6978 * libgomp.h (gomp_unmap_tgt): Remove.
6979
6980 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
6981
6982 PR middle-end/86416
6983 * testsuite/libgomp.c/pr86416-1.c: New.
6984 * testsuite/libgomp.c/pr86416-2.c: New.
6985
6986 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
6987
6988 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
6989 all symbols as public except for the 'use …, only' imported symbol,
6990 which is private.
6991 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
6992 all symbols from module openacc_kinds as PUBLIC
6993 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
6994 fix comment typo.
6995 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
6996
6997 2019-12-13 Julian Brown <julian@codesourcery.com>
6998
6999 PR libgomp/92881
7000
7001 * libgomp.h (gomp_remove_var_async): Add prototype.
7002 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
7003 gomp_remove_var.
7004 * target.c (gomp_unref_tgt): Change return type to bool, indicating
7005 whether target_mem_desc was unmapped.
7006 (gomp_unref_tgt_void): New.
7007 (gomp_remove_var): Reimplement in terms of...
7008 (gomp_remove_var_internal): ...this new helper function.
7009 (gomp_remove_var_async): New, implemented using above helper function.
7010 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
7011 gomp_unref_tgt.
7012
7013 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
7014
7015 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
7016 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
7017 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
7018 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
7019 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
7020 Likewise.
7021 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
7022 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
7023
7024 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
7025
7026 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
7027 as public except for the 'use …, only' imported symbol, which is
7028 private.
7029 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
7030 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
7031 attributes for acc_copyout_finalize and acc_delete_finalize.
7032
7033 2019-12-11 Jakub Jelinek <jakub@redhat.com>
7034
7035 PR fortran/92899
7036 * testsuite/libgomp.fortran/atomic1.f90: New test.
7037
7038 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
7039
7040 PR libgomp/92843
7041 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
7042 reference counting for structured 'REFCOUNT_INFINITY'. Add some
7043 assertions.
7044 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
7045 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
7046 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
7047 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
7048 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
7049
7050 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
7051 * oacc-mem.c: ... here.
7052 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
7053 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
7054 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
7055 Remove.
7056 * libgomp_g.h: Update.
7057
7058 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
7059 * oacc-async.c: ... here.
7060 * oacc-int.h (goacc_wait): Declare.
7061 * libgomp_g.h: Update
7062
7063 PR libgomp/92854
7064 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
7065 New file.
7066 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
7067 Likewise.
7068 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
7069 Likewise.
7070 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
7071 Likewise.
7072 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
7073 Likewise.
7074 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
7075 Likewise.
7076
7077 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
7078 Julian Brown <julian@codesourcery.com>
7079
7080 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
7081 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
7082
7083 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
7084
7085 * omp_lib.h.in: Fix spelling of function declaration
7086 omp_get_cancell(l)ation.
7087 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
7088 Fix typos.
7089 * env.c: Fix comment typos.
7090 * oacc-host.c: Likewise.
7091 * ordered.c: Likewise.
7092 * task.c: Likewise.
7093 * team.c: Likewise.
7094 * config/gcn/task.c: Likewise.
7095 * config/gcn/team.c: Likewise.
7096 * config/nvptx/task.c: Likewise.
7097 * config/nvptx/team.c: Likewise.
7098 * plugin/plugin-gcn.c: Likewise.
7099 * testsuite/libgomp.fortran/jacobi.f: Likewise.
7100 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
7101 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
7102
7103 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
7104
7105 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
7106 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
7107 unnecessary 'dg-additional-options "-w"'.
7108
7109 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
7110 Julian Brown <julian@codesourcery.com>
7111
7112 PR libgomp/92116
7113 PR libgomp/92877
7114
7115 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
7116 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
7117 Adjust all users.
7118 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
7119 Remove XFAIL.
7120 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
7121 Likewise.
7122 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
7123
7124 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
7125
7126 PR libgomp/92503
7127 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
7128 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
7129 file.
7130 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
7131 Likewise.
7132 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
7133 Likewise.
7134 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
7135 Likewise.
7136 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
7137 Likewise.
7138 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
7139 Likewise.
7140 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
7141 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
7142 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
7143 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
7144 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
7145 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
7146 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
7147 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7148 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
7149 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
7150
7151 PR libgomp/92840
7152 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
7153 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
7154 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
7155 New file.
7156 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
7157 Likewise.
7158 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
7159 Likewise.
7160 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
7161 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
7162
7163 PR libgomp/92511
7164 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
7165 this file...
7166 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
7167 this file...
7168 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
7169 file...
7170 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
7171 file...
7172 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
7173 ... with their content moved into, and extended in this new file.
7174 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
7175 New file.
7176 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
7177 Likewise.
7178 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
7179 Likewise.
7180 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
7181 Likewise.
7182
7183 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
7184
7185 PR libgomp/92854
7186 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
7187
7188 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
7189
7190 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
7191
7192 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
7193
7194 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
7195 unique.
7196 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
7197 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
7198 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
7199 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
7200 Ditto.
7201 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
7202 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
7203
7204 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
7205
7206 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
7207
7208 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
7209 Kwok Cheung Yeung <kcy@codesourcery.com>
7210
7211 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
7212 if input it a NULL pointer.
7213 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
7214 diagnostic of NULL pointer.
7215 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
7216 * testsuite/libgomp.fortran/optional-map.f90: New.
7217 * testsuite/libgomp.fortran/use_device_addr-1.f90
7218 (test_dummy_opt_callee_1_absent): New.
7219 (test_dummy_opt_call_1): Call it.
7220 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
7221 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
7222 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
7223 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
7224 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
7225 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
7226 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
7227 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
7228 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
7229 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
7230 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
7231 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
7232 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
7233 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
7234 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
7235 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
7236
7237 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
7238
7239 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
7240 expect dg-output of 'Error termination.' for GCN.
7241 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
7242 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
7243
7244 2019-12-04 Jakub Jelinek <jakub@redhat.com>
7245
7246 PR fortran/92756
7247 * testsuite/libgomp.fortran/teams1.f90: New test.
7248 * testsuite/libgomp.fortran/teams2.f90: New test.
7249
7250 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
7251
7252 * oacc-init.c (acc_known_device_type): Add function.
7253 (unknown_device_type_error): Add function.
7254 (name_of_acc_device_t): Change to call unknown_device_type_error
7255 on unknown type.
7256 (resolve_device): Use acc_known_device_type.
7257 (acc_init): Fail if acc_device_t argument is not valid.
7258 (acc_shutdown): Likewise.
7259 (acc_get_num_devices): Likewise.
7260 (acc_set_device_type): Likewise.
7261 (acc_get_device_num): Likewise.
7262 (acc_set_device_num): Likewise.
7263 (acc_on_device): Add comment that argument validity is not checked.
7264
7265 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
7266
7267 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
7268 Recognize amdgcn.
7269 (check_effective_target_openacc_amdgcn_accel_present): New proc.
7270 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
7271 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
7272 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7273 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7274
7275 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
7276
7277 PR libgomp/91938
7278 * configure.tgt: Avoid IE tls on *-*-musl*.
7279
7280 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
7281
7282 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
7283 adding a common-block test case.
7284
7285 2019-11-29 Jakub Jelinek <jakub@redhat.com>
7286
7287 PR c++/60228
7288 * testsuite/libgomp.c++/udr-20.C: New test.
7289 * testsuite/libgomp.c++/udr-21.C: New test.
7290
7291 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
7292
7293 * testsuite/lib/libgomp.exp
7294 (check_effective_target_offload_target_nvptx): New proc.
7295 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
7296 'dg-skip-if'.
7297 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
7298 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
7299 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
7300
7301 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7302
7303 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
7304 * testsuite/libgomp.c/pr39591-2.c: Likewise.
7305 * testsuite/libgomp.c/pr39591-3.c: Likewise.
7306 * testsuite/libgomp.c/private-1.c: Likewise.
7307 * testsuite/libgomp.c/task-1.c: Likewise.
7308 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
7309
7310 2019-11-20 Julian Brown <julian@codesourcery.com>
7311
7312 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
7313 aq->mutex here.
7314 (queue_push_launch): Lock aq->mutex before calling
7315 wait_for_queue_nonfull.
7316 (queue_push_callback): Likewise.
7317 (queue_push_asyncwait): Likewise.
7318 (queue_push_placeholder): Likewise.
7319
7320 2019-11-20 Julian Brown <julian@codesourcery.com>
7321
7322 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
7323 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
7324 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
7325 return code.
7326
7327 2019-11-20 Julian Brown <julian@codesourcery.com>
7328
7329 PR libgomp/92511
7330
7331 * oacc-mem.c (present_create_copy): Fix device pointer return value in
7332 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
7333 in non-present/create case.
7334 (delete_copyout): Change error condition to fail only on copies outside
7335 of mapped block. Adjust error message accordingly.
7336 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
7337 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
7338 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
7339 message.
7340 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7341 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
7342 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7343
7344 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
7345
7346 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
7347 libatomic in build-tree testing.
7348
7349 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
7350
7351 * testsuite/Makefile.in: Regenerate.
7352
7353 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
7354
7355 * testsuite/libgomp.c/target-print-1.c: New file.
7356 * testsuite/libgomp.fortran/target-print-1.f90: New file.
7357 * testsuite/libgomp.oacc-c/print-1.c: New file.
7358 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
7359
7360 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
7361 Kwok Cheung Yeung <kcy@codesourcery.com>
7362 Julian Brown <julian@codesourcery.com>
7363 Tom de Vries <tom@codesourcery.com>
7364
7365 * plugin/Makefrag.am: Add amdgcn plugin support.
7366 * plugin/configfrag.ac: Likewise.
7367 * plugin/plugin-gcn.c: New file.
7368 * configure: Regenerate.
7369 * Makefile.in: Regenerate.
7370 * testsuite/Makefile.in: Regenerate.
7371
7372 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
7373
7374 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
7375 and use team_malloc variants.
7376 (gomp_gcn_exit_kernel): Use team_free.
7377 * libgomp.h (TEAM_ARENA_SIZE): Define.
7378 (TEAM_ARENA_START): Define.
7379 (TEAM_ARENA_FREE): Define.
7380 (TEAM_ARENA_END): Define.
7381 (team_malloc): New function.
7382 (team_malloc_cleared): New function.
7383 (team_free): New function.
7384 * team.c (gomp_new_team): Initialize and use team_malloc.
7385 (free_team): Use team_free.
7386 (gomp_free_thread): Use team_free.
7387 (gomp_pause_host): Use team_free.
7388 * work.c (gomp_init_work_share): Use team_malloc.
7389 (gomp_fini_work_share): Use team_free.
7390
7391 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
7392 Kwok Cheung Yeung <kcy@codesourcery.com>
7393 Julian Brown <julian@codesourcery.com>
7394 Tom de Vries <tom@codesourcery.com>
7395
7396 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
7397 * Makefile.in: Regenerate.
7398 * config.h.in (PLUGIN_GCN): Add new undef.
7399 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
7400 * config/gcn/affinity-fmt.c: New file.
7401 * config/gcn/bar.c: New file.
7402 * config/gcn/bar.h: New file.
7403 * config/gcn/doacross.h: New file.
7404 * config/gcn/icv-device.c: New file.
7405 * config/gcn/oacc-target.c: New file.
7406 * config/gcn/simple-bar.h: New file.
7407 * config/gcn/target.c: New file.
7408 * config/gcn/task.c: New file.
7409 * config/gcn/team.c: New file.
7410 * config/gcn/time.c: New file.
7411 * configure.ac: Add amdgcn*-*-*.
7412 * configure: Regenerate.
7413 * configure.tgt: Add amdgcn*-*-*.
7414 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
7415 * libgomp.h (gcn_thrs): Add amdgcn variant.
7416 (set_gcn_thrs): Likewise.
7417 (gomp_thread): Likewise.
7418 * oacc-int.h (goacc_thread): Likewise.
7419 * oacc-target.c: New file.
7420 * openacc.f90 (acc_device_gcn): New parameter.
7421 * openacc.h (acc_device_t): Add acc_device_gcn.
7422 * team.c (gomp_free_pool_helper): Add amdgcn support.
7423
7424 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
7425 Julian Brown <julian@codesourcery.com>
7426
7427 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
7428 parameter.
7429 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
7430 queue constructor.
7431 * oacc-host.c (host_openacc_async_construct): Add device parameter.
7432 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
7433 device parameter.
7434
7435 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
7436
7437 * configure.tgt (nvptx*-*-*): Add "accel" directory.
7438 * config/nvptx/libgomp-plugin.c: Move ...
7439 * config/accel/libgomp-plugin.c: ... to here.
7440 * config/nvptx/lock.c: Move ...
7441 * config/accel/lock.c: ... to here.
7442 * config/nvptx/mutex.c: Move ...
7443 * config/accel/mutex.c: ... to here.
7444 * config/nvptx/mutex.h: Move ...
7445 * config/accel/mutex.h: ... to here.
7446 * config/nvptx/oacc-async.c: Move ...
7447 * config/accel/oacc-async.c: ... to here.
7448 * config/nvptx/oacc-cuda.c: Move ...
7449 * config/accel/oacc-cuda.c: ... to here.
7450 * config/nvptx/oacc-host.c: Move ...
7451 * config/accel/oacc-host.c: ... to here.
7452 * config/nvptx/oacc-init.c: Move ...
7453 * config/accel/oacc-init.c: ... to here.
7454 * config/nvptx/oacc-mem.c: Move ...
7455 * config/accel/oacc-mem.c: ... to here.
7456 * config/nvptx/oacc-plugin.c: Move ...
7457 * config/accel/oacc-plugin.c: ... to here.
7458 * config/nvptx/omp-lock.h: Move ...
7459 * config/accel/omp-lock.h: ... to here.
7460 * config/nvptx/openacc.f90: Move ...
7461 * config/accel/openacc.f90: ... to here.
7462 * config/nvptx/pool.h: Move ...
7463 * config/accel/pool.h: ... to here.
7464 * config/nvptx/proc.c: Move ...
7465 * config/accel/proc.c: ... to here.
7466 * config/nvptx/ptrlock.c: Move ...
7467 * config/accel/ptrlock.c: ... to here.
7468 * config/nvptx/ptrlock.h: Move ...
7469 * config/accel/ptrlock.h: ... to here.
7470 * config/nvptx/sem.c: Move ...
7471 * config/accel/sem.c: ... to here.
7472 * config/nvptx/sem.h: Move ...
7473 * config/accel/sem.h: ... to here.
7474 * config/nvptx/thread-stacksize.h: Move ...
7475 * config/accel/thread-stacksize.h: ... to here.
7476
7477 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
7478 Tobias Burnus <tobias@codesourcery.com>
7479 Frederik Harwath <frederik@codesourcery.com>
7480 Thomas Schwinge <thomas@codesourcery.com>
7481
7482 libgomp/
7483 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
7484 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
7485 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
7486
7487 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
7488 Kwok Cheung Yeung <kcy@codesourcery.com>
7489
7490 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
7491 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
7492
7493 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
7494
7495 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
7496
7497 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
7498 run'.
7499 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
7500 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
7501
7502 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
7503
7504 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
7505 Add expected warnings about missing reduction clauses.
7506 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
7507 Likewise.
7508 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
7509 Likewise.
7510 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
7511 Likewise.
7512
7513 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
7514
7515 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
7516 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
7517 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
7518 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
7519 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
7520 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
7521
7522 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
7523
7524 PR fortran/92305
7525 * testsuite/libgomp.fortran/allocatable2.f90: Use
7526 unique numbers with 'stop'.
7527 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
7528 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
7529 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
7530 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
7531 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
7532
7533 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
7534
7535 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
7536 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
7537 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
7538 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
7539 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
7540 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
7541
7542 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
7543
7544 * testsuite/libgomp.fortran/target9.f90: New.
7545
7546 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
7547
7548 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
7549 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
7550 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
7551 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
7552 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
7553 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
7554 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
7555 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
7556 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
7557 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
7558 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
7559 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
7560 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
7561 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
7562 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
7563 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
7564 * testsuite/libgomp.fortran/associate1.f90: Ditto.
7565 * testsuite/libgomp.fortran/associate2.f90: Ditto.
7566 * testsuite/libgomp.fortran/associate3.f90: Ditto.
7567 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
7568 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
7569 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
7570 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
7571 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
7572 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
7573 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
7574 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
7575 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
7576 * testsuite/libgomp.fortran/character1.f90: Ditto.
7577 * testsuite/libgomp.fortran/character2.f90: Ditto.
7578 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
7579 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
7580 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
7581 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
7582 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
7583 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
7584 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
7585 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
7586 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
7587 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
7588 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
7589 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
7590 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
7591 * testsuite/libgomp.fortran/do1.f90: Ditto.
7592 * testsuite/libgomp.fortran/do2.f90: Ditto.
7593 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
7594 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
7595 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
7596 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
7597 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
7598 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
7599 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
7600 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
7601 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
7602 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
7603 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
7604 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
7605 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
7606 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
7607 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
7608 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
7609 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
7610 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
7611 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
7612 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
7613 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
7614 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
7615 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
7616 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
7617 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
7618 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
7619 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
7620 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
7621 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
7622 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
7623 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
7624 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
7625 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
7626 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
7627 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
7628 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
7629 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
7630 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
7631 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
7632 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
7633 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
7634 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
7635 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
7636 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
7637 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
7638 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
7639 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
7640 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
7641 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
7642 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
7643 * testsuite/libgomp.fortran/lib1.f90: Ditto.
7644 * testsuite/libgomp.fortran/lib4.f90: Ditto.
7645 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
7646 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
7647 * testsuite/libgomp.fortran/nested1.f90: Ditto.
7648 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
7649 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
7650 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
7651 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
7652 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
7653 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
7654 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
7655 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
7656 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
7657 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
7658 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
7659 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
7660 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
7661 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
7662 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
7663 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
7664 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
7665 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
7666 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
7667 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
7668 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
7669 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
7670 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
7671 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
7672 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
7673 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
7674 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
7675 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
7676 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
7677 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
7678 * testsuite/libgomp.fortran/pr28390.f: Ditto.
7679 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
7680 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
7681 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
7682 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
7683 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
7684 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
7685 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
7686 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
7687 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
7688 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
7689 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
7690 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
7691 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
7692 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
7693 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
7694 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
7695 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
7696 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
7697 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
7698 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
7699 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
7700 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
7701 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
7702 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
7703 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
7704 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
7705 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
7706 * testsuite/libgomp.fortran/reference1.f90: Ditto.
7707 * testsuite/libgomp.fortran/reference2.f90: Ditto.
7708 * testsuite/libgomp.fortran/retval1.f90: Ditto.
7709 * testsuite/libgomp.fortran/retval2.f90: Ditto.
7710 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
7711 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
7712 * testsuite/libgomp.fortran/simd1.f90: Ditto.
7713 * testsuite/libgomp.fortran/simd2.f90: Ditto.
7714 * testsuite/libgomp.fortran/simd3.f90: Ditto.
7715 * testsuite/libgomp.fortran/simd4.f90: Ditto.
7716 * testsuite/libgomp.fortran/simd5.f90: Ditto.
7717 * testsuite/libgomp.fortran/simd6.f90: Ditto.
7718 * testsuite/libgomp.fortran/simd7.f90: Ditto.
7719 * testsuite/libgomp.fortran/stack.f90: Ditto.
7720 * testsuite/libgomp.fortran/strassen.f90: Ditto.
7721 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
7722 * testsuite/libgomp.fortran/tabs2.f: Ditto.
7723 * testsuite/libgomp.fortran/target1.f90: Ditto.
7724 * testsuite/libgomp.fortran/target2.f90: Ditto.
7725 * testsuite/libgomp.fortran/target3.f90: Ditto.
7726 * testsuite/libgomp.fortran/target4.f90: Ditto.
7727 * testsuite/libgomp.fortran/target5.f90: Ditto.
7728 * testsuite/libgomp.fortran/target6.f90: Ditto.
7729 * testsuite/libgomp.fortran/target7.f90: Ditto.
7730 * testsuite/libgomp.fortran/target8.f90: Ditto.
7731 * testsuite/libgomp.fortran/task1.f90: Ditto.
7732 * testsuite/libgomp.fortran/task2.f90: Ditto.
7733 * testsuite/libgomp.fortran/task3.f90: Ditto.
7734 * testsuite/libgomp.fortran/task4.f90: Ditto.
7735 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
7736 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
7737 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
7738 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
7739 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
7740 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
7741 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
7742 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
7743 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
7744 * testsuite/libgomp.fortran/udr1.f90: Ditto.
7745 * testsuite/libgomp.fortran/udr10.f90: Ditto.
7746 * testsuite/libgomp.fortran/udr11.f90: Ditto.
7747 * testsuite/libgomp.fortran/udr12.f90: Ditto.
7748 * testsuite/libgomp.fortran/udr13.f90: Ditto.
7749 * testsuite/libgomp.fortran/udr14.f90: Ditto.
7750 * testsuite/libgomp.fortran/udr15.f90: Ditto.
7751 * testsuite/libgomp.fortran/udr2.f90: Ditto.
7752 * testsuite/libgomp.fortran/udr3.f90: Ditto.
7753 * testsuite/libgomp.fortran/udr4.f90: Ditto.
7754 * testsuite/libgomp.fortran/udr5.f90: Ditto.
7755 * testsuite/libgomp.fortran/udr6.f90: Ditto.
7756 * testsuite/libgomp.fortran/udr7.f90: Ditto.
7757 * testsuite/libgomp.fortran/udr8.f90: Ditto.
7758 * testsuite/libgomp.fortran/udr9.f90: Ditto.
7759 * testsuite/libgomp.fortran/vla1.f90: Ditto.
7760 * testsuite/libgomp.fortran/vla2.f90: Ditto.
7761 * testsuite/libgomp.fortran/vla3.f90: Ditto.
7762 * testsuite/libgomp.fortran/vla4.f90: Ditto.
7763 * testsuite/libgomp.fortran/vla5.f90: Ditto.
7764 * testsuite/libgomp.fortran/vla6.f90: Ditto.
7765 * testsuite/libgomp.fortran/vla7.f90: Ditto.
7766 * testsuite/libgomp.fortran/vla8.f90: Ditto.
7767 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
7768 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
7769
7770 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
7771
7772 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
7773 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
7774 Ditto; add 'dg-do run' for torture testing.
7775 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
7776 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
7777 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
7778 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
7779 * testsuite/libgomp.fortran/pr28390.f: Ditto.
7780 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
7781 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
7782 * testsuite/libgomp.fortran/task2.f90: Ditto.
7783 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
7784 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
7785 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
7786 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
7787 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
7788 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
7789
7790 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
7791
7792 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
7793 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
7794 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
7795 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
7796 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
7797 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
7798 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
7799 Use 'stop' not abort().
7800 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
7801 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
7802 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
7803 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
7804 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
7805 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
7806 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
7807 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
7808 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
7809 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
7810 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
7811 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
7812 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
7813 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
7814 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
7815 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
7816 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
7817 Ditto.
7818 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
7819 Ditto.
7820 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
7821 Ditto.
7822 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
7823 Ditto.
7824 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
7825 Ditto.
7826 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
7827 Ditto.
7828 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
7829 Ditto.
7830 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
7831 Ditto.
7832 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
7833 Ditto.
7834 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
7835 Ditto.
7836 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
7837 Ditto.
7838 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
7839 Ditto.
7840 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
7841 Ditto.
7842 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
7843 Ditto.
7844 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
7845 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
7846 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
7847 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
7848 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
7849 Likewise and also add 'dg-do run'.
7850 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
7851 Ditto.
7852
7853 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
7854 Tobias Burnus <tobias@codesourcery.com>
7855
7856 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
7857 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
7858 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
7859
7860 2019-10-14 Jakub Jelinek <jakub@redhat.com>
7861
7862 PR libgomp/92081
7863 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
7864 than 0.
7865
7866 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
7867
7868 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
7869 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
7870
7871 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
7872
7873 PR middle-end/92036
7874 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
7875 file.
7876
7877 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
7878
7879 PR testsuite/91884
7880 * testsuite/libgomp.fortran/fortran.exp: Conditionally
7881 add -lquadmath.
7882 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
7883
7884 2019-10-09 Jakub Jelinek <jakub@redhat.com>
7885
7886 PR libgomp/92028
7887 * target.c (gomp_map_vars_internal): Readd the previous
7888 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
7889 though do that just in the !not_found_cnt case.
7890
7891 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
7892
7893 * gfortran.dg/gomp/target-simd.f90: New.
7894
7895 2019-10-02 Julian Brown <julian@codesourcery.com>
7896 Cesar Philippidis <cesar@codesourcery.com>
7897
7898 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
7899 * target.c (FIELD_TGT_EMPTY): Define.
7900 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
7901 as switch instead of list of ifs.
7902 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
7903
7904 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
7905
7906 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
7907 include. Replace alloca () with __builtin_alloca ().
7908 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
7909
7910 2019-10-01 Jakub Jelinek <jakub@redhat.com>
7911
7912 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
7913 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
7914 * oacc-parallel.c: Don't include "libgomp_g.h".
7915 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
7916 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
7917 * aclocal.m4: Regenerated.
7918 * config.h.in: Regenerated.
7919 * configure: Regenerated.
7920 * Makefile.in: Regenerated.
7921
7922 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
7923
7924 * libgomp_g.h: Include stdint.h instead of gstdint.h.
7925
7926 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
7927
7928 * configure: Regenerate.
7929
7930 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
7931
7932 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
7933 string is initialized.
7934
7935 2019-09-06 Florian Weimer <fweimer@redhat.com>
7936
7937 * configure: Regenerate.
7938
7939 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
7940
7941 PR other/79543
7942 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
7943 scanning to conform to the GNU Coding Standards.
7944 * configure: Regenerate.
7945
7946 2019-08-28 Jakub Jelinek <jakub@redhat.com>
7947
7948 PR libgomp/91530
7949 * testsuite/libgomp.c/scan-21.c: New test.
7950 * testsuite/libgomp.c/scan-22.c: New test.
7951
7952 2019-08-27 Jakub Jelinek <jakub@redhat.com>
7953
7954 PR libgomp/91530
7955 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
7956 targets.
7957 * testsuite/libgomp.c/scan-12.c: Likewise.
7958 * testsuite/libgomp.c/scan-13.c: Likewise.
7959 * testsuite/libgomp.c/scan-14.c: Likewise.
7960 * testsuite/libgomp.c/scan-15.c: Likewise.
7961 * testsuite/libgomp.c/scan-16.c: Likewise.
7962 * testsuite/libgomp.c/scan-17.c: Likewise.
7963 * testsuite/libgomp.c/scan-18.c: Likewise.
7964 * testsuite/libgomp.c/scan-19.c: Likewise.
7965 * testsuite/libgomp.c/scan-20.c: Likewise.
7966 * testsuite/libgomp.c++/scan-9.C: Likewise.
7967 * testsuite/libgomp.c++/scan-10.C: Likewise.
7968 * testsuite/libgomp.c++/scan-11.C: Likewise.
7969 * testsuite/libgomp.c++/scan-12.C: Likewise.
7970 * testsuite/libgomp.c++/scan-14.C: Likewise.
7971 * testsuite/libgomp.c++/scan-15.C: Likewise.
7972 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
7973 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
7974 * testsuite/libgomp.c++/scan-16.C: Likewise.
7975
7976 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
7977
7978 PR fortran/91473
7979 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
7980 -std=legacy so invalid code in the test case is accepted.
7981
7982 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
7983
7984 PR fortran/91422
7985 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
7986 dimension.
7987
7988 2019-08-08 Jakub Jelinek <jakub@redhat.com>
7989
7990 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
7991 perform the lookup in the first loop only if !not_found_cnt, otherwise
7992 perform lookups for it in the second loop guarded with
7993 if (not_found_cnt || has_firstprivate).
7994 * testsuite/libgomp.c/target-37.c: New test.
7995 * testsuite/libgomp.c++/target-22.C: New test.
7996
7997 2019-08-07 Jakub Jelinek <jakub@redhat.com>
7998
7999 * testsuite/libgomp.c/target-18.c (struct S): New type.
8000 (foo): Use use_device_addr clause instead of use_device_ptr clause
8001 where required by OpenMP 5.0, add further tests for both use_device_ptr
8002 and use_device_addr clauses.
8003 * testsuite/libgomp.c++/target-9.C (struct S): New type.
8004 (foo): Use use_device_addr clause instead of use_device_ptr clause
8005 where required by OpenMP 5.0, add further tests for both use_device_ptr
8006 and use_device_addr clauses. Add t and u arguments.
8007 (main): Adjust caller.
8008
8009 2019-08-06 Jakub Jelinek <jakub@redhat.com>
8010
8011 * testsuite/libgomp.c++/loop-13.C: New test.
8012 * testsuite/libgomp.c++/loop-14.C: New test.
8013 * testsuite/libgomp.c++/loop-15.C: New test.
8014
8015 2019-07-31 Jakub Jelinek <jakub@redhat.com>
8016
8017 PR middle-end/91301
8018 * testsuite/libgomp.c++/for-27.C: New test.
8019
8020 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
8021
8022 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
8023 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
8024
8025 2019-07-20 Jakub Jelinek <jakub@redhat.com>
8026
8027 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
8028
8029 2019-07-08 Jakub Jelinek <jakub@redhat.com>
8030
8031 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
8032 * testsuite/libgomp.c++/scan-16.C: Likewise.
8033
8034 2019-07-06 Jakub Jelinek <jakub@redhat.com>
8035
8036 * testsuite/libgomp.c/scan-19.c: New test.
8037 * testsuite/libgomp.c/scan-20.c: New test.
8038
8039 * testsuite/libgomp.c/scan-11.c: New test.
8040 * testsuite/libgomp.c/scan-12.c: New test.
8041 * testsuite/libgomp.c/scan-13.c: New test.
8042 * testsuite/libgomp.c/scan-14.c: New test.
8043 * testsuite/libgomp.c/scan-15.c: New test.
8044 * testsuite/libgomp.c/scan-16.c: New test.
8045 * testsuite/libgomp.c/scan-17.c: New test.
8046 * testsuite/libgomp.c/scan-18.c: New test.
8047 * testsuite/libgomp.c++/scan-9.C: New test.
8048 * testsuite/libgomp.c++/scan-10.C: New test.
8049 * testsuite/libgomp.c++/scan-11.C: New test.
8050 * testsuite/libgomp.c++/scan-12.C: New test.
8051 * testsuite/libgomp.c++/scan-13.C: New test.
8052 * testsuite/libgomp.c++/scan-14.C: New test.
8053 * testsuite/libgomp.c++/scan-15.C: New test.
8054 * testsuite/libgomp.c++/scan-16.C: New test.
8055
8056 2019-07-04 Jakub Jelinek <jakub@redhat.com>
8057
8058 * testsuite/libgomp.c/scan-9.c: New test.
8059 * testsuite/libgomp.c/scan-10.c: New test.
8060
8061 2019-07-03 Jakub Jelinek <jakub@redhat.com>
8062
8063 * testsuite/libgomp.c++/scan-1.C: New test.
8064 * testsuite/libgomp.c++/scan-2.C: New test.
8065 * testsuite/libgomp.c++/scan-3.C: New test.
8066 * testsuite/libgomp.c++/scan-4.C: New test.
8067 * testsuite/libgomp.c++/scan-5.C: New test.
8068 * testsuite/libgomp.c++/scan-6.C: New test.
8069 * testsuite/libgomp.c++/scan-7.C: New test.
8070 * testsuite/libgomp.c++/scan-8.C: New test.
8071 * testsuite/libgomp.c/scan-1.c: New test.
8072 * testsuite/libgomp.c/scan-2.c: New test.
8073 * testsuite/libgomp.c/scan-3.c: New test.
8074 * testsuite/libgomp.c/scan-4.c: New test.
8075 * testsuite/libgomp.c/scan-5.c: New test.
8076 * testsuite/libgomp.c/scan-6.c: New test.
8077 * testsuite/libgomp.c/scan-7.c: New test.
8078 * testsuite/libgomp.c/scan-8.c: New test.
8079
8080 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
8081
8082 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
8083 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
8084 Likewise.
8085
8086 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
8087 check.
8088
8089 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
8090
8091 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
8092 file.
8093
8094 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
8095
8096 PR fortran/90743
8097 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
8098 case.
8099 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
8100 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
8101 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
8102 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
8103
8104 PR testsuite/90861
8105 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
8106
8107 PR middle-end/90862
8108 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
8109
8110 2019-06-16 Tom de Vries <tdevries@suse.de>
8111
8112 PR tree-optimization/89376
8113 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
8114
8115 2019-06-15 Tom de Vries <tdevries@suse.de>
8116
8117 PR tree-optimization/89713
8118 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
8119 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
8120
8121 2019-06-15 Jakub Jelinek <jakub@redhat.com>
8122
8123 PR middle-end/90779
8124 * testsuite/libgomp.c/pr90779.c: New test.
8125 * testsuite/libgomp.fortran/pr90779.f90: New test.
8126
8127 2019-06-15 Tom de Vries <tdevries@suse.de>
8128
8129 PR tree-optimization/90009
8130 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
8131
8132 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
8133
8134 PR tree-optimization/89713
8135 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
8136
8137 2019-06-11 Jakub Jelinek <jakub@redhat.com>
8138
8139 PR target/90811
8140 * testsuite/libgomp.c/pr90811.c: New test.
8141
8142 2019-06-05 Jakub Jelinek <jakub@redhat.com>
8143
8144 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
8145 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
8146
8147 2019-06-04 Jakub Jelinek <jakub@redhat.com>
8148
8149 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
8150 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
8151 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
8152 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
8153
8154 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8155
8156 * configure.ac: Call AX_COUNT_CPUS.
8157 Substitute CPU_COUNT.
8158 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
8159 count fallback.
8160 * aclocal.m4: Regenerate.
8161 * configure: Regenerate.
8162 * Makefile.in, testsuite/Makefile.in: Regenerate.
8163
8164 2019-05-29 Jakub Jelinek <jakub@redhat.com>
8165
8166 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
8167 to ...
8168 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
8169 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
8170 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
8171
8172 2019-05-27 Jakub Jelinek <jakub@redhat.com>
8173
8174 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
8175
8176 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
8177
8178 PR libgomp/90641
8179 * work.c (gomp_init_work_share): Instead of aligning final ordered
8180 value to multiples of long long alignment, align to that the
8181 first part (ordered team ids) and if inline_ordered_team_ids
8182 is not on a long long alignment boundary within the structure,
8183 use __alignof__ (long long) - 1 pad size always.
8184 * loop.c (GOMP_loop_start): Fix *mem computation if
8185 inline_ordered_team_ids is not aligned on long long alignment boundary
8186 within the structure.
8187 * loop-ull.c (GOMP_loop_ull_start): Likewise.
8188 * sections.c (GOMP_sections2_start): Likewise.
8189
8190 2019-05-24 Jakub Jelinek <jakub@redhat.com>
8191
8192 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
8193 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
8194
8195 PR libgomp/90585
8196 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
8197 HAVE_INTTYPES_H is defined.
8198 (print_uint64_t): New typedef.
8199 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
8200 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
8201 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
8202 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
8203 before casting to void *.
8204 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
8205 * oacc-mem.c: Don't include config.h nor stdint.h.
8206 * target.c: Don't include config.h.
8207 * oacc-cuda.c: Likewise.
8208 * oacc-host.c: Don't include stdint.h.
8209
8210 2019-05-20 Jakub Jelinek <jakub@redhat.com>
8211
8212 PR libgomp/90527
8213 * alloc.c (_GNU_SOURCE): Define.
8214
8215 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
8216
8217 * acc_prof.h: New file.
8218 * oacc-profiling.c: Likewise.
8219 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
8220 Add these, respectively.
8221 * Makefile.in: Regenerate.
8222 * env.c (initialize_env): Call goacc_profiling_initialize.
8223 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
8224 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
8225 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
8226 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
8227 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
8228 acc_prof_register, acc_prof_unregister, and acc_register_library.
8229 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
8230 GOMP_PLUGIN_goacc_thread.
8231 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
8232 prof_callbacks_enabled members.
8233 (goacc_prof_enabled, goacc_profiling_initialize)
8234 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
8235 (goacc_profiling_dispatch): Declare.
8236 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
8237 (GOACC_PROFILING_SETUP_P): Define.
8238 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
8239 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
8240 OpenACC Profiling Interface.
8241 * oacc-cuda.c (acc_get_current_cuda_device)
8242 (acc_get_current_cuda_context, acc_get_cuda_stream)
8243 (acc_set_cuda_stream): Likewise.
8244 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
8245 (acc_init, acc_set_device_type, acc_get_device_type)
8246 (acc_get_device_num, goacc_lazy_initialize): Likewise.
8247 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
8248 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
8249 (acc_unmap_data, present_create_copy, delete_copyout)
8250 (update_dev_host): Likewise.
8251 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
8252 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
8253 Likewise.
8254 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
8255 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
8256 Likewise.
8257 * libgomp.texi: Update.
8258 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
8259 file.
8260 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
8261 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
8262 Likewise.
8263 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
8264 Likewise.
8265 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
8266 Likewise.
8267 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
8268 Likewise.
8269
8270 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
8271
8272 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
8273 (struct goacc_asyncqueue_list): Likewise.
8274 (goacc_aq): Likewise.
8275 (goacc_aq_list): Likewise.
8276 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
8277 (GOMP_OFFLOAD_openacc_async_test): Remove.
8278 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
8279 (GOMP_OFFLOAD_openacc_async_wait): Remove.
8280 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
8281 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
8282 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
8283 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
8284 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
8285 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
8286 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
8287 (GOMP_OFFLOAD_openacc_async_exec): Declare.
8288 (GOMP_OFFLOAD_openacc_async_construct): Declare.
8289 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
8290 (GOMP_OFFLOAD_openacc_async_test): Declare.
8291 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
8292 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
8293 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
8294 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
8295 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
8296
8297 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
8298 (gomp_acc_insert_pointer): Adjust declaration.
8299 (gomp_copy_host2dev): New declaration.
8300 (gomp_copy_dev2host): Likewise.
8301 (gomp_map_vars_async): Likewise.
8302 (gomp_unmap_tgt): Likewise.
8303 (gomp_unmap_vars_async): Likewise.
8304 (gomp_fini_device): Likewise.
8305
8306 * oacc-async.c (get_goacc_thread): New function.
8307 (get_goacc_thread_device): New function.
8308 (lookup_goacc_asyncqueue): New function.
8309 (get_goacc_asyncqueue): New function.
8310 (acc_async_test): Adjust code to use new async design.
8311 (acc_async_test_all): Likewise.
8312 (acc_wait): Likewise.
8313 (acc_wait_async): Likewise.
8314 (acc_wait_all): Likewise.
8315 (acc_wait_all_async): Likewise.
8316 (goacc_async_free): New function.
8317 (goacc_init_asyncqueues): Likewise.
8318 (goacc_fini_asyncqueues): Likewise.
8319 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
8320 design.
8321 (acc_set_cuda_stream): Likewise.
8322 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
8323 (host_openacc_register_async_cleanup): Remove.
8324 (host_openacc_async_exec): New function.
8325 (host_openacc_async_test): Adjust parameters.
8326 (host_openacc_async_test_all): Remove.
8327 (host_openacc_async_wait): Remove.
8328 (host_openacc_async_wait_async): Remove.
8329 (host_openacc_async_wait_all): Remove.
8330 (host_openacc_async_wait_all_async): Remove.
8331 (host_openacc_async_set_async): Remove.
8332 (host_openacc_async_synchronize): New function.
8333 (host_openacc_async_serialize): New function.
8334 (host_openacc_async_host2dev): New function.
8335 (host_openacc_async_dev2host): New function.
8336 (host_openacc_async_queue_callback): New function.
8337 (host_openacc_async_construct): New function.
8338 (host_openacc_async_destruct): New function.
8339 (struct gomp_device_descr host_dispatch): Remove initialization of old
8340 interface, add initialization of new async sub-struct.
8341 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
8342 (goacc_attach_host_thread_to_device): Remove old async code usage.
8343 * oacc-int.h (goacc_init_asyncqueues): New declaration.
8344 (goacc_fini_asyncqueues): Likewise.
8345 (goacc_async_copyout_unmap_vars): Likewise.
8346 (goacc_async_free): Likewise.
8347 (get_goacc_asyncqueue): Likewise.
8348 (lookup_goacc_asyncqueue): Likewise.
8349 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
8350 design.
8351 (present_create_copy): Adjust code to use new async design.
8352 (delete_copyout): Likewise.
8353 (update_dev_host): Likewise.
8354 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
8355 async design.
8356 (gomp_acc_remove_pointer): Adjust code to use new async design.
8357 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
8358 design.
8359 (GOACC_enter_exit_data): Likewise.
8360 (goacc_wait): Likewise.
8361 (GOACC_update): Likewise.
8362 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
8363 when called, warn as obsolete in comment.
8364 * target.c (goacc_device_copy_async): New function.
8365 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
8366 add goacc_device_copy_async case.
8367 (gomp_copy_dev2host): Likewise.
8368 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
8369 (gomp_map_pointer): Likewise.
8370 (gomp_map_fields_existing): Likewise.
8371 (gomp_map_vars_internal): New always_inline function, renamed from
8372 gomp_map_vars.
8373 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
8374 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
8375 passing goacc_asyncqueue argument.
8376 (gomp_unmap_tgt): Remove static, add attribute_hidden.
8377 (gomp_unref_tgt): New function.
8378 (gomp_unmap_vars_internal): New always_inline function, renamed from
8379 gomp_unmap_vars.
8380 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
8381 (gomp_unmap_vars_async): Implement by calling
8382 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
8383 (gomp_fini_device): New function.
8384 (gomp_exit_data): Adjust gomp_copy_dev2host call.
8385 (gomp_load_plugin_for_device): Remove old interface, adjust to load
8386 new async interface.
8387 (gomp_target_fini): Adjust code to call gomp_fini_device.
8388
8389 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
8390 (struct ptx_stream): Remove.
8391 (struct nvptx_thread): Remove current_stream field.
8392 (cuda_map_create): Remove.
8393 (cuda_map_destroy): Remove.
8394 (map_init): Remove.
8395 (map_fini): Remove.
8396 (map_pop): Remove.
8397 (map_push): Remove.
8398 (struct goacc_asyncqueue): Define.
8399 (struct nvptx_callback): Define.
8400 (struct ptx_free_block): Define.
8401 (struct ptx_device): Remove null_stream, active_streams, async_streams,
8402 stream_lock, and next fields.
8403 (enum ptx_event_type): Remove.
8404 (struct ptx_event): Remove.
8405 (ptx_event_lock): Remove.
8406 (ptx_events): Remove.
8407 (init_streams_for_device): Remove.
8408 (fini_streams_for_device): Remove.
8409 (select_stream_for_async): Remove.
8410 (nvptx_init): Remove ptx_events and ptx_event_lock references.
8411 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
8412 case.
8413 (nvptx_open_device): Add free_blocks initialization, remove
8414 init_streams_for_device call.
8415 (nvptx_close_device): Remove fini_streams_for_device call, add
8416 free_blocks destruct code.
8417 (event_gc): Remove.
8418 (event_add): Remove.
8419 (nvptx_exec): Adjust parameters and code.
8420 (nvptx_free): Likewise.
8421 (nvptx_host2dev): Remove.
8422 (nvptx_dev2host): Remove.
8423 (nvptx_set_async): Remove.
8424 (nvptx_async_test): Remove.
8425 (nvptx_async_test_all): Remove.
8426 (nvptx_wait): Remove.
8427 (nvptx_wait_async): Remove.
8428 (nvptx_wait_all): Remove.
8429 (nvptx_wait_all_async): Remove.
8430 (nvptx_get_cuda_stream): Remove.
8431 (nvptx_set_cuda_stream): Remove.
8432 (GOMP_OFFLOAD_alloc): Adjust code.
8433 (GOMP_OFFLOAD_free): Likewise.
8434 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
8435 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
8436 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
8437 (GOMP_OFFLOAD_openacc_async_wait): Remove.
8438 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
8439 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
8440 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
8441 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
8442 (cuda_free_argmem): New function.
8443 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
8444 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
8445 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
8446 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
8447 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
8448 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
8449 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
8450 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
8451 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
8452 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
8453 (cuda_callback_wrapper): New function.
8454 (cuda_memcpy_sanity_check): New function.
8455 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
8456 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
8457 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
8458 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
8459
8460 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
8461
8462 PR target/87835
8463 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
8464
8465 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
8466
8467 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
8468
8469 2019-03-27 Kevin Buettner <kevinb@redhat.com>
8470
8471 * team.c (gomp_team_start): Initialize pool->threads[0].
8472
8473 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
8474
8475 * testsuite/libgomp.oacc-c++/c++.exp: Specify
8476 "-foffload=$offload_target".
8477 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8478 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8479 * testsuite/lib/libgomp.exp
8480 (check_effective_target_openacc_nvidia_accel_configured): Remove,
8481 as (conceptually) merged into
8482 check_effective_target_openacc_nvidia_accel_selected. Adjust all
8483 users.
8484
8485 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
8486 * testsuite/libgomp-test-support.exp.in: Adjust.
8487 * testsuite/lib/libgomp.exp: Likewise. Don't populate
8488 openacc_device_types_s.
8489 (offload_target_to_openacc_device_type): New proc.
8490 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
8491 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8492 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8493 * Makefile.in: Regenerate.
8494 * configure: Likewise.
8495 * testsuite/Makefile.in: Likewise.
8496
8497 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
8498 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
8499 instead of OFFLOAD_TARGETS.
8500 * target.c (gomp_target_init): Adjust.
8501 * testsuite/libgomp-test-support.exp.in: Likewise.
8502 * testsuite/lib/libgomp.exp: Likewise. Populate
8503 openacc_device_types_s instead of offload_targets_s_openacc.
8504 (check_effective_target_openacc_nvidia_accel_selected)
8505 (check_effective_target_openacc_host_selected): Adjust.
8506 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
8507 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8508 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8509 * Makefile.in: Regenerate.
8510 * config.h.in: Likewise.
8511 * configure: Likewise.
8512 * testsuite/Makefile.in: Likewise.
8513
8514 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
8515 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
8516 "offloading: supported, but hardware not accessible".
8517 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8518 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8519
8520 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
8521
8522 PR c/87924
8523 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
8524 goacc_wait().
8525 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
8526 and related adjustment.
8527
8528 2019-01-30 Jakub Jelinek <jakub@redhat.com>
8529
8530 PR c++/88988
8531 * testsuite/libgomp.c++/pr88988.C: New test.
8532
8533 2019-01-28 Jakub Jelinek <jakub@redhat.com>
8534
8535 PR middle-end/89002
8536 * testsuite/libgomp.c/pr89002.c: New test.
8537
8538 2019-01-28 Richard Biener <rguenther@suse.de>
8539
8540 PR testsuite/89064
8541 PR tree-optimization/86865
8542 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
8543
8544 2019-01-24 Tom de Vries <tdevries@suse.de>
8545
8546 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
8547 once instantiated_devices drops to 0.
8548
8549 2019-01-23 Tom de Vries <tdevries@suse.de>
8550
8551 PR target/PR88946
8552 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
8553 cuMemFree.
8554 (nvptx_exec): Don't call map_push if mapnum == 0.
8555 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
8556
8557 2019-01-23 Tom de Vries <tdevries@suse.de>
8558
8559 PR target/88941
8560 PR target/88939
8561 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
8562 (map_fini): Remove "assert (!s->map->active)".
8563 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
8564
8565 2019-01-23 Tom de Vries <tdevries@suse.de>
8566
8567 PR target/87835
8568 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
8569 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
8570
8571 2019-01-15 Tom de Vries <tdevries@suse.de>
8572
8573 PR target/80547
8574 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
8575 New test.
8576
8577 2019-01-12 Tom de Vries <tdevries@suse.de>
8578
8579 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
8580 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
8581 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
8582 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
8583
8584 2019-01-12 Tom de Vries <tdevries@suse.de>
8585
8586 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
8587
8588 2019-01-12 Tom de Vries <tdevries@suse.de>
8589
8590 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
8591 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
8592 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
8593
8594 2019-01-12 Tom de Vries <tdevries@suse.de>
8595
8596 PR target/85486
8597 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
8598 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
8599
8600 2019-01-12 Tom de Vries <tdevries@suse.de>
8601
8602 PR target/85381
8603 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
8604 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
8605
8606 2019-01-12 Tom de Vries <tdevries@suse.de>
8607
8608 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
8609 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
8610 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
8611
8612 2019-01-12 Tom de Vries <tdevries@suse.de>
8613
8614 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
8615 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
8616 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
8617
8618 2019-01-12 Tom de Vries <tdevries@suse.de>
8619
8620 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
8621 resources diagnostic.
8622
8623 2019-01-12 Tom de Vries <tdevries@suse.de>
8624
8625 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
8626 vector length to be 128.
8627 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
8628 length 2097152 to be reduced to 1024 instead of 32.
8629
8630 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
8631 James Norris <jnorris@codesourcery.com>
8632
8633 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
8634 Library Routines", and "Environment Variables".
8635
8636 2019-01-11 Tom de Vries <tdevries@suse.de>
8637
8638 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
8639 num_workers 16.
8640
8641 2019-01-11 Tom de Vries <tdevries@suse.de>
8642
8643 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
8644 -foffload=-w.
8645 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
8646 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
8647 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
8648 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
8649
8650 2019-01-11 Tom de Vries <tdevries@suse.de>
8651
8652 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
8653 test.
8654
8655 2019-01-10 Nathan Sidwell <nathan@acm.org>
8656 Julian Brown <julian@codesourcery.com>
8657
8658 PR lto/71959
8659 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
8660 * testsuite/libgomp.oacc-c++/pr71959.C: New.
8661
8662 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
8663
8664 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
8665 and paste code.
8666
8667 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
8668
8669 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
8670 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
8671 write.
8672
8673 2019-01-09 Tom de Vries <tdevries@suse.de>
8674
8675 PR target/88756
8676 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
8677 #define instead of "const int".
8678 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
8679 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
8680 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
8681 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
8682
8683 2019-01-09 Tom de Vries <tdevries@suse.de>
8684
8685 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
8686 one worker.
8687
8688 2019-01-07 Tom de Vries <tdevries@suse.de>
8689
8690 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
8691 GOMP_OPENACC_DIM argument.
8692
8693 2019-01-03 Tom de Vries <tdevries@suse.de>
8694
8695 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
8696 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
8697
8698 2019-01-01 Jakub Jelinek <jakub@redhat.com>
8699
8700 Update copyright years.
8701
8702 2019-01-01 Jakub Jelinek <jakub@redhat.com>
8703
8704 * libgomp.texi: Bump @copying's copyright year.
8705
8706 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
8707
8708 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
8709 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
8710 (GOACC_declare): Redefine the "device" argument to "flags".
8711
8712 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
8713 Cesar Philippidis <cesar@codesourcery.com>
8714
8715 * target.c (struct gomp_coalesce_chunk): New structure.
8716 (struct gomp_coalesce_buf): Update the chunks member to use that
8717 type. Adjust all users.
8718
8719 2018-12-19 Tom de Vries <tdevries@suse.de>
8720
8721 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
8722 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
8723 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
8724
8725 2018-12-19 Tom de Vries <tdevries@suse.de>
8726
8727 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
8728 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
8729 gcc/testsuite/gcc.dg/goacc.
8730 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
8731
8732 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
8733 Chung-Lin Tang <cltang@codesourcery.com>
8734
8735 * oacc-mem.c (acc_present_or_create): Remove definition and change
8736 to alias of acc_create.
8737 (acc_present_or_copyin): Remove definition and change to alias of
8738 acc_copyin.
8739 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
8740 of acc_present_or_create.
8741 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
8742 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8743 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
8744 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
8745 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
8746 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
8747 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
8748 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8749 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8750 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8751 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
8752 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
8753 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
8754 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
8755 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
8756 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8757
8758 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
8759
8760 PR libgomp/88495
8761 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
8762 "identical parameters".
8763 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
8764 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
8765
8766 PR libgomp/88484
8767 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
8768 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
8769
8770 PR libgomp/88407
8771 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
8772 (nvptx_wait_async): Unseen async-argument is a no-op.
8773 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
8774 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
8775 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
8776 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
8777 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
8778 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
8779 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
8780 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
8781 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
8782
8783 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
8784 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
8785
8786 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
8787
8788 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
8789 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
8790 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
8791
8792 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
8793
8794 PR libgomp/88370
8795 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
8796 (acc_set_cuda_stream): Clarify.
8797 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
8798 "async_valid_p".
8799 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
8800 acc_async_sync".
8801 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
8802 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
8803 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
8804 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
8805
8806 2018-12-14 Tom de Vries <tdevries@suse.de>
8807
8808 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
8809 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
8810 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
8811 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
8812 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
8813
8814 2018-12-13 Tom de Vries <tdevries@suse.de>
8815
8816 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
8817 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
8818 * fortran.c (omp_display_affinity_): ... here.
8819 * libgomp.h (gomp_print_string): Declare.
8820 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
8821 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
8822 write.
8823
8824 2018-12-13 Jakub Jelinek <jakub@redhat.com>
8825
8826 PR libgomp/88460
8827 * testsuite/libgomp.c++/for-24.C (results): Include it in
8828 omp declare target region.
8829 (main): Use map (always, tofrom: results) instead of
8830 map (tofrom: results).
8831
8832 2018-12-12 Jakub Jelinek <jakub@redhat.com>
8833
8834 PR fortran/88463
8835 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
8836 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
8837
8838 * testsuite/libgomp.c-c++-common/for-16.c: New test.
8839
8840 2018-12-12 Andreas Schwab <schwab@suse.de>
8841
8842 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
8843 clobbered.
8844
8845 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
8846
8847 PR fortran/88411
8848 * testsuite/libgomp.fortran/async_io_8.f90: New test.
8849
8850 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
8851 Jakub Jelinek <jakub@redhat.com>
8852
8853 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
8854 devicep->host2dev_func.
8855
8856 2018-12-08 Jakub Jelinek <jakub@redhat.com>
8857
8858 PR libgomp/87995
8859 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
8860 tls_runtime effective target.
8861 (t): New threadprivate variable.
8862 (main): Set t in threads which execute iterations of the worksharing
8863 loop. Propagate that to the task after the loop and don't abort
8864 if the current taskgroup hasn't been cancelled.
8865
8866 2018-12-02 Jakub Jelinek <jakub@redhat.com>
8867
8868 * testsuite/libgomp.c/task-reduction-3.c: New test.
8869
8870 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
8871
8872 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
8873
8874 PR libgomp/88288
8875 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
8876 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
8877
8878 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
8879
8880 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
8881
8882 2018-10-19 Richard Biener <rguenther@suse.de>
8883
8884 PR tree-optimization/88182
8885 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
8886
8887 2018-11-26 Jakub Jelinek <jakub@redhat.com>
8888
8889 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
8890 (RUNTEST): Don't define.
8891 (RUNTESTDEFAULTFLAGS): Add.
8892 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
8893 (distclean-am): Depend on distclean-DEJAGNU.
8894 (check-am): If -j% option is present in MFLAGS and if
8895 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
8896 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
8897 * testsuite/Makefile.in: Regenerated.
8898
8899 2018-11-26 Richard Biener <rguenther@suse.de>
8900
8901 PR tree-optimization/88182
8902 * testsuite/libgomp.c++/pr88182.C: New testcase.
8903
8904 2018-11-20 Jakub Jelinek <jakub@redhat.com>
8905
8906 PR bootstrap/88106
8907 * config/mingw32/affinity-fmt.c: New file.
8908
8909 2018-11-09 Jakub Jelinek <jakub@redhat.com>
8910
8911 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
8912 (gomp_display_affinity): Use __builtin_choose_expr to handle
8913 properly handle argument having integral, or pointer or some other
8914 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
8915 with uint64_t type instead of %llx and unsigned long long.
8916
8917 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
8918 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
8919
8920 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8921
8922 * affinity.c: Include <string.h>, <stdio.h>.
8923 (gomp_display_affinity_place): Remove cpusetp.
8924 * teams.c: Include <limits.h>.
8925
8926 2018-11-08 Jakub Jelinek <jakub@redhat.com>
8927
8928 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
8929 in_reduction clause for s[0].
8930
8931 * affinity.c (gomp_display_affinity_place): New function.
8932 * affinity-fmt.c: New file.
8933 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
8934 * config/linux/affinity.c (gomp_display_affinity_place): New function.
8935 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
8936 Move these functions to ...
8937 * config/nvptx/teams.c: ... here. New file.
8938 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
8939 New functions.
8940 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
8941 functions.
8942 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
8943 and _aligned_malloc.
8944 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
8945 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
8946 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
8947 gomp_affinity_format_len): New variables.
8948 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
8949 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
8950 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
8951 modifiers. Display (non-default) chunk sizes. Print
8952 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
8953 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
8954 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
8955 * fortran.c: Include stdio.h and string.h.
8956 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
8957 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
8958 (omp_set_affinity_format_, omp_get_affinity_format_,
8959 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
8960 omp_pause_resource_all_): New functions.
8961 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
8962 switch.
8963 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
8964 functions to ...
8965 * teams.c: ... here. New file.
8966 * libgomp_g.h: Include gstdint.h.
8967 (GOMP_loop_nonmonotonic_runtime_start,
8968 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
8969 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
8970 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
8971 GOMP_parallel_loop_nonmonotonic_runtime,
8972 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
8973 GOMP_loop_ull_nonmonotonic_runtime_start,
8974 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
8975 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
8976 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
8977 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
8978 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
8979 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
8980 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
8981 GOMP_teams_reg): Declare.
8982 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
8983 gomp_aligned_alloc uses fallback implementation.
8984 (gomp_aligned_alloc, gomp_aligned_free): Declare.
8985 (enum gomp_schedule_type): Add GFS_MONOTONIC.
8986 (struct gomp_doacross_work_share): Add extra field.
8987 (struct gomp_work_share): Add task_reductions field.
8988 (struct gomp_taskgroup): Add workshare and reductions fields.
8989 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
8990 (gomp_thread_handle): New typedef.
8991 (gomp_display_affinity_place, gomp_set_affinity_format,
8992 gomp_display_string, gomp_display_affinity,
8993 gomp_display_affinity_thread): Declare.
8994 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
8995 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
8996 gomp_workshare_task_reduction_register): Declare.
8997 (gomp_team_start): Add taskgroup argument.
8998 (gomp_pause_host): Declare.
8999 (gomp_init_work_share, gomp_work_share_start): Change bool argument
9000 to size_t.
9001 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
9002 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
9003 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
9004 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
9005 GOMP_loop_ull_doacross_start,
9006 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
9007 GOMP_loop_maybe_nonmonotonic_runtime_next,
9008 GOMP_loop_maybe_nonmonotonic_runtime_start,
9009 GOMP_loop_nonmonotonic_runtime_next,
9010 GOMP_loop_nonmonotonic_runtime_start,
9011 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9012 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
9013 GOMP_loop_ull_nonmonotonic_runtime_next,
9014 GOMP_loop_ull_nonmonotonic_runtime_start,
9015 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9016 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
9017 GOMP_taskgroup_reduction_register,
9018 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
9019 GOMP_teams_reg and GOMP_taskwait_depend.
9020 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
9021 omp_{capture,display}_affinity{,_}, and
9022 omp_[gs]et_affinity_format{,_}.
9023 * loop.c: Include string.h.
9024 (GOMP_loop_runtime_next): Add ialias.
9025 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
9026 (gomp_loop_static_start, gomp_loop_dynamic_start,
9027 gomp_loop_guided_start, gomp_loop_ordered_static_start,
9028 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
9029 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
9030 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
9031 or gomp_doacross_init callers.
9032 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
9033 GOMP_loop_doacross_start): New functions.
9034 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
9035 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
9036 Mask off GFS_MONOTONIC bit.
9037 (GOMP_loop_maybe_nonmonotonic_runtime_next,
9038 GOMP_loop_maybe_nonmonotonic_runtime_start,
9039 GOMP_loop_nonmonotonic_runtime_next,
9040 GOMP_loop_nonmonotonic_runtime_start,
9041 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9042 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
9043 functions.
9044 (gomp_parallel_loop_start): Pass NULL as taskgroup to
9045 gomp_team_start.
9046 * loop_ull.c: Include string.h.
9047 (GOMP_loop_ull_runtime_next): Add ialias.
9048 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
9049 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
9050 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
9051 gomp_loop_ull_ordered_dynamic_start,
9052 gomp_loop_ull_ordered_guided_start,
9053 gomp_loop_ull_doacross_static_start,
9054 gomp_loop_ull_doacross_dynamic_start,
9055 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
9056 and gomp_doacross_ull_init callers.
9057 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
9058 GOMP_loop_ull_doacross_start): New functions.
9059 (GOMP_loop_ull_runtime_start,
9060 GOMP_loop_ull_ordered_runtime_start,
9061 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
9062 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9063 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
9064 GOMP_loop_ull_nonmonotonic_runtime_next,
9065 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
9066 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
9067 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
9068 (omp_pause_resource_t, omp_depend_t): New typedefs.
9069 (enum omp_lock_hint_t): Renamed to ...
9070 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
9071 enumerators using numbers and omp_lock_hint_* as their aliases.
9072 (omp_lock_hint_t): New typedef. Rename to ...
9073 (omp_sync_hint_t): ... this.
9074 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
9075 omp_sync_hint_t instead of omp_lock_hint_t.
9076 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9077 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9078 Declare.
9079 (omp_target_is_present, omp_target_disassociate_ptr):
9080 Change first argument from void * to const void *.
9081 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
9082 from void * to const void *.
9083 (omp_target_associate_ptr): Change first and second arguments from
9084 void * to const void *.
9085 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
9086 omp_pause_hard): New parameters.
9087 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9088 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9089 New interfaces.
9090 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
9091 omp_pause_hard): New parameters.
9092 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9093 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9094 New externals.
9095 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
9096 EXTRA argument. If not needed to prepare array, if extra is 0,
9097 clear ws->doacross, otherwise allocate just doacross structure and
9098 extra payload. If array is needed, allocate also extra payload.
9099 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
9100 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
9101 doacross == NULL.
9102 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
9103 gomp_team_start.
9104 (GOMP_parallel): Likewise. Formatting fix.
9105 (GOMP_parallel_reductions): New function.
9106 (GOMP_cancellation_point): If taskgroup has workshare
9107 flag set, check cancelled of prev taskgroup if any.
9108 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
9109 on prev taskgroup if any.
9110 * sections.c: Include string.h.
9111 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
9112 (GOMP_sections_start): Adjust gomp_work_share_start caller.
9113 (GOMP_sections2_start): New function.
9114 (GOMP_parallel_sections_start, GOMP_parallel_sections):
9115 Pass NULL as taskgroup to gomp_team_start.
9116 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
9117 gomp_work_share_start callers.
9118 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
9119 If taskgroup has workshare flag set, check cancelled on prev
9120 taskgroup if any. Guard all cancellation tests with
9121 gomp_cancel_var test.
9122 (omp_target_is_present, omp_target_disassociate_ptr):
9123 Change ptr argument from void * to const void *.
9124 (omp_target_memcpy): Change src argument from void * to const void *.
9125 (omp_target_memcpy_rect): Likewise.
9126 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
9127 instead of char * where needed.
9128 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
9129 from void * to const void *.
9130 (omp_pause_resource, omp_pause_resource_all): New functions.
9131 * task.c (gomp_task_handle_depend): Handle new depend array format
9132 in addition to the old. Handle mutexinoutset kinds the same as
9133 inout for now, handle unspecified kinds.
9134 (gomp_create_target_task): If taskgroup has workshare flag set, check
9135 cancelled on prev taskgroup if any. Guard all cancellation tests with
9136 gomp_cancel_var test. Handle new depend array format count in
9137 addition to the old.
9138 (GOMP_task): Likewise. Adjust function comment.
9139 (gomp_task_run_pre): If taskgroup has workshare flag set, check
9140 cancelled on prev taskgroup if any. Guard all cancellation tests with
9141 gomp_cancel_var test.
9142 (GOMP_taskwait_depend): New function.
9143 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
9144 format in addition to the old. Handle mutexinoutset kinds the same as
9145 inout for now, handle unspecified kinds. Fix a function comment typo.
9146 (gomp_taskgroup_init): New function.
9147 (GOMP_taskgroup_start): Use it.
9148 (gomp_reduction_register, gomp_create_artificial_team,
9149 GOMP_taskgroup_reduction_register,
9150 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
9151 gomp_parallel_reduction_register,
9152 gomp_workshare_task_reduction_register,
9153 gomp_workshare_taskgroup_start,
9154 GOMP_workshare_task_reduction_unregister): New functions.
9155 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
9156 check cancelled on prev taskgroup if any. Guard all cancellation
9157 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
9158 by calling GOMP_taskgroup_reduction_register.
9159 * team.c (gomp_thread_attr): Remove comment.
9160 (struct gomp_thread_start_data): Add handle field.
9161 (gomp_thread_start): Call pthread_detach.
9162 (gomp_new_team): Adjust gomp_init_work_share caller.
9163 (gomp_free_pool_helper): Call pthread_detach.
9164 (gomp_team_start): Add taskgroup argument, initialize implicit
9165 tasks' taskgroup field to that. Don't call
9166 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
9167 (gomp_team_end): Determine nesting by thr->ts.level != 0
9168 rather than thr->ts.team != NULL.
9169 (gomp_pause_pool_helper, gomp_pause_host): New functions.
9170 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
9171 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
9172 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
9173 if more than 1 allocate also extra payload at the end of array. Never
9174 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
9175 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
9176 return true instead of ws.
9177 * Makefile.in: Regenerated.
9178 * configure: Regenerated.
9179 * config.h.in: Regenerated.
9180 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
9181 in some cases.
9182 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
9183 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
9184 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
9185 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
9186 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
9187 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
9188 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
9189 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
9190 * testsuite/libgomp.c-c++-common/for-10.c: New test.
9191 * testsuite/libgomp.c-c++-common/for-11.c: New test.
9192 * testsuite/libgomp.c-c++-common/for-12.c: New test.
9193 * testsuite/libgomp.c-c++-common/for-13.c: New test.
9194 * testsuite/libgomp.c-c++-common/for-14.c: New test.
9195 * testsuite/libgomp.c-c++-common/for-15.c: New test.
9196 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
9197 define a different N(test), don't define N(f0) to N(f14), but instead
9198 define N(f20) to N(f34) using != comparisons.
9199 * testsuite/libgomp.c-c++-common/for-7.c: New test.
9200 * testsuite/libgomp.c-c++-common/for-8.c: New test.
9201 * testsuite/libgomp.c-c++-common/for-9.c: New test.
9202 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
9203 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
9204 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
9205 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
9206 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
9207 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
9208 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
9209 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
9210 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
9211 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
9212 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
9213 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
9214 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
9215 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
9216 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
9217 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
9218 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
9219 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
9220 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
9221 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
9222 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
9223 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
9224 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
9225 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
9226 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
9227 * testsuite/libgomp.c++/depend-1.C: New test.
9228 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
9229 * testsuite/libgomp.c++/depobj-1.C: New test.
9230 * testsuite/libgomp.c++/for-16.C: New test.
9231 * testsuite/libgomp.c++/for-21.C: New test.
9232 * testsuite/libgomp.c++/for-22.C: New test.
9233 * testsuite/libgomp.c++/for-23.C: New test.
9234 * testsuite/libgomp.c++/for-24.C: New test.
9235 * testsuite/libgomp.c++/for-25.C: New test.
9236 * testsuite/libgomp.c++/for-26.C: New test.
9237 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
9238 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
9239 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
9240 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
9241 * testsuite/libgomp.c++/task-reduction-10.C: New test.
9242 * testsuite/libgomp.c++/task-reduction-11.C: New test.
9243 * testsuite/libgomp.c++/task-reduction-12.C: New test.
9244 * testsuite/libgomp.c++/task-reduction-13.C: New test.
9245 * testsuite/libgomp.c++/task-reduction-14.C: New test.
9246 * testsuite/libgomp.c++/task-reduction-15.C: New test.
9247 * testsuite/libgomp.c++/task-reduction-16.C: New test.
9248 * testsuite/libgomp.c++/task-reduction-17.C: New test.
9249 * testsuite/libgomp.c++/task-reduction-18.C: New test.
9250 * testsuite/libgomp.c++/task-reduction-19.C: New test.
9251 * testsuite/libgomp.c/task-reduction-1.c: New test.
9252 * testsuite/libgomp.c++/task-reduction-1.C: New test.
9253 * testsuite/libgomp.c/task-reduction-2.c: New test.
9254 * testsuite/libgomp.c++/task-reduction-2.C: New test.
9255 * testsuite/libgomp.c++/task-reduction-3.C: New test.
9256 * testsuite/libgomp.c++/task-reduction-4.C: New test.
9257 * testsuite/libgomp.c++/task-reduction-5.C: New test.
9258 * testsuite/libgomp.c++/task-reduction-6.C: New test.
9259 * testsuite/libgomp.c++/task-reduction-7.C: New test.
9260 * testsuite/libgomp.c++/task-reduction-8.C: New test.
9261 * testsuite/libgomp.c++/task-reduction-9.C: New test.
9262 * testsuite/libgomp.c/teams-1.c: New test.
9263 * testsuite/libgomp.c/teams-2.c: New test.
9264 * testsuite/libgomp.c/thread-limit-4.c: New test.
9265 * testsuite/libgomp.c/thread-limit-5.c: New test.
9266 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
9267
9268 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
9269
9270 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
9271 acc_memcpy_to/from_device functions, now with async parameter.
9272 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
9273 (acc_memcpy_from_device): Likewise.
9274 (acc_memcpy_to_device_async): New API function.
9275 (acc_memcpy_from_device_async): Likewise.
9276 (present_create_copy): Add async parameter and async setting/unsetting.
9277 (acc_create): Adjust present_create_copy call.
9278 (acc_copyin): Likewise.
9279 (acc_present_or_create): Likewise.
9280 (acc_present_or_copyin): Likewise.
9281 (acc_create_async): New API function.
9282 (acc_copyin_async): New API function.
9283 (delete_copyout): Add async parameter and async setting/unsetting.
9284 (acc_delete): Adjust delete_copyout call.
9285 (acc_copyout): Likewise.
9286 (acc_delete_async): New API function.
9287 (acc_copyout_async): Likewise.
9288 (update_dev_host): Add async parameter and async setting/unsetting.
9289 (acc_update_device): Adjust update_dev_host call.
9290 (acc_update_self): Likewise.
9291 (acc_update_device_async): New API function.
9292 (acc_update_self_async): Likewise.
9293 * openacc.h (acc_copyin_async): Declare new API function.
9294 (acc_create_async): Likewise.
9295 (acc_copyout_async): Likewise.
9296 (acc_delete_async): Likewise.
9297 (acc_update_device_async): Likewise.
9298 (acc_update_self_async): Likewise.
9299 (acc_memcpy_to_device_async): Likewise.
9300 (acc_memcpy_from_device_async): Likewise.
9301 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
9302 (acc_copyin_async_64_h): New subroutine.
9303 (acc_copyin_async_array_h): New subroutine.
9304 (acc_create_async_32_h): New subroutine.
9305 (acc_create_async_64_h): New subroutine.
9306 (acc_create_async_array_h): New subroutine.
9307 (acc_copyout_async_32_h): New subroutine.
9308 (acc_copyout_async_64_h): New subroutine.
9309 (acc_copyout_async_array_h): New subroutine.
9310 (acc_delete_async_32_h): New subroutine.
9311 (acc_delete_async_64_h): New subroutine.
9312 (acc_delete_async_array_h): New subroutine.
9313 (acc_update_device_async_32_h): New subroutine.
9314 (acc_update_device_async_64_h): New subroutine.
9315 (acc_update_device_async_array_h): New subroutine.
9316 (acc_update_self_async_32_h): New subroutine.
9317 (acc_update_self_async_64_h): New subroutine.
9318 (acc_update_self_async_array_h): New subroutine.
9319 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
9320 (acc_copyin_async_64_h): New subroutine.
9321 (acc_copyin_async_array_h): New subroutine.
9322 (acc_create_async_32_h): New subroutine.
9323 (acc_create_async_64_h): New subroutine.
9324 (acc_create_async_array_h): New subroutine.
9325 (acc_copyout_async_32_h): New subroutine.
9326 (acc_copyout_async_64_h): New subroutine.
9327 (acc_copyout_async_array_h): New subroutine.
9328 (acc_delete_async_32_h): New subroutine.
9329 (acc_delete_async_64_h): New subroutine.
9330 (acc_delete_async_array_h): New subroutine.
9331 (acc_update_device_async_32_h): New subroutine.
9332 (acc_update_device_async_64_h): New subroutine.
9333 (acc_update_device_async_array_h): New subroutine.
9334 (acc_update_self_async_32_h): New subroutine.
9335 (acc_update_self_async_64_h): New subroutine.
9336 (acc_update_self_async_array_h): New subroutine.
9337 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
9338 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
9339 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
9340 acc_memcpy_to_device_async*, acc_update_device_async*, and
9341 acc_update_self_async* entries.
9342 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
9343 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
9344 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
9345
9346 2018-10-31 Joseph Myers <joseph@codesourcery.com>
9347
9348 PR bootstrap/82856
9349 * Makefile.am: Include multilib.am
9350 (AUTOMAKE_OPTIONS): Add info-in-builddir.
9351 (CLEANFILES): Remove libgomp.info.
9352 * configure.ac: Remove AC_PREREQ.
9353 * testsuite/Makefile.am (RUNTEST): Remove quotes.
9354 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
9355 Regenerate.
9356
9357 2018-10-29 Joseph Myers <joseph@codesourcery.com>
9358 Julian Brown <julian@codesourcery.com>
9359
9360 * testsuite/libgomp.oacc-c++/this.C: New.
9361
9362 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
9363
9364 * plugin/plugin-nvptx.c (struct cuda_map): New.
9365 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
9366 h_tail with (cuda_map *) map.
9367 (cuda_map_create): New function.
9368 (cuda_map_destroy): New function.
9369 (map_init): Update to use a linked list of cuda_map objects.
9370 (map_fini): Likewise.
9371 (map_pop): Likewise.
9372 (map_push): Likewise. Return CUdeviceptr instead of void.
9373 (init_streams_for_device): Remove stales references to ptx_stream
9374 members.
9375 (select_stream_for_async): Likewise.
9376 (nvptx_exec): Update call to map_init.
9377
9378 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
9379 Julian Brown <julian@codesourcery.com>
9380
9381 PR middle-end/86336
9382 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
9383
9384 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
9385 Thomas Koenig <tkoenig@gcc.gnu.org>
9386
9387 PR fortran/25829
9388 * testsuite/libgomp.fortran/async_io_1.f90: New test.
9389 * testsuite/libgomp.fortran/async_io_2.f90: New test.
9390 * testsuite/libgomp.fortran/async_io_3.f90: New test.
9391 * testsuite/libgomp.fortran/async_io_4.f90: New test.
9392 * testsuite/libgomp.fortran/async_io_5.f90: New test.
9393 * testsuite/libgomp.fortran/async_io_6.f90: New test.
9394 * testsuite/libgomp.fortran/async_io_7.f90: New test.
9395
9396 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
9397 Tom de Vries <tdevries@suse.de>
9398
9399 PR target/85590
9400 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
9401 (cuOccupancyMaxPotentialBlockSize): Declare.
9402 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
9403 CUDA_ONE_CALL_MAYBE_NULL.
9404 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
9405 CUoccupancyB2DSize and declare
9406 cuOccupancyMaxPotentialBlockSize.
9407 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
9408 default num_gangs and num_workers when the driver supports it.
9409
9410 2018-08-08 Tom de Vries <tdevries@suse.de>
9411
9412 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
9413 CUDA_ONE_CALL_MAYBE_NULL.
9414 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
9415 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
9416 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
9417 are not found.
9418
9419 2018-08-08 Tom de Vries <tdevries@suse.de>
9420
9421 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
9422 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
9423 present.
9424
9425 2018-08-08 Tom de Vries <tdevries@suse.de>
9426
9427 * plugin/plugin-nvptx.c
9428 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
9429 (nvptx_open_device): Use
9430 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
9431
9432 2018-08-08 Tom de Vries <tdevries@suse.de>
9433
9434 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
9435 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
9436
9437 2018-08-07 Tom de Vries <tdevries@suse.de>
9438
9439 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
9440 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
9441 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
9442 corresponding call in CUDA_ONE_CALL. Add def/undef of
9443 CUDA_ONE_CALL_MAYBE_NULL.
9444 (CUDA_CALL_EXISTS): Define.
9445
9446 2018-08-07 Tom de Vries <tdevries@suse.de>
9447
9448 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
9449 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
9450 corresponding undefs right after.
9451
9452 2018-08-04 Tom de Vries <tdevries@suse.de>
9453
9454 * plugin/configfrag.ac: For --without-cuda-driver, set
9455 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
9456 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
9457 * configure: Regenerate.
9458
9459 2018-08-02 Tom de Vries <tdevries@suse.de>
9460
9461 PR target/86660
9462 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
9463 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
9464 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
9465 Same.
9466 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
9467 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
9468 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
9469
9470 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
9471 Thomas Schwinge <thomas@codesourcery.com>
9472
9473 * config/nvptx/oacc-parallel.c: Truncate.
9474
9475 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
9476 James Norris <jnorris@codesourcery.com>
9477
9478 * plugin/plugin-nvptx.c (struct map): Removed.
9479 (map_init, map_pop): Remove use of struct map.
9480 (map_push): Likewise and change argument list.
9481 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
9482
9483 2018-08-01 Tom de Vries <tdevries@suse.de>
9484
9485 * plugin/cuda-lib.def: New file. Factor out of ...
9486 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
9487 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
9488 using CUDA_CALLS.
9489
9490 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
9491
9492 Revert 'AsyncI/O patch committed'.
9493 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
9494 Thomas Koenig <tkoenig@gcc.gnu.org>
9495
9496 PR fortran/25829
9497 * testsuite/libgomp.fortran/async_io_1.f90: New test.
9498 * testsuite/libgomp.fortran/async_io_2.f90: New test.
9499 * testsuite/libgomp.fortran/async_io_3.f90: New test.
9500 * testsuite/libgomp.fortran/async_io_4.f90: New test.
9501 * testsuite/libgomp.fortran/async_io_5.f90: New test.
9502 * testsuite/libgomp.fortran/async_io_6.f90: New test.
9503 * testsuite/libgomp.fortran/async_io_7.f90: New test.
9504
9505 2018-07-30 Tom de Vries <tdevries@suse.de>
9506
9507 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
9508 (nvptx_exec): Ensure worker and vector default dims don't exceed
9509 targ_fn->max_threads_per_block.
9510
9511 2018-07-30 Tom de Vries <tdevries@suse.de>
9512
9513 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
9514 (nvptx_open_device): Init default_dims for device.
9515 (nvptx_exec): Use default_dims from device.
9516
9517 2018-07-26 Jakub Jelinek <jakub@redhat.com>
9518
9519 PR testsuite/86660
9520 * testsuite/libgomp.c++/for-15.C (results): Include it in
9521 omp declare target region.
9522 (main): Use map (always, tofrom: results) instead of
9523 map (tofrom: results).
9524
9525 PR middle-end/86660
9526 * testsuite/libgomp.c/pr86660.c: New test.
9527
9528 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
9529 Tom de Vries <tdevries@suse.de>
9530
9531 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
9532 sufficient resources to launch a kernel, and give a hint on how to fix
9533 it.
9534
9535 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
9536 Tom de Vries <tdevries@suse.de>
9537
9538 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
9539 max_threads_per_block and max_threads_per_multiprocessor fields.
9540 (nvptx_open_device): Initialize new fields.
9541 (nvptx_exec): Use num_sms, and new fields.
9542
9543 2018-07-26 Tom de Vries <tdevries@suse.de>
9544
9545 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
9546 to correct locations. Remove xfail.
9547
9548 2018-07-26 Tom de Vries <tdevries@suse.de>
9549
9550 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
9551 acc_wait. Move acc_async_test calls to correct locations. Remove
9552 xfail.
9553
9554 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
9555 Thomas Koenig <tkoenig@gcc.gnu.org>
9556
9557 PR fortran/25829
9558 * testsuite/libgomp.fortran/async_io_1.f90: New test.
9559 * testsuite/libgomp.fortran/async_io_2.f90: New test.
9560 * testsuite/libgomp.fortran/async_io_3.f90: New test.
9561 * testsuite/libgomp.fortran/async_io_4.f90: New test.
9562 * testsuite/libgomp.fortran/async_io_5.f90: New test.
9563 * testsuite/libgomp.fortran/async_io_6.f90: New test.
9564 * testsuite/libgomp.fortran/async_io_7.f90: New test.
9565
9566 2018-07-17 Jakub Jelinek <jakub@redhat.com>
9567
9568 PR middle-end/86542
9569 * testsuite/libgomp.c++/pr86542.C: New test.
9570
9571 PR middle-end/86539
9572 * testsuite/libgomp.c++/pr86539.C: New test.
9573
9574 2018-07-11 Jakub Jelinek <jakub@redhat.com>
9575
9576 PR c++/86443
9577 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
9578 (results): Make sure the variable is not inside declare target region.
9579 (qux): Remove unused function.
9580
9581 2018-07-10 Jakub Jelinek <jakub@redhat.com>
9582
9583 PR c++/86443
9584 * testsuite/libgomp.c++/for-15.C: New test.
9585
9586 2018-06-26 Jakub Jelinek <jakub@redhat.com>
9587
9588 PR c++/86291
9589 * testsuite/libgomp.c++/pr86291.C: New test.
9590
9591 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
9592
9593 * libgomp.texi (Top): Move www.openmp.org to https.
9594 (Enabling OpenMP): Ditto.
9595 (omp_get_active_level): Ditto.
9596 (omp_get_ancestor_thread_num): Ditto.
9597 (omp_get_cancellation): Ditto.
9598 (omp_get_default_device): Ditto.
9599 (omp_get_dynamic): Ditto.
9600 (omp_get_level): Ditto.
9601 (omp_get_max_active_levels): Ditto.
9602 (omp_get_max_task_priority): Ditto.
9603 (omp_get_max_threads): Ditto.
9604 (omp_get_nested): Ditto.
9605 (omp_get_num_devices): Ditto.
9606 (omp_get_num_procs): Ditto.
9607 (omp_get_num_teams): Ditto.
9608 (omp_get_num_threads): Ditto.
9609 (omp_get_proc_bind): Ditto.
9610 (omp_get_schedule): Ditto.
9611 (omp_get_team_num): Ditto.
9612 (omp_get_team_size): Ditto.
9613 (omp_get_thread_limit): Ditto.
9614 (omp_get_thread_num): Ditto.
9615 (omp_in_parallel): Ditto.
9616 (omp_in_final): Ditto.
9617 (omp_is_initial_device): Ditto.
9618 (omp_set_default_device): Ditto.
9619 (omp_set_dynamic): Ditto.
9620 (omp_set_max_active_levels): Ditto.
9621 (omp_set_nested): Ditto.
9622 (omp_set_num_threads): Ditto.
9623 (omp_set_schedule): Ditto.
9624 (omp_init_lock): Ditto.
9625 (omp_set_lock): Ditto.
9626 (omp_test_lock): Ditto.
9627 (omp_unset_lock): Ditto.
9628 (omp_destroy_lock): Ditto.
9629 (omp_init_nest_lock): Ditto.
9630 (omp_set_nest_lock): Ditto.
9631 (omp_test_nest_lock): Ditto.
9632 (omp_unset_nest_lock): Ditto.
9633 (omp_destroy_nest_lock): Ditto.
9634 (omp_get_wtick): Ditto.
9635 (omp_get_wtime): Ditto.
9636 (OMP_CANCELLATION): Ditto.
9637 (OMP_DISPLAY_ENV): Ditto.
9638 (OMP_DEFAULT_DEVICE): Ditto.
9639 (OMP_DYNAMIC): Ditto.
9640 (OMP_MAX_ACTIVE_LEVELS): Ditto.
9641 (OMP_MAX_TASK_PRIORITY): Ditto.
9642 (OMP_NESTED): Ditto.
9643 (OMP_NUM_THREADS): Ditto.
9644 (OMP_PROC_BIND): Ditto.
9645 (OMP_PLACES): Ditto.
9646 (OMP_STACKSIZE): Ditto.
9647 (OMP_SCHEDULE): Ditto.
9648 (OMP_THREAD_LIMIT): Ditto.
9649 (OMP_WAIT_POLICY): Ditto.
9650
9651 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
9652 James Norris <jnorris@codesourcery.com>
9653 Julian Brown <julian@codesourcery.com>
9654 Thomas Schwinge <thomas@codesourcery.com>
9655 Tom de Vries <tom@codesourcery.com>
9656
9657 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
9658 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
9659 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
9660 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
9661 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
9662 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
9663 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
9664 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
9665 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
9666 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
9667 Likewise.
9668 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
9669 Likewise.
9670 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
9671 Likewise.
9672 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
9673 Likewise.
9674 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
9675 Likewise.
9676 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
9677 Likewise.
9678 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
9679 Likewise.
9680 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
9681 Likewise.
9682 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
9683 Likewise.
9684 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
9685 Likewise.
9686 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
9687 Likewise.
9688 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
9689 Likewise.
9690 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
9691 Likewise.
9692 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
9693 Likewise.
9694 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
9695 Likewise.
9696 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
9697 Likewise.
9698 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
9699 Likewise.
9700 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
9701 Likewise.
9702 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
9703 Likewise.
9704 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
9705 Likewise.
9706 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
9707 Likewise.
9708 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
9709 Likewise.
9710 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
9711 Likewise.
9712 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
9713 Likewise.
9714 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
9715 Likewise.
9716 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
9717 Likewise.
9718 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
9719 Likewise.
9720 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
9721 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
9722 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
9723 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
9724 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
9725 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
9726 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
9727 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
9728 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
9729 Likewise.
9730 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
9731 Likewise.
9732 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
9733 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
9734 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
9735 Likewise.
9736 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
9737 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
9738 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
9739 Likewise.
9740 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
9741 Likewise.
9742 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
9743 Likewise.
9744 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
9745 Likewise.
9746 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
9747 Likewise.
9748 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
9749 Likewise.
9750 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
9751 Likewise.
9752 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
9753 Likewise.
9754 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
9755 Likewise.
9756 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
9757 Likewise.
9758 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
9759 Likewise.
9760 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
9761 Likewise.
9762 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
9763 Likewise.
9764 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
9765 Likewise.
9766 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
9767 Likewise.
9768 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
9769 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
9770 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
9771 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
9772 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
9773 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
9774 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
9775
9776 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
9777 Thomas Schwinge <thomas@codesourcery.com>
9778 Cesar Philippidis <cesar@codesourcery.com>
9779
9780 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
9781 (gomp_acc_remove_pointer): Update declaration.
9782 (gomp_acc_declare_allocate): Declare.
9783 (gomp_remove_var): Declare.
9784 * libgomp.map (OACC_2.5): Define.
9785 * oacc-mem.c (acc_map_data): Update refcount.
9786 (acc_unmap_data): Likewise.
9787 (present_create_copy): Likewise.
9788 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
9789 (acc_copyin): Likewise.
9790 (FLAG_FINALIZE): Define.
9791 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
9792 (acc_delete_finalize): New function.
9793 (acc_delete_finalize_async): New function.
9794 (acc_copyout_finalize): New function.
9795 (acc_copyout_finalize_async): New function.
9796 (gomp_acc_insert_pointer): Update refcounts.
9797 (gomp_acc_remove_pointer): Return if data is not present on the
9798 accelerator.
9799 * oacc-parallel.c (find_pset): Rename to find_pointer.
9800 (find_pointer): Add support for GOMP_MAP_POINTER.
9801 (handle_ftn_pointers): New function.
9802 (GOACC_parallel_keyed): Update refcounts of variables.
9803 (GOACC_enter_exit_data): Add support for finalized data mappings.
9804 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
9805 of fortran arrays.
9806 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
9807 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
9808 for GOMP_MAP_FORCE_FROM.
9809 * openacc.f90 (module openacc_internal): Add
9810 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
9811 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
9812 acc_copyout_finalize and acc_delete_finalize.
9813 (acc_copyout_finalize_32_h): New subroutine.
9814 (acc_copyout_finalize_64_h): New subroutine.
9815 (acc_copyout_finalize_array_h): New subroutine.
9816 (acc_delete_finalize_32_h): New subroutine.
9817 (acc_delete_finalize_64_h): New subroutine.
9818 (acc_delete_finalize_array_h): New subroutine.
9819 * openacc.h (acc_copyout_finalize): Declare.
9820 (acc_copyout_finalize_async): Declare.
9821 (acc_delete_finalize): Declare.
9822 (acc_delete_finalize_async): Declare.
9823 * openacc_lib.h (acc_copyout_finalize): New interface.
9824 (acc_delete_finalize): New interface.
9825 * target.c (gomp_map_vars): Update dynamic_refcount.
9826 (gomp_remove_var): New function.
9827 (gomp_unmap_vars): Use it.
9828 (gomp_unload_image_from_device): Likewise.
9829 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
9830 case to utilize OpenACC 2.5 data clause semantics.
9831 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
9832 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
9833 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
9834 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
9835 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
9836 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
9837 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
9838 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
9839 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
9840 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
9841 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
9842 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
9843 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
9844 utilize OpenACC 2.5 data clause semantics.
9845 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
9846 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
9847 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
9848 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
9849 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
9850 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
9851 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
9852 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
9853 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
9854
9855 2018-05-21 Janus Weil <janus@gcc.gnu.org>
9856
9857 PR fortran/85841
9858 PR testsuite/85865
9859 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
9860 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
9861 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
9862 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
9863 * testsuite/libgomp.fortran/task2.f90: Ditto.
9864 * testsuite/libgomp.fortran/vla1.f90: Ditto.
9865 * testsuite/libgomp.fortran/vla2.f90: Ditto.
9866 * testsuite/libgomp.fortran/vla3.f90: Ditto.
9867 * testsuite/libgomp.fortran/vla4.f90: Ditto.
9868 * testsuite/libgomp.fortran/vla5.f90: Ditto.
9869 * testsuite/libgomp.fortran/vla6.f90: Ditto.
9870 * testsuite/libgomp.fortran/vla8.f90: Ditto.
9871 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
9872 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
9873
9874 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
9875
9876 PR c++/85782
9877 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
9878
9879 2018-05-09 Tom de Vries <tom@codesourcery.com>
9880
9881 PR libgomp/82901
9882 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
9883 to GOACC_enter_exit_data.
9884
9885 2018-05-09 Tom de Vries <tom@codesourcery.com>
9886
9887 PR libgomp/83792
9888 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
9889 (async_synchronous_p): New function.
9890 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
9891 async_valid_p.
9892 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
9893 async_valid_stream_id_p.
9894 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
9895 * oacc-parallel.c (GOACC_parallel_keyed): Same.
9896
9897 2018-05-07 Tom de Vries <tom@codesourcery.com>
9898
9899 PR testsuite/85677
9900 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
9901 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
9902
9903 2018-05-03 Tom de Vries <tom@codesourcery.com>
9904
9905 PR testsuite/85106
9906 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
9907 extra_tool_flags if it contains an -foffload=-fdump-* flag.
9908 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
9909 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
9910
9911 2018-05-02 Tom de Vries <tom@codesourcery.com>
9912
9913 PR libgomp/85411
9914 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
9915 GOMP_OPENACC_DIM ...
9916 * env.c (parse_gomp_openacc_dim): ... here. New function.
9917 (initialize_env): Call parse_gomp_openacc_dim.
9918 (goacc_default_dims): Define.
9919 * libgomp.h (goacc_default_dims): Declare.
9920 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
9921 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
9922 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
9923 GOMP_PLUGIN_acc_default_dim.
9924 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
9925 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
9926
9927 2018-05-02 Tom de Vries <tom@codesourcery.com>
9928
9929 PR testsuite/83791
9930 * testsuite/libgomp.c++/udr-9.C: Update.
9931 * testsuite/libgomp.c++/atomic-16.C: Remove.
9932 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
9933 * testsuite/libgomp.c++/loop-13.C: Remove.
9934 * testsuite/libgomp.c++/loop-14.C: Remove.
9935 * testsuite/libgomp.c++/loop-15.C: Remove.
9936 * testsuite/libgomp.c++/monotonic-1.C: Remove.
9937 * testsuite/libgomp.c++/monotonic-2.C: Remove.
9938 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
9939 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
9940 * testsuite/libgomp.c++/ordered-1.C: Remove.
9941 * testsuite/libgomp.c++/pr45784.C: Remove.
9942 * testsuite/libgomp.c++/pr64824.C: Remove.
9943 * testsuite/libgomp.c++/pr64868.C: Remove.
9944 * testsuite/libgomp.c++/pr66199-1.C: Remove.
9945 * testsuite/libgomp.c++/pr66199-2.C: Remove.
9946 * testsuite/libgomp.c++/pr66199-3.C: Remove.
9947 * testsuite/libgomp.c++/pr66199-4.C: Remove.
9948 * testsuite/libgomp.c++/pr66199-5.C: Remove.
9949 * testsuite/libgomp.c++/pr66199-6.C: Remove.
9950 * testsuite/libgomp.c++/pr66199-7.C: Remove.
9951 * testsuite/libgomp.c++/pr66199-8.C: Remove.
9952 * testsuite/libgomp.c++/pr66199-9.C: Remove.
9953 * testsuite/libgomp.c++/pr69389.C: Remove.
9954 * testsuite/libgomp.c++/simd10.C: Remove.
9955 * testsuite/libgomp.c++/simd11.C: Remove.
9956 * testsuite/libgomp.c++/simd12.C: Remove.
9957 * testsuite/libgomp.c++/simd13.C: Remove.
9958 * testsuite/libgomp.c++/target-1.C: Remove.
9959 * testsuite/libgomp.c++/target-3.C: Remove.
9960 * testsuite/libgomp.c++/target-4.C: Remove.
9961 * testsuite/libgomp.c++/target-5.C: Remove.
9962 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
9963 * testsuite/libgomp.c++/taskloop-1.C: Remove.
9964 * testsuite/libgomp.c++/taskloop-2.C: Remove.
9965 * testsuite/libgomp.c++/taskloop-3.C: Remove.
9966 * testsuite/libgomp.c++/taskloop-4.C: Remove.
9967 * testsuite/libgomp.c++/udr-9.C: Remove.
9968 * testsuite/libgomp.c++/for-10.C: Remove.
9969 * testsuite/libgomp.c++/for-11.C: Remove.
9970 * testsuite/libgomp.c++/for-12.C: Remove.
9971 * testsuite/libgomp.c++/for-13.C: Remove.
9972 * testsuite/libgomp.c++/for-14.C: Remove.
9973 * testsuite/libgomp.c++/for-9.C: Remove.
9974 * testsuite/libgomp.c/atomic-18.c: Move ...
9975 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
9976 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
9977 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
9978 * testsuite/libgomp.c/loop-13.c: Move ...
9979 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
9980 * testsuite/libgomp.c/loop-14.c: Move ...
9981 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
9982 * testsuite/libgomp.c/loop-15.c: Remove.
9983 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
9984 * testsuite/libgomp.c/monotonic-1.c: Move ...
9985 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
9986 * testsuite/libgomp.c/monotonic-2.c: Move ...
9987 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
9988 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
9989 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
9990 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
9991 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
9992 * testsuite/libgomp.c/ordered-4.c: Move ...
9993 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
9994 * testsuite/libgomp.c/pr45784.c: Move ...
9995 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
9996 * testsuite/libgomp.c/pr64824.c: Move ...
9997 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
9998 * testsuite/libgomp.c/pr64868.c: Move ...
9999 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
10000 * testsuite/libgomp.c/pr66199-1.c: Move ...
10001 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
10002 * testsuite/libgomp.c/pr66199-2.c: Move ...
10003 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
10004 * testsuite/libgomp.c/pr66199-3.c: Move ...
10005 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
10006 * testsuite/libgomp.c/pr66199-4.c: Move ...
10007 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
10008 * testsuite/libgomp.c/pr66199-5.c: Move ...
10009 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
10010 * testsuite/libgomp.c/pr66199-6.c: Move ...
10011 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
10012 * testsuite/libgomp.c/pr66199-7.c: Move ...
10013 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
10014 * testsuite/libgomp.c/pr66199-8.c: Move ...
10015 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
10016 * testsuite/libgomp.c/pr66199-9.c: Move ...
10017 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
10018 * testsuite/libgomp.c/pr69389.c: Move ...
10019 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
10020 * testsuite/libgomp.c/simd-14.c: Move ...
10021 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
10022 * testsuite/libgomp.c/simd-15.c: Move ...
10023 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
10024 * testsuite/libgomp.c/simd-16.c: Move ...
10025 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
10026 * testsuite/libgomp.c/simd-17.c: Move ...
10027 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
10028 * testsuite/libgomp.c/target-1.c: Move ...
10029 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
10030 * testsuite/libgomp.c/target-10.c: Move ...
10031 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
10032 * testsuite/libgomp.c/target-13.c: Move ...
10033 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
10034 * testsuite/libgomp.c/target-2.c: Move ...
10035 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
10036 * testsuite/libgomp.c/taskgroup-1.c: Move ...
10037 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
10038 * testsuite/libgomp.c/taskloop-1.c: Move ...
10039 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
10040 * testsuite/libgomp.c/taskloop-2.c: Move ...
10041 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
10042 * testsuite/libgomp.c/taskloop-3.c: Move ...
10043 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
10044 * testsuite/libgomp.c/taskloop-4.c: Move ...
10045 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
10046 * testsuite/libgomp.c/udr-1.c: Move ...
10047 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
10048 * testsuite/libgomp.c/for-1.c: Move ...
10049 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
10050 * testsuite/libgomp.c/for-1.h: Move ...
10051 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
10052 * testsuite/libgomp.c/for-2.c: Move ...
10053 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
10054 * testsuite/libgomp.c/for-2.h: Move ...
10055 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
10056 * testsuite/libgomp.c/for-3.c: Move ...
10057 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
10058 * testsuite/libgomp.c/for-4.c: Move ...
10059 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
10060 * testsuite/libgomp.c/for-5.c: Move ...
10061 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
10062 * testsuite/libgomp.c/for-6.c: Move ...
10063 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
10064
10065 2018-05-02 Tom de Vries <tom@codesourcery.com>
10066
10067 PR libgomp/82428
10068 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
10069 __builtin_goacc_parlevel_{id,size}.
10070 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
10071 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
10072 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
10073 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
10074 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
10075 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
10076 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
10077 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
10078 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
10079 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
10080 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
10081 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
10082 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
10083 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
10084 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
10085 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
10086 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
10087 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
10088 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
10089 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
10090 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
10091 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
10092 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
10093
10094 2018-05-02 Tom de Vries <tom@codesourcery.com>
10095
10096 PR testsuite/85106
10097 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
10098
10099 2018-05-02 Tom de Vries <tom@codesourcery.com>
10100
10101 PR testsuite/85106
10102 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
10103
10104 2018-04-29 Julian Brown <julian@codesourcery.com>
10105 Tom de Vries <tom@codesourcery.com>
10106
10107 PR testsuite/85527
10108 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
10109 arbitrary order for iterations of atomic subtract check.
10110
10111 2018-04-28 Tom de Vries <tom@codesourcery.com>
10112
10113 PR testsuite/85527
10114 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
10115 atomic capture results obtained in parallel loop to an array, instead of
10116 to a scalar.
10117
10118 2018-04-26 Tom de Vries <tom@codesourcery.com>
10119
10120 PR libgomp/84020
10121 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
10122 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
10123 (process_GOMP_NVPTX_JIT): New function.
10124 (link_ptx): Use process_GOMP_NVPTX_JIT.
10125
10126 2018-04-26 Richard Biener <rguenther@suse.de>
10127 Tom de Vries <tom@codesourcery.com>
10128
10129 PR lto/85422
10130 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
10131
10132 2018-04-26 Tom de Vries <tom@codesourcery.com>
10133
10134 PR target/85519
10135 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
10136 recursion depth from 25 to 23.
10137 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
10138
10139 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
10140
10141 * configure: Regenerated.
10142
10143 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
10144 Tom de Vries <tom@codesourcery.com>
10145
10146 PR target/85445
10147 * testsuite/libgomp.oacc-c++/ref-1.C: New.
10148
10149 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
10150
10151 PR libgomp/85463
10152 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
10153 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
10154 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
10155 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
10156 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
10157 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
10158
10159 PR libfortran/85166
10160 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
10161 abort".
10162 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
10163
10164 2018-04-19 Jakub Jelinek <jakub@redhat.com>
10165
10166 * configure: Regenerated.
10167
10168 2018-04-18 David Malcolm <dmalcolm@redhat.com>
10169
10170 PR jit/85384
10171 * configure: Regenerate.
10172
10173 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
10174 Tom de Vries <tom@codesourcery.com>
10175
10176 PR middle-end/84955
10177 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
10178 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
10179
10180 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
10181
10182 PR fortran/83064
10183 PR testsuite/85346
10184 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
10185 test from gfortran.dg to here.
10186
10187 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
10188
10189 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
10190 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
10191
10192 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
10193
10194 PR middle-end/84955
10195 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
10196 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
10197
10198 2018-04-05 Tom de Vries <tom@codesourcery.com>
10199
10200 PR target/85204
10201 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
10202
10203 2018-03-26 Tom de Vries <tom@codesourcery.com>
10204
10205 PR tree-optimization/85063
10206 * testsuite/libgomp.c/switch-conversion-2.c: New test.
10207 * testsuite/libgomp.c/switch-conversion.c: New test.
10208 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
10209 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
10210
10211 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
10212
10213 PR fortran/84381
10214 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
10215 call abort by STOP n.
10216 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
10217 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
10218 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
10219 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
10220 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
10221 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
10222 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
10223 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
10224 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
10225 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
10226 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
10227 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
10228 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
10229 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
10230 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
10231 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
10232 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
10233 * testsuite/libgomp.fortran/associate1.f90: Likewise.
10234 * testsuite/libgomp.fortran/associate2.f90: Likewise.
10235 * testsuite/libgomp.fortran/associate3.f90: Likewise.
10236 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
10237 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
10238 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
10239 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
10240 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
10241 * testsuite/libgomp.fortran/character1.f90: Likewise.
10242 * testsuite/libgomp.fortran/character2.f90: Likewise.
10243 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
10244 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
10245 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
10246 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
10247 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
10248 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
10249 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
10250 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
10251 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
10252 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
10253 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
10254 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
10255 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
10256 * testsuite/libgomp.fortran/do1.f90: Likewise.
10257 * testsuite/libgomp.fortran/do2.f90: Likewise.
10258 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
10259 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
10260 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
10261 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
10262 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
10263 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
10264 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
10265 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
10266 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
10267 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
10268 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
10269 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
10270 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
10271 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
10272 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
10273 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
10274 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
10275 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
10276 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
10277 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
10278 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
10279 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
10280 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
10281 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
10282 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
10283 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
10284 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
10285 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
10286 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
10287 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
10288 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
10289 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
10290 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
10291 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
10292 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
10293 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
10294 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
10295 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
10296 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
10297 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
10298 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
10299 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
10300 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
10301 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
10302 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
10303 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
10304 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
10305 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
10306 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
10307 * testsuite/libgomp.fortran/lib1.f90: Likewise.
10308 * testsuite/libgomp.fortran/lib2.f: Likewise.
10309 * testsuite/libgomp.fortran/lib3.f: Likewise.
10310 * testsuite/libgomp.fortran/lib4.f90: Likewise.
10311 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
10312 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
10313 * testsuite/libgomp.fortran/nested1.f90: Likewise.
10314 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
10315 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
10316 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
10317 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
10318 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
10319 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
10320 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
10321 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
10322 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
10323 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
10324 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
10325 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
10326 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
10327 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
10328 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
10329 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
10330 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
10331 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
10332 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
10333 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
10334 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
10335 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
10336 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
10337 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
10338 * testsuite/libgomp.fortran/pr25162.f: Likewise.
10339 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
10340 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
10341 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
10342 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
10343 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
10344 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
10345 * testsuite/libgomp.fortran/pr28390.f: Likewise.
10346 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
10347 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
10348 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
10349 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
10350 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
10351 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
10352 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
10353 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
10354 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
10355 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
10356 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
10357 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
10358 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
10359 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
10360 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
10361 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
10362 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
10363 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
10364 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
10365 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
10366 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
10367 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
10368 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
10369 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
10370 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
10371 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
10372 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
10373 * testsuite/libgomp.fortran/reference1.f90: Likewise.
10374 * testsuite/libgomp.fortran/reference2.f90: Likewise.
10375 * testsuite/libgomp.fortran/retval1.f90: Likewise.
10376 * testsuite/libgomp.fortran/retval2.f90: Likewise.
10377 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
10378 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
10379 * testsuite/libgomp.fortran/simd1.f90: Likewise.
10380 * testsuite/libgomp.fortran/simd2.f90: Likewise.
10381 * testsuite/libgomp.fortran/simd3.f90: Likewise.
10382 * testsuite/libgomp.fortran/simd4.f90: Likewise.
10383 * testsuite/libgomp.fortran/simd5.f90: Likewise.
10384 * testsuite/libgomp.fortran/simd6.f90: Likewise.
10385 * testsuite/libgomp.fortran/simd7.f90: Likewise.
10386 * testsuite/libgomp.fortran/stack.f90: Likewise.
10387 * testsuite/libgomp.fortran/strassen.f90: Likewise.
10388 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
10389 * testsuite/libgomp.fortran/tabs2.f: Likewise.
10390 * testsuite/libgomp.fortran/target1.f90: Likewise.
10391 * testsuite/libgomp.fortran/target2.f90: Likewise.
10392 * testsuite/libgomp.fortran/target3.f90: Likewise.
10393 * testsuite/libgomp.fortran/target4.f90: Likewise.
10394 * testsuite/libgomp.fortran/target5.f90: Likewise.
10395 * testsuite/libgomp.fortran/target6.f90: Likewise.
10396 * testsuite/libgomp.fortran/target7.f90: Likewise.
10397 * testsuite/libgomp.fortran/target8.f90: Likewise.
10398 * testsuite/libgomp.fortran/task1.f90: Likewise.
10399 * testsuite/libgomp.fortran/task2.f90: Likewise.
10400 * testsuite/libgomp.fortran/task3.f90: Likewise.
10401 * testsuite/libgomp.fortran/task4.f90: Likewise.
10402 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
10403 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
10404 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
10405 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
10406 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
10407 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
10408 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
10409 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
10410 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
10411 * testsuite/libgomp.fortran/udr1.f90: Likewise.
10412 * testsuite/libgomp.fortran/udr10.f90: Likewise.
10413 * testsuite/libgomp.fortran/udr11.f90: Likewise.
10414 * testsuite/libgomp.fortran/udr12.f90: Likewise.
10415 * testsuite/libgomp.fortran/udr13.f90: Likewise.
10416 * testsuite/libgomp.fortran/udr14.f90: Likewise.
10417 * testsuite/libgomp.fortran/udr15.f90: Likewise.
10418 * testsuite/libgomp.fortran/udr2.f90: Likewise.
10419 * testsuite/libgomp.fortran/udr3.f90: Likewise.
10420 * testsuite/libgomp.fortran/udr4.f90: Likewise.
10421 * testsuite/libgomp.fortran/udr5.f90: Likewise.
10422 * testsuite/libgomp.fortran/udr6.f90: Likewise.
10423 * testsuite/libgomp.fortran/udr7.f90: Likewise.
10424 * testsuite/libgomp.fortran/udr8.f90: Likewise.
10425 * testsuite/libgomp.fortran/udr9.f90: Likewise.
10426 * testsuite/libgomp.fortran/vla1.f90: Likewise.
10427 * testsuite/libgomp.fortran/vla2.f90: Likewise.
10428 * testsuite/libgomp.fortran/vla3.f90: Likewise.
10429 * testsuite/libgomp.fortran/vla4.f90: Likewise.
10430 * testsuite/libgomp.fortran/vla5.f90: Likewise.
10431 * testsuite/libgomp.fortran/vla6.f90: Likewise.
10432 * testsuite/libgomp.fortran/vla7.f90: Likewise.
10433 * testsuite/libgomp.fortran/vla8.f90: Likewise.
10434 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
10435 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
10436 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
10437 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
10438 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
10439 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
10440 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
10441 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
10442 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
10443 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
10444 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
10445 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
10446 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
10447 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
10448 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
10449 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
10450 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
10451 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
10452 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
10453 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
10454 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
10455 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
10456 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
10457 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
10458 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
10459 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
10460 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
10461 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
10462 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
10463 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
10464 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
10465 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
10466 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
10467 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
10468 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
10469 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
10470 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
10471 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
10472 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
10473 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
10474 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
10475 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
10476 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
10477 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
10478 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
10479 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
10480 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
10481 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
10482 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
10483 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
10484 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
10485 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
10486 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
10487 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
10488 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
10489 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
10490 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
10491 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
10492 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
10493 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
10494 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
10495 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
10496 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
10497 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
10498 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
10499 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
10500 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
10501 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
10502 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
10503 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
10504 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
10505 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
10506 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
10507 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
10508 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
10509 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
10510 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
10511 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
10512 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
10513 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
10514 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
10515 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
10516 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
10517 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
10518 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
10519 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
10520 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
10521 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
10522 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
10523 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
10524 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
10525 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
10526 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
10527 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
10528
10529 2018-03-20 Richard Biener <rguenther@suse.de>
10530
10531 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
10532 parallelizable loop.
10533
10534 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
10535
10536 PR target/84148
10537 * configure: Regenerate.
10538
10539 2018-02-16 Jakub Jelinek <jakub@redhat.com>
10540
10541 PR fortran/84418
10542 * libgomp.fortran/pr84418-1.f90: New test.
10543 * libgomp.fortran/pr84418-2.f90: New test.
10544
10545 2018-02-14 Jakub Jelinek <jakub@redhat.com>
10546
10547 PR fortran/84313
10548 * testsuite/libgomp.fortran/threadprivate4.f90: Add
10549 -std=f2003 -fall-intrinsics into dg-additional-options.
10550
10551 2018-02-08 Martin Jambor <mjambor@suse.cz>
10552
10553 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
10554 clonable.
10555
10556 2018-02-08 Martin Jambor <mjambor@suse.cz>
10557
10558 * testsuite/libgomp.hsa.c/staticvar.c: New test.
10559
10560 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10561
10562 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
10563 [__cplusplus]: Declare extern "C".
10564
10565 2018-02-07 Tom de Vries <tom@codesourcery.com>
10566
10567 PR libgomp/84217
10568 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
10569
10570 2018-01-29 Christoph Spiel <cspiel@freenet.de>
10571 Jakub Jelinek <jakub@redhat.com>
10572
10573 PR libgomp/84096
10574 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
10575 instead of omp_lock_t.
10576
10577 2018-01-25 Tom de Vries <tom@codesourcery.com>
10578
10579 PR target/84028
10580 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
10581
10582 2018-01-24 Tom de Vries <tom@codesourcery.com>
10583
10584 PR target/83589
10585 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
10586
10587 2018-01-24 Tom de Vries <tom@codesourcery.com>
10588
10589 PR target/81352
10590 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
10591
10592 2018-01-19 Tom de Vries <tom@codesourcery.com>
10593 Cesar Philippidis <cesar@codesourcery.com>
10594
10595 PR target/83920
10596 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
10597 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
10598
10599 2018-01-03 Jakub Jelinek <jakub@redhat.com>
10600
10601 Update copyright years.
10602
10603 * libgomp.texi: Bump @copying's copyright year.
10604
10605 2017-12-30 Tom de Vries <tom@codesourcery.com>
10606
10607 PR libgomp/83046
10608 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
10609 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
10610
10611 2017-12-27 Tom de Vries <tom@codesourcery.com>
10612
10613 PR c++/83046
10614 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
10615 (test_nonstatic): Fix return type to workaround PR83046.
10616
10617 2017-12-05 Jakub Jelinek <jakub@redhat.com>
10618
10619 PR testsuite/83281
10620 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
10621 j suffix instead of i.
10622 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
10623 Likewise.
10624
10625 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
10626
10627 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
10628 call to acc_wait (1).
10629
10630 2017-11-24 Jakub Jelinek <jakub@redhat.com>
10631
10632 PR fortran/81304
10633 * testsuite/libgomp.fortran/pr81304.f90: New test.
10634
10635 2017-11-23 Jakub Jelinek <jakub@redhat.com>
10636
10637 PR fortran/81841
10638 * libgomp.fortran/pr81841.f90: New test.
10639
10640 2017-11-22 Jakub Jelinek <jakub@redhat.com>
10641
10642 PR libgomp/83106
10643 * target.c (gomp_target_init): Compute lengths just once and
10644 use them in both malloc size and subsequent copying.
10645
10646 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
10647
10648 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
10649 * acinclude.m4: Add cet.m4.
10650 * configure: Regenerate.
10651 * Makefile.in: Likewise.
10652 * testsuite/Makefile.in: Likewise.
10653
10654 2017-11-15 Tom de Vries <tom@codesourcery.com>
10655
10656 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
10657 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
10658 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
10659 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
10660 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
10661 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
10662
10663 2017-11-14 Tom de Vries <tom@codesourcery.com>
10664
10665 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
10666 non-nvidia devices.
10667
10668 2017-11-07 Jakub Jelinek <jakub@redhat.com>
10669
10670 PR c++/82835
10671 * testsuite/libgomp.c++/pr82835.C: New test.
10672
10673 2017-11-06 Martin Liska <mliska@suse.cz>
10674
10675 * testsuite/libgomp.c++/loop-2.C: Return a value
10676 for functions with non-void return type, or change type to void,
10677 or add -Wno-return-type for test.
10678 * testsuite/libgomp.c++/loop-4.C: Likewise.
10679 * testsuite/libgomp.c++/parallel-1.C: Likewise.
10680 * testsuite/libgomp.c++/shared-1.C: Likewise.
10681 * testsuite/libgomp.c++/single-1.C: Likewise.
10682 * testsuite/libgomp.c++/single-2.C: Likewise.
10683
10684 2017-10-31 Tom de Vries <tom@codesourcery.com>
10685
10686 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
10687 "do {} while (false)".
10688 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
10689 after HSA_DEBUG call.
10690
10691 2017-10-28 Jakub Jelinek <jakub@redhat.com>
10692
10693 * target.c (struct gomp_coalesce_buf): New type.
10694 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
10695 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
10696 (gomp_copy_host2dev): Add CBUF argument, if copying into
10697 the cached ranges, memcpy into buffer instead of copying
10698 into device.
10699 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
10700 Add CBUF argument, pass it through to other calls.
10701 (gomp_map_vars): Aggregate copies from host to device if small enough
10702 and with small enough gaps in between into memcpy into a buffer and
10703 fewer host to device copies from the buffer.
10704 (gomp_update): Adjust gomp_copy_host2dev caller.
10705
10706 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
10707
10708 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
10709 run" directive.
10710 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
10711 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
10712 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
10713 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
10714
10715 2017-10-16 Tom de Vries <tom@codesourcery.com>
10716
10717 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
10718 openacc_nvidia_accel_selected.
10719 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
10720 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
10721 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
10722 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
10723 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
10724 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
10725 openacc_nvidia_accel_selected. Skip for shared memory device.
10726 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
10727 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
10728
10729 2017-10-09 Martin Jambor <mjambor@suse.cz>
10730
10731 PR hsa/82416
10732 * testsuite/libgomp.hsa.c/pr82416.c: New test.
10733
10734 2017-10-07 Tom de Vries <tom@codesourcery.com>
10735
10736 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
10737 Remove acc_device_nvidia references.
10738 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
10739 Same.
10740
10741 2017-10-05 Tom de Vries <tom@codesourcery.com>
10742
10743 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
10744 vector_length(32) clause from acc parallel directive.
10745 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
10746
10747 2017-10-04 Tom de Vries <tom@codesourcery.com>
10748
10749 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
10750 (main): Reduce sum of arr elements. Assert that hres is exactly
10751 representable in 32-bit floating point.
10752 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
10753 (main): Reduce sum of arr elements. Assert that hres and hmres are
10754 exactly representable in 32-bit floating point.
10755 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
10756
10757 2017-09-28 Tom de Vries <tom@codesourcery.com>
10758
10759 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
10760 setting.
10761 * testsuite/libgomp.c++/pr69393.C: Same.
10762 * testsuite/libgomp.c++/taskloop-1.C: Same.
10763 * testsuite/libgomp.c++/taskloop-3.C: Same.
10764 * testsuite/libgomp.c++/taskloop-4.C: Same.
10765 * testsuite/libgomp.c/for-4.c: Same.
10766 * testsuite/libgomp.c/pr66199-3.c: Same.
10767 * testsuite/libgomp.c/pr66199-4.c: Same.
10768 * testsuite/libgomp.c/pr66199-6.c: Same.
10769 * testsuite/libgomp.c/taskloop-1.c: Same.
10770 * testsuite/libgomp.c/taskloop-3.c: Same.
10771 * testsuite/libgomp.c/taskloop-4.c: Same.
10772 * testsuite/libgomp.fortran/aligned1.f03: Same.
10773 * testsuite/libgomp.fortran/condinc1.f: Same.
10774 * testsuite/libgomp.fortran/condinc3.f90: Same.
10775 * testsuite/libgomp.fortran/crayptr1.f90: Same.
10776 * testsuite/libgomp.fortran/crayptr2.f90: Same.
10777 * testsuite/libgomp.fortran/crayptr3.f90: Same.
10778 * testsuite/libgomp.fortran/omp_cond1.f: Same.
10779 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
10780 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
10781 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
10782 * testsuite/libgomp.fortran/recursion1.f90: Same.
10783 * testsuite/libgomp.fortran/target2.f90: Same.
10784 * testsuite/libgomp.fortran/target5.f90: Same.
10785 * testsuite/libgomp.fortran/task3.f90: Same.
10786
10787 2017-09-28 Tom de Vries <tom@codesourcery.com>
10788
10789 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
10790 vector_length(32) clause from acc parallel directive.
10791 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
10792
10793 2017-09-27 Tom de Vries <tom@codesourcery.com>
10794
10795 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
10796 Remove acc_device_nvidia references.
10797
10798 2017-09-16 Tom de Vries <tom@codesourcery.com>
10799
10800 PR c/81875
10801 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
10802
10803 2017-09-14 Tom de Vries <tom@codesourcery.com>
10804
10805 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
10806 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
10807 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
10808 * testsuite/libgomp.c/c.exp: Include test-cases from
10809 libgomp.c-c++-common.
10810 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
10811 files.
10812
10813 2017-09-14 Jakub Jelinek <jakub@redhat.com>
10814
10815 PR c++/81314
10816 * testsuite/libgomp.c++/pr81314.C: New test.
10817
10818 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
10819
10820 * libgomp.texi (Top): www.openacc.org now uses https.
10821 (Enabling OpenACC): Ditto.
10822 (acc_get_num_devices): Ditto.
10823 (acc_set_device_type): Ditto.
10824 (acc_get_device_type): Ditto.
10825 (acc_set_device_num): Ditto.
10826 (acc_get_device_num): Ditto.
10827 (acc_async_test): Ditto.
10828 (acc_async_test_all): Ditto.
10829 (acc_wait): Ditto.
10830 (acc_wait_all): Ditto.
10831 (acc_wait_all_async): Ditto.
10832 (acc_wait_async): Ditto.
10833 (acc_init): Ditto.
10834 (acc_shutdown): Ditto.
10835 (acc_on_device): Ditto.
10836 (acc_malloc): Ditto.
10837 (acc_free): Ditto.
10838 (acc_copyin): Ditto.
10839 (acc_present_or_copyin): Ditto.
10840 (acc_create): Ditto.
10841 (acc_present_or_create): Ditto.
10842 (acc_copyout): Ditto.
10843 (acc_delete): Ditto.
10844 (acc_update_device): Ditto.
10845 (acc_update_self): Ditto.
10846 (acc_map_data): Ditto.
10847 (acc_unmap_data): Ditto.
10848 (acc_deviceptr): Ditto.
10849 (acc_hostptr): Ditto.
10850 (acc_is_present): Ditto.
10851 (acc_memcpy_to_device): Ditto.
10852 (acc_memcpy_from_device): Ditto.
10853 (acc_get_current_cuda_device): Ditto.
10854 (acc_get_current_cuda_context): Ditto.
10855 (acc_get_cuda_stream): Ditto.
10856 (acc_set_cuda_stream): Ditto.
10857 (ACC_DEVICE_TYPE): Ditto.
10858 (ACC_DEVICE_NUM): Ditto.
10859 (OpenACC Library Interoperability): Ditto.
10860
10861 2017-08-09 Jakub Jelinek <jakub@redhat.com>
10862
10863 PR c/81687
10864 * testsuite/libgomp.c/pr81687-1.c: New test.
10865 * testsuite/libgomp.c/pr81687-2.c: New test.
10866
10867 2017-08-07 Jakub Jelinek <jakub@redhat.com>
10868
10869 PR c/69389
10870 * testsuite/libgomp.c/pr69389.c: New test.
10871 * testsuite/libgomp.c++/pr69389.C: New test.
10872
10873 2017-08-07 Tom de Vries <tom@codesourcery.com>
10874
10875 PR middle-end/78266
10876 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
10877 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
10878
10879 2017-07-27 Jakub Jelinek <jakub@redhat.com>
10880
10881 PR c/45784
10882 * testsuite/libgomp.c/pr45784.c: New test.
10883 * testsuite/libgomp.c++/pr45784.C: New test.
10884
10885 2017-07-19 Tom de Vries <tom@codesourcery.com>
10886
10887 * testsuite/libgomp.oacc-c/vec.c: New test.
10888
10889 2017-07-03 Tom de Vries <tom@codesourcery.com>
10890
10891 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
10892
10893 2017-06-27 Tom de Vries <tom@codesourcery.com>
10894
10895 * plugin/plugin-nvptx.c (notify_var): New function.
10896 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
10897
10898 2017-06-27 Tom de Vries <tom@codesourcery.com>
10899
10900 * env.c (parse_unsigned_long_1): Factor out of ...
10901 (parse_unsigned_long): ... here.
10902 (parse_int_1): Factor out of ...
10903 (parse_int): ... here.
10904 (parse_int_secure): New function.
10905 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
10906 * secure_getenv.h: Factor out of ...
10907 * plugin/plugin-hsa.c: ... here.
10908 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
10909
10910 2017-06-21 Jakub Jelinek <jakub@redhat.com>
10911
10912 PR c++/81130
10913 * testsuite/libgomp.c++/pr81130.C: New test.
10914
10915 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10916
10917 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
10918 default args.
10919 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
10920 dg-xfail-run-if default args.
10921
10922 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
10923
10924 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
10925 * testsuite/libgomp.c/pr39591-3.c: Likewise.
10926
10927 2017-05-30 Jakub Jelinek <jakub@redhat.com>
10928
10929 PR libgomp/80822
10930 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
10931 (gomp_affinity_init_level): Use it. Always analyze the core and thread
10932 sibling lists, depending on level just pick up what CPUs to put
10933 together into a place vs. whether add multiple ordered places.
10934
10935 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
10936
10937 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
10938 * libgomp.map (OACC_2.0.1): Add these.
10939 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
10940 for "acc_wait", and "acc_wait_all", respectively.
10941 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
10942 for "acc_wait", and "acc_wait_all", respectively.
10943 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
10944 * libgomp.texi (acc_wait, acc_wait_all): Update.
10945 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
10946 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
10947 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
10948
10949 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
10950 acc_present_or_copyin and acc_present_or_create procedures,
10951 respectively.
10952 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
10953 generally different variants of OpenACC Runtime Library functions.
10954 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
10955
10956 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
10957 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
10958
10959 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
10960 of preprocessor definitions.
10961 * libgomp.h (strong_alias): Guard by "#ifdef
10962 HAVE_ATTRIBUTE_ALIAS".
10963 * oacc-mem.c: Provide "acc_pcreate" as alias for
10964 "acc_present_or_create", and "acc_pcopyin" as alias for
10965 "acc_present_or_copyin".
10966 * libgomp.map: New version "OACC_2.0.1".
10967 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
10968 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
10969 its content into...
10970 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
10971 Extend testing.
10972
10973 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
10974 when disabling nvptx offloading.
10975
10976 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
10977
10978 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
10979 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
10980 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
10981
10982 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
10983 * testsuite/lib/libgomp.exp
10984 (check_effective_target_openacc_nvidia_accel_configured): New
10985 proc.
10986 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
10987 (check_effective_target_c++): New procs.
10988 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
10989 (check_effective_target_c++): Likewise.
10990
10991 2017-05-22 Jakub Jelinek <jakub@redhat.com>
10992
10993 PR middle-end/80809
10994 * testsuite/libgomp.c/pr80809-2.c: New test.
10995 * testsuite/libgomp.c/pr80809-3.c: New test.
10996
10997 PR middle-end/80809
10998 * testsuite/libgomp.c/pr80809-1.c: New test.
10999
11000 PR middle-end/80853
11001 * testsuite/libgomp.c/pr80853.c: New test.
11002
11003 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
11004
11005 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
11006 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
11007 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11008 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11009 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
11010
11011 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
11012 Debug output for failure.
11013
11014 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11015
11016 * testsuite/lib/libgomp.exp: Load scanlang.exp.
11017
11018 2017-04-27 Jakub Jelinek <jakub@redhat.com>
11019
11020 PR bootstrap/80531
11021 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
11022 bootstrap compare failures.
11023
11024 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
11025
11026 * testsuite/libgomp.c/target-36.c: New testcase.
11027
11028 2017-04-13 Jakub Jelinek <jakub@redhat.com>
11029
11030 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
11031 instead of char.
11032
11033 2017-04-11 Jakub Jelinek <jakub@redhat.com>
11034
11035 PR libgomp/80394
11036 * testsuite/libgomp.c/pr80394.c: New test.
11037
11038 2017-04-04 Jakub Jelinek <jakub@redhat.com>
11039
11040 PR libgomp/79876
11041 * config/posix/thread-stacksize.h: New file.
11042 * config/darwin/thread-stacksize.h: New file.
11043 * config/nvptx/thread-stacksize.h: New file.
11044 * env.c: Include thread-stacksize.h.
11045 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
11046 instead of 0. Call pthread_attr_setstacksize even if
11047 GOMP_DEFAULT_STACKSIZE is non-zero.
11048
11049 2017-03-30 Jakub Jelinek <jakub@redhat.com>
11050
11051 * env.c (initialize_env): Initialize stacksize to 0.
11052
11053 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
11054
11055 PR c++/80029
11056 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
11057
11058 2017-03-08 Jakub Jelinek <jakub@redhat.com>
11059
11060 PR c/79940
11061 * testsuite/libgomp.c/pr79940.c: New test.
11062
11063 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11064
11065 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
11066 targets.
11067 Add __float128 options.
11068
11069 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
11070
11071 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
11072 hppa*-*-* dg-skip-if directive.
11073
11074 2017-02-09 Jakub Jelinek <jakub@redhat.com>
11075
11076 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
11077 dg-skip-if directive into a comment.
11078
11079 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
11080 Chung-Lin Tang <cltang@codesourcery.com>
11081
11082 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
11083 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
11084 add additional case.
11085 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
11086 "openacc_nvidia_accel_selected".
11087 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
11088 Add num_workers(8) clause.
11089
11090 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
11091
11092 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
11093 hppa*-*-*.
11094 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
11095 include complex.h on hppa*-*-hpux*.
11096 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
11097
11098 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
11099
11100 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
11101
11102 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
11103 GOMP_OFFLOAD_openacc_exec. Adjust all users.
11104 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
11105 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
11106 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
11107 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
11108 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
11109 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
11110 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
11111 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
11112
11113 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
11114
11115 * libgomp-plugin.h: #include <stdbool.h>.
11116 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
11117 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
11118 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
11119 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
11120 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
11121 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
11122 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
11123 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
11124 (GOMP_OFFLOAD_openacc_register_async_cleanup)
11125 (GOMP_OFFLOAD_openacc_async_test)
11126 (GOMP_OFFLOAD_openacc_async_test_all)
11127 (GOMP_OFFLOAD_openacc_async_wait)
11128 (GOMP_OFFLOAD_openacc_async_wait_async)
11129 (GOMP_OFFLOAD_openacc_async_wait_all)
11130 (GOMP_OFFLOAD_openacc_async_wait_all_async)
11131 (GOMP_OFFLOAD_openacc_async_set_async)
11132 (GOMP_OFFLOAD_openacc_create_thread_data)
11133 (GOMP_OFFLOAD_openacc_destroy_thread_data)
11134 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
11135 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
11136 (GOMP_OFFLOAD_openacc_get_cuda_stream)
11137 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
11138 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
11139 these.
11140 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
11141 (GOMP_OFFLOAD_unload_image): Fix argument types.
11142
11143 2017-01-26 Jakub Jelinek <jakub@redhat.com>
11144
11145 * testsuite/lib/libgomp.exp
11146 (check_effective_target_hsa_offloading_selected_nocache): Fix up
11147 check_compile invocation. Fix up removal of executable. Drop
11148 bogus "2>&1" argument.
11149
11150 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
11151 directive.
11152
11153 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
11154 Martin Jambor <mjambor@suse.cz>
11155
11156 * plugin/hsa.h: Moved to top level include.
11157 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
11158
11159 2017-01-21 Jakub Jelinek <jakub@redhat.com>
11160
11161 PR other/79046
11162 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
11163 of cat to get version from BASE-VER file.
11164 * testsuite/Makefile.in: Regenerated.
11165
11166 2017-01-19 Jakub Jelinek <jakub@redhat.com>
11167
11168 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
11169 for _WIN64.
11170
11171 2017-01-17 Jakub Jelinek <jakub@redhat.com>
11172
11173 * plugin/hsa.h: Add GCC runtime library exception.
11174 * plugin/hsa_ext_finalize.h: Likewise.
11175
11176 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
11177 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
11178 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
11179 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
11180 plugin/include/cuda as include dir and -ldl instead of -lcuda as
11181 library to link ptx plugin against.
11182 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
11183 (CUDA_CALLS): Define.
11184 (cuda_lib, cuda_lib_inited): New variables.
11185 (init_cuda_lib): New function.
11186 (CUDA_CALL_PREFIX): Define.
11187 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
11188 (CUDA_CALL): Use FN instead of (FN).
11189 (CUDA_CALL_NOCHECK): Define.
11190 (cuda_error, fini_streams_for_device, select_stream_for_async,
11191 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
11192 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
11193 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
11194 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
11195 CUDA_CALL_NOCHECK.
11196 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
11197 CUDA_CALL_NOCHECK.
11198 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
11199 Use CUDA_CALL_NOCHECK.
11200 * plugin/cuda/cuda.h: New file.
11201 * config.h.in: Regenerated.
11202 * configure: Regenerated.
11203
11204 PR other/79046
11205 * configure.ac: Add GCC_BASE_VER.
11206 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
11207 get version from BASE-VER file.
11208 * testsuite/Makefile.in: Regenerated.
11209 * configure: Regenerated.
11210 * Makefile.in: Regenerated.
11211
11212 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11213
11214 PR libgomp/60670
11215 * Makefile.am: Make fincludedir multilib-aware.
11216 * Makefile.in: Regenerate.
11217
11218 2017-01-01 Jakub Jelinek <jakub@redhat.com>
11219
11220 Update copyright years.
11221
11222 * libgomp.texi: Bump @copying's copyright year.
11223
11224 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
11225
11226 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
11227 pthread_spinlock_t instead of gomp_mutex_t lock.
11228 (gomp_get_thread_pool): Likewise.
11229 (gomp_release_thread_pool): Likewise.
11230 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
11231 Likewise.
11232
11233 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
11234
11235 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
11236 thread pool in case nthreads == 1.
11237
11238 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
11239
11240 * config/nvptx/env.c: Delete.
11241 * icv.c: Move definitions of ICV variables back ...
11242 * env.c: ...here. Do not compile environment-related functionality if
11243 LIBGOMP_OFFLOADED_ONLY is set.
11244
11245 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
11246
11247 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
11248 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
11249 * configure: Regenerate.
11250 * config.h.in: Likewise.
11251
11252 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
11253
11254 * Makefile.in: Regenerate with automake-1.11.6.
11255 * aclocal.m4: Likewise.
11256 * configure: Likewise.
11257 * testsuite/Makefile.in: Likewise.
11258
11259 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
11260
11261 * config/nvptx/critical.c: Delete to use generic implementation.
11262
11263 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
11264
11265 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
11266 ../../affinity.c as fallback.
11267 * config/nvptx/affinity.c: Delete to use fallback implementation.
11268
11269 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
11270 Jakub Jelinek <jakub@redhat.com>
11271 Dmitry Melnik <dm@ispras.ru>
11272
11273 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
11274 * Makefile.in. Regenerate.
11275 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
11276 (LIBGOMP_USE_PTHREADS): ...here; new define.
11277 * configure: Regenerate.
11278 * config.h.in: Likewise.
11279 * config/posix/affinity.c: Move to...
11280 * affinity.c: ...here (new file). Guard use of Pthreads-specific
11281 interface by LIBGOMP_USE_PTHREADS.
11282 * critical.c: Split out GOMP_atomic_{start,end} into...
11283 * atomic.c: ...here (new file).
11284 * env.c: Split out ICV definitions into...
11285 * icv.c: ...here (new file) and...
11286 * icv-device.c: ...here. New file.
11287 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
11288 (gomp_destroy_lock_30): Ditto.
11289 (gomp_set_lock_30): Ditto.
11290 (gomp_unset_lock_30): Ditto.
11291 (gomp_test_lock_30): Ditto.
11292 (gomp_init_nest_lock_30): Ditto.
11293 (gomp_destroy_nest_lock_30): Ditto.
11294 (gomp_set_nest_lock_30): Ditto.
11295 (gomp_unset_nest_lock_30): Ditto.
11296 (gomp_test_nest_lock_30): Ditto.
11297 * lock.c: New.
11298 * config/nvptx/lock.c: New.
11299 * config/nvptx/bar.c: New.
11300 * config/nvptx/bar.h: New.
11301 * config/nvptx/doacross.h: New.
11302 * config/nvptx/error.c: New.
11303 * config/nvptx/icv-device.c: New.
11304 * config/nvptx/mutex.h: New.
11305 * config/nvptx/pool.h: New.
11306 * config/nvptx/proc.c: New.
11307 * config/nvptx/ptrlock.h: New.
11308 * config/nvptx/sem.h: New.
11309 * config/nvptx/simple-bar.h: New.
11310 * config/nvptx/target.c: New.
11311 * config/nvptx/task.c: New.
11312 * config/nvptx/team.c: New.
11313 * config/nvptx/time.c: New.
11314 * config/posix/simple-bar.h: New.
11315 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
11316 (gomp_num_teams_var): Declare.
11317 (struct gomp_thread_pool): Change threads_dock member to
11318 gomp_simple_barrier_t.
11319 [__nvptx__] (gomp_thread): New implementation.
11320 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
11321 (gomp_thread_destructor): Ditto.
11322 (gomp_init_thread_affinity): Ditto.
11323 * team.c: Guard uses of Pthreads-specific interfaces by
11324 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
11325 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
11326 * config/nvptx/alloc.c: Delete.
11327 * config/nvptx/barrier.c: Ditto.
11328 * config/nvptx/fortran.c: Ditto.
11329 * config/nvptx/iter.c: Ditto.
11330 * config/nvptx/iter_ull.c: Ditto.
11331 * config/nvptx/loop.c: Ditto.
11332 * config/nvptx/loop_ull.c: Ditto.
11333 * config/nvptx/ordered.c: Ditto.
11334 * config/nvptx/parallel.c: Ditto.
11335 * config/nvptx/priority_queue.c: Ditto.
11336 * config/nvptx/sections.c: Ditto.
11337 * config/nvptx/single.c: Ditto.
11338 * config/nvptx/splay-tree.c: Ditto.
11339 * config/nvptx/work.c: Ditto.
11340 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
11341 -foffload=-lgfortran in addition to -lgfortran.
11342 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
11343 * plugin/plugin-nvptx.c: Include <limits.h>.
11344 (struct targ_fn_descriptor): Add new fields.
11345 (struct ptx_device): Ditto. Set them...
11346 (nvptx_open_device): ...here.
11347 (nvptx_adjust_launch_bounds): New.
11348 (nvptx_host2dev): Allow NULL 'nvthd'.
11349 (nvptx_dev2host): Ditto.
11350 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
11351 (link_ptx): Adjust log sizes.
11352 (nvptx_host2dev): Allow NULL 'nvthd'.
11353 (nvptx_dev2host): Ditto.
11354 (nvptx_set_clocktick): New. Use it...
11355 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
11356 fields.
11357 (GOMP_OFFLOAD_dev2dev): New.
11358 (nvptx_adjust_launch_bounds): New.
11359 (nvptx_stacks_size): New.
11360 (nvptx_stacks_alloc): New.
11361 (nvptx_stacks_free): New.
11362 (GOMP_OFFLOAD_run): New.
11363 (GOMP_OFFLOAD_async_run): New (stub).
11364
11365 2016-11-23 Martin Jambor <mjambor@suse.cz>
11366
11367 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
11368 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
11369 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
11370
11371 2016-11-23 Martin Liska <mliska@suse.cz>
11372 Martin Jambor <mjambor@suse.cz>
11373
11374 * plugin/hsa.h: New file.
11375 * plugin/hsa_ext_finalize.h: New file.
11376 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
11377 header file unistd.h, and functions secure_getenv, __secure_getenv,
11378 getuid, geteuid, getgid and getegid.
11379 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
11380 -D_GNU_SOURCE.
11381 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
11382 Handle various cases of secure_getenv presence, add an implementation
11383 when we can test effective UID and GID.
11384 (struct hsa_runtime_fn_info): New structure.
11385 (hsa_runtime_fn_info hsa_fns): New variable.
11386 (hsa_runtime_lib): Likewise.
11387 (support_cpu_devices): Likewise.
11388 (init_enviroment_variables): Load newly introduced ENV
11389 variables.
11390 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
11391 (hsa_fatal): Likewise.
11392 (DLSYM_FN): New macro.
11393 (init_hsa_runtime_functions): New function.
11394 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
11395 structure. Depending on environment, also allow CPU devices.
11396 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
11397 (get_kernarg_memory_region): Likewise.
11398 (GOMP_OFFLOAD_init_device): Likewise.
11399 (destroy_hsa_program): Likewise.
11400 (init_basic_kernel_info): New function.
11401 (GOMP_OFFLOAD_load_image): Use it.
11402 (create_and_finalize_hsa_program): Call hsa run-time functions via
11403 hsa_fns structure.
11404 (create_single_kernel_dispatch): Likewise.
11405 (release_kernel_dispatch): Likewise.
11406 (init_single_kernel): Likewise.
11407 (parse_target_attributes): Allow up multiple HSA grid dimensions.
11408 (get_group_size): New function.
11409 (run_kernel): Likewise.
11410 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
11411 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
11412 structure.
11413 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
11414 * testsuite/libgomp-test-support.exp.in: Likewise.
11415 * Makefile.in: Regenerated.
11416 * aclocal.m4: Likewise.
11417 * config.h.in: Likewise.
11418 * configure: Likewise.
11419 * testsuite/Makefile.in: Likewise.
11420
11421 2016-11-15 Martin Jambor <mjambor@suse.cz>
11422 Alexander Monakov <amonakov@ispras.ru>
11423
11424 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
11425 mapping clauses to target constructs.
11426 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
11427
11428 2016-11-15 Matthias Klose <doko@ubuntu.com>
11429
11430 * configure: Regenerate.
11431
11432 2016-11-10 Jakub Jelinek <jakub@redhat.com>
11433
11434 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
11435 * omp_lib.h.in (openmp_version): Likewise.
11436 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
11437 of 201307.
11438 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
11439
11440 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
11441 (fib_wrapper): Add map(from: x) clause.
11442 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
11443 (e_53_2): Likewise.
11444 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
11445 (accum): Add map(tmp) clause.
11446 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
11447 (accum): Add map(tofrom: tmp) clause.
11448 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
11449 (gramSchmidt): Likewise.
11450 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
11451 map(tofrom: sum) clause.
11452 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
11453 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
11454 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
11455 only allowed on the loop iterator.
11456 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
11457 * testsuite/libgomp.fortran/taskloop2.f90: New test.
11458 * testsuite/libgomp.fortran/taskloop4.f90: New test.
11459 * testsuite/libgomp.fortran/doacross1.f90: New test.
11460 * testsuite/libgomp.fortran/doacross3.f90: New test.
11461 * testsuite/libgomp.fortran/taskloop1.f90: New test.
11462 * testsuite/libgomp.fortran/taskloop3.f90: New test.
11463 * testsuite/libgomp.fortran/doacross2.f90: New test.
11464 * testsuite/libgomp.c/doacross-1.c (main): Add missing
11465 #pragma omp atomic read.
11466 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
11467 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
11468
11469 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
11470 Nathan Sidwell <nathan@acm.org>
11471
11472 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
11473 to determine default geometry.
11474 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
11475 dimension.
11476
11477 2016-11-01 Jakub Jelinek <jakub@redhat.com>
11478
11479 * hashtab.h: Use standard GPLv3 with runtime exception
11480 boilerplate.
11481
11482 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
11483
11484 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
11485 size when allocating new thread.
11486
11487 2016-09-14 Marek Polacek <polacek@redhat.com>
11488
11489 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
11490
11491 2016-08-19 Jakub Jelinek <jakub@redhat.com>
11492
11493 PR fortran/71014
11494 * testsuite/libgomp.fortran/pr71014.f90: New test.
11495
11496 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
11497
11498 PR middle-end/70895
11499 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
11500 firstprivate clauses.
11501 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
11502 copy clauses.
11503 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
11504 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
11505 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
11506 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
11507 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
11508 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
11509 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
11510 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
11511 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
11512 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
11513 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
11514 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
11515
11516 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
11517
11518 PR fortran/70598
11519 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
11520
11521 2016-08-08 Jakub Jelinek <jakub@redhat.com>
11522
11523 PR c++/58706
11524 * testsuite/libgomp.c++/pr58706.C: New test.
11525
11526 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
11527
11528 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
11529 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
11530 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
11531 Likewise.
11532 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
11533 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
11534 Likewise.
11535 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
11536
11537 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
11538 test, and don't hardcode -O0.
11539
11540 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
11541
11542 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
11543
11544 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
11545
11546 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
11547 test.
11548
11549 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
11550
11551 PR middle-end/71734
11552 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
11553 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
11554
11555 2016-07-01 Jakub Jelinek <jakub@redhat.com>
11556
11557 PR fortran/71717
11558 * testsuite/libgomp.fortran/associate3.f90: New test.
11559
11560 2016-06-17 Jakub Jelinek <jakub@redhat.com>
11561
11562 * testsuite/libgomp.c++/target-21.C: New test.
11563
11564 2016-06-16 Jakub Jelinek <jakub@redhat.com>
11565
11566 * testsuite/libgomp.c++/target-20.C: New test.
11567
11568 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
11569 Cesar Philippidis <cesar@codesourcery.com>
11570
11571 PR middle-end/71373
11572 * libgomp.oacc-c/nested-function-1.c: New file.
11573 * libgomp.oacc-c/nested-function-2.c: Likewise.
11574 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
11575 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
11576 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
11577
11578 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
11579
11580 PR c/71381
11581 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
11582 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
11583 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
11584
11585 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
11586
11587 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
11588 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
11589
11590 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
11591
11592 PR c/70688
11593 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
11594
11595 2016-05-26 Jakub Jelinek <jakub@redhat.com>
11596
11597 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
11598 instead of invalid schedule(static, 0).
11599 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
11600
11601 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
11602
11603 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
11604 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
11605 parameter, use to set async stream around call to gomp_unmap_vars,
11606 call gomp_unmap_vars() with 'do_copyfrom' set to true.
11607 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
11608 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
11609 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
11610 (event_add): Add int parameter, initialize 'val' field when
11611 adding new ptx_event struct.
11612 (nvptx_evec): Adjust event_add() call arguments.
11613 (nvptx_host2dev): Likewise.
11614 (nvptx_dev2host): Likewise.
11615 (nvptx_wait_async): Likewise.
11616 (nvptx_wait_all_async): Likewise.
11617 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
11618 pass to event_add() call.
11619 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
11620 parameter.
11621 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
11622 call openacc.register_async_cleanup_func() hook.
11623 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
11624 * target.c (gomp_copy_from_async): Delete function.
11625 (gomp_map_vars): Remove async_refcount.
11626 (gomp_unmap_vars): Likewise.
11627 (gomp_load_image_to_device): Likewise.
11628 (omp_target_associate_ptr): Likewise.
11629 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
11630 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
11631 (gomp_copy_from_async): Remove.
11632
11633 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
11634
11635 * target.c (gomp_device_copy): New function.
11636 (gomp_copy_host2dev): Likewise.
11637 (gomp_copy_dev2host): Likewise.
11638 (gomp_free_device_memory): Likewise.
11639 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
11640 (gomp_map_pointer): Likewise.
11641 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
11642 NULL value from alloc_func plugin hook.
11643 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
11644 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
11645 (gomp_unmap_vars): Likewise.
11646 (gomp_update): Adjust to call gomp_copy_dev2host and
11647 gomp_copy_host2dev functions.
11648 (gomp_unload_image_from_device): Handle false value from
11649 unload_image_func plugin hook.
11650 (gomp_init_device): Handle false value from init_device_func
11651 plugin hook.
11652 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
11653 (omp_target_free): Adjust to call gomp_free_device_memory.
11654 (omp_target_memcpy): Handle return values from host2dev_func,
11655 dev2host_func, and dev2dev_func plugin hooks.
11656 (omp_target_memcpy_rect_worker): Likewise.
11657 (gomp_target_fini): Handle false value from fini_device_func
11658 plugin hook.
11659 * libgomp.h (struct gomp_device_descr): Adjust return type of
11660 init_device_func, fini_device_func, unload_image_func, free_func,
11661 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
11662 * oacc-init.c (acc_shutdown_1): Handle false value from
11663 fini_device_func plugin hook.
11664 * oacc-host.c (host_init_device): Change return type to bool.
11665 (host_fini_device): Likewise.
11666 (host_unload_image): Likewise.
11667 (host_free): Likewise.
11668 (host_dev2host): Likewise.
11669 (host_host2dev): Likewise.
11670 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
11671 (acc_memcpy_to_device): Likewise.
11672 (acc_memcpy_from_device): Likewise.
11673 (delete_copyout): Add libfnname parameter, handle free_func
11674 hook fatal error case.
11675 (acc_delete): Adjust delete_copyout call.
11676 (acc_copyout): Likewise.
11677 (update_dev_host): Move gomp_mutex_unlock to after
11678 host2dev/dev2host hook calls.
11679
11680 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
11681 to 'hsa_error_msg', for clarity.
11682 (hsa_fatal): Likewise.
11683 (hsa_error): New function.
11684 (init_hsa_context): Change return type to bool, adjust to return
11685 false on error.
11686 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
11687 return value.
11688 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
11689 return false on error.
11690 (get_agent_info): Adjust to return NULL on error.
11691 (destroy_hsa_program): Change return type to bool, adjust to
11692 return false on error.
11693 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
11694 (destroy_module): Change return type to bool, adjust to
11695 return false on error.
11696 (GOMP_OFFLOAD_unload_image): Likewise.
11697 (GOMP_OFFLOAD_fini_device): Likewise.
11698 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
11699 (GOMP_OFFLOAD_free): Change to return false when called.
11700 (GOMP_OFFLOAD_dev2host): Likewise.
11701 (GOMP_OFFLOAD_host2dev): Likewise.
11702 (GOMP_OFFLOAD_dev2dev): Likewise.
11703
11704 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
11705 (CUDA_CALL): Likewise.
11706 (CUDA_CALL_ASSERT): Likewise.
11707 (map_init): Change return type to bool, use CUDA_CALL* macros.
11708 (map_fini): Likewise.
11709 (init_streams_for_device): Change return type to bool, adjust
11710 call to map_init.
11711 (fini_streams_for_device): Change return type to bool, adjust
11712 call to map_fini.
11713 (select_stream_for_async): Release stream_lock before calls to
11714 GOMP_PLUGIN_fatal, adjust call to map_init.
11715 (nvptx_init): Use CUDA_CALL* macros.
11716 (nvptx_attach_host_thread_to_device): Change return type to bool,
11717 use CUDA_CALL* macros.
11718 (nvptx_open_device): Use CUDA_CALL* macros.
11719 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
11720 macros.
11721 (nvptx_get_num_devices): Use CUDA_CALL* macros.
11722 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
11723 (nvptx_exec): Use CUDA_CALL* macros.
11724 (nvptx_alloc): Use CUDA_CALL* macros.
11725 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
11726 (nvptx_host2dev): Likewise.
11727 (nvptx_dev2host): Likewise.
11728 (nvptx_wait): Use CUDA_CALL* macros.
11729 (nvptx_wait_async): Likewise.
11730 (nvptx_wait_all): Likewise.
11731 (nvptx_wait_all_async): Likewise.
11732 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
11733 use CUDA_CALL* macros, adjust call to map_fini.
11734 (GOMP_OFFLOAD_init_device): Change return type to bool,
11735 adjust code accordingly.
11736 (GOMP_OFFLOAD_fini_device): Likewise.
11737 (GOMP_OFFLOAD_load_image): Adjust calls to
11738 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
11739 use CUDA_CALL* macros.
11740 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
11741 return code.
11742 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
11743 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
11744 handle error return.
11745 (GOMP_OFFLOAD_dev2host): Likewise.
11746 (GOMP_OFFLOAD_host2dev): Likewise.
11747 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
11748 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
11749
11750 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
11751
11752 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
11753 (acc_free): Likewise.
11754 (acc_memcpy_to_device): Likewise.
11755 (acc_memcpy_from_device): Likewise.
11756 (acc_deviceptr): Likewise.
11757 (acc_hostptr): Likewise.
11758 (acc_is_present): Likewise.
11759 (acc_map_data): Likewise.
11760 (acc_unmap_data): Likewise.
11761 (present_create_copy): Likewise.
11762 (delete_copyout): Likewise.
11763 (update_dev_host): Likewise.
11764 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
11765 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
11766 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
11767 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
11768 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
11769 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
11770 it only runs on nvptx targets.
11771 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
11772 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
11773 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11774 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11775 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11776 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11777 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11778 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11779 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11780 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
11781 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11782 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11783 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11784 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11785 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11786 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11787 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11788 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11789 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11790 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11791 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11792 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11793 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11794
11795 2016-05-23 Martin Jambor <mjambor@suse.cz>
11796
11797 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
11798
11799 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
11800
11801 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
11802 to gomp_init_targets_once.
11803 (acc_set_device_type): Remove !cached_base_dev condition on call to
11804 gomp_init_targets_once, move call to before acc_device_lock acquire,
11805 to avoid deadlock.
11806 (acc_get_device_num): Remove !cached_base_dev condition on call to
11807 gomp_init_targets_once.
11808 (acc_set_device_num): Likewise.
11809
11810 2016-05-16 Martin Jambor <mjambor@suse.cz>
11811
11812 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
11813
11814 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
11815
11816 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
11817 expected partitioning.
11818
11819 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
11820
11821 PR middle-end/70626
11822 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
11823 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
11824 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
11825
11826 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
11827
11828 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
11829 non-fatal.
11830
11831 2016-04-19 Jakub Jelinek <jakub@redhat.com>
11832
11833 PR middle-end/70680
11834 * testsuite/libgomp.c/pr70680-1.c: New test.
11835 * testsuite/libgomp.c/pr70680-2.c: New test.
11836
11837 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
11838
11839 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
11840 pass parameter variables to subroutines.
11841
11842 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
11843
11844 PR middle-end/70643
11845 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
11846
11847 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
11848
11849 PR testsuite/68242
11850 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
11851 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
11852
11853 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
11854
11855 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
11856 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
11857 GOACC_declare prototype.
11858
11859 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
11860 Merge this file, and...
11861 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
11862 ... this file, and...
11863 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
11864 ... this file, and...
11865 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
11866 ... this file, and...
11867 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
11868 ... this file, and...
11869 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
11870 ... this file, and...
11871 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
11872 ... this file, and...
11873 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
11874 ... this file, and...
11875 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
11876 ... this file, and...
11877 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
11878 ... this file, and...
11879 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
11880 ... this file, and...
11881 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
11882 ... this file, and...
11883 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
11884 ... this file into...
11885 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
11886 file.
11887
11888 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
11889 Make failure observable.
11890
11891 2016-04-12 Jakub Jelinek <jakub@redhat.com>
11892
11893 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
11894 field.
11895 * target.c (gomp_target_fallback_firstprivate,
11896 gomp_target_unshare_firstprivate): Removed.
11897 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
11898 before waiting for dependencies.
11899 (gomp_target_task_fn): Don't copy firstprivate vars here.
11900 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
11901 firstprivate_copies here.
11902 (gomp_create_target_task): Don't initialize firstprivate_copies field.
11903 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
11904 explicit/implicit firstprivate.
11905
11906 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
11907
11908 PR lto/70289
11909 PR ipa/70348
11910 PR tree-optimization/70373
11911 PR middle-end/70533
11912 PR middle-end/70534
11913 PR middle-end/70535
11914 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
11915 test.
11916 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
11917 test.
11918 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
11919 test.
11920 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
11921 test.
11922 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
11923 test.
11924 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
11925 test.
11926 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
11927 test.
11928 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
11929 test.
11930 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
11931 test.
11932 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
11933 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
11934 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
11935 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
11936 test.
11937 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
11938 test.
11939 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
11940 test.
11941 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
11942 test.
11943 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
11944 coverage.
11945 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
11946 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
11947 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
11948 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
11949 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
11950 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
11951 coverage.
11952 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
11953 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
11954 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
11955 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
11956 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
11957 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
11958 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
11959 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
11960 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
11961 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11962 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11963 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11964 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
11965 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11966 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
11967
11968 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
11969 James Norris <jnorris@codesourcery.com>
11970 Nathan Sidwell <nathan@codesourcery.com>
11971 Julian Brown <julian@codesourcery.com>
11972 Cesar Philippidis <cesar@codesourcery.com>
11973 Chung-Lin Tang <cltang@codesourcery.com>
11974 Tom de Vries <tom@codesourcery.com>
11975
11976 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
11977 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
11978 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
11979 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
11980 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
11981 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
11982 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
11983 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
11984 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
11985 XFAIL.
11986 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
11987 Incorporate...
11988 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
11989 file.
11990 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
11991 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
11992 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
11993 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
11994 Likewise.
11995 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
11996 Likewise.
11997 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
11998 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
11999 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
12000 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
12001 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
12002 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
12003 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
12004 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
12005 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
12006 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
12007 Likewise.
12008 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
12009 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
12010 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
12011 file...
12012 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
12013 file into...
12014 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
12015 file. Update.
12016 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
12017 file.
12018 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
12019 Likewise.
12020 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
12021 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
12022 ... this new file. Update.
12023 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
12024 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
12025 ... this new file. Update.
12026 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
12027 file. Incorporate...
12028 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
12029 file, and...
12030 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
12031 file, and...
12032 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
12033 file.
12034 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
12035
12036 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
12037
12038 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
12039 set-torture-options.
12040
12041 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
12042
12043 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
12044 gcc-dg-runtest.
12045 * testsuite/libgomp.oacc-c/c.exp: Likewise.
12046 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
12047 -fno-builtin-acc_on_device instead of -O0.
12048 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
12049 -O0.
12050 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
12051 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
12052 Likewise.
12053 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
12054 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
12055 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
12056 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12057 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12058 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12059 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
12060 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12061 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
12062 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
12063 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
12064 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
12065 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
12066 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
12067 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
12068 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
12069 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
12070 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
12071 Don't specify -O2.
12072 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
12073 Likewise.
12074 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
12075 Likewise.
12076
12077 2016-03-24 Martin Liska <mliska@suse.cz>
12078
12079 * plugin/plugin-hsa.c (packet_store_release): New function
12080 that is taken from the HSA runtime manual.
12081 (GOMP_OFFLOAD_run): Use the function.
12082
12083 2016-03-23 Jakub Jelinek <jakub@redhat.com>
12084
12085 PR c++/70376
12086 * testsuite/libgomp.c++/pr70376.C: New test.
12087
12088 2016-03-23 Tom de Vries <tom@codesourcery.com>
12089
12090 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
12091 initialization of lresult and lvresult.
12092 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
12093
12094 2016-03-23 James Norris <jnorris@codesourcery.com>
12095 Daichi Fukuoka <dc-fukuoka@sgi.com>
12096
12097 PR libgomp/69414
12098 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
12099 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
12100 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
12101 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
12102
12103 2016-03-23 Martin Liska <mliska@suse.cz>
12104
12105 PR hsa/70337
12106 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
12107 argument just in case a dispatched kernel uses that argument.
12108
12109 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
12110
12111 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
12112 -ftree-parallelize-loops/-fopenacc changes.
12113 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
12114 Likewise.
12115 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
12116 Likewise.
12117 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
12118 Likewise.
12119 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
12120 Likewise.
12121 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
12122 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
12123
12124 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
12125
12126 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
12127 always_ld_library_path the path to libgcc_s.
12128
12129 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
12130
12131 PR testsuite/70009
12132 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
12133
12134 2016-03-09 Tom de Vries <tom@codesourcery.com>
12135
12136 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
12137 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
12138 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
12139 Same.
12140 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
12141 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
12142 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
12143 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
12144
12145 2016-03-07 Martin Jambor <mjambor@suse.cz>
12146
12147 * testsuite/lib/libgomp.exp
12148 (check_effective_target_hsa_offloading_selected_nocache): New.
12149 (check_effective_target_hsa_offloading_selected): Likewise.
12150 * testsuite/libgomp.hsa.c/c.exp: Likewise.
12151 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
12152 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
12153 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
12154 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
12155 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
12156 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
12157 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
12158 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
12159 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
12160 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
12161 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
12162 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
12163 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
12164 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
12165 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
12166 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
12167
12168 2016-03-07 Martin Jambor <mjambor@suse.cz>
12169
12170 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
12171 non-shared memory accelerators.
12172 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
12173 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
12174 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
12175 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
12176 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
12177 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
12178 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
12179 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
12180 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
12181
12182 2016-03-07 Martin Jambor <mjambor@suse.cz>
12183
12184 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
12185 ALWAYS_CFLAGS.
12186
12187 2016-03-02 Jakub Jelinek <jakub@redhat.com>
12188
12189 PR libgomp/69555
12190 * testsuite/libgomp.c++/pr69555-1.C: New test.
12191 * testsuite/libgomp.c++/pr69555-2.C: New test.
12192
12193 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
12194 Martin Jambor <mjambor@suse.cz>
12195
12196 * testsuite/lib/libgomp.exp
12197 (check_effective_target_offload_device_shared_as): New proc.
12198 * testsuite/libgomp.c++/declare_target-1.C: New test.
12199
12200 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
12201
12202 PR driver/68463
12203 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
12204
12205 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
12206
12207 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
12208 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
12209 dims.
12210 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
12211 -ftree-parallelize-loops/-fopenacc changes.
12212 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
12213 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
12214 Likewise.
12215 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
12216 Likewise.
12217 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
12218 Likewise.
12219 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
12220 Likewise.
12221 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
12222 Likewise.
12223 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
12224 Likewise.
12225 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
12226 Likewise.
12227 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
12228 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
12229 Likewise.
12230 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
12231 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
12232 Likewise.
12233 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
12234 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
12235 Likewise.
12236
12237 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
12238
12239 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
12240
12241 2016-02-19 Jakub Jelinek <jakub@redhat.com>
12242
12243 PR driver/69805
12244 * testsuite/libgomp.c/pr69805.c: New test.
12245
12246 2016-02-16 Tom de Vries <tom@codesourcery.com>
12247
12248 PR lto/67709
12249 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
12250
12251 2016-02-09 Tom de Vries <tom@codesourcery.com>
12252
12253 PR tree-optimization/69599
12254 * testsuite/libgomp.c/omp-nested-3.c: New test.
12255 * testsuite/libgomp.c/pr46032-2.c: New test.
12256 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
12257 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
12258
12259 2016-02-09 Tom de Vries <tom@codesourcery.com>
12260
12261 PR lto/69707
12262 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
12263
12264 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
12265
12266 * testsuite/libgomp.c/target-31.c: Fix testcase.
12267
12268 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
12269
12270 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
12271 clause.
12272 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
12273 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
12274 reduction and map clauses.
12275 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
12276
12277 2016-02-02 James Norris <jnorris@codesourcery.com>
12278
12279 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
12280
12281 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
12282
12283 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
12284 * oacc-parallel.c (GOACC_host_data): Remove function definition.
12285
12286 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
12287 cases.
12288
12289 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
12290 variables.
12291 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
12292 (hsa_kmt_lib): Set variables.
12293 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
12294 always_ld_library_path.
12295 * Makefile.in: Regenerate.
12296 * configure: Likewise.
12297 * testsuite/Makefile.in: Likewise.
12298
12299 * plugin/configfrag.ac (offload_additional_options)
12300 (offload_additional_lib_paths): Don't amend for hsa offloading.
12301 * configure: Regenerate.
12302
12303 * plugin/configfrag.ac: Don't configure for offloading target if
12304 we don't build the corresponding plugin.
12305 * configure: Regenerate.
12306
12307 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
12308
12309 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
12310 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
12311
12312 2016-01-26 Tom de Vries <tom@codesourcery.com>
12313
12314 PR tree-optimization/69110
12315 * testsuite/libgomp.c/pr69110.c: New test.
12316
12317 2016-01-25 Richard Biener <rguenther@suse.de>
12318
12319 PR lto/69393
12320 * testsuite/libgomp.c++/pr69393.C: New testcase.
12321
12322 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
12323
12324 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
12325 function wasn't mapped to the device with non-shared memory.
12326
12327 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
12328
12329 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
12330
12331 2016-01-19 Martin Jambor <mjambor@suse.cz>
12332 Martin Liska <mliska@suse.cz>
12333
12334 * plugin/Makefrag.am: Add HSA plugin requirements.
12335 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
12336 (HSA_RUNTIME_LIB): Likewise.
12337 (HSA_RUNTIME_CPPFLAGS): Likewise.
12338 (HSA_RUNTIME_INCLUDE): New substitution.
12339 (HSA_RUNTIME_LIB): Likewise.
12340 (HSA_RUNTIME_LDFLAGS): Likewise.
12341 (hsa-runtime): New configure option.
12342 (hsa-runtime-include): Likewise.
12343 (hsa-runtime-lib): Likewise.
12344 (PLUGIN_HSA): New substitution variable.
12345 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
12346 configure options.
12347 (PLUGIN_HSA_CPPFLAGS): Likewise.
12348 (PLUGIN_HSA_LDFLAGS): Likewise.
12349 (PLUGIN_HSA_LIBS): Likewise.
12350 Check that we have access to HSA run-time.
12351 * libgomp-plugin.h (offload_target_type): New element
12352 OFFLOAD_TARGET_TYPE_HSA.
12353 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
12354 args.
12355 (bool gomp_create_target_task): Updated.
12356 (gomp_device_descr): Extra parameter of run_func and async_run_func,
12357 new field can_run_func.
12358 * libgomp_g.h (GOMP_target_ext): Update prototype.
12359 * oacc-host.c (host_run): Added a new parameter args.
12360 * target.c (calculate_firstprivate_requirements): New function.
12361 (copy_firstprivate_data): Likewise.
12362 (gomp_target_fallback_firstprivate): Use them.
12363 (gomp_target_unshare_firstprivate): New function.
12364 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
12365 devices.
12366 (GOMP_target): Do host fallback for all shared memory devices. Do not
12367 pass any args to plugins.
12368 (GOMP_target_ext): Introduce device-specific argument parameter args.
12369 Allow host fallback if device shares memory. Do not remap data if
12370 device has shared memory.
12371 (gomp_target_task_fn): Likewise. Also treat shared memory devices
12372 like host fallback for mappings.
12373 (GOMP_target_data): Treat shared memory devices like host fallback.
12374 (GOMP_target_data_ext): Likewise.
12375 (GOMP_target_update): Likewise.
12376 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
12377 gomp_create_target_task.
12378 (GOMP_target_enter_exit_data): Likewise.
12379 (omp_target_alloc): Treat shared memory devices like host fallback.
12380 (omp_target_free): Likewise.
12381 (omp_target_is_present): Likewise.
12382 (omp_target_memcpy): Likewise.
12383 (omp_target_memcpy_rect): Likewise.
12384 (omp_target_associate_ptr): Likewise.
12385 (gomp_load_plugin_for_device): Also load can_run.
12386 * task.c (GOMP_PLUGIN_target_task_completion): Free
12387 firstprivate_copies.
12388 (gomp_create_target_task): Accept new argument args and store it to
12389 ttask.
12390 * plugin/plugin-hsa.c: New file.
12391
12392 2016-01-18 Tom de Vries <tom@codesourcery.com>
12393
12394 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
12395 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
12396 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
12397 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
12398 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
12399 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
12400 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
12401 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
12402 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
12403 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
12404 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
12405 Same.
12406 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
12407 Same.
12408 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
12409 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
12410 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
12411 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
12412 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
12413 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
12414 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
12415 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
12416 Same.
12417 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
12418
12419 2016-01-15 Jakub Jelinek <jakub@redhat.com>
12420
12421 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
12422
12423 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
12424
12425 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
12426
12427 2016-01-12 James Norris <jnorris@codesourcery.com>
12428
12429 * libgomp.texi: Updates for OpenACC.
12430
12431 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
12432
12433 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
12434
12435 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
12436
12437 PR fortran/66680
12438 * testsuite/libgomp.fortran/pr66680.f90: New test.
12439
12440 2016-01-07 Jakub Jelinek <jakub@redhat.com>
12441
12442 PR middle-end/68960
12443 * testsuite/libgomp.c/pr68960.c: New test.
12444
12445 2016-01-06 Nathan Sidwell <nathan@acm.org>
12446
12447 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
12448 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
12449
12450 2016-01-04 Jakub Jelinek <jakub@redhat.com>
12451
12452 Update copyright years.
12453
12454 * libgomp.texi: Bump @copying's copyright year.
12455
12456 2015-12-31 Nathan Sidwell <nathan@acm.org>
12457
12458 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
12459 dg-additional-options syntax.
12460 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
12461 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
12462 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
12463 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12464 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
12465 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
12466 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
12467 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
12468 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
12469 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
12470 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12471 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
12472 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
12473 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
12474 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
12475 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
12476 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12477 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12478
12479 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
12480
12481 * libgomp.h (REFCOUNT_LINK): Define.
12482 (struct splay_tree_key_s): Add link_key.
12483 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
12484 Replace target address of the pointer with target address of newly
12485 mapped object in the splay tree. Set link pointer on target to the
12486 device address of the mapped object.
12487 (gomp_unmap_vars): Restore target address of the pointer in the splay
12488 tree for REFCOUNT_LINK objects after unmapping.
12489 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
12490 declare target link" objects.
12491 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
12492 "omp declare target link" objects, which were mapped for the image.
12493 (gomp_exit_data): Restore target address of the pointer in the splay
12494 tree for REFCOUNT_LINK objects after unmapping.
12495 * testsuite/libgomp.c/target-link-1.c: New file.
12496
12497 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
12498
12499 * libgomp.h (gomp_device_state): New enum.
12500 (struct gomp_device_descr): Replace is_initialized with state.
12501 (gomp_fini_device): Remove declaration.
12502 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
12503 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
12504 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
12505 (acc_set_device_type): Use state instead of is_initialized.
12506 (acc_set_device_num): Likewise.
12507 * target.c (resolve_device): Use state instead of is_initialized.
12508 Do not initialize finalized device.
12509 (gomp_map_vars): Do nothing if device is finalized.
12510 (gomp_unmap_vars): Likewise.
12511 (gomp_update): Likewise.
12512 (GOMP_offload_register_ver): Use state instead of is_initialized.
12513 (GOMP_offload_unregister_ver): Likewise.
12514 (gomp_init_device): Likewise.
12515 (gomp_unload_device): Likewise.
12516 (gomp_fini_device): Remove.
12517 (gomp_get_target_fn_addr): Do nothing if device is finalized.
12518 (GOMP_target): Go to host fallback if device is finalized.
12519 (GOMP_target_ext): Likewise.
12520 (gomp_exit_data): Do nothing if device is finalized.
12521 (gomp_target_task_fn): Go to host fallback if device is finalized.
12522 (gomp_target_fini): New static function.
12523 (gomp_target_init): Use state instead of is_initialized.
12524 Call gomp_target_fini at exit.
12525
12526 2015-12-09 Tom de Vries <tom@codesourcery.com>
12527
12528 PR tree-optimization/68716
12529 * testsuite/libgomp.c/omp-nested-2.c: New test.
12530
12531 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
12532
12533 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
12534 target openacc_nvidia_accel_selected.
12535 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
12536 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
12537 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
12538 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
12539
12540 2015-12-01 Julian Brown <julian@codesourcery.com>
12541 James Norris <James_Norris@mentor.com>
12542
12543 * oacc-parallel.c (GOACC_host_data): New function.
12544 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
12545 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
12546 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
12547 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
12548 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
12549 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
12550 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
12551
12552 2015-11-30 James Norris <jnorris@codesourcery.com>
12553 Cesar Philippidis <cesar@codesourcery.com>
12554
12555 libgomp/
12556 * libgomp.oacc-fortran/routine-5.f90: New test.
12557 * libgomp.oacc-fortran/routine-7.f90: New test.
12558 * libgomp.oacc-fortran/routine-9.f90: New test.
12559
12560 2015-11-30 Tom de Vries <tom@codesourcery.com>
12561
12562 PR tree-optimization/46032
12563 * testsuite/libgomp.c/pr46032.c: New test.
12564
12565 2015-11-27 Jakub Jelinek <jakub@redhat.com>
12566
12567 PR libgomp/68579
12568 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
12569 (gomp_create_target_task): Call it before freeing
12570 GOMP_TARGET_TASK_DATA tasks.
12571
12572 PR c/63326
12573 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
12574 in between case label and OpenMP standalone directives.
12575 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
12576
12577 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
12578
12579 * configure: Regenerate.
12580
12581 2015-11-26 Jakub Jelinek <jakub@redhat.com>
12582
12583 * testsuite/libgomp.c/target-35.c: New test.
12584
12585 2015-11-22 James Norris <jnorris@codesourcery.com>
12586 Cesar Philippidis <cesar@codesourcery.com>
12587
12588 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
12589 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
12590 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
12591 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
12592 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
12593
12594 2015-11-20 Jakub Jelinek <jakub@redhat.com>
12595
12596 PR middle-end/68221
12597 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
12598 * testsuite/libgomp.c/reduction-12.c: Likewise.
12599 * testsuite/libgomp.c++/reduction-11.C: Likewise.
12600 * testsuite/libgomp.c++/reduction-12.C: Likewise.
12601
12602 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
12603
12604 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
12605 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
12606 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
12607 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
12608 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
12609 and fix.
12610 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
12611 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
12612
12613 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
12614
12615 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
12616 worker & gang cases.
12617 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
12618
12619 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
12620
12621 * config/nvptx/priority_queue.c: New file.
12622
12623 2015-11-14 Jakub Jelinek <jakub@redhat.com>
12624
12625 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
12626 sections.
12627
12628 2015-11-14 Jakub Jelinek <jakub@redhat.com>
12629 Aldy Hernandez <aldyh@redhat.com>
12630 Ilya Verbin <ilya.verbin@intel.com>
12631
12632 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
12633 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
12634 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
12635 iterators or IV by chunk size.
12636 * parallel.c (gomp_resolve_num_threads): Don't assume that
12637 if thr->ts.team is non-NULL, then pool must be non-NULL.
12638 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
12639 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
12640 GOMP_PLUGIN_target_task_completion.
12641 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
12642 * Makefile.in: Regenerate.
12643 * libgomp.h: Shuffle prototypes and forward definitions around so
12644 priority queues can be defined.
12645 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
12646 (enum gomp_target_task_state): New enum.
12647 (struct gomp_target_task): Add state, tgt, task and team fields.
12648 (gomp_create_target_task): Change return type to bool, add
12649 state argument.
12650 (gomp_target_task_fn): Change return type to bool.
12651 (struct gomp_device_descr): Add async_run_func.
12652 (struct gomp_task): Remove children, next_child, prev_child,
12653 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
12654 Add pnode field.
12655 (struct gomp_taskgroup): Remove children.
12656 Add taskgroup_queue.
12657 (struct gomp_team): Change task_queue type to a priority queue.
12658 (splay_compare): Define inline.
12659 (priority_queue_offset): New.
12660 (priority_node_to_task): New.
12661 (task_to_priority_node): New.
12662 * oacc-mem.c: Do not include splay-tree.h.
12663 * priority_queue.c: New file.
12664 * priority_queue.h: New file.
12665 * splay-tree.c: Do not include splay-tree.h.
12666 (splay_tree_foreach_internal): New.
12667 (splay_tree_foreach): New.
12668 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
12669 (splay_tree_callback): Define typedef.
12670 * target.c (splay_compare): Move to libgomp.h.
12671 (GOMP_target): Don't adjust *thr in any way around running offloaded
12672 task.
12673 (GOMP_target_ext): Likewise. Handle target nowait.
12674 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
12675 return value from gomp_create_target_task, if false, fallthrough
12676 as if no dependencies exist.
12677 (gomp_target_task_fn): Change return type to bool, return true
12678 if the task should have another part scheduled later. Handle
12679 target nowait.
12680 (gomp_load_plugin_for_device): Initialize async_run.
12681 * task.c (gomp_init_task): Initialize children_queue.
12682 (gomp_clear_parent_in_list): New.
12683 (gomp_clear_parent_in_tree): New.
12684 (gomp_clear_parent): Handle priorities.
12685 (GOMP_task): Likewise.
12686 (priority_queue_move_task_first,
12687 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
12688 New functions.
12689 (gomp_create_target_task): Use priority queues. Change return type
12690 to bool, add state argument, return false if for async
12691 {{enter,exit} data,update} constructs no dependencies need to be
12692 waited for, handle target nowait. Set task->fn to NULL instead of
12693 gomp_target_task_fn.
12694 (verify_children_queue): Remove.
12695 (priority_list_upgrade_task): New.
12696 (priority_queue_upgrade_task): New.
12697 (verify_task_queue): Remove.
12698 (priority_list_downgrade_task): New.
12699 (priority_queue_downgrade_task): New.
12700 (gomp_task_run_pre): Use priority queues.
12701 Abstract code out to priority_queue_downgrade_task.
12702 (gomp_task_run_post_handle_dependers): Use priority queues.
12703 (gomp_task_run_post_remove_parent): Likewise.
12704 (gomp_task_run_post_remove_taskgroup): Likewise.
12705 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
12706 tasks specially.
12707 (GOMP_taskwait): Likewise.
12708 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
12709 priority-queue_upgrade_task.
12710 (GOMP_taskgroup_start): Use priority queues.
12711 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
12712 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
12713 barrier.
12714 * taskloop.c (GOMP_taskloop): Handle priorities.
12715 * team.c (gomp_new_team): Call priority_queue_init.
12716 (free_team): Call priority_queue_free.
12717 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
12718 team created for target nowait in implicit parallel region.
12719 (gomp_team_start): For nested check, test thr->ts.level instead of
12720 thr->ts.team != NULL.
12721 * testsuite/libgomp.c/doacross-3.c: New test.
12722 * testsuite/libgomp.c/ordered-5.c: New test.
12723 * testsuite/libgomp.c/priority.c: New test.
12724 * testsuite/libgomp.c/target-31.c: New test.
12725 * testsuite/libgomp.c/target-32.c: New test.
12726 * testsuite/libgomp.c/target-33.c: New test.
12727 * testsuite/libgomp.c/target-34.c: New test.
12728
12729 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
12730
12731 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
12732
12733 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
12734 loop is sequential.
12735
12736 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
12737
12738 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
12739 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
12740
12741 2015-11-12 James Norris <jnorris@codesourcery.com>
12742 Joseph Myers <joseph@codesourcery.com>
12743
12744 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
12745 * oacc-parallel.c (GOACC_declare): New function.
12746 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
12747 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
12748 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
12749 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
12750 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
12751
12752 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
12753
12754 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
12755
12756 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
12757
12758 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
12759 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
12760
12761 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
12762
12763 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
12764 inadvertent commit.
12765
12766 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
12767
12768 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
12769 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
12770 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
12771 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
12772 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
12773
12774 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
12775
12776 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
12777 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
12778
12779 2015-11-05 Jakub Jelinek <jakub@redhat.com>
12780 Ilya Verbin <ilya.verbin@intel.com>
12781
12782 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
12783 GOMP_loop_nonmonotonic_dynamic_start,
12784 GOMP_loop_nonmonotonic_guided_next,
12785 GOMP_loop_nonmonotonic_guided_start,
12786 GOMP_loop_ull_nonmonotonic_dynamic_next,
12787 GOMP_loop_ull_nonmonotonic_dynamic_start,
12788 GOMP_loop_ull_nonmonotonic_guided_next,
12789 GOMP_loop_ull_nonmonotonic_guided_start,
12790 GOMP_parallel_loop_nonmonotonic_dynamic,
12791 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
12792 (GOMP_target_41): Renamed to ...
12793 (GOMP_target_ext): ... this. Add num_teams and thread_limit
12794 arguments.
12795 (GOMP_target_data_41): Renamed to ...
12796 (GOMP_target_data_ext): ... this.
12797 (GOMP_target_update_41): Renamed to ...
12798 (GOMP_target_update_ext): ... this.
12799 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
12800 GOMP_target_data_ext and GOMP_target_update_ext instead of
12801 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
12802 Export GOMP_loop_nonmonotonic_dynamic_next,
12803 GOMP_loop_nonmonotonic_dynamic_start,
12804 GOMP_loop_nonmonotonic_guided_next,
12805 GOMP_loop_nonmonotonic_guided_start,
12806 GOMP_loop_ull_nonmonotonic_dynamic_next,
12807 GOMP_loop_ull_nonmonotonic_dynamic_start,
12808 GOMP_loop_ull_nonmonotonic_guided_next,
12809 GOMP_loop_ull_nonmonotonic_guided_start,
12810 GOMP_parallel_loop_nonmonotonic_dynamic and
12811 GOMP_parallel_loop_nonmonotonic_guided.
12812 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
12813 GOMP_parallel_loop_nonmonotonic_guided,
12814 GOMP_loop_nonmonotonic_dynamic_start,
12815 GOMP_loop_nonmonotonic_guided_start,
12816 GOMP_loop_nonmonotonic_dynamic_next,
12817 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
12818 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
12819 GOMP_loop_ull_nonmonotonic_guided_start,
12820 GOMP_loop_ull_nonmonotonic_dynamic_next,
12821 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
12822 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
12823 functions.
12824 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
12825 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
12826 Use gomp_map_val function.
12827 (gomp_target_fallback_firstprivate): New static function.
12828 (GOMP_target_41): Renamed to ...
12829 (GOMP_target_ext): ... this. Add num_teams and thread_limit
12830 arguments. Move firstprivate fallback handling into a new
12831 function.
12832 (GOMP_target_data_41): Renamed to ...
12833 (GOMP_target_data_ext): ... this.
12834 (GOMP_target_update_41): Renamed to ...
12835 (GOMP_target_update_ext): ... this.
12836 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
12837 gomp_map_0len_lookup instead of gomp_map_lookup.
12838 (omp_target_is_present): Use gomp_map_0len_lookup instead of
12839 gomp_map_lookup.
12840 * testsuite/libgomp.c/target-28.c: Likewise.
12841 * testsuite/libgomp.c/monotonic-1.c: New test.
12842 * testsuite/libgomp.c/monotonic-2.c: New test.
12843 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
12844 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
12845 * testsuite/libgomp.c/pr66199-5.c: New test.
12846 * testsuite/libgomp.c/pr66199-6.c: New test.
12847 * testsuite/libgomp.c/pr66199-7.c: New test.
12848 * testsuite/libgomp.c/pr66199-8.c: New test.
12849 * testsuite/libgomp.c/pr66199-9.c: New test.
12850 * testsuite/libgomp.c/reduction-11.c: New test.
12851 * testsuite/libgomp.c/reduction-12.c: New test.
12852 * testsuite/libgomp.c/reduction-13.c: New test.
12853 * testsuite/libgomp.c/reduction-14.c: New test.
12854 * testsuite/libgomp.c/reduction-15.c: New test.
12855 * testsuite/libgomp.c/target-12.c (main): Adjust for
12856 omp_target_is_present change for one-past-last element.
12857 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
12858 the same var is both mapped and privatized.
12859 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
12860 handling of zero-length array sections.
12861 * testsuite/libgomp.c/target-28.c: New test.
12862 * testsuite/libgomp.c/target-29.c: New test.
12863 * testsuite/libgomp.c/target-30.c: New test.
12864 * testsuite/libgomp.c/target-teams-1.c: New test.
12865 * testsuite/libgomp.c++/member-6.C: New test.
12866 * testsuite/libgomp.c++/member-7.C: New test.
12867 * testsuite/libgomp.c++/monotonic-1.C: New test.
12868 * testsuite/libgomp.c++/monotonic-2.C: New test.
12869 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
12870 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
12871 * testsuite/libgomp.c++/pr66199-3.C: New test.
12872 * testsuite/libgomp.c++/pr66199-4.C: New test.
12873 * testsuite/libgomp.c++/pr66199-5.C: New test.
12874 * testsuite/libgomp.c++/pr66199-6.C: New test.
12875 * testsuite/libgomp.c++/pr66199-7.C: New test.
12876 * testsuite/libgomp.c++/pr66199-8.C: New test.
12877 * testsuite/libgomp.c++/pr66199-9.C: New test.
12878 * testsuite/libgomp.c++/reduction-11.C: New test.
12879 * testsuite/libgomp.c++/reduction-12.C: New test.
12880 * testsuite/libgomp.c++/target-13.C: New test.
12881 * testsuite/libgomp.c++/target-14.C: New test.
12882 * testsuite/libgomp.c++/target-15.C: New test.
12883 * testsuite/libgomp.c++/target-16.C: New test.
12884 * testsuite/libgomp.c++/target-17.C: New test.
12885 * testsuite/libgomp.c++/target-18.C: New test.
12886 * testsuite/libgomp.c++/target-19.C: New test.
12887
12888 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
12889
12890 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
12891 and reduction copy.
12892 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
12893 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
12894 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
12895 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
12896 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
12897 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
12898 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
12899 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
12900 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
12901 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
12902 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
12903 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
12904 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
12905 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
12906
12907 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
12908
12909 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
12910 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
12911 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
12912 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
12913 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
12914 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
12915 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
12916 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
12917
12918 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
12919
12920 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
12921 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
12922 (GOMP_OFFLOAD_openacc_parallel): Likewise.
12923 * oacc-host.c (host_openacc_exec): Likewise.
12924 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
12925
12926 2015-11-03 Julian Brown <julian@codesourcery.com>
12927 Thomas Schwinge <thomas@codesourcery.com>
12928
12929 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
12930 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
12931 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
12932 Likewise.
12933 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
12934 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
12935
12936 2015-11-03 James Norris <jnorris@codesourcery.com>
12937
12938 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
12939 file.
12940 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
12941 Likewise.
12942 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
12943 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
12944 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
12945 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
12946 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
12947
12948 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
12949
12950 * openacc.h (enum acc_device_t): Reformat. Ensure layout
12951 compatibility.
12952 (enum acc_async_t): Reformat.
12953 (acc_on_device): Declare compatible with builtin and provide C++
12954 wrapper.
12955 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
12956
12957 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
12958 Cesar Philippidis <cesar@codesourcery.com>
12959
12960 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
12961 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
12962 ... this. Add a description of the test at the top of the file.
12963 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
12964 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
12965 ... this. Add a description of the test at the top of the file.
12966
12967 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
12968
12969 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
12970 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
12971 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
12972 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
12973 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
12974 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
12975
12976 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
12977
12978 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
12979 dimensions.
12980
12981 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
12982
12983 PR testsuite/68063
12984 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
12985
12986 2015-10-27 James Norris <jnorris@codesourcery.com>
12987
12988 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
12989 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
12990
12991 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
12992
12993 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
12994 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
12995
12996 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
12997 acc_device_nvidia usage.
12998 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
12999 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
13000 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
13001
13002 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
13003 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
13004
13005 PR libgomp/66518
13006 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
13007
13008 PR libgomp/65437
13009 PR libgomp/66518
13010 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
13011 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
13012
13013 2015-10-23 Tom de Vries <tom@codesourcery.com>
13014
13015 PR testsuite/68063
13016 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
13017
13018 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
13019
13020 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
13021 vector_length.
13022 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13023
13024 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
13025 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
13026
13027 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
13028 to 0 when mapnum is 0.
13029
13030 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
13031
13032 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
13033 Cast to int from int32_t.
13034
13035 2015-10-13 Jakub Jelinek <jakub@redhat.com>
13036 Aldy Hernandez <aldyh@redhat.com>
13037 Ilya Verbin <ilya.verbin@intel.com>
13038
13039 * config/linux/affinity.c (omp_get_place_num_procs,
13040 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
13041 * config/linux/doacross.h: New file.
13042 * config/posix/affinity.c (omp_get_place_num_procs,
13043 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
13044 * config/posix/doacross.h: New file.
13045 * env.c: Include gomp-constants.h.
13046 (struct gomp_task_icv): Rename run_sched_modifier to
13047 run_sched_chunk_size.
13048 (gomp_max_task_priority_var): New variable.
13049 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
13050 (handle_omp_display_env): Change _OPENMP value from 201307 to
13051 201511. Print OMP_MAX_TASK_PRIORITY.
13052 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
13053 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
13054 chunk_size and run_sched_modifier to run_sched_chunk_size.
13055 (omp_get_max_task_priority, omp_get_initial_device,
13056 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
13057 omp_get_partition_place_nums): New functions.
13058 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
13059 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
13060 to chunk_size.
13061 (omp_get_num_places_, omp_get_place_num_procs_,
13062 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
13063 omp_get_place_proc_ids_8_, omp_get_place_num_,
13064 omp_get_partition_num_places_, omp_get_partition_place_nums_,
13065 omp_get_partition_place_nums_8_, omp_get_initial_device_,
13066 omp_get_max_task_priority_): New functions.
13067 * libgomp_g.h (GOMP_loop_doacross_static_start,
13068 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
13069 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
13070 GOMP_loop_ull_doacross_dynamic_start,
13071 GOMP_loop_ull_doacross_guided_start,
13072 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
13073 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
13074 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
13075 GOMP_target_data_41, GOMP_target_update_41,
13076 GOMP_target_enter_exit_data): New prototypes.
13077 (GOMP_task): Add prototype argument.
13078 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
13079 (struct gomp_doacross_work_share): New type.
13080 (struct gomp_work_share): Add doacross field.
13081 (struct gomp_task_icv): Rename run_sched_modifier to
13082 run_sched_chunk_size.
13083 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
13084 GOMP_TASK_UNDEFERRED. Add comments.
13085 (struct gomp_task_depend_entry): Add comments.
13086 (struct gomp_task): Likewise.
13087 (struct gomp_taskgroup): Likewise.
13088 (struct gomp_target_task): New type.
13089 (struct gomp_team): Add comment.
13090 (gomp_get_place_proc_ids_8, gomp_doacross_init,
13091 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
13092 gomp_create_target_task, gomp_target_task_fn): New prototypes.
13093 (struct target_var_desc): New type.
13094 (struct target_mem_desc): Adjust comment. Use struct
13095 target_var_desc instead of splay_tree_key for list.
13096 (REFCOUNT_INFINITY): Define.
13097 (struct splay_tree_key_s): Remove copy_from field.
13098 (struct gomp_device_descr): Add dev2dev_func field.
13099 (enum gomp_map_vars_kind): New enum.
13100 (gomp_map_vars): Add one argument.
13101 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
13102 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
13103 omp_get_place_num_procs, omp_get_place_num_procs_,
13104 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
13105 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
13106 omp_get_place_num_, omp_get_partition_num_places,
13107 omp_get_partition_num_places_, omp_get_partition_place_nums,
13108 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
13109 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
13110 omp_target_free, omp_target_is_present, omp_target_memcpy,
13111 omp_target_memcpy_rect, omp_target_associate_ptr and
13112 omp_target_disassociate_ptr.
13113 (GOMP_4.0.2): Renamed to ...
13114 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
13115 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
13116 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
13117 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
13118 GOMP_loop_doacross_static_start, GOMP_doacross_post,
13119 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
13120 GOMP_loop_ull_doacross_guided_start,
13121 GOMP_loop_ull_doacross_runtime_start,
13122 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
13123 GOMP_doacross_ull_wait.
13124 * libgomp.texi: Document omp_get_max_task_priority.
13125 Rename modifier argument to chunk_size for omp_set_schedule and
13126 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
13127 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
13128 to run_sched_chunk_size renaming.
13129 (GOMP_loop_ordered_runtime_start): Likewise.
13130 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
13131 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
13132 GOMP_parallel_loop_runtime_start): New functions.
13133 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
13134 to run_sched_chunk_size renaming.
13135 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
13136 GOMP_loop_doacross_guided_start): New functions or aliases.
13137 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
13138 run_sched_modifier to run_sched_chunk_size renaming.
13139 (GOMP_loop_ull_ordered_runtime_start): Likewise.
13140 (gomp_loop_ull_doacross_static_start,
13141 gomp_loop_ull_doacross_dynamic_start,
13142 gomp_loop_ull_doacross_guided_start,
13143 GOMP_loop_ull_doacross_runtime_start): New functions.
13144 (GOMP_loop_ull_doacross_static_start,
13145 GOMP_loop_ull_doacross_dynamic_start,
13146 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
13147 * oacc-mem.c (acc_map_data, present_create_copy,
13148 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
13149 to gomp_map_vars.
13150 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
13151 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
13152 instead of false to gomp_map_vars.
13153 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
13154 * omp.h.in (omp_lock_hint_t): New type.
13155 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
13156 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
13157 omp_get_place_num, omp_get_partition_num_places,
13158 omp_get_partition_place_nums, omp_get_initial_device,
13159 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
13160 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
13161 omp_target_associate_ptr, omp_target_disassociate_ptr): New
13162 prototypes.
13163 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
13164 (omp_lock_hint_none, omp_lock_hint_uncontended,
13165 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
13166 omp_lock_hint_speculative): New parameters.
13167 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
13168 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
13169 omp_get_place_num, omp_get_partition_num_places,
13170 omp_get_partition_place_nums, omp_get_initial_device,
13171 omp_get_max_task_priority): New interfaces.
13172 (omp_set_schedule, omp_get_schedule): Rename modifier argument
13173 to chunk_size.
13174 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
13175 (omp_lock_hint_none, omp_lock_hint_uncontended,
13176 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
13177 omp_lock_hint_speculative): New parameters.
13178 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
13179 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
13180 omp_get_place_num, omp_get_partition_num_places,
13181 omp_get_partition_place_nums, omp_get_initial_device,
13182 omp_get_max_task_priority): New functions and subroutines.
13183 * ordered.c: Include stdarg.h and string.h.
13184 (MAX_COLLAPSED_BITS): Define.
13185 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
13186 gomp_doacross_ull_init, GOMP_doacross_ull_post,
13187 GOMP_doacross_ull_wait): New functions.
13188 * target.c: Include errno.h.
13189 (resolve_device): If device is not initialized, call
13190 gomp_init_device on it.
13191 (gomp_map_lookup): New function.
13192 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
13193 Don't bump refcount if REFCOUNT_INFINITY. Handle
13194 GOMP_MAP_ALWAYS_TO_P.
13195 (get_kind): Rename is_openacc argument to short_mapkind.
13196 (gomp_map_pointer): Use gomp_map_lookup.
13197 (gomp_map_fields_existing): New function.
13198 (gomp_map_vars): Rename is_openacc argument to short_mapkind
13199 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
13200 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
13201 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
13202 Adjust for tgt->list changed type and copy_from living in there.
13203 (gomp_copy_from_async): Adjust for tgt->list changed type and
13204 copy_from living in there.
13205 (gomp_unmap_vars): Likewise.
13206 (gomp_update): Likewise. Rename is_openacc argument to
13207 short_mapkind. Don't fail if object is not mapped.
13208 (gomp_load_image_to_device): Initialize refcount to
13209 REFCOUNT_INFINITY.
13210 (gomp_target_fallback): New function.
13211 (gomp_get_target_fn_addr): Likewise.
13212 (GOMP_target): Adjust gomp_map_vars caller, use
13213 gomp_get_target_fn_addr and gomp_target_fallback.
13214 (GOMP_target_41): New function.
13215 (gomp_target_data_fallback): New function.
13216 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
13217 (GOMP_target_data_41): New function.
13218 (GOMP_target_update): Adjust gomp_update caller.
13219 (GOMP_target_update_41): New function.
13220 (gomp_exit_data, GOMP_target_enter_exit_data,
13221 gomp_target_task_fn, omp_target_alloc, omp_target_free,
13222 omp_target_is_present, omp_target_memcpy,
13223 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
13224 omp_target_associate_ptr, omp_target_disassociate_ptr,
13225 gomp_load_plugin_for_device): New functions.
13226 * task.c: Include gomp-constants.h. Include taskloop.c
13227 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
13228 (gomp_task_handle_depend): New function.
13229 (GOMP_task): Use it. Add priority argument. Use
13230 gomp-constant.h constants instead of hardcoded numbers.
13231 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
13232 (gomp_create_target_task): New function.
13233 (verify_children_queue, verify_taskgroup_queue,
13234 verify_task_queue): New functions.
13235 (gomp_task_run_pre): Call verify_*_queue functions.
13236 If an upcoming tied task is about to leave the sibling or
13237 taskgroup queues in an invalid state, adjust appropriately.
13238 Remove taskgroup argument. Add comments.
13239 (gomp_task_run_post_handle_dependers): Add comments.
13240 (gomp_task_run_post_remove_parent): Likewise.
13241 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
13242 (GOMP_taskwait): Likewise. Add comments.
13243 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
13244 problem such that the first non parent_depends_on task does not
13245 end up at the end of the children queue.
13246 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
13247 GOMP_TASK_UNDEFERRED.
13248 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
13249 * taskloop.c: New file.
13250 * testsuite/lib/libgomp.exp
13251 (check_effective_target_offload_device_nonshared_as): New proc.
13252 * testsuite/libgomp.c/affinity-2.c: New test.
13253 * testsuite/libgomp.c/doacross-1.c: New test.
13254 * testsuite/libgomp.c/doacross-2.c: New test.
13255 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
13256 Add map clause to target.
13257 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
13258 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
13259 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
13260 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
13261 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
13262 Likewise.
13263 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
13264 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
13265 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
13266 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
13267 not defined. Use those where needed.
13268 * testsuite/libgomp.c/for-4.c: New test.
13269 * testsuite/libgomp.c/for-5.c: New test.
13270 * testsuite/libgomp.c/for-6.c: New test.
13271 * testsuite/libgomp.c/linear-1.c: New test.
13272 * testsuite/libgomp.c/ordered-4.c: New test.
13273 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
13274 only allowed on the loop iterator.
13275 * testsuite/libgomp.c/pr66199-3.c: New test.
13276 * testsuite/libgomp.c/pr66199-4.c: New test.
13277 * testsuite/libgomp.c/reduction-7.c: New test.
13278 * testsuite/libgomp.c/reduction-8.c: New test.
13279 * testsuite/libgomp.c/reduction-9.c: New test.
13280 * testsuite/libgomp.c/reduction-10.c: New test.
13281 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
13282 map(tofrom:s).
13283 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
13284 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
13285 * testsuite/libgomp.c/target-11.c: New test.
13286 * testsuite/libgomp.c/target-12.c: New test.
13287 * testsuite/libgomp.c/target-13.c: New test.
13288 * testsuite/libgomp.c/target-14.c: New test.
13289 * testsuite/libgomp.c/target-15.c: New test.
13290 * testsuite/libgomp.c/target-16.c: New test.
13291 * testsuite/libgomp.c/target-17.c: New test.
13292 * testsuite/libgomp.c/target-18.c: New test.
13293 * testsuite/libgomp.c/target-19.c: New test.
13294 * testsuite/libgomp.c/target-20.c: New test.
13295 * testsuite/libgomp.c/target-21.c: New test.
13296 * testsuite/libgomp.c/target-22.c: New test.
13297 * testsuite/libgomp.c/target-23.c: New test.
13298 * testsuite/libgomp.c/target-24.c: New test.
13299 * testsuite/libgomp.c/target-25.c: New test.
13300 * testsuite/libgomp.c/target-26.c: New test.
13301 * testsuite/libgomp.c/target-27.c: New test.
13302 * testsuite/libgomp.c/taskloop-1.c: New test.
13303 * testsuite/libgomp.c/taskloop-2.c: New test.
13304 * testsuite/libgomp.c/taskloop-3.c: New test.
13305 * testsuite/libgomp.c/taskloop-4.c: New test.
13306 * testsuite/libgomp.c++/ctor-13.C: New test.
13307 * testsuite/libgomp.c++/doacross-1.C: New test.
13308 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
13309 Replace offload_device with offload_device_nonshared_as.
13310 * testsuite/libgomp.c++/for-12.C: New test.
13311 * testsuite/libgomp.c++/for-13.C: New test.
13312 * testsuite/libgomp.c++/for-14.C: New test.
13313 * testsuite/libgomp.c++/linear-1.C: New test.
13314 * testsuite/libgomp.c++/member-1.C: New test.
13315 * testsuite/libgomp.c++/member-2.C: New test.
13316 * testsuite/libgomp.c++/member-3.C: New test.
13317 * testsuite/libgomp.c++/member-4.C: New test.
13318 * testsuite/libgomp.c++/member-5.C: New test.
13319 * testsuite/libgomp.c++/ordered-1.C: New test.
13320 * testsuite/libgomp.c++/reduction-5.C: New test.
13321 * testsuite/libgomp.c++/reduction-6.C: New test.
13322 * testsuite/libgomp.c++/reduction-7.C: New test.
13323 * testsuite/libgomp.c++/reduction-8.C: New test.
13324 * testsuite/libgomp.c++/reduction-9.C: New test.
13325 * testsuite/libgomp.c++/reduction-10.C: New test.
13326 * testsuite/libgomp.c++/reference-1.C: New test.
13327 * testsuite/libgomp.c++/simd14.C: New test.
13328 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
13329 * testsuite/libgomp.c++/target-5.C: New test.
13330 * testsuite/libgomp.c++/target-6.C: New test.
13331 * testsuite/libgomp.c++/target-7.C: New test.
13332 * testsuite/libgomp.c++/target-8.C: New test.
13333 * testsuite/libgomp.c++/target-9.C: New test.
13334 * testsuite/libgomp.c++/target-10.C: New test.
13335 * testsuite/libgomp.c++/target-11.C: New test.
13336 * testsuite/libgomp.c++/target-12.C: New test.
13337 * testsuite/libgomp.c++/taskloop-1.C: New test.
13338 * testsuite/libgomp.c++/taskloop-2.C: New test.
13339 * testsuite/libgomp.c++/taskloop-3.C: New test.
13340 * testsuite/libgomp.c++/taskloop-4.C: New test.
13341 * testsuite/libgomp.c++/taskloop-5.C: New test.
13342 * testsuite/libgomp.c++/taskloop-6.C: New test.
13343 * testsuite/libgomp.c++/taskloop-7.C: New test.
13344 * testsuite/libgomp.c++/taskloop-8.C: New test.
13345 * testsuite/libgomp.c++/taskloop-9.C: New test.
13346 * testsuite/libgomp.fortran/affinity1.f90: New test.
13347 * testsuite/libgomp.fortran/affinity2.f90: New test.
13348
13349 2015-10-13 Tom de Vries <tom@codesourcery.com>
13350
13351 PR tree-optimization/67476
13352 * testsuite/libgomp.c/autopar-3.c: New test.
13353 * testsuite/libgomp.c/autopar-4.c: New test.
13354 * testsuite/libgomp.c/autopar-5.c: New test.
13355 * testsuite/libgomp.c/autopar-6.c: New test.
13356 * testsuite/libgomp.c/autopar-7.c: New test.
13357 * testsuite/libgomp.c/autopar-8.c: New test.
13358
13359 2015-10-12 James Norris <jnorris@codesourcery.com>
13360
13361 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
13362 initializer.
13363
13364 2015-10-09 David Malcolm <dmalcolm@redhat.com>
13365
13366 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
13367 using load_gcc_lib.
13368
13369 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
13370
13371 * oacc-ptx.h: Remove file, moving its content into...
13372 * config/nvptx/fortran.c: ... here...
13373 * config/nvptx/oacc-init.c: ..., here...
13374 * config/nvptx/oacc-parallel.c: ..., and here.
13375 * config/nvptx/openacc.f90: New file.
13376 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
13377 (link_ptx): Don't link in predefined bits of PTX code.
13378
13379 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
13380 Bernd Schmidt <bernds@codesourcery.com>
13381
13382 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
13383 (struct targ_ptx_obj): New.
13384 (nvptx_tdata): Move earlier, change data format.
13385 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
13386 objects.
13387 (GOMP_OFFLOAD_load_image): Adjust.
13388
13389 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
13390
13391 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
13392 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
13393 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
13394 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
13395 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
13396 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
13397 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
13398 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
13399 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
13400 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
13401 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
13402 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
13403 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
13404 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
13405 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
13406 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
13407 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
13408 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
13409 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
13410 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
13411 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
13412 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
13413 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
13414 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
13415 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
13416 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
13417 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
13418 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
13419 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
13420 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
13421 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
13422 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
13423 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
13424 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
13425 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
13426 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
13427 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
13428 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
13429 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
13430 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
13431 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
13432 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
13433 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
13434 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
13435 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
13436 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
13437 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
13438 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
13439 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
13440 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
13441 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
13442 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
13443 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
13444 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
13445 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
13446 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
13447 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
13448 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
13449 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
13450 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
13451 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
13452 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
13453 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
13454
13455 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
13456
13457 * oacc-init.c (acc_on_device): Force optimization level.
13458
13459 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
13460
13461 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
13462 (cuda_errlist): Delete.
13463 (cuda_error): Reimplement.
13464
13465 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
13466
13467 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
13468 array.
13469 * libgomp.map (GOACC_parallel_keyed): New.
13470 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
13471 all callers.
13472 (GOACC_parallel_keyed): New interface. Lose geometry arguments
13473 and take keyed varargs list. Adjust call to exec_func.
13474 (GOACC_parallel): Force host fallback.
13475 * libgomp_g.h (GOACC_parallel): Remove.
13476 (GOACC_parallel_keyed): Declare.
13477 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
13478 (struct targ_gn_descriptor): Replace name field with launch field.
13479 (nvptx_exec): Lose separate geometry args, take array. Process
13480 dynamic dimensions and adjust.
13481 (struct nvptx_tdata): Replace fn_names field with fn_descs.
13482 (GOMP_OFFLOAD_load_image): Adjust for change in function table
13483 data.
13484 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
13485 passing.
13486 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
13487 passing.
13488
13489 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
13490
13491 PR libgomp/67141
13492 * oacc-int.h (goacc_host_init): Add declaration.
13493 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
13494 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
13495
13496 2015-09-08 Aditya Kumar <hiraditya@msn.com>
13497 Sebastian Pop <s.pop@samsung.com>
13498
13499 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
13500 match o/p.
13501 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
13502 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
13503 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
13504 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
13505 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
13506
13507 2015-09-03 Jakub Jelinek <jakub@redhat.com>
13508
13509 * configure.tgt: Add missing ;; in between nvptx and rtems
13510 snippets.
13511
13512 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
13513
13514 * config/posix/pool.h (gomp_adjust_thread_attr): New.
13515 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
13516 (gomp_thread_pool_reservoir): Add priority member.
13517 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
13518 priority.
13519 (parse_thread_pools): Likewise.
13520 * team.c (gomp_team_start): Call configuration provided
13521 gomp_adjust_thread_attr(). Destroy thread attributes if
13522 necessary.
13523 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
13524
13525 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
13526
13527 * config/posix/pool.h: New.
13528 * config/rtems/pool.h: Likewise.
13529 * config/rtems/proc.c: Likewise.
13530 * libgomp.h (gomp_thread_destructor): Declare.
13531 * team.c: Include configuration provided "pool.h".
13532 (gomp_get_thread_pool): Define in configuration.
13533 (gomp_team_end): Call configuration defined
13534 gomp_release_thread_pool().
13535
13536 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
13537
13538 * config/rtems/bar.c: New.
13539 * config/rtems/bar.h: Likewise.
13540 * config/rtems/mutex.c: Likewise.
13541 * config/rtems/mutex.h: Likewise.
13542 * config/rtems/sem.c: Likewise.
13543 * config/rtems/sem.h: Likewise.
13544 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
13545 <sys/lock.h> header file.
13546 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
13547 supported by Newlib.
13548 * configure: Regenerate.
13549
13550 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
13551
13552 * team.c (gomp_new_thread_pool): Delete and move content to ...
13553 (gomp_get_thread_pool): ... new function. Allocate and
13554 initialize thread pool on demand.
13555 (get_last_team): Use gomp_get_thread_pool().
13556 (gomp_team_start): Delete thread pool initialization.
13557
13558 2015-09-03 Tom de Vries <tom@codesourcery.com>
13559
13560 PR tree-optimization/65637
13561 * testsuite/libgomp.c/autopar-2.c: New test.
13562
13563 2015-08-29 Tom de Vries <tom@codesourcery.com>
13564
13565 PR tree-optimization/46193
13566 * testsuite/libgomp.c/pr46193.c: New test.
13567
13568 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
13569
13570 libgomp/
13571 * libgomp.map: Add 4.0.2 version.
13572 * target.c (offload_image_descr): Add version field.
13573 (gomp_load_image_to_device): Add version argument. Adjust plugin
13574 call. Improve load mismatch diagnostic.
13575 (gomp_unload_image_from_device): Add version argument. Adjust plugin
13576 call.
13577 (GOMP_offload_regster): Make stub function, move bulk to ...
13578 (GOMP_offload_register_ver): ... here. Process version argument.
13579 (GOMP_offload_unregister): Make stub function, move bulk to ...
13580 (GOMP_offload_unregister_ver): ... here. Process version argument.
13581 (gomp_init_device): Process version field.
13582 (gomp_unload_device): Process version field.
13583 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
13584 macros. Check plugin version.
13585 * libgomp.h (gomp_device_descr): Add version function field. Adjust
13586 loader and unloader types.
13587 * oacc-host.c: Include gomp-constants.h.
13588 (host_version): New.
13589 (host_load_image, host_unload_image): Adjust.
13590 (host_dispatch): Add host_version.
13591 * plugin/plugin-nvptx.c: Include gomp-constants.h.
13592 (GOMP_OFFLOAD_version): New.
13593 (GOMP_OFFLOAD_load_image): Add version arg and check it.
13594 (GOMP_OFFLOAD_unload_image): Likewise.
13595 * plugin/plugin-host.c: Include gomp-constants.h.
13596 (GOMP_OFFLOAD_version): New.
13597 (GOMP_OFFLOAD_load_image): Add version arg.
13598 (GOMP_OFFLOAD_unload_image): Likewise.
13599
13600 2015-08-24 Tom de Vries <tom@codesourcery.com>
13601
13602 PR tree-optimization/65468
13603 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
13604
13605 2015-08-24 Tom de Vries <tom@codesourcery.com>
13606
13607 PR tree-optimization/65468
13608 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
13609
13610 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
13611
13612 PR libgomp/66761
13613 PR libgomp/67303
13614 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
13615 (gomp_iter_guided_next): Idem.
13616 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
13617 (gomp_iter_ull_guided_next): Idem.
13618 * config/linux/wait.h (do_spin): Idem.
13619
13620 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
13621
13622 * libgomp-plugin.h (enum offload_target_type): Remove
13623 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
13624 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
13625 * openacc.h (enum acc_device_t): Likewise.
13626 * openacc_lib.h: Likewise.
13627 * oacc-init.c (name_of_acc_device_t): Don't handle it.
13628 (acc_on_device): Just use __builtin_acc_on_device.
13629 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
13630 of acc_on_device builtin.
13631 * plugin/plugin-host.h: Remove file.
13632 * plugin/plugin-host.c: Likewise, but salvage some content into...
13633 * oacc-host.c: ... this file.
13634 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
13635 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
13636 * Makefile.in: Regenerate.
13637 * configure: Likewise.
13638 * testsuite/lib/libgomp.exp
13639 (check_effective_target_openacc_host_nonshm_selected): Remove.
13640 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
13641 ACC_DEVICE_TYPE=host_nonshm.
13642 * testsuite/libgomp.oacc-c/c.exp: Likewise.
13643 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
13644 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
13645 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
13646 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
13647 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
13648
13649 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
13650 Jakub Jelinek <jakub@redhat.com>
13651
13652 * config/nvptx/affinity.c: New file.
13653 * config/nvptx/alloc.c: Likewise.
13654 * config/nvptx/bar.c: Likewise.
13655 * config/nvptx/barrier.c: Likewise.
13656 * config/nvptx/critical.c: Likewise.
13657 * config/nvptx/env.c: Likewise.
13658 * config/nvptx/error.c: Likewise.
13659 * config/nvptx/fortran.c: Likewise.
13660 * config/nvptx/iter.c: Likewise.
13661 * config/nvptx/iter_ull.c: Likewise.
13662 * config/nvptx/libgomp-plugin.c: Likewise.
13663 * config/nvptx/lock.c: Likewise.
13664 * config/nvptx/loop.c: Likewise.
13665 * config/nvptx/loop_ull.c: Likewise.
13666 * config/nvptx/mutex.c: Likewise.
13667 * config/nvptx/oacc-async.c: Likewise.
13668 * config/nvptx/oacc-cuda.c: Likewise.
13669 * config/nvptx/oacc-host.c: Likewise.
13670 * config/nvptx/oacc-init.c: Likewise.
13671 * config/nvptx/oacc-mem.c: Likewise.
13672 * config/nvptx/oacc-parallel.c: Likewise.
13673 * config/nvptx/oacc-plugin.c: Likewise.
13674 * config/nvptx/omp-lock.h: Likewise.
13675 * config/nvptx/ordered.c: Likewise.
13676 * config/nvptx/parallel.c: Likewise.
13677 * config/nvptx/proc.c: Likewise.
13678 * config/nvptx/ptrlock.c: Likewise.
13679 * config/nvptx/sections.c: Likewise.
13680 * config/nvptx/sem.c: Likewise.
13681 * config/nvptx/single.c: Likewise.
13682 * config/nvptx/splay-tree.c: Likewise.
13683 * config/nvptx/target.c: Likewise.
13684 * config/nvptx/task.c: Likewise.
13685 * config/nvptx/team.c: Likewise.
13686 * config/nvptx/time.c: Likewise.
13687 * config/nvptx/work.c: Likewise.
13688 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
13689 * configure: Regenerate.
13690 * configure.tgt (config_path): Set to "nvptx" for target
13691 nvptx*-*-*.
13692
13693 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
13694
13695 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
13696
13697 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
13698
13699 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
13700 (cuda_errlist): Constify.
13701 (errmsg): Move into ...
13702 (cuda_error): ... here. Make smaller.
13703 (_XSTR, _STR): Delete.
13704 (cuda_synames): Delete.
13705 (verify_device_library): Delete.
13706 (nvptx_init): Don't call it.
13707
13708 2015-07-28 Tom de Vries <tom@codesourcery.com>
13709
13710 * testsuite/libgomp.c/uns-outer-4.c: New test.
13711
13712 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
13713
13714 * testsuite/libgomp.c/pr66714.c: New test.
13715
13716 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
13717
13718 PR libgomp/66950
13719 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
13720 (fib_ref): New function.
13721 (fib): Correct corner cases in the recursion.
13722 (main): Replace the non-simd loop with fib_ref call.
13723 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
13724 subroutine.
13725 (fibonacci): Lower the parameter N to 30. Correct accordingly check
13726 for the last array element value. Replace the non-simd loop with
13727 fib_ref call. Remove redundant b_ref array. Remove the comparison
13728 of the last array element with according Fibonacci sequence element.
13729 (fib): Correct corner cases in the recursion.
13730
13731 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
13732
13733 * target.c (gomp_offload_image_to_device): Rename to ...
13734 (gomp_load_image_to_device): ... here.
13735 (GOMP_offload_register): Adjust call.
13736 (gomp_init_device): Likewise.
13737 (gomp_unload_image_from_device): New. Broken out of ...
13738 (GOMP_offload_unregister): ... here. Call it.
13739 (gomp_unload_device): New.
13740 * libgomp.h (gomp_unload_device): Declare.
13741 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
13742 mem maps.
13743
13744 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
13745
13746 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
13747 wait=-specific if.
13748 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
13749 !=0 condition.
13750 (goacc_waits): Move !num_waits handling to ...
13751 (GOACC_wait): ... here, the only caller that might have zero waits.
13752
13753 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
13754 (struct ptx_image_data): Move earlier, add fns field.
13755 (struct ptx_device): Add images and image_lock fields.
13756 (ptx_images, ptx_image_lock): Delete.
13757 (nvptx_open_device): Initialize images and image_lock fields.
13758 (nvptx_close_device): Destroy image_lock.
13759 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
13760 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
13761 fields.
13762
13763 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
13764
13765 * target.c (GOMP_offload_register): Use int for device type arg.
13766 (GOMP_offload_unregister): Likewise.
13767
13768 * target.c (struct_offload_image_descr): Constify host_table.
13769 (gomp_offload_image_to_device): Likewise.
13770 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
13771
13772 * libgomp.h (gomp_device_descr): Constify target data arguments.
13773 * target.c (struct offload_image_descr): Constify target_data.
13774 (gomp_offload_image_to_device): Likewise.
13775 (GOMP_offload_register): Likewise.
13776 (GOMP_offload_unregister): Likewise.
13777 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
13778 GOMP_OFFLOAD_unload_image): Constify target data.
13779 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
13780 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
13781
13782 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
13783
13784 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
13785 Workaround driver library const error.
13786 (struct nvptx_tdata, nvptx_tdata_t): New.
13787 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
13788 type.
13789
13790 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
13791
13792 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
13793 of EPS parameter from integer to real.
13794 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
13795 type of EPS parameter from integer to real.
13796
13797 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
13798
13799 * team.c (get_last_team): New.
13800 (gomp_new_team): Recycle last non-nested team if possible.
13801 (gomp_team_end): Move team work share list free lock destruction
13802 to ...
13803 (free_team): ... here.
13804
13805 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
13806
13807 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
13808 and ref from int to double. Replaced their comparison with
13809 an inequality of their difference and EPS.
13810 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
13811 comparison of pri and a reference number with an inequality of their
13812 difference and EPS.
13813 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
13814 the comparison of sum and sum_ref with an inequality of their
13815 difference and EPS.
13816 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
13817 the comparison of pri and a reference number with an inequality of
13818 their difference and EPS.
13819
13820 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
13821
13822 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
13823 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
13824 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
13825 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
13826 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
13827 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
13828 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
13829 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
13830 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
13831 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
13832 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
13833 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
13834 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
13835 variables.
13836 (vec_mult): Likewise. Add #pragma omp taskwait.
13837 (main): Adjust caller.
13838 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
13839 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
13840 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
13841 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
13842 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
13843 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
13844 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
13845 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
13846 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
13847 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
13848 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
13849 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
13850 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
13851 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
13852 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
13853 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
13854 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
13855 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
13856 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
13857 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
13858 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
13859 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
13860 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
13861 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
13862 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
13863 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
13864 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
13865 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
13866 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
13867 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
13868 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
13869 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
13870 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
13871 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
13872 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
13873 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
13874 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
13875 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
13876 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
13877 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
13878 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
13879 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
13880 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
13881 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
13882 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
13883 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
13884 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
13885 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
13886 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
13887 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
13888 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
13889 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
13890 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
13891 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
13892 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
13893 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
13894 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
13895 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
13896 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
13897 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
13898 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
13899 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
13900 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
13901 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
13902 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
13903 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
13904 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
13905 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
13906 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
13907 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
13908 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
13909 (vec_mult): Add !$omp taskwait.
13910 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
13911 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
13912 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
13913 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
13914 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
13915 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
13916 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
13917 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
13918 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
13919 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
13920 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
13921 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
13922 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
13923 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
13924 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
13925 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
13926 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
13927 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
13928 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
13929 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
13930 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
13931 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
13932 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
13933 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
13934 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
13935 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
13936 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
13937 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
13938 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
13939 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
13940 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
13941 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
13942 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
13943 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
13944 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
13945 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
13946 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
13947 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
13948 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
13949 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
13950 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
13951 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
13952 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
13953 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
13954 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
13955 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
13956 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
13957 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
13958 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
13959 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
13960 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
13961 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
13962 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
13963 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
13964 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
13965 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
13966 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
13967 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
13968 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
13969 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
13970 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
13971 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
13972 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
13973 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
13974 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
13975 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
13976 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
13977
13978 2015-07-10 Tom de Vries <tom@codesourcery.com>
13979
13980 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
13981 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
13982
13983 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
13984
13985 PR libgomp/65099
13986 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
13987 in a 64-bit configuration.
13988 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
13989 offloading testing if no such device is available.
13990 * testsuite/libgomp.oacc-c/c.exp: Likewise.
13991 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
13992
13993 2015-07-08 Tom de Vries <tom@codesourcery.com>
13994
13995 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
13996 second call to f.
13997 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
13998
13999 2015-07-07 Tom de Vries <tom@codesourcery.com>
14000
14001 PR tree-optimization/66642
14002 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
14003 iteration count case.
14004 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
14005 function, factor out of ...
14006 (main): ... here. Test low iteration count case.
14007
14008 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
14009
14010 * libgomp.h (gomp_thread_pool): Comment last_team field.
14011
14012 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
14013
14014 * testsuite/libgomp.c++/pr66702-1.C: Require
14015 vect_simd_clones effective target.
14016 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
14017
14018 2015-06-30 Tom de Vries <tom@codesourcery.com>
14019
14020 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
14021 already set. Use DEFAULT_CFLAGS in dg-runtest.
14022 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
14023 "-O2".
14024
14025 2015-06-30 Tom de Vries <tom@codesourcery.com>
14026
14027 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
14028 already set. Use DEFAULT_CFLAGS in dg-runtest.
14029 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
14030 * testsuite/libgomp.c++/pr64824.C: Same.
14031 * testsuite/libgomp.c++/pr64868.C: Same.
14032 * testsuite/libgomp.c++/pr66199-1.C: Same.
14033 * testsuite/libgomp.c++/pr66199-2.C: Same.
14034 * testsuite/libgomp.c++/target-2.C: Same.
14035 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
14036 -std=<standard> option.
14037 * testsuite/libgomp.c++/udr-11.C: Same.
14038 * testsuite/libgomp.c++/udr-12.C: Same.
14039 * testsuite/libgomp.c++/udr-13.C: Same.
14040 * testsuite/libgomp.c++/udr-14.C: Same.
14041 * testsuite/libgomp.c++/udr-15.C: Same.
14042 * testsuite/libgomp.c++/udr-16.C: Same.
14043 * testsuite/libgomp.c++/udr-17.C: Same.
14044 * testsuite/libgomp.c++/udr-18.C: Same.
14045 * testsuite/libgomp.c++/udr-19.C: Same.
14046 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
14047 * testsuite/libgomp.c++/simd-1.C: Same.
14048 * testsuite/libgomp.c++/simd-2.C: Same.
14049 * testsuite/libgomp.c++/simd-3.C: Same.
14050 * testsuite/libgomp.c++/simd-4.C: Same.
14051 * testsuite/libgomp.c++/simd-5.C: Same.
14052 * testsuite/libgomp.c++/simd-6.C: Same.
14053 * testsuite/libgomp.c++/simd-7.C: Same.
14054 * testsuite/libgomp.c++/simd-8.C: Same.
14055 * testsuite/libgomp.c++/simd-9.C: Same.
14056 * testsuite/libgomp.c++/simd10.C: Same.
14057 * testsuite/libgomp.c++/simd11.C: Same.
14058 * testsuite/libgomp.c++/simd12.C: Same.
14059 * testsuite/libgomp.c++/simd13.C: Same.
14060
14061 2015-06-30 Jakub Jelinek <jakub@redhat.com>
14062
14063 PR middle-end/66702
14064 * testsuite/libgomp.c++/pr66702-1.C: New test.
14065 * testsuite/libgomp.c++/pr66702-2.C: New test.
14066
14067 2015-06-30 Tom de Vries <tom@codesourcery.com>
14068
14069 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
14070 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
14071 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
14072 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
14073
14074 2015-06-30 Tom de Vries <tom@codesourcery.com>
14075
14076 PR tree-optimization/66652
14077 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
14078 using restrict pointers.
14079 (main): Add arguments to calls to f.
14080 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14081
14082 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
14083
14084 * configure.ac: Fix check for header <sys/sysctl.h>.
14085 * configure: Regenerate.
14086 * config.h.in: Likewise.
14087
14088 2015-06-23 Tom de Vries <tom@codesourcery.com>
14089
14090 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
14091 abort.
14092 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
14093
14094 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
14095
14096 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
14097 acc_device_nvidia.
14098
14099 PR libgomp/66518
14100 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
14101 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14102
14103 2015-06-15 Tom de Vries <tom@codesourcery.com>
14104
14105 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
14106 dg-additional-options for any remaining options.
14107 * testsuite/libgomp.c/atomic-2.c: Same.
14108 * testsuite/libgomp.c/atomic-4.c: Same.
14109 * testsuite/libgomp.c/atomic-5.c: Same.
14110 * testsuite/libgomp.c/atomic-6.c: Same.
14111 * testsuite/libgomp.c/autopar-1.c: Same.
14112 * testsuite/libgomp.c/copyin-1.c: Same.
14113 * testsuite/libgomp.c/copyin-2.c: Same.
14114 * testsuite/libgomp.c/copyin-3.c: Same.
14115 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
14116 * testsuite/libgomp.c/nestedfn-5.c: Same.
14117 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
14118 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
14119 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
14120 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14121 * testsuite/libgomp.c/pr32362-1.c: Same.
14122 * testsuite/libgomp.c/pr32362-2.c: Same.
14123 * testsuite/libgomp.c/pr32362-3.c: Same.
14124 * testsuite/libgomp.c/pr39591-1.c: Same.
14125 * testsuite/libgomp.c/pr39591-2.c: Same.
14126 * testsuite/libgomp.c/pr39591-3.c: Same.
14127 * testsuite/libgomp.c/pr58392.c: Same.
14128 * testsuite/libgomp.c/pr58756.c: Same.
14129 * testsuite/libgomp.c/simd-1.c: Same.
14130 * testsuite/libgomp.c/simd-10.c: Same.
14131 * testsuite/libgomp.c/simd-11.c: Same.
14132 * testsuite/libgomp.c/simd-12.c: Same.
14133 * testsuite/libgomp.c/simd-13.c: Same.
14134 * testsuite/libgomp.c/simd-14.c: Same.
14135 * testsuite/libgomp.c/simd-15.c: Same.
14136 * testsuite/libgomp.c/simd-2.c: Same.
14137 * testsuite/libgomp.c/simd-3.c: Same.
14138 * testsuite/libgomp.c/simd-4.c: Same.
14139 * testsuite/libgomp.c/simd-5.c: Same.
14140 * testsuite/libgomp.c/simd-6.c: Same.
14141 * testsuite/libgomp.c/simd-7.c: Same.
14142 * testsuite/libgomp.c/simd-8.c: Same.
14143 * testsuite/libgomp.c/simd-9.c: Same.
14144
14145 2015-06-15 Tom de Vries <tom@codesourcery.com>
14146
14147 * testsuite/libgomp.c/pr35625.c: Fix typo.
14148
14149 2015-06-15 Tom de Vries <tom@codesourcery.com>
14150
14151 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
14152 in dg-options.
14153 * testsuite/libgomp.c/atomic-3.c: Same.
14154 * testsuite/libgomp.c/debug-1.c: Same.
14155 * testsuite/libgomp.c/nqueens-1.c: Same.
14156 * testsuite/libgomp.c/pr26171.c: Same.
14157 * testsuite/libgomp.c/pr48591.c: Same.
14158 * testsuite/libgomp.c/pr64824.c: Same.
14159 * testsuite/libgomp.c/pr64868.c: Same.
14160 * testsuite/libgomp.c/pr66133.c: Same.
14161 * testsuite/libgomp.c/pr66199-1.c: Same.
14162 * testsuite/libgomp.c/pr66199-2.c: Same.
14163 * testsuite/libgomp.c/target-8.c: Same.
14164
14165 2015-06-15 Tom de Vries <tom@codesourcery.com>
14166
14167 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
14168 -std={gnu99,c99}.
14169 * testsuite/libgomp.c/for-1.c: Same.
14170 * testsuite/libgomp.c/for-2.c: Same.
14171 * testsuite/libgomp.c/for-3.c: Same.
14172 * testsuite/libgomp.c/pr35625.c: Same.
14173 * testsuite/libgomp.c/pr39154.c: Same.
14174 * testsuite/libgomp.c/simd-16.c: Same.
14175 * testsuite/libgomp.c/simd-17.c: Same.
14176
14177 2015-06-13 Tom de Vries <tom@codesourcery.com>
14178
14179 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
14180
14181 2015-06-13 Tom de Vries <tom@codesourcery.com>
14182
14183 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
14184 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14185 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
14186 (N): Define.
14187 (main): Use N instead of hardcoded constants.
14188
14189 2015-06-05 Tom de Vries <tom@codesourcery.com>
14190
14191 merge from gomp4 branch:
14192 2015-05-28 Tom de Vries <tom@codesourcery.com>
14193
14194 PR tree-optimization/65443
14195 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
14196 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
14197 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
14198
14199 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14200
14201 * testsuite/libgomp.graphite/bounds.c: Adjust for
14202 cleanup-tree-dump removal.
14203 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
14204 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
14205 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
14206 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
14207 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
14208 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
14209 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
14210 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
14211 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
14212 * testsuite/libgomp.graphite/pr41118.c: Likewise.
14213
14214 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
14215
14216 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
14217 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
14218 (futex_wake) [!__x86_64__]: Ditto.
14219
14220 2015-05-28 Julian Brown <julian@codesourcery.com>
14221
14222 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
14223 function comment. Only call gomp_fatal if new argument is true.
14224 (acc_dev_num_out_of_range): New function.
14225 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
14226 acc_dev_num_out_of_range as appropriate.
14227 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
14228 (acc_get_device_num, acc_set_device_num): Update calls to
14229 resolve_device.
14230 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
14231 output.
14232
14233 2015-05-28 Julian Brown <julian@codesourcery.com>
14234
14235 PR libgomp/65742
14236 * oacc-init.c (plugin/plugin-host.h): Include.
14237 (acc_on_device): Check whether we're in an offloaded region for
14238 host_nonshm
14239 plugin. Don't use __builtin_acc_on_device.
14240 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
14241 nonshm_exec flag in thread-local data.
14242 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
14243 data for host_nonshm plugin.
14244 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
14245 for host_nonshm plugin.
14246 * plugin/plugin-host.h: New.
14247
14248 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
14249
14250 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
14251
14252 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
14253
14254 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
14255 Declare as int.
14256 (FUTEX_PRIVATE_FLAG): Remove L suffix.
14257 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
14258 Declare as int.
14259
14260 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
14261
14262 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
14263
14264 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
14265
14266 * target.c (gomp_map_pointer): New function abstracting out
14267 GOMP_MAP_POINTER handling.
14268 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
14269 gomp_map_pointer().
14270
14271 2015-05-19 Jakub Jelinek <jakub@redhat.com>
14272
14273 PR middle-end/66199
14274 * testsuite/libgomp.c/pr66199-1.c: New test.
14275 * testsuite/libgomp.c/pr66199-2.c: New test.
14276 * testsuite/libgomp.c++/pr66199-1.C: New test.
14277 * testsuite/libgomp.c++/pr66199-2.C: New test.
14278 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
14279 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
14280
14281 2015-05-19 Julian Brown <julian@codesourcery.com>
14282
14283 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
14284 on cuInit failure.
14285
14286 2015-05-13 Jakub Jelinek <jakub@redhat.com>
14287
14288 PR middle-end/66133
14289 * testsuite/libgomp.c/pr66133.c: New test.
14290
14291 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
14292
14293 * Makefile.in: Regenerated with automake-1.11.6.
14294 * aclocal.m4: Likewise.
14295 * config.h.in: Likewise.
14296 * configure: Likewise.
14297 * testsuite/Makefile.in: Likewise.
14298
14299 2015-05-08 Jason Merrill <jason@redhat.com>
14300
14301 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
14302 _Complex.
14303
14304 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
14305
14306 2015-05-06 Julian Brown <julian@codesourcery.com>
14307
14308 * oacc-init.c (acc_device_lock): Add explanatory comment.
14309 (resolve_device): Add comment about locking requirement.
14310 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
14311 gomp_init_device and gomp_fini_device calls.
14312 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
14313 (acc_get_device_num, acc_set_device_num): Add locking around
14314 resolve_device and gomp_init_device calls.
14315
14316 2015-05-06 Julian Brown <julian@codesourcery.com>
14317
14318 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
14319 goacc_thread_lock on error paths.
14320 * oacc-mem.c (lookup_host): Remove locking from function. Note
14321 locking requirement for caller in function comment.
14322 (lookup_dev): Likewise.
14323 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
14324 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
14325 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
14326 Add locking.
14327
14328 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
14329
14330 PR testsuite/65205
14331 PR libgomp/65993
14332 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
14333 don't expect "0x" prefix for "%p" format specifier, don't expect
14334 "(nil)" for NULL pointer.
14335 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14336 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14337 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14338 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14339 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14340 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14341 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14342 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14343 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14344 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14345 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14346 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14347 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14348 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14349 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14350 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14351 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14352 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14353 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14354 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14355 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14356 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14357 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14358 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14359 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14360 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14361 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14362 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14363 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
14364 accurately specify what we're looking for.
14365 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14366 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14367 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
14368 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
14369 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
14370
14371 2015-04-30 James Norris <jnorris@codesourcery.com>
14372
14373 PR testsuite/65205
14374 * testsuite/lib/libgomp.exp
14375 (check_effective_target_openacc_host_selected)
14376 (check_effective_target_openacc_host_nonshm_selected): New
14377 procedures.
14378 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
14379 dg-shouldfail.
14380 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14381 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14382 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14383 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14384 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14385 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14386 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14387 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14388 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14389 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14390 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14391 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14392 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14393 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14394 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14395 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
14396 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14397 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14398 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14399 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14400 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14401 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
14402 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14403 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14404 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14405 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14406 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14407 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14408 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14409 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14410 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14411 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14412 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14413 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
14414 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
14415 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
14416 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
14417 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
14418 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
14419 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
14420 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
14421 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
14422 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
14423
14424 2015-04-08 Julian Brown <julian@codesourcery.com>
14425
14426 * libgomp.h (target_mem_desc: Remove mem_map field.
14427 (acc_dispatch_t): Remove open_device_func, close_device_func,
14428 get_device_num_func, set_device_num_func, target_data members.
14429 Change create_thread_data_func argument to device number instead of
14430 generic pointer.
14431 * oacc-async.c (assert.h): Include.
14432 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
14433 (acc_wait_all, acc_wait_all_async): Use current host thread's
14434 active device, not base_dev.
14435 * oacc-cuda.c (acc_get_current_cuda_device)
14436 (acc_get_current_cuda_context, acc_get_cuda_stream)
14437 (acc_set_cuda_stream): Likewise.
14438 * oacc-host.c (host_dispatch): Don't set open_device_func,
14439 close_device_func, get_device_num_func or set_device_num_func.
14440 * oacc-init.c (base_dev, init_key): Remove.
14441 (cached_base_dev): New.
14442 (name_of_acc_device_t): New.
14443 (acc_init_1): Initialise default-numbered device, not zeroth.
14444 (acc_shutdown_1): Close all devices of a given type.
14445 (goacc_destroy_thread): Don't use base_dev.
14446 (lazy_open, lazy_init, lazy_init_and_open): Remove.
14447 (goacc_attach_host_thread_to_device): New.
14448 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
14449 (acc_get_num_devices): Don't use base_dev.
14450 (acc_set_device_type): Reimplement.
14451 (acc_get_device_type): Don't use base_dev.
14452 (acc_get_device_num): Tweak logic.
14453 (acc_set_device_num): Likewise.
14454 (acc_on_device): Use acc_get_device_type.
14455 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
14456 (goacc_lazy_initialize): Reimplement with acc_init and
14457 goacc_attach_host_thread_to_device.
14458 * oacc-int.h (goacc_thread): Add base_dev field.
14459 (base_dev): Remove extern declaration.
14460 (goacc_attach_host_thread_to_device): Add prototype.
14461 * oacc-mem.c (acc_malloc): Use current thread's device instead of
14462 base_dev.
14463 (acc_free): Likewise.
14464 (acc_memcpy_to_device): Likewise.
14465 (acc_memcpy_from_device): Likewise.
14466 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
14467 goacc_lazy_initialize (throughout).
14468 (GOACC_parallel): Use tgt_offset to locate target functions.
14469 * target.c (gomp_map_vars): Don't set tgt->mem_map.
14470 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
14471 (gomp_load_plugin_for_device): Remove open_device, close_device,
14472 get_device_num, set_device_num openacc hook initialisation. Don't set
14473 openacc.target_data.
14474 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
14475 (GOMP_OFFLOAD_openacc_close_device)
14476 (GOMP_OFFLOAD_openacc_get_device_num)
14477 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
14478 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
14479 to int.
14480 * plugin/plugin-nvptx.c (ptx_inited): Remove.
14481 (instantiated_devices, ptx_dev_lock): New.
14482 (struct ptx_image_data): New.
14483 (ptx_devices, ptx_images, ptx_image_lock): New.
14484 (fini_streams_for_device): Reorder cuStreamDestroy call.
14485 (nvptx_get_num_devices): Remove forward declaration.
14486 (nvptx_init): Change return type to bool.
14487 (nvptx_fini): Remove.
14488 (nvptx_attach_host_thread_to_device): New.
14489 (nvptx_open_device): Return struct ptx_device* instead of void*.
14490 (nvptx_close_device): Change argument type to struct ptx_device*,
14491 return type to void.
14492 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
14493 (kernel_target_data, kernel_host_table): Remove static globals.
14494 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
14495 (GOMP_OFFLOAD_init_device): Reimplement.
14496 (GOMP_OFFLOAD_fini_device): Likewise.
14497 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
14498 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
14499 (GOMP_OFFLOAD_host2dev): Use ORD argument.
14500 (GOMP_OFFLOAD_openacc_open_device)
14501 (GOMP_OFFLOAD_openacc_close_device)
14502 (GOMP_OFFLOAD_openacc_set_device_num)
14503 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
14504 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
14505 (device number).
14506
14507 testsuite/
14508 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
14509
14510 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
14511
14512 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
14513 * libgomp.h (struct gomp_memory_mapping): Remove.
14514 (struct target_mem_desc): Change type of mem_map from
14515 gomp_memory_mapping * to splay_tree_s *.
14516 (struct gomp_device_descr): Remove register_image_func, get_table_func.
14517 Add load_image_func, unload_image_func.
14518 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
14519 Remove offload_regions_registered.
14520 (gomp_init_tables): Remove.
14521 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
14522 to splay_tree_s *.
14523 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
14524 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
14525 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
14526 offload_regions_registered.
14527 Initialize load_image_func, unload_image_func, mem_map.root.
14528 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
14529 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
14530 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
14531 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
14532 gomp_memory_mapping *. Use dev's lock and splay_tree.
14533 (lookup_dev): Use dev's lock.
14534 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
14535 (acc_is_present): Likewise.
14536 (acc_map_data): Likewise.
14537 (acc_unmap_data): Likewise. Use dev's lock.
14538 (present_create_copy): Likewise.
14539 (delete_copyout): Pass dev to lookup_host instead of mem_map.
14540 (update_dev_host): Likewise.
14541 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
14542 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
14543 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
14544 (GOMP_OFFLOAD_get_table): Remove
14545 (GOMP_OFFLOAD_load_image): New function.
14546 (GOMP_OFFLOAD_unload_image): New function.
14547 * target.c (register_lock): New mutex for offload image registration.
14548 (num_devices): Do not guard with PLUGIN_SUPPORT.
14549 (gomp_realloc_unlock): New static function.
14550 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
14551 before gomp_fatal.
14552 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
14553 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
14554 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
14555 mem_map's.
14556 (gomp_unmap_vars): Likewise.
14557 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
14558 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
14559 (gomp_offload_image_to_device): New static function.
14560 (GOMP_offload_register): Add mutex lock.
14561 Call gomp_offload_image_to_device for all initialized devices.
14562 Replace gomp_realloc with gomp_realloc_unlock.
14563 (GOMP_offload_unregister): New function.
14564 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
14565 get_table_func from the plugin with calls to init_device_func and
14566 gomp_offload_image_to_device.
14567 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
14568 to splay_tree_s *.
14569 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
14570 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
14571 (GOMP_target_data): Do not call gomp_init_tables.
14572 (GOMP_target_update): Likewise. Remove argument from gomp_update.
14573 (gomp_load_plugin_for_device): Replace register_image and get_table
14574 with load_image and unload_image in DLSYM ().
14575 (gomp_register_images_for_device): Remove function.
14576 (gomp_target_init): Do not initialize current_device.mem_map.*,
14577 current_device.offload_regions_registered.
14578 Remove call to gomp_register_images_for_device.
14579 Do not free offload_images and num_offload_images.
14580
14581 2015-03-30 Jakub Jelinek <jakub@redhat.com>
14582
14583 PR fortran/65597
14584 * testsuite/libgomp.fortran/pr65597.f90: New test.
14585
14586 2015-03-27 Tom de Vries <tom@codesourcery.com>
14587
14588 PR testsuite/65594
14589 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
14590 (init, check): New function.
14591 (foo): Change return type to void.
14592 (main): Call init and check.
14593
14594 2015-03-27 Tom de Vries <tom@codesourcery.com>
14595
14596 PR testsuite/65594
14597 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
14598 (foo): Use M for non-inner loops to scale down test-case.
14599
14600 2015-03-25 Kai Tietz <ktietz@redhat.com>
14601
14602 PR libgomp/64972
14603 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
14604 (GOACC_data_start): Likewise.
14605 * target.c (gomp_map_vars): Likewise.
14606
14607 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
14608
14609 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
14610 hppa*-*-hpux*.
14611
14612 2015-03-19 Jakub Jelinek <jakub@redhat.com>
14613
14614 * testsuite/libgomp.c/target-10.c: New test.
14615 * testsuite/libgomp.c++/target-4.C: New test.
14616
14617 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
14618
14619 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
14620 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
14621
14622 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
14623
14624 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
14625 * configure.ac (*-*-rtems*): Assume Pthread is supported.
14626 (pthread.h): Check for this header file.
14627 * configure: Regenerate.
14628
14629 2015-02-25 Tom de Vries <tom@codesourcery.com>
14630
14631 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
14632 (check_reduction_op, check_reduction_macro, max, min):
14633 Declare.
14634 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
14635 function.
14636 (main): Use new functions.
14637
14638 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
14639
14640 * target.c (gomp_load_plugin_for_device): Use const char * instead of
14641 char * for variables holding dlerror return values.
14642 (DLSYM_OPT): Ditto.
14643
14644 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
14645
14646 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
14647
14648 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
14649 Cesar Philippidis <cesar@codesourcery.com>
14650
14651 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
14652 GOACC_ctaid, and GOACC_nctaid routines.
14653
14654 2015-02-11 Jakub Jelinek <jakub@redhat.com>
14655
14656 PR c/64824
14657 * testsuite/libgomp.c/atomic-18.c: New test.
14658 * testsuite/libgomp.c++/atomic-16.C: New test.
14659
14660 2015-02-04 Jakub Jelinek <jakub@redhat.com>
14661
14662 PR c/64824
14663 PR c/64868
14664 * testsuite/libgomp.c/pr64824.c: New test.
14665 * testsuite/libgomp.c/pr64868.c: New test.
14666 * testsuite/libgomp.c++/pr64824.C: New test.
14667 * testsuite/libgomp.c++/pr64868.C: New test.
14668
14669 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
14670
14671 PR libgomp/64635
14672 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
14673 Link with -lpthread.
14674 * config/aix/plugin-suffix.h: Delete.
14675
14676 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
14677
14678 PR libgomp/64635
14679 * configure.tgt (*-*-aix*): Use config_path "aix posix".
14680 (*-*-darwin*): Use config_path "bsd darwin posix".
14681 (*-*-hpux*): Use config_path "hpux posix".
14682 * target.c: Add include of plugin-suffix.h and use
14683 SONAME_SUFFIX macro.
14684 * config/aix/plugin-suffix.h: New file.
14685 * config/darwin/plugin-suffix.h: New file.
14686 * config/hpux/plugin-suffix.h: New file.
14687 * config/posix/plugin-suffix.h: New file.
14688
14689 2015-01-23 Jakub Jelinek <jakub@redhat.com>
14690
14691 PR middle-end/64734
14692 * libgomp.c/pr64734.c: New test.
14693
14694 2015-01-23 Tom de Vries <tom@codesourcery.com>
14695
14696 PR libgomp/64672
14697 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
14698
14699 2015-01-23 Tom de Vries <tom@codesourcery.com>
14700
14701 PR libgomp/64707
14702 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
14703 dg-options.
14704
14705 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
14706
14707 PR libgomp/64625
14708 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
14709 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
14710 formal parameter. Update all users.
14711 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
14712 Document unused formal parameter.
14713
14714 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
14715
14716 * oacc-parallel.c: Don't include <alloca.h>.
14717 (GOACC_parallel): Use gomp_alloca instead of alloca.
14718
14719 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
14720
14721 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
14722
14723 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
14724 James Norris <jnorris@codesourcery.com>
14725 Tom de Vries <tom@codesourcery.com>
14726 Julian Brown <julian@codesourcery.com>
14727 Cesar Philippidis <cesar@codesourcery.com>
14728 Nathan Sidwell <nathan@codesourcery.com>
14729 Tobias Burnus <burnus@net-b.de>
14730
14731 * Makefile.am (search_path): Add $(top_srcdir)/../include.
14732 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
14733 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
14734 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
14735 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
14736 Include $(top_srcdir)/plugin/Makefrag.am.
14737 (nodist_libsubinclude_HEADERS): Add openacc.h.
14738 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
14739 openacc.f90, openacc.mod, openacc_kinds.mod.
14740 (omp_lib.mod): Generalize into...
14741 (%.mod): ... this new rule.
14742 (openacc_kinds.mod, openacc.mod): New rules.
14743 * plugin/configfrag.ac: New file.
14744 * configure.ac: Move plugin/offloading support into it. Include
14745 it. Instantiate testsuite/libgomp-test-support.pt.exp.
14746 * plugin/Makefrag.am: New file.
14747 * testsuite/Makefile.am (OFFLOAD_TARGETS)
14748 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
14749 export.
14750 (libgomp-test-support.exp): New rule.
14751 (all-local): Depend on it.
14752 * Makefile.in: Regenerate.
14753 * testsuite/Makefile.in: Regenerate.
14754 * config.h.in: Likewise.
14755 * configure: Likewise.
14756 * configure.tgt: Harden shell syntax.
14757 * env.c: Include "oacc-int.h".
14758 (parse_acc_device_type): New function.
14759 (gomp_debug_var, goacc_device_type, goacc_device_num): New
14760 variables.
14761 (initialize_env): Initialize those. Call
14762 goacc_runtime_initialize.
14763 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
14764 (gomp_fatal): Call gomp_vfatal.
14765 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
14766 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
14767 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
14768 (splay_tree_node, splay_tree, splay_tree_key)
14769 (struct target_mem_desc, struct splay_tree_key_s)
14770 (struct gomp_memory_mapping, struct acc_dispatch_t)
14771 (struct gomp_device_descr, gomp_acc_insert_pointer)
14772 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
14773 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
14774 (gomp_free_memmap, gomp_fini_device): New declarations.
14775 (gomp_vdebug, gomp_debug): New macros.
14776 Include "splay-tree.h".
14777 * libgomp.map (OACC_2.0): New symbol version. Use for
14778 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
14779 acc_set_device_type_h_, acc_get_device_type,
14780 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
14781 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
14782 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
14783 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
14784 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
14785 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
14786 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
14787 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
14788 acc_copyin_array_h_, acc_present_or_copyin,
14789 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
14790 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
14791 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
14792 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
14793 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
14794 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
14795 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
14796 acc_update_device, acc_update_device_32_h_,
14797 acc_update_device_64_h_, acc_update_device_array_h_,
14798 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
14799 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
14800 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
14801 acc_is_present_64_h_, acc_is_present_array_h_,
14802 acc_memcpy_to_device, acc_memcpy_from_device,
14803 acc_get_current_cuda_device, acc_get_current_cuda_context,
14804 acc_get_cuda_stream, acc_set_cuda_stream.
14805 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
14806 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
14807 GOACC_update, GOACC_wait, GOACC_get_thread_num,
14808 GOACC_get_num_threads.
14809 (GOMP_PLUGIN_1.0): New symbol version. Use for
14810 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
14811 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
14812 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
14813 GOMP_PLUGIN_acc_thread.
14814 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
14815 environment variable.
14816 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
14817 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
14818 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
14819 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
14820 (splay_tree_remove): New declarations.
14821 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
14822 (splay_tree_remove, splay_tree_lookup): Move into...
14823 * splay-tree.c: ... this new file.
14824 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
14825 (splay_tree_node, splay_tree, splay_tree_key)
14826 (struct target_mem_desc, struct splay_tree_key_s)
14827 (struct gomp_device_descr): Don't declare.
14828 (num_devices_openmp): New variable.
14829 (gomp_get_num_devices ): Use it.
14830 (gomp_init_targets_once): New function.
14831 (gomp_get_num_devices ): Use it.
14832 (get_kind, gomp_copy_from_async, gomp_free_memmap)
14833 (gomp_fini_device, gomp_register_image_for_device): New functions.
14834 (gomp_map_vars): Add devaddrs parameter.
14835 (gomp_update): Add mm parameter.
14836 (gomp_init_device): Move most of it into...
14837 (gomp_init_tables): ... this new function.
14838 (gomp_register_images_for_device): Remove function.
14839 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
14840 Make them hidden instead of static.
14841 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
14842 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
14843 (GOMP_target_end_data, GOMP_target_update)
14844 (gomp_load_plugin_for_device, gomp_target_init): Update for
14845 OpenACC changes.
14846 * oacc-async.c: New file.
14847 * oacc-cuda.c: Likewise.
14848 * oacc-host.c: Likewise.
14849 * oacc-init.c: Likewise.
14850 * oacc-int.h: Likewise.
14851 * oacc-mem.c: Likewise.
14852 * oacc-parallel.c: Likewise.
14853 * oacc-plugin.c: Likewise.
14854 * oacc-plugin.h: Likewise.
14855 * oacc-ptx.h: Likewise.
14856 * openacc.f90: Likewise.
14857 * openacc.h: Likewise.
14858 * openacc_lib.h: Likewise.
14859 * plugin/plugin-host.c: Likewise.
14860 * plugin/plugin-nvptx.c: Likewise.
14861 * libgomp-plugin.c: Likewise.
14862 * libgomp-plugin.h: Likewise.
14863 * libgomp_target.h: Remove file after merging content into the
14864 former file. Update all users.
14865 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
14866 (offload_targets_s, offload_targets_s_openacc): New variables.
14867 (check_effective_target_openacc_nvidia_accel_present)
14868 (check_effective_target_openacc_nvidia_accel_selected): New
14869 procedures.
14870 (libgomp_init): Update for OpenACC changes.
14871 * testsuite/libgomp-test-support.exp.in: New file.
14872 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
14873 * testsuite/libgomp.oacc-c/c.exp: Likewise.
14874 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14875 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
14876 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
14877 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14878 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
14879 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
14880 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
14881 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
14882 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
14883 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
14884 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
14885 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
14886 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
14887 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
14888 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
14889 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
14890 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
14891 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
14892 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
14893 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
14894 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
14895 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
14896 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14897 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
14898 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
14899 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
14900 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
14901 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
14902 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14903 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
14904 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
14905 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
14906 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
14907 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14908 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
14909 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14910 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
14911 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
14912 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
14913 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
14914 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14915 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14916 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14917 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
14918 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14919 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14920 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14921 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14922 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14923 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
14924 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14925 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14926 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14927 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14928 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14929 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
14930 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14931 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
14932 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
14933 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
14934 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14935 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14936 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14937 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
14938 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
14939 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14940 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
14941 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14942 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
14943 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14944 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14945 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14946 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
14947 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
14948 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14949 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14950 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
14951 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
14952 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
14953 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
14954 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14955 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14956 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14957 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
14958 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
14959 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14960 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14961 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
14962 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
14963 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
14964 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
14965 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
14966 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
14967 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
14968 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
14969 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
14970 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
14971 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
14972 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
14973 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
14974 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
14975 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
14976 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
14977 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
14978 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
14979 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
14980 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
14981 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
14982 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
14983 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
14984 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
14985 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
14986 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
14987 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
14988 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
14989 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
14990 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
14991 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
14992 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
14993 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
14994 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
14995 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
14996 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
14997 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
14998 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
14999 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
15000 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
15001 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
15002 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
15003 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
15004 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15005 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
15006 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
15007 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
15008 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
15009 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
15010 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
15011 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
15012 Likewise.
15013 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
15014 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
15015 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
15016 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
15017 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
15018 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
15019 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
15020 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
15021 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
15022 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
15023 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
15024 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
15025 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
15026 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
15027 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
15028 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
15029 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
15030 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
15031 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
15032 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
15033 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
15034 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
15035 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
15036 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
15037 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
15038 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
15039 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
15040 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
15041 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
15042 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
15043 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
15044 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
15045 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
15046 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
15047 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
15048 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
15049 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
15050 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
15051 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
15052 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
15053 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
15054 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
15055 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
15056 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
15057 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
15058 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
15059 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
15060 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
15061 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
15062 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
15063 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
15064 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
15065 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
15066 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
15067 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
15068 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
15069 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
15070 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
15071 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
15072 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
15073
15074 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
15075 Julian Brown <julian@codesourcery.com>
15076 David Malcolm <dmalcolm@redhat.com>
15077
15078 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
15079 to "GNU Offloading and Multi Processing Runtime Library". Change
15080 all users.
15081 * configure: Regenerate.
15082 * libgomp.texi: Update.
15083
15084 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
15085
15086 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
15087 "$tgt_dir/lib32".
15088 * configure: Regenerate.
15089
15090 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
15091 "intelmic" in $offload_targets.
15092
15093 2015-01-05 Jakub Jelinek <jakub@redhat.com>
15094
15095 Update copyright years.
15096
15097 * libgomp.texi: Bump @copying's copyright year.
15098
15099 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15100
15101 * testsuite/lib/libgomp.exp: Load target-utils.exp.
15102 Move load of target-supports.exp earlier.
15103
15104 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
15105
15106 * testsuite/libgomp.c/target-9.c: New test.
15107
15108 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
15109
15110 * config.h.in: Regenerate.
15111 * configure: Regenerate.
15112 * configure.ac: Add GCC_CHECK_EMUTLS.
15113 * libgomp.h: Add check for USE_EMUTLS: this case
15114 is equal to HAVE_TLS.
15115 * team.c: Likewise.
15116
15117 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
15118
15119 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
15120
15121 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
15122 Ilya Verbin <ilya.verbin@intel.com>
15123
15124 * testsuite/libgomp.c/target-critical-1.c: New test.
15125
15126 2014-11-26 Jakub Jelinek <jakub@redhat.com>
15127
15128 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
15129 to dg-options unless expensive testing is on.
15130 (TESTITERS): Define to N if not defined.
15131 (main): Use TESTITERS instead of N.
15132 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
15133 dg-additional-options depending on whether expensive testing is on.
15134 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
15135 Decrease N to 100000 and CHUNKSZ to 10000.
15136
15137 2014-11-24 Jakub Jelinek <jakub@redhat.com>
15138
15139 PR fortran/63938
15140 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
15141 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
15142
15143 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
15144
15145 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
15146
15147 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
15148
15149 PR bootstrap/63784
15150 * configure: Regenerated.
15151
15152 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
15153
15154 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
15155 vect_simd_clones effective target.
15156 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
15157
15158 2014-11-14 Jakub Jelinek <jakub@redhat.com>
15159
15160 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
15161 of 32 as block_size.
15162 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
15163 instead of 32 as block_size.
15164
15165 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
15166 Ilya Verbin <ilya.verbin@intel.com>
15167
15168 * Makefile.in: Regenerate.
15169 * configure: Regenerate.
15170 * configure.ac: Set up offload_additional_options,
15171 offload_additional_lib_paths and offload_targets.
15172 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
15173 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
15174 * testsuite/Makefile.in: Regenerate.
15175 * testsuite/lib/libgomp.exp (libgomp_init): Append
15176 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
15177 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
15178 build directory to LD_LIBRARY_PATH for intelmic offload targets.
15179
15180 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
15181 Ilya Verbin <ilya.verbin@intel.com>
15182 Kirill Yukhin <kirill.yukhin@intel.com>
15183 Ilya Tocar <ilya.tocar@intel.com>
15184
15185 * testsuite/lib/libgomp.exp
15186 (check_effective_target_offload_device): New.
15187 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
15188 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
15189 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
15190 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
15191 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
15192 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
15193 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
15194 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
15195 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
15196 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
15197 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
15198 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
15199 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
15200 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
15201 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
15202 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
15203 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
15204 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
15205 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
15206 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
15207 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
15208 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
15209 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
15210 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
15211 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
15212 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
15213 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
15214 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
15215 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
15216 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
15217 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
15218 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
15219 * testsuite/libgomp.c/target-7.c: Fix test.
15220 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
15221 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
15222 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
15223 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
15224 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
15225 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
15226 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
15227 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
15228 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
15229 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
15230 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
15231 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
15232 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
15233 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
15234 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
15235 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
15236 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
15237 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
15238 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
15239 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
15240 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
15241 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
15242 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
15243 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
15244 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
15245 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
15246 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
15247 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
15248 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
15249 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
15250 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
15251
15252 2014-11-13 Jakub Jelinek <jakub@redhat.com>
15253 Ilya Verbin <ilya.verbin@intel.com>
15254 Thomas Schwinge <thomas@codesourcery.com>
15255 Andrey Turetskiy <andrey.turetskiy@intel.com>
15256
15257 * libgomp.map (GOMP_4.0.1): New symbol version.
15258 Add GOMP_offload_register.
15259 * libgomp_target.h: New file.
15260 * splay-tree.h: New file.
15261 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
15262 (gomp_target_init): New forward declaration.
15263 (gomp_is_initialized): New static variable.
15264 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
15265 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
15266 New structures.
15267 (offload_images, num_offload_images, devices, num_devices): New static
15268 variables.
15269 (splay_compare): New static function.
15270 (struct gomp_device_descr): New structure.
15271 (gomp_get_num_devices): Call gomp_target_init.
15272 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
15273 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
15274 (GOMP_offload_register): New function.
15275 (GOMP_target): Arrange for host callback to be performed in a separate
15276 initial thread and contention group, inheriting ICVs from
15277 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
15278 Add device initialization and lookup for target function in splay tree.
15279 (GOMP_target_data): Add device initialization and call gomp_map_vars.
15280 (GOMP_target_end_data): Call gomp_unmap_vars.
15281 (GOMP_target_update): Add device initialization and call gomp_update.
15282 (gomp_load_plugin_for_device, gomp_register_images_for_device)
15283 (gomp_target_init): New static functions.
15284
15285 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
15286 Thomas Schwinge <thomas@codesourcery.com>
15287 Ilya Verbin <ilya.verbin@intel.com>
15288 Andrey Turetskiy <andrey.turetskiy@intel.com>
15289
15290 * config.h.in: Regenerate.
15291 * configure: Regenerate.
15292 * configure.ac: Check for libdl, required for plugin support.
15293 (PLUGIN_SUPPORT): Define if plugins are supported.
15294 (enable_offload_targets): Support Intel MIC targets.
15295 (OFFLOAD_TARGETS): List of target names suitable for offloading.
15296
15297 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15298
15299 PR target/63610
15300 * configure: Regenerate.
15301
15302 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15303
15304 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
15305
15306 2014-10-06 Marek Polacek <polacek@redhat.com>
15307
15308 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
15309 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
15310 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
15311 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
15312
15313 2014-10-06 Marek Polacek <polacek@redhat.com>
15314
15315 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
15316 * testsuite/libgomp.c/nqueens-1.c: Likewise.
15317 * testsuite/libgomp.c/pr26943-3.c: Likewise.
15318 * testsuite/libgomp.c/pr26943-4.c: Likewise.
15319 * testsuite/libgomp.c/pr36802-2.c: Likewise.
15320 * testsuite/libgomp.c/pr36802-3.c: Likewise.
15321 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
15322 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
15323 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
15324 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
15325 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
15326 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
15327 * testsuite/libgomp.c/omp-single-1.c: Likewise.
15328 * testsuite/libgomp.c/omp-single-2.c: Likewise.
15329 * testsuite/libgomp.c/omp_matvec.c: Likewise.
15330 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
15331 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
15332 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
15333 declarations.
15334
15335 2014-10-03 Jakub Jelinek <jakub@redhat.com>
15336
15337 PR libgomp/61200
15338 * testsuite/libgomp.c/pr61200.c: New test.
15339
15340 2014-09-18 Jakub Jelinek <jakub@redhat.com>
15341
15342 PR c++/63248
15343 * testsuite/libgomp.c++/pr63248.C: New test.
15344
15345 2014-08-04 Jakub Jelinek <jakub@redhat.com>
15346
15347 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
15348 is not zero, but taskgroup->children is NULL and there are
15349 any task->children, schedule those instead of waiting.
15350 * testsuite/libgomp.c/depend-6.c: New test.
15351 * testsuite/libgomp.c/depend-7.c: New test.
15352 * testsuite/libgomp.c/depend-8.c: New test.
15353 * testsuite/libgomp.c/depend-9.c: New test.
15354 * testsuite/libgomp.c/depend-10.c: New test.
15355
15356 2014-08-01 Jakub Jelinek <jakub@redhat.com>
15357
15358 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
15359 (struct gomp_taskwait): New type.
15360 (struct gomp_task): Add taskwait and parent_depends_on, remove
15361 in_taskwait and taskwait_sem fields.
15362 (gomp_finish_task): Don't destroy taskwait_sem.
15363 * task.c (gomp_init_task): Don't init in_taskwait, instead init
15364 taskwait and parent_depends_on.
15365 (GOMP_task): For if (0) tasks with depend clause that depend on
15366 earlier tasks don't defer them, instead call
15367 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
15368 Initialize redundant_out field, for redundant out entries just
15369 move them at the end of linked list instead of removing them
15370 completely, and set redundant_out flag instead of redundant.
15371 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
15372 that task.
15373 (gomp_task_run_post_handle_dependers): If parent is in
15374 gomp_task_maybe_wait_for_dependencies and newly runnable task
15375 is not parent_depends_on, queue it in parent->children linked
15376 list after all runnable tasks with parent_depends_on set.
15377 Adjust for addition of taskwait indirection.
15378 (gomp_task_run_post_remove_parent): If parent is in
15379 gomp_task_maybe_wait_for_dependencies and task to be removed
15380 is parent_depends_on, decrement n_depend and if needed awake
15381 parent. Adjust for addition of taskwait indirection.
15382 (GOMP_taskwait): Adjust for addition of taskwait indirection.
15383 (gomp_task_maybe_wait_for_dependencies): New function.
15384 * testsuite/libgomp.c/depend-5.c: New test.
15385
15386 2014-07-13 Tobias Burnus <burnus@net-b.de>
15387
15388 * testsuite/libgomp.fortran/pr34020.f90: Make compile
15389 with TS 18508/Fortran 2015.
15390
15391 2014-07-06 Marek Polacek <polacek@redhat.com>
15392
15393 PR c/6940
15394 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
15395
15396 2014-07-03 Jakub Jelinek <jakub@redhat.com>
15397
15398 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
15399 matches regex $lang_source_re, add $lang_include_flags to options.
15400 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
15401 * testsuite/libgomp.c++/c++.exp: Likewise.
15402 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
15403 and lang_include_flags instead of adding -fintrinsic-modules-path= to
15404 ALWAYS_CFLAGS.
15405 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
15406
15407 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
15408
15409 * testsuite/libgomp.fortran/fortran.exp: Explain
15410 gfortran-dg-runtest usage.
15411
15412 2014-06-25 Jakub Jelinek <jakub@redhat.com>
15413
15414 * testsuite/libgomp.fortran/simd5.f90: New test.
15415 * testsuite/libgomp.fortran/simd6.f90: New test.
15416 * testsuite/libgomp.fortran/simd7.f90: New test.
15417
15418 2014-06-24 Jakub Jelinek <jakub@redhat.com>
15419
15420 * testsuite/libgomp.c/for-2.c: Define SC to static for
15421 #pragma omp for simd testing.
15422 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
15423 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
15424 SC macro.
15425 * testsuite/libgomp.c/simd-14.c: New test.
15426 * testsuite/libgomp.c/simd-15.c: New test.
15427 * testsuite/libgomp.c/simd-16.c: New test.
15428 * testsuite/libgomp.c/simd-17.c: New test.
15429 * testsuite/libgomp.c++/for-10.C: Define SC to static for
15430 #pragma omp for simd testing.
15431 * testsuite/libgomp.c++/simd10.C: New test.
15432 * testsuite/libgomp.c++/simd11.C: New test.
15433 * testsuite/libgomp.c++/simd12.C: New test.
15434 * testsuite/libgomp.c++/simd13.C: New test.
15435
15436 * testsuite/libgomp.fortran/aligned1.f03: New test.
15437 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
15438 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
15439 tasks with !$omp parallel !$omp single.
15440 * testsuite/libgomp.fortran/target8.f90: New test.
15441 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
15442 not to use trim in the combiner, instead call elemental function.
15443 (fn): New elemental function.
15444 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
15445 Make elemental.
15446 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
15447 omp_in): Likewise.
15448 * testsuite/libgomp.fortran/udr12.f90: New test.
15449 * testsuite/libgomp.fortran/udr13.f90: New test.
15450 * testsuite/libgomp.fortran/udr14.f90: New test.
15451 * testsuite/libgomp.fortran/udr15.f90: New test.
15452
15453 2014-06-18 Jakub Jelinek <jakub@redhat.com>
15454
15455 * omp_lib.f90.in (openmp_version): Set to 201307.
15456 * omp_lib.h.in (openmp_version): Likewise.
15457 * testsuite/libgomp.c/target-8.c: New test.
15458 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
15459 and inbranch clauses.
15460 * testsuite/libgomp.fortran/depend-3.f90: New test.
15461 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
15462 openmp_version.
15463 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
15464 * testsuite/libgomp.fortran/target1.f90: New test.
15465 * testsuite/libgomp.fortran/target2.f90: New test.
15466 * testsuite/libgomp.fortran/target3.f90: New test.
15467 * testsuite/libgomp.fortran/target4.f90: New test.
15468 * testsuite/libgomp.fortran/target5.f90: New test.
15469 * testsuite/libgomp.fortran/target6.f90: New test.
15470 * testsuite/libgomp.fortran/target7.f90: New test.
15471
15472 2014-06-10 Jakub Jelinek <jakub@redhat.com>
15473
15474 PR fortran/60928
15475 * testsuite/libgomp.fortran/allocatable9.f90: New test.
15476 * testsuite/libgomp.fortran/allocatable10.f90: New test.
15477 * testsuite/libgomp.fortran/allocatable11.f90: New test.
15478 * testsuite/libgomp.fortran/allocatable12.f90: New test.
15479 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
15480 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
15481 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
15482 * testsuite/libgomp.fortran/associate1.f90: New test.
15483 * testsuite/libgomp.fortran/associate2.f90: New test.
15484 * testsuite/libgomp.fortran/procptr1.f90: New test.
15485
15486 2014-06-06 Jakub Jelinek <jakub@redhat.com>
15487
15488 * testsuite/libgomp.fortran/simd1.f90: New test.
15489 * testsuite/libgomp.fortran/udr1.f90: New test.
15490 * testsuite/libgomp.fortran/udr2.f90: New test.
15491 * testsuite/libgomp.fortran/udr3.f90: New test.
15492 * testsuite/libgomp.fortran/udr4.f90: New test.
15493 * testsuite/libgomp.fortran/udr5.f90: New test.
15494 * testsuite/libgomp.fortran/udr6.f90: New test.
15495 * testsuite/libgomp.fortran/udr7.f90: New test.
15496 * testsuite/libgomp.fortran/udr8.f90: New test.
15497 * testsuite/libgomp.fortran/udr9.f90: New test.
15498 * testsuite/libgomp.fortran/udr10.f90: New test.
15499 * testsuite/libgomp.fortran/udr11.f90: New test.
15500
15501 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
15502
15503 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
15504 vect_simd_clones effective target.
15505 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
15506
15507 2014-05-21 Jakub Jelinek <jakub@redhat.com>
15508
15509 PR middle-end/61252
15510 * testsuite/libgomp.c++/simd-9.C: New test.
15511
15512 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
15513
15514 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
15515 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
15516 texts according to their @menu entry positions.
15517
15518 2014-05-11 Jakub Jelinek <jakub@redhat.com>
15519
15520 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
15521 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
15522 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
15523 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
15524 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
15525 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
15526 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
15527 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
15528 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
15529 * testsuite/libgomp.fortran/depend-1.f90: New test.
15530 * testsuite/libgomp.fortran/depend-2.f90: New test.
15531 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
15532 * testsuite/libgomp.fortran/simd1.f90: New test.
15533 * testsuite/libgomp.fortran/simd2.f90: New test.
15534 * testsuite/libgomp.fortran/simd3.f90: New test.
15535 * testsuite/libgomp.fortran/simd4.f90: New test.
15536 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
15537
15538 2014-05-02 Jakub Jelinek <jakub@redhat.com>
15539
15540 * testsuite/libgomp.c/simd-10.c: New test.
15541 * testsuite/libgomp.c/simd-11.c: New test.
15542 * testsuite/libgomp.c/simd-12.c: New test.
15543 * testsuite/libgomp.c/simd-13.c: New test.
15544
15545 2014-04-24 Jakub Jelinek <jakub@redhat.com>
15546
15547 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
15548 atomic type clauses in any order and optional comma in between.
15549 * testsuite/libgomp.c++/atomic-15.C: Likewise.
15550 * testsuite/libgomp.c/atomic-17.c: Likewise.
15551
15552 * testsuite/libgomp.c/simd-7.c: New test.
15553 * testsuite/libgomp.c/simd-8.c: New test.
15554 * testsuite/libgomp.c/simd-9.c: New test.
15555 * testsuite/libgomp.c/loop-16.c: New test.
15556
15557 2014-04-02 Richard Henderson <rth@redhat.com>
15558
15559 * config/linux/futex.h (futex_wait): Get error value from errno.
15560 (futex_wake): Likewise.
15561
15562 2014-03-25 Jakub Jelinek <jakub@redhat.com>
15563
15564 PR c++/60331
15565 * testsuite/libgomp.c++/udr-11.C: New test.
15566 * testsuite/libgomp.c++/udr-12.C: New test.
15567 * testsuite/libgomp.c++/udr-13.C: New test.
15568 * testsuite/libgomp.c++/udr-14.C: New test.
15569 * testsuite/libgomp.c++/udr-15.C: New test.
15570 * testsuite/libgomp.c++/udr-16.C: New test.
15571 * testsuite/libgomp.c++/udr-17.C: New test.
15572 * testsuite/libgomp.c++/udr-18.C: New test.
15573 * testsuite/libgomp.c++/udr-19.C: New test.
15574
15575 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
15576
15577 Update copyright years
15578
15579 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
15580
15581 * hashtab.h: Use the standard form for the copyright notice.
15582
15583 2014-01-02 Tobias Burnus <burnus@net-b.de>
15584
15585 * libgomp.texi: Bump @copying's copyright year.
15586
15587 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
15588
15589 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
15590 alloca () with __builtin_alloca ().
15591 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
15592 * testsuite/libgomp.c/lock-3.c: Likewise.
15593 * testsuite/libgomp.c/pr48591.c: Likewise.
15594
15595 2013-12-17 Jakub Jelinek <jakub@redhat.com>
15596
15597 PR testsuite/59534
15598 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
15599 comparisons.
15600
15601 2013-12-16 Jakub Jelinek <jakub@redhat.com>
15602
15603 PR libgomp/58756
15604 * testsuite/libgomp.c/pr58756.c: New test.
15605
15606 2013-12-12 Jakub Jelinek <jakub@redhat.com>
15607
15608 PR libgomp/59467
15609 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
15610 !$omp parallel.
15611
15612 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
15613
15614 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
15615 ALWAYS_CFLAGS.
15616 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
15617 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
15618 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
15619 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
15620 Likewise.
15621
15622 * libgomp_g.h: Include <stddef.h> for size_t.
15623
15624 * libgomp.spec.in: Update comment about libgomp's dependencies.
15625 * configure.ac: Likewise.
15626 * configure: Regenerate.
15627
15628 2013-10-16 Tobias Burnus <burnus@net-b.de>
15629
15630 * libgomp.texi: (Runtime Library Routines): Update references for
15631 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
15632 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
15633 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
15634 (Environment Variables): Update references for OpenMP 4.0. Add
15635 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
15636 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
15637 order.
15638
15639 2013-10-14 Jakub Jelinek <jakub@redhat.com>
15640
15641 * env.c (parse_bind_var): Initialize value to avoid
15642 (false positive) warning.
15643
15644 2013-10-12 Jakub Jelinek <jakub@redhat.com>
15645
15646 PR libgomp/58691
15647 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
15648 to check variable.
15649 (gomp_init_num_threads): Move i variable declaration into
15650 #ifdef CPU_ALLOC_SIZE block.
15651 * config/linux/affinity.c (gomp_affinity_init_level): Test
15652 gomp_places_list_len == 0 rather than gomp_places_list == 0
15653 when checking for topology reading error.
15654 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
15655 * env.c (parse_affinity): Add ignore argument, if true, don't populate
15656 gomp_places_list, only parse env var and always return false.
15657 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
15658 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
15659 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
15660 and either of these variables were parsed correctly into a places
15661 list.
15662
15663 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
15664 Jakub Jelinek <jakub@redhat.com>
15665
15666 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
15667 of 5 loopfn matches.
15668 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
15669 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
15670 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
15671 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
15672 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
15673 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
15674 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
15675 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
15676
15677 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
15678
15679 * Makefile.am (omp_lib.mod): Streamline rule.
15680 * Makefile.in: Regenerate.
15681
15682 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
15683 exceptions.
15684
15685 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
15686 * testsuite/libgomp.fortran/lib1.f90: Likewise.
15687 * testsuite/libgomp.fortran/lib2.f: Likewise.
15688 * testsuite/libgomp.fortran/lib3.f: Likewise.
15689
15690 * configure.ac: Typo fix.
15691 * configure: Regenerate.
15692
15693 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
15694 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
15695
15696 * omp.h.in: Don't touch the user's namespace.
15697
15698 2013-10-11 Jakub Jelinek <jakub@redhat.com>
15699 Tobias Burnus <burnus@net-b.de>
15700 Richard Henderson <rth@redhat.com>
15701
15702 * target.c: New file.
15703 * Makefile.am (libgomp_la_SOURCES): Add target.c.
15704 * Makefile.in: Regenerated.
15705 * libgomp_g.h (GOMP_task): Add depend argument.
15706 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
15707 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
15708 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
15709 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
15710 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
15711 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
15712 GOMP_taskgroup_start, GOMP_taskgroup_end,
15713 GOMP_parallel_sections): New prototypes.
15714 * fortran.c (omp_is_initial_device): Add ialias_redirect.
15715 (omp_is_initial_device_): New function.
15716 (ULP, STR1, STR2, ialias_redirect): Removed.
15717 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
15718 omp_set_default_device_8_, omp_get_default_device_,
15719 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
15720 functions.
15721 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
15722 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
15723 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
15724 @@GOMP_4.0.
15725 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
15726 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
15727 omp_set_default_device, omp_set_default_device_,
15728 omp_set_default_device_8_, omp_get_default_device,
15729 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
15730 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
15731 omp_get_team_num_): Export @@OMP_4.0.
15732 * team.c (struct gomp_thread_start_data): Add place field.
15733 (gomp_thread_start): Clear thr->thread_pool and
15734 thr->task before returning. Use gomp_team_barrier_wait_final
15735 instead of gomp_team_barrier_wait. Initialize thr->place.
15736 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
15737 team_cancelled and task_queued_count fields.
15738 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
15739 before calling pthread_exit.
15740 (gomp_free_thread): No longer static. Use
15741 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
15742 (gomp_team_start): Add flags argument. Set
15743 thr->thread_pool->threads_busy to nthreads immediately after creating
15744 new pool. Use gomp_managed_threads_lock instead of
15745 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
15746 (gomp_team_end): Use gomp_managed_threads_lock instead of
15747 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
15748 of gomp_team_barrier_wait. If team->team_cancelled, call
15749 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
15750 rather than thr->ts.work_share.
15751 (initialize_team): Don't call gomp_sem_init here.
15752 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
15753 caller.
15754 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
15755 * env.c (gomp_global_icv): Add default_device_var, target_data and
15756 bind_var initializers.
15757 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
15758 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
15759 gomp_places_list_len): New variables.
15760 (parse_bind_var, parse_one_place, parse_places_var): New functions.
15761 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
15762 sized places.
15763 (gomp_cancel_var): New global variable.
15764 (parse_int): New function.
15765 (handle_omp_display_env): New function.
15766 (initialize_env): Use it. Initialize default_device_var.
15767 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
15768 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
15769 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
15770 been successfully parsed (and call gomp_init_affinity in that case).
15771 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
15772 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
15773 omp_get_team_num, omp_is_initial_device): New functions.
15774 * libgomp.h: Include stdlib.h.
15775 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
15776 Define.
15777 (struct target_mem_desc): Forward declare.
15778 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
15779 and thread_limit_var fields.
15780 (gomp_get_num_devices): New prototype.
15781 (gomp_cancel_var): New extern decl.
15782 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
15783 team_cancelled and task_queued_count fields. Add comments about
15784 task_{,queued_,running_}count.
15785 (gomp_cancel_kind): New enum.
15786 (gomp_work_share_end_cancel): New prototype.
15787 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
15788 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
15789 and depend fields.
15790 (struct gomp_taskgroup): New type.
15791 (struct gomp_task_depend_entry,
15792 struct gomp_dependers_vec): New types.
15793 (gomp_finish_task): Free depend_hash if non-NULL.
15794 (struct gomp_team_state): Add place_partition_off
15795 and place_partition_len fields.
15796 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
15797 gomp_places_list_len): New extern decls.
15798 (struct gomp_thread): Add place field.
15799 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
15800 (gomp_init_thread_affinity): Add place argument.
15801 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
15802 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
15803 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
15804 gomp_affinity_init_level, gomp_affinity_print_place): New
15805 prototypes.
15806 (gomp_team_start): Add flags argument.
15807 (gomp_thread_limit_var, gomp_remaining_threads_count,
15808 gomp_remaining_threads_lock): Remove.
15809 (gomp_managed_threads_lock): New variable.
15810 (struct gomp_thread_pool): Add threads_busy field.
15811 (gomp_free_thread): New prototype.
15812 * task.c: Include hashtab.h.
15813 (hash_entry_type): New typedef.
15814 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
15815 (gomp_init_task): Clear dependers, depend_hash, depend_count,
15816 copy_ctors_done and taskgroup fields.
15817 (GOMP_task): Add depend argument, handle depend clauses. If
15818 gomp_team_barrier_cancelled or if it's taskgroup has been
15819 cancelled, don't queue or start new tasks. Set copy_ctors_done
15820 field if needed. Initialize taskgroup field. If copy_ctors_done
15821 and already cancelled, don't discard the task. If taskgroup is
15822 non-NULL, enqueue the task into taskgroup queue. Increment
15823 num_children field in taskgroup. Increment task_queued_count.
15824 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
15825 gomp_task_run_post_remove_taskgroup): New inline functions.
15826 (gomp_task_run_post_handle_depend_hash,
15827 gomp_task_run_post_handle_dependers,
15828 gomp_task_run_post_handle_depend): New functions.
15829 (GOMP_taskwait): Use them. If more than one new tasks
15830 have been queued, wake other threads if needed.
15831 (gomp_barrier_handle_tasks): Likewise. If
15832 gomp_team_barrier_cancelled, don't start any new tasks, just free
15833 all tasks.
15834 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
15835 * omp_lib.f90.in
15836 (omp_proc_bind_kind, omp_proc_bind_false,
15837 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
15838 omp_proc_bind_spread): New params.
15839 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
15840 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
15841 omp_get_team_num, omp_is_initial_device): New interfaces.
15842 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
15843 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
15844 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
15845 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
15846 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
15847 useless use omp_lib_kinds.
15848 * omp.h.in (omp_proc_bind_t): New typedef.
15849 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
15850 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
15851 omp_get_team_num, omp_is_initial_device): New prototypes.
15852 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
15853 through to gomp_team_start.
15854 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
15855 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
15856 Adjust gomp_parallel_loop_start callers.
15857 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
15858 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
15859 GOMP_loop_end_cancel): New functions.
15860 (GOMP_parallel_end): Add ialias_redirect.
15861 * hashtab.h: New file.
15862 * libgomp.texi (Environment Variables): Minor cleanup,
15863 update section refs to OpenMP 4.0rc2.
15864 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
15865 environment variables.
15866 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
15867 team->work_shares_to_free to thr->ts.work_share before calling
15868 free_work_share.
15869 (gomp_work_share_end_cancel): New function.
15870 * config/linux/proc.c: Include errno.h.
15871 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
15872 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
15873 sizeof (cpu_set_t) to determine number of iterations. Fix up check
15874 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
15875 gomp_cpuset_size is sizeof (cpu_set_t).
15876 (gomp_init_num_threads): Initialize gomp_cpuset_size,
15877 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
15878 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
15879 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
15880 contain any logical CPUs.
15881 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
15882 is NULL. Use gomp_cpusetp instead of &cpuset and pass
15883 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
15884 pthread_getaffinity_np. Check gomp_places_list instead of
15885 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
15886 * config/linux/bar.c (gomp_barrier_wait_end,
15887 gomp_barrier_wait_last): Use BAR_* defines.
15888 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
15889 from state where needed. Set work_share_cancelled to 0 on last
15890 thread.
15891 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
15892 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
15893 functions.
15894 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
15895 Add cpusetsize argument.
15896 (gomp_cpuset_size, gomp_cpusetp): Declare.
15897 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
15898 (affinity_counter): Remove.
15899 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
15900 if CPU_ALLOC_SIZE isn't defined.
15901 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
15902 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
15903 bind current thread to the first place.
15904 (gomp_init_thread_affinity): Rewritten. Add place argument, just
15905 pthread_setaffinity_np to gomp_places_list[place].
15906 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
15907 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
15908 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
15909 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
15910 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
15911 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
15912 (gomp_barrier_t): Add awaited_final field.
15913 (gomp_barrier_init): Initialize awaited_final field.
15914 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
15915 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
15916 prototypes.
15917 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
15918 defines.
15919 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
15920 gomp_team_barrier_cancelled): New inline functions.
15921 (gomp_barrier_last_thread,
15922 gomp_team_barrier_set_task_pending,
15923 gomp_team_barrier_clear_task_pending,
15924 gomp_team_barrier_set_waiting_for_tasks,
15925 gomp_team_barrier_waiting_for_tasks,
15926 gomp_team_barrier_done): Use BAR_* defines.
15927 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
15928 (gomp_barrier_wait_end): Use BAR_* defines.
15929 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
15930 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
15931 Use BAR_* defines.
15932 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
15933 gomp_team_barrier_cancel): New functions.
15934 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
15935 argument.
15936 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
15937 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
15938 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
15939 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
15940 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
15941 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
15942 (gomp_barrier_t): Add cancellable field.
15943 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
15944 gomp_team_barrier_cancel): New prototypes.
15945 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
15946 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
15947 gomp_team_barrier_cancelled): New inline functions.
15948 (gomp_barrier_wait_start, gomp_barrier_last_thread,
15949 gomp_team_barrier_set_task_pending,
15950 gomp_team_barrier_clear_task_pending,
15951 gomp_team_barrier_set_waiting_for_tasks,
15952 gomp_team_barrier_waiting_for_tasks,
15953 gomp_team_barrier_done): Use BAR_* defines.
15954 * barrier.c (GOMP_barrier_cancel): New function.
15955 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
15956 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
15957 omp_proc_bind_spread): New params.
15958 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
15959 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
15960 omp_get_team_num, omp_is_initial_device): New externals.
15961 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
15962 New functions.
15963 (gomp_resolve_num_threads): Adjust for thread_limit now being in
15964 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
15965 infinity. If not nested, just return minimum of max_num_threads
15966 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
15967 to the returned value. Otherwise, don't update atomically
15968 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
15969 (GOMP_parallel_end): Adjust for thread_limit now being in
15970 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
15971 infinity. Adjust threads_busy in the pool rather than
15972 gomp_remaining_threads_count. Remember team->nthreads and call
15973 gomp_team_end before adjusting threads_busy, if not nested
15974 afterwards, just set it to 1 non-atomically. Add ialias.
15975 (GOMP_parallel_start): Adjust gomp_team_start caller.
15976 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
15977 * testsuite/libgomp.c/affinity-1.c: New test.
15978 * testsuite/libgomp.c/atomic-15.c: New test.
15979 * testsuite/libgomp.c/atomic-16.c: New test.
15980 * testsuite/libgomp.c/atomic-17.c: New test.
15981 * testsuite/libgomp.c/cancel-for-1.c: New test.
15982 * testsuite/libgomp.c/cancel-for-2.c: New test.
15983 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
15984 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
15985 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
15986 * testsuite/libgomp.c/cancel-sections-1.c: New test.
15987 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
15988 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
15989 * testsuite/libgomp.c/depend-1.c: New test.
15990 * testsuite/libgomp.c/depend-2.c: New test.
15991 * testsuite/libgomp.c/depend-3.c: New test.
15992 * testsuite/libgomp.c/depend-4.c: New test.
15993 * testsuite/libgomp.c/for-1.c: New test.
15994 * testsuite/libgomp.c/for-1.h: New file.
15995 * testsuite/libgomp.c/for-2.c: New test.
15996 * testsuite/libgomp.c/for-2.h: New file.
15997 * testsuite/libgomp.c/for-3.c: New test.
15998 * testsuite/libgomp.c/pr58392.c: New test.
15999 * testsuite/libgomp.c/simd-1.c: New test.
16000 * testsuite/libgomp.c/simd-2.c: New test.
16001 * testsuite/libgomp.c/simd-3.c: New test.
16002 * testsuite/libgomp.c/simd-4.c: New test.
16003 * testsuite/libgomp.c/simd-5.c: New test.
16004 * testsuite/libgomp.c/simd-6.c: New test.
16005 * testsuite/libgomp.c/target-1.c: New test.
16006 * testsuite/libgomp.c/target-2.c: New test.
16007 * testsuite/libgomp.c/target-3.c: New test.
16008 * testsuite/libgomp.c/target-4.c: New test.
16009 * testsuite/libgomp.c/target-5.c: New test.
16010 * testsuite/libgomp.c/target-6.c: New test.
16011 * testsuite/libgomp.c/target-7.c: New test.
16012 * testsuite/libgomp.c/taskgroup-1.c: New test.
16013 * testsuite/libgomp.c/thread-limit-1.c: New test.
16014 * testsuite/libgomp.c/thread-limit-2.c: New test.
16015 * testsuite/libgomp.c/thread-limit-3.c: New test.
16016 * testsuite/libgomp.c/udr-1.c: New test.
16017 * testsuite/libgomp.c/udr-2.c: New test.
16018 * testsuite/libgomp.c/udr-3.c: New test.
16019 * testsuite/libgomp.c++/affinity-1.C: New test.
16020 * testsuite/libgomp.c++/atomic-10.C: New test.
16021 * testsuite/libgomp.c++/atomic-11.C: New test.
16022 * testsuite/libgomp.c++/atomic-12.C: New test.
16023 * testsuite/libgomp.c++/atomic-13.C: New test.
16024 * testsuite/libgomp.c++/atomic-14.C: New test.
16025 * testsuite/libgomp.c++/atomic-15.C: New test.
16026 * testsuite/libgomp.c++/cancel-for-1.C: New test.
16027 * testsuite/libgomp.c++/cancel-for-2.C: New test.
16028 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
16029 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
16030 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
16031 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
16032 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
16033 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
16034 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
16035 * testsuite/libgomp.c++/cancel-test.h: New file.
16036 * testsuite/libgomp.c++/for-9.C: New test.
16037 * testsuite/libgomp.c++/for-10.C: New test.
16038 * testsuite/libgomp.c++/for-11.C: New test.
16039 * testsuite/libgomp.c++/simd-1.C: New test.
16040 * testsuite/libgomp.c++/simd-2.C: New test.
16041 * testsuite/libgomp.c++/simd-3.C: New test.
16042 * testsuite/libgomp.c++/simd-4.C: New test.
16043 * testsuite/libgomp.c++/simd-5.C: New test.
16044 * testsuite/libgomp.c++/simd-6.C: New test.
16045 * testsuite/libgomp.c++/simd-7.C: New test.
16046 * testsuite/libgomp.c++/simd-8.C: New test.
16047 * testsuite/libgomp.c++/target-1.C: New test.
16048 * testsuite/libgomp.c++/target-2.C: New test.
16049 * testsuite/libgomp.c++/target-2-aux.cc: New file.
16050 * testsuite/libgomp.c++/target-3.C: New test.
16051 * testsuite/libgomp.c++/taskgroup-1.C: New test.
16052 * testsuite/libgomp.c++/udr-1.C: New test.
16053 * testsuite/libgomp.c++/udr-2.C: New test.
16054 * testsuite/libgomp.c++/udr-3.C: New test.
16055 * testsuite/libgomp.c++/udr-4.C: New test.
16056 * testsuite/libgomp.c++/udr-5.C: New test.
16057 * testsuite/libgomp.c++/udr-6.C: New test.
16058 * testsuite/libgomp.c++/udr-7.C: New test.
16059 * testsuite/libgomp.c++/udr-8.C: New test.
16060 * testsuite/libgomp.c++/udr-9.C: New test.
16061
16062 2013-09-20 Jakub Jelinek <jakub@redhat.com>
16063
16064 PR testsuite/57605
16065 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
16066 ALWAYS_CFLAGS.
16067
16068 2013-09-20 Alan Modra <amodra@gmail.com>
16069
16070 * configure: Regenerate.
16071
16072 2013-09-19 Jakub Jelinek <jakub@redhat.com>
16073
16074 * testsuite/libgomp.c/sections-2.c: New test.
16075
16076 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
16077
16078 * testsuite/libgomp.fortran/strassen.f90:
16079 Add dg-skip-if aarch64_tiny.
16080
16081 2013-06-20 Iain Sandoe <iain@codesourcery.com>
16082 Cesar Philippidis <cesar@codesourcery.com>
16083
16084 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
16085 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
16086 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
16087 * testsuite/libgomp.fortran/fortran.exp: Likewise.
16088 * testsuite/libgomp.graphite/graphite.exp: Likewise.
16089 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
16090 Use dg-runtest rather than gfortran-dg-runtest.
16091
16092 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
16093
16094 * testsuite/libgomp.c/icv-2.c: Extend current handling of
16095 Linux-based x86 systems to cover all GNU systems.
16096 * testsuite/libgomp.c/lock-3.c: Likewise.
16097 * testsuite/libgomp.c/pr48591.c: Likewise.
16098
16099 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
16100
16101 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
16102 GNU/Hurd, as done for Linux-based systems.
16103
16104 * config/posix/ptrlock.h: Fix comment.
16105
16106 2013-05-27 Tobias Burnus <burnus@net-b.de>
16107
16108 PR fortran/57423
16109 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
16110 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
16111 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
16112 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
16113 omp_destroy_nest_lock): Correct arguments to match the one in
16114 the OpenMP spec.
16115 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
16116 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
16117 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
16118 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
16119
16120 2013-05-16 Jakub Jelinek <jakub@redhat.com>
16121
16122 * testsuite/libgomp.c/loop-13.c: New test.
16123 * testsuite/libgomp.c/loop-14.c: New test.
16124 * testsuite/libgomp.c/loop-15.c: New test.
16125 * testsuite/libgomp.c++/loop-13.C: New test.
16126 * testsuite/libgomp.c++/loop-14.C: New test.
16127 * testsuite/libgomp.c++/loop-15.C: New test.
16128
16129 2013-02-06 Jakub Jelinek <jakub@redhat.com>
16130
16131 PR middle-end/56217
16132 * testsuite/libgomp.c++/pr56217.C: New test.
16133
16134 2013-02-01 Alan Modra <amodra@gmail.com>
16135
16136 * task.c (GOMP_task, GOMP_taskwait): Comment.
16137
16138 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
16139 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
16140
16141 PR libgomp/55561
16142 * config/linux/wait.h (do_spin): Use atomic load for addr.
16143 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
16144 for intptr and ptrlock.
16145 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
16146 for ptrlock.
16147
16148 2013-01-22 Alan Modra <amodra@gmail.com>
16149
16150 PR libgomp/51376
16151 PR libgomp/56073
16152 * task.c (GOMP_task): Revert 2011-12-09 change.
16153 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
16154 barrier to read task->children..
16155 (gomp_barrier_handle_tasks): ..and matching atomic store with
16156 release barrier here when setting parent->children to NULL.
16157
16158 2013-01-16 Jakub Jelinek <jakub@redhat.com>
16159 Tobias Burnus <burnus@net-b.de>
16160
16161 PR driver/55884
16162 * testsuite/libgomp.fortran/fortran.exp: Use
16163 -fintrinsic-modules-path= instead of
16164 -fintrinsic-modules-path.
16165
16166 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
16167
16168 Update copyright years.
16169
16170 2012-12-19 Tobias Burnus <burnus@net-b.de>
16171
16172 * testsuite/libgomp.fortran/fortran.exp: Set
16173 -fintrinsic-modules-path.
16174
16175 2012-12-19 Tobias Burnus <burnus@net-b.de>
16176
16177 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
16178 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
16179
16180 2012-11-21 Jakub Jelinek <jakub@redhat.com>
16181
16182 PR libgomp/55411
16183 * team.c (gomp_free_thread): Decrease gomp_managed_threads
16184 if pool had any threads_used.
16185
16186 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
16187
16188 * testsuite/libgomp.c++/pr24455.C: Use
16189 -Wl,-undefined,dynamic_lookup on darwin.
16190
16191 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
16192
16193 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
16194
16195 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
16196
16197 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
16198
16199 2012-10-23 Ian Bolton <ian.bolton@arm.com>
16200 Jim MacArthur <jim.macarthur@arm.com>
16201 Marcus Shawcroft <marcus.shawcroft@arm.com>
16202 Nigel Stephens <nigel.stephens@arm.com>
16203 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16204 Richard Earnshaw <rearnsha@arm.com>
16205 Sofiane Naci <sofiane.naci@arm.com>
16206 Stephen Thomas <stephen.thomas@arm.com>
16207 Tejas Belagod <tejas.belagod@arm.com>
16208 Yufeng Zhang <yufeng.zhang@arm.com>
16209
16210 * configure.tgt: Add AArch64.
16211
16212 2012-10-04 Jason Merrill <jason@redhat.com>
16213
16214 * testsuite/libgomp.c++/tls-init1.C: New.
16215
16216 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
16217
16218 * configure: Regenerated.
16219
16220 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
16221
16222 * config/linux/mips/futex.h (sys_futex0): Change to static
16223 function with noinline, nomips16 attributes under MIPS16. Adjust
16224 asm statement to place 'li v0,SYS_futex' immediately before
16225 syscall insn.
16226
16227 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
16228
16229 * libgomp.texi (Library Index): Renamed from "Index" to prevent
16230 conflict with index.html on case-insensitive file systems.
16231
16232 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
16233
16234 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
16235 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
16236
16237 2012-07-02 Richard Guenther <rguenther@suse.de>
16238 Michael Matz <matz@suse.de>
16239 Tobias Grosser <tobias@grosser.es>
16240 Sebastian Pop <sebpop@gmail.com>
16241
16242 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
16243 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
16244 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16245 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16246
16247 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
16248
16249 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
16250
16251 2012-06-22 Richard Guenther <rguenther@suse.de>
16252
16253 Merge from graphite branch
16254 2012-01-13 Tobias Grosser <tobias@grosser.es>
16255
16256 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
16257 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
16258
16259 2012-06-07 Jakub Jelinek <jakub@redhat.com>
16260
16261 PR middle-end/53580
16262 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
16263 use GOMP_barrier () call instead.
16264 * testsuite/libgomp.c/pr26943-3.c: Likewise.
16265 * testsuite/libgomp.c/pr26943-4.c: Likewise.
16266 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
16267 call GOMP_barrier instead.
16268 * testsuite/libgomp.fortran/vla5.f90: Likewise.
16269
16270 2012-06-06 Jakub Jelinek <jakub@redhat.com>
16271
16272 PR libgomp/52993
16273 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
16274 argument to memset call.
16275
16276 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
16277
16278 * configure: Regenerated.
16279
16280 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
16281
16282 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
16283
16284 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
16285
16286 PR bootstrap/52812
16287 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
16288
16289 2012-03-22 Jakub Jelinek <jakub@redhat.com>
16290
16291 PR middle-end/52547
16292 * testsuite/libgomp.c/pr52547.c: New test.
16293
16294 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16295
16296 * testsuite/lib/libgomp.exp: load fortran-modules.exp
16297
16298 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16299
16300 * configure.tgt (mips-sgi-irix6*): Remove.
16301
16302 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16303
16304 * configure.tgt (alpha*-dec-osf*): Remove.
16305
16306 * config/osf/sem.h: Remove.
16307 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
16308
16309 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
16310
16311 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
16312
16313 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16314
16315 PR libstdc++/52188
16316 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
16317 Remove ENABLE_SYMVERS_SOL2.
16318 * configure: Regenerate.
16319 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
16320 (PREPROCESS): New variable.
16321 (libgomp.ver): New target.
16322 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
16323 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
16324 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
16325 Use libgomp.ver.
16326 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
16327 * Makefile.in: Regenerate.
16328
16329 2012-02-14 Walter Lee <walt@tilera.com>
16330
16331 * configure.tgt: Handle tilegx and tilepro.
16332 * config/linux/tile/futex.h: New file.
16333
16334 2012-02-08 Richard Guenther <rguenther@suse.de>
16335
16336 PR tree-optimization/46886
16337 * testsuite/libgomp.c/pr46886.c: New testcase.
16338
16339 2012-01-25 Matthias Klose <doko@ubuntu.com>
16340
16341 * config/linux/arm: Remove empty directory.
16342 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
16343
16344 2011-12-09 Alan Modra <amodra@gmail.com>
16345
16346 PR libgomp/51376
16347 * task.c (GOMP_taskwait): Don't access task->children outside of
16348 task_lock mutex region.
16349 (GOMP_task): Likewise.
16350
16351 2011-12-06 Jakub Jelinek <jakub@redhat.com>
16352
16353 PR libgomp/51132
16354 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
16355 to file scope.
16356 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
16357 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
16358 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16359 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16360 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
16361
16362 2011-12-02 Alan Modra <amodra@gmail.com>
16363
16364 * config/linux/affinity.c: Use atomic rather than sync builtin.
16365 * config/linux/lock.c: Likewise.
16366 * config/linux/ptrlock.h: Likewise.
16367 * config/linux/ptrlock.c: Likewise.
16368 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
16369 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
16370 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
16371 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
16372 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
16373 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
16374 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
16375 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
16376 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
16377 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
16378
16379 2011-11-30 Alan Modra <amodra@gmail.com>
16380
16381 PR libgomp/51298
16382 * config/linux/bar.h: Use atomic rather than sync builtins.
16383 * config/linux/bar.c: Likewise. Add missing acquire
16384 synchronisation on generation field.
16385 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
16386 double unlock.
16387
16388 2011-11-30 Alan Modra <amodra@gmail.com>
16389
16390 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
16391 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
16392 * config/linux/mutex.h: Use atomic rather than sync builtins.
16393 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
16394 * config/linux/omp-lock.h: Comment fix.
16395 * config/linux/arm/mutex.h: Delete.
16396 * config/linux/powerpc/mutex.h: Delete.
16397 * config/linux/ia64/mutex.h: Delete.
16398 * config/linux/mips/mutex.h: Delete.
16399
16400 2011-11-30 Alan Modra <amodra@gmail.com>
16401
16402 PR libgomp/51249
16403 * config/linux/sem.h: Rewrite.
16404 * config/linux/sem.c: Rewrite.
16405
16406 2011-11-28 Richard Henderson <rth@redhat.com>
16407
16408 * libgomp.h (enum memmodel): New.
16409
16410 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
16411
16412 * configure: Regenerate.
16413
16414 2011-10-10 Matthias Klose <doko@ubuntu.com>
16415
16416 * config/posix95: Remove empty directory.
16417
16418 2011-08-26 Jakub Jelinek <jakub@redhat.com>
16419
16420 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
16421
16422 2011-08-19 Jakub Jelinek <jakub@redhat.com>
16423
16424 PR fortran/49792
16425 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
16426 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
16427
16428 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16429
16430 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
16431
16432 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16433
16434 PR libgomp/49965
16435 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
16436
16437 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
16438
16439 * config/linux/proc.h: New.
16440 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
16441 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
16442 (gomp_init_num_threads): Update call to cpuset_popcount.
16443 (get_num_procs): Ditto.
16444 * config/linux/affinity.c (gomp_init_affinity): Call
16445 gomp_cpuset_popcount.
16446
16447 2011-08-02 Jakub Jelinek <jakub@redhat.com>
16448
16449 PR fortran/42041
16450 PR fortran/46752
16451 * omp.h.in (omp_in_final): New prototype.
16452 * omp_lib.f90.in (omp_in_final): New interface.
16453 (omp_integer_kind, omp_logical_kind): Remove
16454 and replace all its uses in the module with 4.
16455 (openmp_version): Change to 201107.
16456 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
16457 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
16458 kind for the parameters.
16459 (omp_in_final): New external.
16460 (openmp_version): Change to 201107.
16461 * task.c (omp_in_final): New function.
16462 (gomp_init_task): Initialize final_task.
16463 (GOMP_task): Remove unused attribute from flags. Handle final
16464 tasks.
16465 (GOMP_taskyield): New function.
16466 (omp_in_final): Return true if if (false) or final (true) task
16467 or descendant of final (true).
16468 * fortran.c (omp_in_final_): New function.
16469 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
16470 (GOMP_3.0): Export GOMP_taskyield.
16471 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
16472 variables.
16473 (parse_unsigned_long_list): New function.
16474 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
16475 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
16476 even if parse_affinity returned false.
16477 * config/linux/affinity.c (gomp_init_affinity): Handle
16478 gomp_cpu_affinity_len == 0.
16479 * libgomp_g.h (GOMP_taskyield): New prototype.
16480 * libgomp.h (struct gomp_task): Add final_task field.
16481 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
16482 * team.c (gomp_team_start): Override new task's nthreads_var icv
16483 if list form OMP_NUM_THREADS has been used and it has value for
16484 the new nesting level.
16485
16486 * testsuite/libgomp.c/atomic-11.c: New test.
16487 * testsuite/libgomp.c/atomic-12.c: New test.
16488 * testsuite/libgomp.c/atomic-13.c: New test.
16489 * testsuite/libgomp.c/atomic-14.c: New test.
16490 * testsuite/libgomp.c/reduction-6.c: New test.
16491 * testsuite/libgomp.c/task-5.c: New test.
16492 * testsuite/libgomp.c++/atomic-2.C: New test.
16493 * testsuite/libgomp.c++/atomic-3.C: New test.
16494 * testsuite/libgomp.c++/atomic-4.C: New test.
16495 * testsuite/libgomp.c++/atomic-5.C: New test.
16496 * testsuite/libgomp.c++/atomic-6.C: New test.
16497 * testsuite/libgomp.c++/atomic-7.C: New test.
16498 * testsuite/libgomp.c++/atomic-8.C: New test.
16499 * testsuite/libgomp.c++/atomic-9.C: New test.
16500 * testsuite/libgomp.c++/task-8.C: New test.
16501 * testsuite/libgomp.c++/reduction-4.C: New test.
16502 * testsuite/libgomp.fortran/allocatable7.f90: New test.
16503 * testsuite/libgomp.fortran/allocatable8.f90: New test.
16504 * testsuite/libgomp.fortran/crayptr3.f90: New test.
16505 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
16506 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
16507 * testsuite/libgomp.fortran/pointer1.f90: New test.
16508 * testsuite/libgomp.fortran/pointer2.f90: New test.
16509 * testsuite/libgomp.fortran/task4.f90: New test.
16510
16511 2011-08-02 Tobias Burnus <burnus@net-b.de>
16512
16513 * libgomp.texi: Update OpenMP spec references to 3.1.
16514 (omp_in_final,OMP_PROC_BIND): New sections.
16515 (OMP_NUM_THREADS): Document that the value can be now a list.
16516 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
16517
16518 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
16519
16520 * config/linux/x86/futex.h: Check __x86_64__ instead of
16521 __LP64__.
16522
16523 2011-07-29 Jakub Jelinek <jakub@redhat.com>
16524
16525 PR middle-end/49897
16526 PR middle-end/49898
16527 * testsuite/libgomp.c/pr49897-1.c: New test.
16528 * testsuite/libgomp.c/pr49897-2.c: New test.
16529 * testsuite/libgomp.c/pr49898-1.c: New test.
16530 * testsuite/libgomp.c/pr49898-2.c: New test.
16531
16532 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
16533
16534 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
16535 for ia32 instead of ilp32.
16536
16537 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
16538 * testsuite/libgomp.c/atomic-6.c: Likewise.
16539
16540 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
16541
16542 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
16543 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
16544
16545 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16546
16547 PR libgomp/45351
16548 * config/osf/sem.h: New file.
16549 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
16550
16551 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16552
16553 PR target/49541
16554 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
16555 ldflags.
16556
16557 2011-07-15 Jakub Jelinek <jakub@redhat.com>
16558
16559 * config/linux/wait.h (do_spin): New inline, largely copied
16560 from do_wait, just don't do futex_wait here, instead return true if
16561 it should be done.
16562 (do_wait): Implement using do_spin.
16563 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
16564 to prototype.
16565 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
16566 __sync_bool_compare_and_swap, pass the oldval to
16567 gomp_mutex_lock_slow.
16568 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
16569 If all mutex contenders are just spinning and not sleeping, don't
16570 change state to 2 unnecessarily. Optimize the loop when state has
16571 already become 2 to use just one atomic operation per loop instead
16572 of two.
16573 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
16574 to prototype.
16575 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
16576 __sync_bool_compare_and_swap, pass the oldval to
16577 gomp_mutex_lock_slow.
16578
16579 2011-06-22 Jakub Jelinek <jakub@redhat.com>
16580
16581 PR libgomp/49490
16582 * iter.c (gomp_iter_static_next): For chunk size 0
16583 only use n ceil/ nthreads size for the first
16584 n % nthreads threads in the team instead of
16585 all threads except for the last few ones which
16586 get less work or none at all.
16587 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
16588 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
16589 chunk argument, set run_sched_modifier to 0 for static
16590 resp. 1 for other kinds. If chunk argument is 0
16591 and not static, set value to 1.
16592
16593 2011-05-19 Jakub Jelinek <jakub@redhat.com>
16594
16595 PR c++/49043
16596 * testsuite/libgomp.c++/pr49043.C: New test.
16597
16598 PR c++/48869
16599 * testsuite/libgomp.c++/pr48869.C: New test.
16600
16601 2011-05-06 Jakub Jelinek <jakub@redhat.com>
16602
16603 PR fortran/48894
16604 * fortran.c: Include limits.h.
16605 (TO_INT): Define.
16606 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
16607 *set.
16608 (omp_set_num_threads_8_, omp_set_schedule_8_,
16609 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
16610 omp_get_team_size_8_): Use TO_INT macro.
16611 * testsuite/libgomp.fortran/pr48894.f90: New test.
16612
16613 2011-04-13 Jakub Jelinek <jakub@redhat.com>
16614
16615 PR middle-end/48591
16616 * testsuite/libgomp.c/pr48591.c: New test.
16617
16618 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16619
16620 PR bootstrap/48135
16621 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
16622 * configure: Regenerate.
16623
16624 2011-02-27 Jakub Jelinek <jakub@redhat.com>
16625
16626 PR fortran/47886
16627 * testsuite/libgomp.fortran/task3.f90: New test.
16628
16629 2011-02-24 Tobias Burnus <burnus@net-b.de>
16630
16631 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
16632
16633 2011-02-23 Jakub Jelinek <jakub@redhat.com>
16634
16635 PR libgomp/47854
16636 * libgomp.texi (omp_get_wtime): Don't say time in the past
16637 must be Unix Epoch.
16638
16639 2011-02-18 Jakub Jelinek <jakub@redhat.com>
16640
16641 PR libgomp/47804
16642 * testsuite/libgomp.fortran/fortran.exp: Check for both
16643 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
16644 but $blddir != "", still append ${blddir}/${lang_library_path}
16645 to ld_library_path.
16646
16647 2011-02-16 Tobias Burnus <burnus@net-b.de>
16648
16649 PR libgomp/47758
16650 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
16651 of libquadmath.a before adding its libpath to ldflags.
16652
16653 2011-02-14 Jakub Jelinek <jakub@redhat.com>
16654
16655 PR libgomp/47731
16656 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
16657 to FUTEX_WAIT futex syscall.
16658 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
16659
16660 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16661
16662 * configure: Regenerate.
16663
16664 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
16665
16666 PR libstdc++/36104
16667 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
16668
16669 2011-01-16 Gerald Pfeifer
16670
16671 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
16672
16673 2010-12-14 Jakub Jelinek <jakub@redhat.com>
16674
16675 PR fortran/46874
16676 * libgomp.fortran/allocatable6.f90: New test.
16677
16678 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16679
16680 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
16681 * configure: Regenerate.
16682
16683 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
16684
16685 PR target/40125
16686 PR lto/46695
16687 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
16688 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
16689 * aclocal.m4: Regenerate.
16690 * configure: Regenerate.
16691 * Makefile.in: Regenerate.
16692 * testsuite/Makefile.in: Regenerate.
16693
16694 2010-12-02 Jakub Jelinek <jakub@redhat.com>
16695
16696 PR fortran/46753
16697 * libgomp.fortran/pr46753.f90: New test.
16698
16699 PR libgomp/43706
16700 * env.c (initialize_env): Default to spin count 300000
16701 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
16702 is specified.
16703
16704 PR libgomp/45240
16705 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
16706 at the end if sync builtins aren't supported.
16707
16708 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16709
16710 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
16711
16712 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16713
16714 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
16715
16716 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
16717
16718 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
16719
16720 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16721 Tobias Burnus <burnus@net-b.de>
16722
16723 PR fortran/32049
16724 * configure.ac:
16725 * configure: Regenerate.
16726
16727 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
16728
16729 * config/linux/futex.h: New.
16730 * config/linux/arm/mutex.h: New.
16731 * configure.tgt (arm*-*-linux*): Add config path.
16732
16733 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
16734
16735 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
16736
16737 2010-09-23 Tobias Burnus <burnus@net-b.de>
16738
16739 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
16740 Change Fortran datatype to LOGICAL.
16741 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
16742 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
16743
16744 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16745
16746 * configure: Regenerate.
16747
16748 2010-07-26 Jakub Jelinek <jakub@redhat.com>
16749
16750 * libgomp.texi: Add function keyword to a couple of Fortran
16751 interfaces, use integer instead of int for Fortran.
16752
16753 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
16754
16755 * libgomp.texi: Fix spelling and pasto problems throughout.
16756 Adjust prototypes to match code.
16757
16758 2010-07-24 Tobias Burnus <burnus@net-b.de>
16759
16760 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
16761 silence -fwhole-file warning.
16762
16763 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16764
16765 * configure.tgt (*-*-solaris2.[56]*): Removed.
16766
16767 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16768
16769 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
16770 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
16771 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
16772 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
16773 targetting solaris2*.
16774 * configure: Regenerate.
16775 * config.h.in: Regenerate.
16776
16777 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
16778 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
16779 Add libgomp_version_dep.
16780 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
16781 versioning.
16782 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
16783 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
16784 * Makefile.in: Regenerate.
16785
16786 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
16787 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
16788 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
16789 to common block, protected by
16790 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
16791
16792 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
16793
16794 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
16795
16796 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
16797
16798 PR bootstrap/43170
16799 * configure: Regenerate.
16800
16801 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16802
16803 PR other/43620
16804 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
16805 * configure: Regenerate.
16806 * Makefile.in: Regenerate.
16807 * testsuite/Makefile.in: Regenerate.
16808
16809 2010-04-26 Jakub Jelinek <jakub@redhat.com>
16810
16811 PR c/43893
16812 * testsuite/libgomp.c/pr43893.c: New test.
16813 * testsuite/libgomp.c++/pr43893.C: New test.
16814
16815 2010-04-21 Jakub Jelinek <jakub@redhat.com>
16816
16817 PR middle-end/43570
16818 * testsuite/libgomp.fortran/vla8.f90: New test.
16819
16820 2010-04-20 Jakub Jelinek <jakub@redhat.com>
16821
16822 PR libgomp/43706
16823 * config/linux/affinity.c (gomp_init_affinity): Decrease
16824 gomp_available_cpus if affinity mask confines the process to fewer
16825 CPUs.
16826 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
16827 non-NULL, just return gomp_available_cpus.
16828
16829 PR libgomp/43569
16830 * sections.c (gomp_sections_init): Initialize ws->mode.
16831
16832 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
16833
16834 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
16835 not unused bar variable.
16836 * configure: Regenerate.
16837
16838 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16839
16840 * Makefile.in: Regenerate.
16841 * aclocal.m4: Regenerate.
16842 * testsuite/Makefile.in: Regenerate.
16843
16844 2010-03-22 Jakub Jelinek <jakub@redhat.com>
16845
16846 PR libgomp/42942
16847 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
16848 (initialize_env): Adjust callers.
16849 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
16850 when the argument is 0.
16851
16852 * testsuite/libgomp.c/pr42942.c: New test.
16853
16854 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
16855
16856 PR middle-end/42644
16857 PR middle-end/42130
16858 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
16859 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
16860
16861 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16862
16863 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
16864 * testsuite/libgomp.c++/task-6.C: Likewise.
16865
16866 2010-01-28 Steve Ellcey <sje@cup.hp.com>
16867
16868 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
16869
16870 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
16871
16872 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
16873 * configure: Regenerate.
16874
16875 2010-01-26 Jakub Jelinek <jakub@redhat.com>
16876
16877 PR fortran/42866
16878 * testsuite/libgomp.fortran/allocatable5.f90: New test.
16879
16880 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
16881
16882 * configure.ac: Test for executability of GFORTRAN.
16883 * configure: Regenerate.
16884
16885 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16886
16887 * configure: Regenerate.
16888
16889 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
16890
16891 PR libgomp/42602
16892 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
16893
16894 2010-01-03 Richard Guenther <rguenther@suse.de>
16895
16896 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
16897
16898 2009-12-23 Sebastian Pop <sebpop@gmail.com>
16899
16900 * testsuite/libgomp.graphite/pr4118.c: New.
16901
16902 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
16903
16904 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
16905 for darwin, protect the test with require-effective-target tls_runtime.
16906 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
16907
16908 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
16909
16910 PR target/41605
16911 * testsuite/lib/libgomp.exp: Provide -B options to allow for
16912 link spec %s substitutions for static libraries.
16913
16914 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
16915
16916 PR testsuite/42135
16917 * libgomp.graphite/force-parallel-2.c: Reduce array size.
16918
16919 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16920
16921 * Makefile.in: Regenerate.
16922 * configure: Regenerate.
16923 * testsuite/Makefile.in: Regenerate.
16924
16925 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
16926
16927 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
16928 settings for LC_ALL and LANG.
16929
16930 2009-11-25 Jakub Jelinek <jakub@redhat.com>
16931
16932 PR fortran/42162
16933 * testsuite/libgomp.fortran/pr42162.f90: New test.
16934
16935 2009-11-13 Jakub Jelinek <jakub@redhat.com>
16936
16937 PR middle-end/42029
16938 * testsuite/libgomp.c/pr42029.c: New test.
16939
16940 2009-10-26 Jakub Jelinek <jakub@redhat.com>
16941
16942 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
16943 *s. Accept ld version without text in ()s.
16944 * configure: Regenerated.
16945
16946 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
16947
16948 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
16949
16950 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16951
16952 PR libgomp/41418
16953 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
16954 or a hyphen (happens with fortran language disabled).
16955 * configure: Regenerate.
16956
16957 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16958
16959 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
16960 use sed script portable to Solaris /bin/sed for extracting ld
16961 version.
16962 * configure: Regenerate.
16963
16964 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
16965
16966 * testsuite/libgomp.graphite/bounds.c: New test.
16967
16968 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16969
16970 * Makefile.am (libgomp_la_LINK): New.
16971 * Makefile.in: Regenerate.
16972
16973 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16974
16975 * configure.ac (AC_PREREQ): Bump to 2.64.
16976
16977 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16978
16979 * Makefile.am (install-html, install-pdf): Remove.
16980 * Makefile.in: Regenerate.
16981
16982 * Makefile.in: Regenerate.
16983 * aclocal.m4: Regenerate.
16984 * config.h.in: Regenerate.
16985 * configure: Regenerate.
16986 * testsuite/Makefile.in: Regenerate.
16987
16988 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16989
16990 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
16991 * Makefile.in: Regenerate.
16992
16993 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
16994
16995 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
16996 * Makefile.in: Regenerate.
16997
16998 2009-08-19 Tobias Burnus <burnus@net-b.de>
16999
17000 PR fortran/41102
17001 omp_lib.h.in: Fix -std=f95 errors.
17002
17003 2009-08-14 David Edelsohn <edelsohn@gnu.org>
17004
17005 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
17006 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
17007 * testsuite/libgomp.graphite/graphite.exp: New.
17008
17009 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
17010
17011 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
17012 only build.
17013
17014 2009-08-04 David Daney <ddaney@caviumnetworks.com>
17015
17016 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
17017 needed memory barrier semantics.
17018 * config/linux/mips/mutex.h: New file.
17019
17020 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17021
17022 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
17023
17024 2009-07-16 Joseph Myers <joseph@codesourcery.com>
17025
17026 * configure: Regenerate.
17027
17028 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
17029
17030 PR testsuite/40699
17031 PR testsuite/40707
17032 PR testsuite/40709
17033 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
17034 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
17035 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
17036
17037 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
17038
17039 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
17040 options when choosing a multilib.
17041
17042 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
17043
17044 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
17045 ld_library_path. Use add_path. Add just find_libgcc_s to
17046 ld_library_path, not every libgcc multilib directory.
17047 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
17048 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
17049 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
17050 Use add_path.
17051 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
17052
17053 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
17054
17055 * Makefile.am (LTLDFLAGS): Define.
17056 (LINK): Define.
17057 * Makefile.in: Regenerate.
17058
17059 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
17060
17061 PR fortran/39718
17062 * testsuite/libgomp.fortran/fortran.exp: Don't link with
17063 libgfortranbegin, check existence of libgfortran.a instead of
17064 libgfortranbegin.a.
17065
17066 2009-05-20 Jakub Jelinek <jakub@redhat.com>
17067
17068 PR libgomp/40174
17069 * team.c (gomp_thread_start): Destroy thr->release semaphore.
17070 (gomp_free_pool_helper): Likewise.
17071
17072 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
17073 Jakub Jelinek <jakub@redhat.com>
17074
17075 PR fortran/35423
17076 * testsuite/libgomp.fortran/workshare2.f90: New test.
17077
17078 2009-04-09 Nick Clifton <nickc@redhat.com>
17079
17080 * iter.c: Change copyright header to refer to version 3 of the
17081 GNU General Public License with version 3.1 of the GCC Runtime
17082 Library Exception and to point readers at the COPYING3 and
17083 COPYING3.RUNTIME files and the FSF's license web page.
17084 * alloc.c: Likewise.
17085 * barrier.c: Likewise.
17086 * config/bsd/proc.c: Likewise.
17087 * config/linux/affinity.c: Likewise.
17088 * config/linux/alpha/futex.h: Likewise.
17089 * config/linux/bar.c: Likewise.
17090 * config/linux/bar.h: Likewise.
17091 * config/linux/ia64/futex.h: Likewise.
17092 * config/linux/ia64/mutex.h: Likewise.
17093 * config/linux/lock.c: Likewise.
17094 * config/linux/mips/futex.h: Likewise.
17095 * config/linux/mutex.c: Likewise.
17096 * config/linux/mutex.h: Likewise.
17097 * config/linux/powerpc/futex.h: Likewise.
17098 * config/linux/proc.c: Likewise.
17099 * config/linux/ptrlock.c: Likewise.
17100 * config/linux/ptrlock.h: Likewise.
17101 * config/linux/s390/futex.h: Likewise.
17102 * config/linux/sem.c: Likewise.
17103 * config/linux/sem.h: Likewise.
17104 * config/linux/sparc/futex.h: Likewise.
17105 * config/linux/wait.h: Likewise.
17106 * config/linux/x86/futex.h: Likewise.
17107 * config/mingw32/proc.c: Likewise.
17108 * config/mingw32/time.c: Likewise.
17109 * config/posix/affinity.c: Likewise.
17110 * config/posix/bar.c: Likewise.
17111 * config/posix/bar.h: Likewise.
17112 * config/posix/lock.c: Likewise.
17113 * config/posix/mutex.h: Likewise.
17114 * config/posix/proc.c: Likewise.
17115 * config/posix/ptrlock.h: Likewise.
17116 * config/posix/sem.c: Likewise.
17117 * config/posix/sem.h: Likewise.
17118 * config/posix/time.c: Likewise.
17119 * config/posix95/lock.c: Likewise.
17120 * critical.c: Likewise.
17121 * env.c: Likewise.
17122 * error.c: Likewise.
17123 * fortran.c: Likewise.
17124 * iter_ull.c: Likewise.
17125 * libgomp.h: Likewise.
17126 * libgomp_f.h.in: Likewise.
17127 * libgomp_g.h: Likewise.
17128 * loop.c: Likewise.
17129 * loop_ull.c: Likewise.
17130 * omp.h.in: Likewise.
17131 * omp_lib.f90.in: Likewise.
17132 * omp_lib.h.in: Likewise.
17133 * ordered.c: Likewise.
17134 * parallel.c: Likewise.
17135 * sections.c: Likewise.
17136 * single.c: Likewise.
17137 * task.c: Likewise.
17138 * team.c: Likewise.
17139 * work.c: Likewise.
17140
17141 2009-04-09 Jakub Jelinek <jakub@redhat.com>
17142
17143 * testsuite/config/default.exp: Change copyright header to refer to
17144 version 3 of the GNU General Public License and to point readers
17145 at the COPYING3 file and the FSF's license web page.
17146
17147 2009-04-08 Jakub Jelinek <jakub@redhat.com>
17148
17149 PR middle-end/39573
17150 * libgomp.c++/pr39573.C: New test.
17151
17152 2009-04-01 Jakub Jelinek <jakub@redhat.com>
17153
17154 PR other/39591
17155 * testsuite/libgomp.c/pr39591-1.c: New test.
17156 * testsuite/libgomp.c/pr39591-2.c: New test.
17157 * testsuite/libgomp.c/pr39591-3.c: New test.
17158
17159 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
17160
17161 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
17162 * testsuite/libgomp.c/atomic-6.c: Ditto.
17163
17164 2009-03-23 Jakub Jelinek <jakub@redhat.com>
17165
17166 PR c/39495
17167 * testsuite/libgomp.c/loop-12.c: New test.
17168 * testsuite/libgomp.c/loop-11.c: New test.
17169 * testsuite/libgomp.c++/loop-11.C: New test.
17170 * testsuite/libgomp.c++/loop-12.C: New test.
17171 * testsuite/libgomp.c++/for-8.C: New test.
17172
17173 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17174
17175 * configure: Regenerate.
17176
17177 2009-02-11 Jakub Jelinek <jakub@redhat.com>
17178
17179 PR middle-end/39154
17180 * testsuite/libgomp.c/pr39154.c: New test.
17181
17182 2009-01-30 Ian Lance Taylor <iant@google.com>
17183
17184 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
17185 libgomp_ld_is_gold. Get gold version number.
17186 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
17187 * configure: Rebuild.
17188
17189 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
17190
17191 * testsuite/lib/libgomp.exp: Add -B option for targets that
17192 use libgfortran.a%s in their specs.
17193
17194 2009-01-07 Jakub Jelinek <jakub@redhat.com>
17195
17196 PR libgomp/38086
17197 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
17198 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
17199 HAVE_AS_SYMVER_DIRECTIVE is not defined.
17200 * configure: Regenerated.
17201 * config.h.in: Likewise.
17202
17203 2008-12-28 Jakub Jelinek <jakub@redhat.com>
17204
17205 PR c++/38650
17206 * testsuite/libgomp.c/pr38650.c: New test.
17207 * testsuite/libgomp.c++/pr38650.C: New test.
17208
17209 2008-12-27 Jakub Jelinek <jakub@redhat.com>
17210
17211 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
17212
17213 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
17214
17215 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
17216
17217 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17218
17219 * configure: Regenerate.
17220
17221 2008-12-08 Jakub Jelinek <jakub@redhat.com>
17222
17223 PR middle-end/36802
17224 * testsuite/libgomp.c/pr36802-1.c: New test.
17225 * testsuite/libgomp.c/pr36802-2.c: New test.
17226 * testsuite/libgomp.c/pr36802-3.c: New test.
17227
17228 2008-12-01 Janis Johnson <janis187@us.ibm.com>
17229
17230 PR libgomp/38270
17231 * config/linux/powerpc/mutex.h: New.
17232
17233 2008-12-01 Jakub Jelinek <jakub@redhat.com>
17234
17235 PR c++/38257
17236 * testsuite/libgomp.c++/for-7.C: New test.
17237
17238 PR c++/38348
17239 * testsuite/libgomp.c++/for-6.C: New test.
17240
17241 2008-11-26 Janis Johnson <janis187@us.ibm.com>
17242
17243 PR testsuite/28870
17244 * testsuite/lib/libgomp.exp: Include new timeout library files.
17245 (libgomp_target_compile): Set timeout value from new proc.
17246
17247 2008-11-13 Steve Ellcey <sje@cup.hp.com>
17248
17249 PR libgomp/37938
17250 * config/linux/ia64/mutex.h: New.
17251
17252 2008-11-04 Tobias Burnus <burnus@net-b.de>
17253
17254 PR libgomp/37935
17255 * libgomp.texi (Runtime library routines, environment variables):
17256 Update for OpenMP version 3.0.
17257
17258 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
17259 Steve Ellcey <sje@cup.hp.com>
17260
17261 * configure: Regenerate for new libtool.
17262 * Makefile.in: Ditto.
17263 * testsuite/Makefile.in: Ditto.
17264
17265 2008-09-19 Jakub Jelinek <jakub@redhat.com>
17266 Andreas Tobler <a.tobler@schweiz.org>
17267
17268 * config/bsd/proc.c: New file.
17269 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
17270 * configure.ac: Check for header <sys/sysctl.h>
17271 * configure: Regenerate.
17272 * config.h.in: Likewise.
17273
17274 2008-09-05 Janis Johnson <janis187@us.ibm.com>
17275
17276 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
17277
17278 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
17279
17280 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
17281 * Makefile.in: Regenerated.
17282 * testsuite/Makefile.in: Regenerated.
17283
17284 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
17285
17286 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
17287 depend on blddir if blddir exists.
17288 (libgomp_target_compile): Likewise.
17289 * testsuite/libgomp.c++/c++.exp: Likewise.
17290 * testsuite/libgomp.fortran/fortran.exp: Likewise.
17291
17292 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17293
17294 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
17295 Do not list GPL as Invariant Section.
17296
17297 2008-07-28 Ilie Garbacea <ilie@mips.com>
17298 Chao-ying Fu <fu@mips.com>
17299
17300 * configure.tgt: Enable futex for MIPS.
17301 * config/linux/mips/futex.h: New file.
17302
17303 2008-07-16 Jakub Jelinek <jakub@redhat.com>
17304
17305 * team.c (gomp_team_end): Free team immediately if it has
17306 just one thread.
17307
17308 2008-07-08 David Edelsohn <edelsohn@gnu.org>
17309
17310 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
17311 * testsuite/libgomp.fortran/fortran.exp: Same.
17312 * testsuite/libgomp.c/c.exp: Same.
17313 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
17314 directory to library path first.
17315
17316 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
17317
17318 * env.c (parse_stacksize): Add cast to avoid warning.
17319 (parse_spincount): Likewise.
17320
17321 2008-06-27 Jakub Jelinek <jakub@redhat.com>
17322
17323 * testsuite/libgomp.c/loop-10.c: New test.
17324 * libgomp.c/loop-3.c (main): Add lastprivate clause.
17325 * libgomp.c++/loop-6.C (main): Likewise.
17326
17327 PR debug/36617
17328 * testsuite/libgomp.c/debug-1.c: New test.
17329
17330 2008-06-19 Jakub Jelinek <jakub@redhat.com>
17331
17332 * testsuite/libgomp.c/nqueens-1.c: New test.
17333
17334 PR c++/36523
17335 * testsuite/libgomp.c++/task-7.C: New function.
17336
17337 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17338
17339 * configure: Regenerate.
17340
17341 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17342
17343 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
17344 mutex when HAVE_SYNC_BUILTINS isn't defined.
17345
17346 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17347
17348 * libgomp.texi (omp_test_lock): Fix typo.
17349
17350 2008-06-12 Tobias Burnus <burnus@net-b.de>
17351
17352 * omp_lib.f90.in: Add "implicit none".
17353
17354 2008-06-12 Jakub Jelinek <jakub@redhat.com>
17355
17356 PR middle-end/36506
17357 * testsuite/libgomp.c/reduction-5.c: New test.
17358
17359 2008-06-11 Jakub Jelinek <jakub@redhat.com>
17360
17361 * libgomp.h (struct gomp_task): Add in_tied_task field.
17362 * task.c (gomp_init_task): Initialize it.
17363 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
17364 unconditionally. Don't call gomp_team_barrier_wake if
17365 current task is implicit or if(0) from implicit and number of
17366 running tasks is equal to nthreads - 1.
17367
17368 PR libgomp/36471
17369 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
17370 omp_get_team_size_8): Fix pastos.
17371
17372 PR libgomp/36469
17373 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
17374 * configure: Regenerated.
17375 * config.h.in: Regenerated.
17376 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
17377 defined.
17378
17379 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
17380
17381 PR bootstrap/36452
17382 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
17383 (GOMP_loop_ull_dynamic_start): Likewise.
17384 (GOMP_loop_ull_guided_start): Likewise.
17385 (GOMP_loop_ull_ordered_static_start): Likewise.
17386 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
17387 (GOMP_loop_ull_ordered_guided_start): Likewise.
17388
17389 2008-06-06 Jakub Jelinek <jakub@redhat.com>
17390 Richard Henderson <rth@redhat.com>
17391 Ulrich Drepper <drepper@redhat.com>
17392 Jakob Blomer <jakob.blomer@ira.uka.de>
17393
17394 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
17395 Substitute also OMP_*LOCK_25*.
17396 * configure: Regenerated.
17397 * config.h.in: Regenerated.
17398 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
17399 ptrlock.c and task.c.
17400 * Makefile.in: Regenerated.
17401 * testsuite/Makefile.in: Regenerated.
17402 * task.c: New file.
17403 * loop_ull.c: New file.
17404 * iter_ull.c: New file.
17405 * libgomp.h: Include ptrlock.h.
17406 (enum gomp_task_kind): New type.
17407 (struct gomp_team): Add task_lock, task_queue, task_count,
17408 task_running_count, single_count fields. Add
17409 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
17410 Remove work_share_lock, generation_mask,
17411 oldest_live_gen, num_live_gen and init_work_shares fields, add
17412 work work_share_list_alloc, work_share_list_free and work_share_chunk
17413 fields. Change work_shares from pointer to pointers into an array.
17414 Change ordered_release field into gomp_sem_t ** from flexible array
17415 member. Add implicit_task and initial_work_shares fields.
17416 Move close to the end of the struct.
17417 (struct gomp_team_state): Add single_count, last_work_share,
17418 active_level and level fields, remove work_share_generation.
17419 (gomp_barrier_handle_tasks): New prototype.
17420 (gomp_finish_task): New inline function.
17421 (struct gomp_work_share): Move chunk_size, end, incr into
17422 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
17423 next_ll fields. Reshuffle fields. Add next_alloc,
17424 next_ws, next_free and inline_ordered_team_ids fields, change
17425 ordered_team_ids into pointer from flexible array member.
17426 Add mode field. Put lock and next into a different cache line
17427 from most of the write-once fields.
17428 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
17429 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
17430 gomp_iter_ull_guided_next): New prototypes.
17431 (gomp_new_icv): New prototype.
17432 (struct gomp_thread): Add thread_pool and task fields.
17433 (struct gomp_thread_pool): New type.
17434 (gomp_new_team): New prototype.
17435 (gomp_team_start): Change type of last argument.
17436 (gomp_new_work_share): Removed.
17437 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
17438 (gomp_work_share_init_done): New static inline.
17439 (gomp_throttled_spin_count_var, gomp_available_cpus,
17440 gomp_managed_threads): New extern decls.
17441 (gomp_init_task): New prototype.
17442 (gomp_spin_count_var): New extern var decl.
17443 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
17444 or no alias support, or if not PIC.
17445 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
17446 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
17447 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
17448 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
17449 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
17450 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
17451 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
17452 gomp_test_nest_lock_25): New prototypes.
17453 (omp_lock_symver, strong_alias): Define.
17454 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
17455 decls.
17456 (gomp_end_task): New.
17457 (struct gomp_task_icv, gomp_global_icv): New.
17458 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
17459 (struct gomp_task): New.
17460 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
17461 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
17462 (gomp_icv): New.
17463 (gomp_schedule_type): Reorder enum to match
17464 omp_sched_t.
17465 * team.c (struct gomp_thread_start_data): Add thread_pool and task
17466 fields.
17467 (gomp_thread_start): Add gomp_team_barrier_wait call.
17468 For non-nested case remove clearing of docked thread thr fields.
17469 Use pool fields instead of global gomp_* variables. Use
17470 gomp_barrier_wait_last when needed. Initialize ts.active_level.
17471 Create tasks for each member thread.
17472 (free_team): Only destroy team barrier, task_lock here and free it.
17473 (gomp_free_thread): Free last_team if non-NULL.
17474 (gomp_team_end): Call gomp_team_barrier_wait instead of
17475 gomp_barrier_wait. For nested case call one extra
17476 gomp_barrier_wait. Move here some destruction from free_team.
17477 Call free_team on pool->last_team if any, rather than freeing
17478 current team. Destroy work_share_list_free_lock ifndef
17479 HAVE_SYNC_BUILTINS.
17480 (gomp_new_icv): New function.
17481 (gomp_threads, gomp_threads_size, gomp_threads_used,
17482 gomp_threads_dock): Removed.
17483 (gomp_thread_destructor): New variable.
17484 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
17485 functions.
17486 (gomp_team_start): Create new pool if current thread doesn't have
17487 one. Use pool fields instead of global gomp_* variables.
17488 Initialize thread_pool field for new threads. Clear single_count.
17489 Change last argument from ws to team, don't create
17490 new team, set ts.work_share to &team->work_shares[0] and clear
17491 ts.last_work_share. Don't clear ts.work_share_generation.
17492 If number of threads changed, adjust atomically gomp_managed_threads.
17493 Use gomp_init_task instead of gomp_new_task,
17494 set thr->task to the corresponding implicit_task array entry.
17495 Create tasks for each member thread. Initialize ts.level.
17496 (initialize_team): Call pthread_key_create on
17497 gomp_thread_destructor.
17498 (team_destructor): New function.
17499 (new_team): Removed.
17500 (gomp_new_team): New function.
17501 (free_team): Free gomp_work_share blocks chained through next_alloc,
17502 instead of freeing work_shares and destroying work_share_lock.
17503 (gomp_team_end): Call gomp_fini_work_share. If number of threads
17504 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
17505 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
17506 of gomp_barrier_wait.
17507 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
17508 instead of gomp_barrier_wait. Call gomp_work_share_init_done
17509 if gomp_work_share_start returned true. Don't unlock ws->lock.
17510 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
17511 of gomp_barrier_wait.
17512 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
17513 gomp_work_share_init_done if gomp_work_share_start returned true.
17514 Don't unlock ws->lock.
17515 * work.c: Include stddef.h.
17516 (free_work_share): Use work_share_list_free_lock instead
17517 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
17518 Call gomp_fini_work_share and then either free ws if orphaned, or
17519 put it into work_share_list_free list of the current team.
17520 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
17521 functions.
17522 (gomp_work_share_start, gomp_work_share_end,
17523 gomp_work_share_end_nowait): Rewritten.
17524 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
17525 (openmp_version): Set to 200805.
17526 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
17527 omp_sched_guided, omp_sched_auto): New parameters.
17528 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
17529 omp_set_max_active_levels, omp_get_max_active_levels,
17530 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
17531 omp_get_active_level): New interfaces.
17532 * omp_lib.h.in (openmp_version): Set to 200805.
17533 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
17534 omp_sched_guided, omp_sched_auto): New parameters.
17535 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
17536 omp_set_max_active_levels, omp_get_max_active_levels,
17537 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
17538 omp_get_active_level): New externals.
17539 * loop.c: Include limits.h.
17540 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
17541 GFS_AUTO.
17542 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
17543 Likewise. Use gomp_icv.
17544 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
17545 ts.static_trip here.
17546 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
17547 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
17548 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
17549 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
17550 don't unlock ws->lock, otherwise lock it.
17551 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
17552 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
17553 (gomp_parallel_loop_start): Call gomp_new_team instead of
17554 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
17555 Adjust gomp_team_start caller. Pass 0 as second argument to
17556 gomp_resolve_num_threads.
17557 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
17558 If adding ws->chunk_size nthreads + 1 times after end won't
17559 overflow, set ws->mode to 1.
17560 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
17561 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
17562 GOMP_loop_ull_ordered_static_start,
17563 GOMP_loop_ull_ordered_dynamic_start,
17564 GOMP_loop_ull_ordered_guided_start,
17565 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
17566 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
17567 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
17568 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
17569 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
17570 prototypes.
17571 * libgomp.map: Export lock routines also @@OMP_2.0.
17572 (GOMP_loop_ordered_dynamic_first,
17573 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
17574 GOMP_loop_ordered_static_first): Remove.
17575 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
17576 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
17577 GOMP_loop_ull_ordered_dynamic_next,
17578 GOMP_loop_ull_ordered_dynamic_start,
17579 GOMP_loop_ull_ordered_guided_next,
17580 GOMP_loop_ull_ordered_guided_start,
17581 GOMP_loop_ull_ordered_runtime_next,
17582 GOMP_loop_ull_ordered_runtime_start,
17583 GOMP_loop_ull_ordered_static_next,
17584 GOMP_loop_ull_ordered_static_start,
17585 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
17586 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
17587 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
17588 (omp_set_schedule, omp_get_schedule,
17589 omp_get_thread_limit, omp_set_max_active_levels,
17590 omp_get_max_active_levels, omp_get_level,
17591 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
17592 omp_set_schedule_, omp_set_schedule_8_,
17593 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
17594 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
17595 omp_get_max_active_levels_, omp_get_level_,
17596 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
17597 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
17598 New exports @@OMP_3.0.
17599 * omp.h.in (omp_sched_t): New type.
17600 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
17601 omp_set_max_active_levels, omp_get_max_active_levels,
17602 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
17603 omp_get_active_level): New prototypes.
17604 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
17605 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
17606 gomp_thread_limit_var, gomp_remaining_threads_count,
17607 gomp_remaining_threads_lock): New variables.
17608 (parse_spincount): New function.
17609 (initialize_env): Call gomp_init_num_threads unconditionally.
17610 Initialize gomp_available_cpus. Call parse_spincount,
17611 initialize gomp_{,throttled_}spin_count_var
17612 depending on presence and value of OMP_WAIT_POLICY and
17613 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
17614 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
17615 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
17616 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
17617 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
17618 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
17619 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
17620 (gomp_global_icv): New.
17621 (parse_schedule): Use it. Parse "auto".
17622 (omp_set_num_threads): Use gomp_icv.
17623 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
17624 Likewise.
17625 (omp_get_max_threads): Move from parallel.c.
17626 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
17627 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
17628 add ialias.
17629 (parse_stacksize, parse_wait_policy): New functions.
17630 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
17631 both wrappers for compatibility and new locks.
17632 (omp_set_schedule, omp_get_schedule,
17633 omp_get_thread_limit, omp_set_max_active_levels,
17634 omp_get_max_active_levels, omp_get_level,
17635 omp_get_ancestor_thread_num, omp_get_team_size,
17636 omp_get_active_level): New ialias_redirect.
17637 (omp_set_schedule_, omp_set_schedule_8_,
17638 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
17639 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
17640 omp_get_max_active_levels_, omp_get_level_,
17641 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
17642 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
17643 New functions.
17644 * parallel.c: Include limits.h.
17645 (gomp_resolve_num_threads): Add count argument. Rewritten.
17646 (GOMP_parallel_start): Call gomp_new_team and pass that as last
17647 argument to gomp_team_start. Pass 0 as second argument to
17648 gomp_resolve_num_threads.
17649 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
17650 if gomp_thread_limit_var != ULONG_MAX.
17651 (omp_in_parallel): Implement using ts.active_level.
17652 (omp_get_max_threads): Move to env.c.
17653 (omp_get_level, omp_get_ancestor_thread_num,
17654 omp_get_team_size, omp_get_active_level): New functions,
17655 add ialias.
17656 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
17657 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
17658 gomp_iter_dynamic_next instead of the _locked variant and don't take
17659 lock around it, otherwise acquire it before calling
17660 gomp_iter_dynamic_next_locked.
17661 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
17662 gomp_iter_dynamic_next instead of the _locked variant and don't take
17663 lock around it.
17664 (GOMP_parallel_sections_start): Call gomp_new_team instead of
17665 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
17666 Adjust gomp_team_start caller. Pass count as second argument to
17667 gomp_resolve_num_threads, don't adjust num_threads after the call.
17668 Use gomp_icv.
17669 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
17670 ws->chunk_size by incr.
17671 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
17672 code.
17673 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
17674 types.
17675 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
17676 (omp_check_defines): Check even the compat defines.
17677 * config/linux/ptrlock.c: New file.
17678 * config/linux/ptrlock.h: New file.
17679 * config/linux/wait.h: New file.
17680 * config/posix/ptrlock.c: New file.
17681 * config/posix/ptrlock.h: New file.
17682 * config/linux/bar.h (gomp_team_barrier_wait,
17683 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
17684 (gomp_team_barrier_set_task_pending,
17685 gomp_team_barrier_clear_task_pending,
17686 gomp_team_barrier_set_waiting_for_tasks,
17687 gomp_team_barrier_waiting_for_tasks,
17688 gomp_team_barrier_done): New inlines.
17689 (gomp_barrier_t): Rewritten.
17690 (gomp_barrier_state_t): New typedef.
17691 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
17692 gomp_barrier_wait_start): Rewritten.
17693 (gomp_barrier_wait_end): Change second argument to
17694 gomp_barrier_state_t.
17695 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
17696 inlines.
17697 * config/linux/bar.c: Include wait.h instead of libgomp.h and
17698 futex.h.
17699 (gomp_barrier_wait_end): Rewritten.
17700 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
17701 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
17702 * config/posix/bar.h (gomp_barrier_t): Add generation field.
17703 (gomp_barrier_state_t): New typedef.
17704 (gomp_team_barrier_wait,
17705 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
17706 (gomp_barrier_wait_start): Or all but low 2 bits from generation
17707 into the return value. Return gomp_barrier_state_t.
17708 (gomp_team_barrier_set_task_pending,
17709 gomp_team_barrier_clear_task_pending,
17710 gomp_team_barrier_set_waiting_for_tasks,
17711 gomp_team_barrier_waiting_for_tasks,
17712 gomp_team_barrier_done): New inlines.
17713 (gomp_barrier_wait_end): Change second argument to
17714 gomp_barrier_state_t.
17715 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
17716 inlines.
17717 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
17718 (gomp_barrier_wait_end): Change second argument to
17719 gomp_barrier_state_t.
17720 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
17721 gomp_team_barrier_wake): New functions.
17722 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
17723 futex.h.
17724 (gomp_futex_wake, gomp_futex_wait): New variables.
17725 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
17726 * config/linux/lock.c: Rewrite to make locks task owned,
17727 for backwards compatibility provide the old entrypoints
17728 if symbol versioning. Include wait.h instead of libgomp.h and
17729 futex.h.
17730 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
17731 * config/posix95/lock.c: Rewrite to make locks task owned,
17732 for backwards compatibility provide the old entrypoints
17733 if symbol versioning.
17734 * config/posix/lock.c: Rewrite to make locks task owned,
17735 for backwards compatibility provide the old entrypoints
17736 if symbol versioning.
17737 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
17738 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
17739 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
17740 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
17741 (sys_futex0): Return error code.
17742 (futex_wake, futex_wait): If ENOSYS was returned, clear
17743 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
17744 (cpu_relax, atomic_write_barrier): New static inlines.
17745 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
17746 (futex_wake, futex_wait): If ENOSYS was returned, clear
17747 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
17748 (cpu_relax, atomic_write_barrier): New static inlines.
17749 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
17750 (sys_futex0): Return error code.
17751 (futex_wake, futex_wait): If ENOSYS was returned, clear
17752 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
17753 (cpu_relax, atomic_write_barrier): New static inlines.
17754 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
17755 (sys_futex0): Return error code.
17756 (futex_wake, futex_wait): If ENOSYS was returned, clear
17757 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
17758 (cpu_relax, atomic_write_barrier): New static inlines.
17759 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
17760 (sys_futex0): Return error code.
17761 (futex_wake, futex_wait): If ENOSYS was returned, clear
17762 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
17763 (cpu_relax, atomic_write_barrier): New static inlines.
17764 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
17765 (sys_futex0): Return error code.
17766 (futex_wake, futex_wait): If ENOSYS was returned, clear
17767 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
17768 (cpu_relax, atomic_write_barrier): New static inlines.
17769 * config/linux/sem.c: Include wait.h instead of libgomp.h and
17770 futex.h.
17771 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
17772 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
17773 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
17774 types.
17775 (omp_nest_lock_t): Change owner into void *, add lock field.
17776 * config/posix95/omp-lock.h: Include semaphore.h.
17777 (omp_lock_25_t, omp_nest_lock_25_t): New types.
17778 (omp_lock_t): Use sem_t instead of mutex if semaphores
17779 aren't broken.
17780 (omp_nest_lock_t): Likewise. Change owner to void *.
17781 * config/posix/omp-lock.h: Include semaphore.h.
17782 (omp_lock_25_t, omp_nest_lock_25_t): New types.
17783 (omp_lock_t): Use sem_t instead of mutex if semaphores
17784 aren't broken.
17785 (omp_nest_lock_t): Likewise. Add owner field.
17786
17787 2008-06-06 Jakub Jelinek <jakub@redhat.com>
17788
17789 * testsuite/libgomp.c/collapse-1.c: New test.
17790 * testsuite/libgomp.c/collapse-2.c: New test.
17791 * testsuite/libgomp.c/collapse-3.c: New test.
17792 * testsuite/libgomp.c/icv-1.c: New test.
17793 * testsuite/libgomp.c/icv-2.c: New test.
17794 * testsuite/libgomp.c/lib-2.c: New test.
17795 * testsuite/libgomp.c/lock-1.c: New test.
17796 * testsuite/libgomp.c/lock-2.c: New test.
17797 * testsuite/libgomp.c/lock-3.c: New test.
17798 * testsuite/libgomp.c/loop-4.c: New test.
17799 * testsuite/libgomp.c/loop-5.c: New test.
17800 * testsuite/libgomp.c/loop-6.c: New test.
17801 * testsuite/libgomp.c/loop-7.c: New test.
17802 * testsuite/libgomp.c/loop-8.c: New test.
17803 * testsuite/libgomp.c/loop-9.c: New test.
17804 * testsuite/libgomp.c/nested-3.c: New test.
17805 * testsuite/libgomp.c/nestedfn-6.c: New test.
17806 * testsuite/libgomp.c/sort-1.c: New test.
17807 * testsuite/libgomp.c/task-1.c: New test.
17808 * testsuite/libgomp.c/task-2.c: New test.
17809 * testsuite/libgomp.c/task-3.c: New test.
17810 * testsuite/libgomp.c/task-4.c: New test.
17811 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
17812 to C++ testsuite default compiler options.
17813 * testsuite/libgomp.c++/collapse-1.C: New test.
17814 * testsuite/libgomp.c++/collapse-2.C: New test.
17815 * testsuite/libgomp.c++/ctor-10.C: New test.
17816 * testsuite/libgomp.c++/for-1.C: New test.
17817 * testsuite/libgomp.c++/for-2.C: New test.
17818 * testsuite/libgomp.c++/for-3.C: New test.
17819 * testsuite/libgomp.c++/for-4.C: New test.
17820 * testsuite/libgomp.c++/for-5.C: New test.
17821 * testsuite/libgomp.c++/loop-8.C: New test.
17822 * testsuite/libgomp.c++/loop-9.C: New test.
17823 * testsuite/libgomp.c++/loop-10.C: New test.
17824 * testsuite/libgomp.c++/task-1.C: New test.
17825 * testsuite/libgomp.c++/task-2.C: New test.
17826 * testsuite/libgomp.c++/task-3.C: New test.
17827 * testsuite/libgomp.c++/task-4.C: New test.
17828 * testsuite/libgomp.c++/task-5.C: New test.
17829 * testsuite/libgomp.c++/task-6.C: New test.
17830 * testsuite/libgomp.fortran/allocatable1.f90: New test.
17831 * testsuite/libgomp.fortran/allocatable2.f90: New test.
17832 * testsuite/libgomp.fortran/allocatable3.f90: New test.
17833 * testsuite/libgomp.fortran/allocatable4.f90: New test.
17834 * testsuite/libgomp.fortran/collapse1.f90: New test.
17835 * testsuite/libgomp.fortran/collapse2.f90: New test.
17836 * testsuite/libgomp.fortran/collapse3.f90: New test.
17837 * testsuite/libgomp.fortran/collapse4.f90: New test.
17838 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
17839 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
17840 * testsuite/libgomp.fortran/lib4.f90: New test.
17841 * testsuite/libgomp.fortran/lock-1.f90: New test.
17842 * testsuite/libgomp.fortran/lock-2.f90: New test.
17843 * testsuite/libgomp.fortran/nested1.f90: New test.
17844 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
17845 * testsuite/libgomp.fortran/strassen.f90: New test.
17846 * testsuite/libgomp.fortran/tabs1.f90: New test.
17847 * testsuite/libgomp.fortran/tabs2.f: New test.
17848 * testsuite/libgomp.fortran/task1.f90: New test.
17849 * testsuite/libgomp.fortran/task2.f90: New test.
17850 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
17851 * testsuite/libgomp.fortran/vla5.f90: Likewise.
17852 * testsuite/libgomp.c/pr26943-2.c: Likewise.
17853 * testsuite/libgomp.c/pr26943-3.c: Likewise.
17854 * testsuite/libgomp.c/pr26943-4.c: Likewise.
17855
17856 2008-05-23 Jakub Jelinek <jakub@redhat.com>
17857
17858 PR c++/36308
17859 * testsuite/libgomp.c++/ctor-11.C: New test.
17860 * testsuite/libgomp.c++/ctor-12.C: New test.
17861
17862 2008-05-15 Janis Johnson <janis187@us.ibm.com>
17863
17864 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
17865
17866 2008-05-07 Jakub Jelinek <jakub@redhat.com>
17867
17868 PR middle-end/36106
17869 * testsuite/libgomp.c/atomic-5.c: New test.
17870 * testsuite/libgomp.c/atomic-6.c: New test.
17871 * testsuite/libgomp.c/autopar-1.c: New test.
17872
17873 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17874
17875 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
17876 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
17877 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
17878 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
17879 * configure: Regenerate.
17880 * Makefile.in, testsuite/Makefile.in: Likewise.
17881
17882 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
17883
17884 PR bootstrap/35457
17885 * aclocal.m4: Regenerate.
17886 * configure: Regenerate.
17887
17888 2008-03-18 Jakub Jelinek <jakub@redhat.com>
17889
17890 PR middle-end/35611
17891 * testsuite/libgomp.c/atomic-4.c: New test.
17892
17893 PR libgomp/35625
17894 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
17895 (gomp_iter_guided_next): Likewise.
17896 * testsuite/libgomp.c/pr35625.c: New test.
17897
17898 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17899
17900 * aclocal.m4: Regenerate.
17901 * configure: Likewise.
17902 * Makefile.in: Likewise.
17903 * testsuite/Makefile.in: Likewise.
17904
17905 2008-03-13 Jakub Jelinek <jakub@redhat.com>
17906
17907 PR middle-end/35185
17908 * testsuite/libgomp.c++/pr35185.C: New test.
17909
17910 2008-03-12 Jakub Jelinek <jakub@redhat.com>
17911
17912 PR middle-end/35549
17913 * testsuite/libgomp.c/pr35549.c: New test.
17914
17915 2008-03-06 Jakub Jelinek <jakub@redhat.com>
17916
17917 * testsuite/libgomp.c/atomic-3.c: New test.
17918
17919 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17920
17921 PR fortran/33197
17922 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
17923 .F08 file suffixes.
17924
17925 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
17926
17927 PR libgomp/33131
17928 * configure.ac: Add ACX_HEADER_STRING.
17929 * env.c: Include strings.h.
17930 * aclocal.m4: Regenerate.
17931 * config.h.in: Regenerate.
17932 * configure: Regenerate.
17933 * Makefile.in: Regenerate.
17934 * testsuite/Makefile.in: Regenerate.
17935
17936 2008-02-15 Jakub Jelinek <jakub@redhat.com>
17937
17938 PR middle-end/35196
17939 * testsuite/libgomp.c/pr35196.c: New test.
17940
17941 PR middle-end/35130
17942 * testsuite/libgomp.fortran/pr35130.f90: New test.
17943 * testsuite/libgomp.c/pr35130.c: New test.
17944
17945 2008-01-25 Jakub Jelinek <jakub@redhat.com>
17946
17947 PR middle-end/33880
17948 * testsuite/libgomp.c/pr33880.c: New test.
17949 * testsuite/libgomp.fortran/pr33880.f90: New test.
17950
17951 2008-01-24 David Edelsohn <edelsohn@gnu.org>
17952
17953 * configure: Regenerate.
17954
17955 2008-01-08 Jakub Jelinek <jakub@redhat.com>
17956
17957 * configure.ac: Move futex checking into ../config/futex.m4.
17958 * configure: Rebuilt.
17959 * aclocal.m4: Rebuilt.
17960 * Makefile.in: Rebuilt.
17961
17962 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
17963 2007-10-15 ../config/tls.m4 change.
17964
17965 2007-12-19 Jakub Jelinek <jakub@redhat.com>
17966
17967 PR c++/34513
17968 * testsuite/libgomp.c/pr34513.c: New test.
17969 * testsuite/libgomp.c++/pr34513.C: New test.
17970
17971 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
17972
17973 PR target/32765
17974 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
17975
17976 2007-12-04 Jakub Jelinek <jakub@redhat.com>
17977
17978 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
17979
17980 2007-12-03 Jakub Jelinek <jakub@redhat.com>
17981
17982 * testsuite/libgomp.c/private-1.c: New test.
17983
17984 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
17985 Paolo Bonzini <bonzini@gnu.org>
17986
17987 * Makefile.am: Use space as vpath separator. Use 'vpath %'
17988 instead of 'VPATH ='.
17989 * Makefile.in: Regenerate.
17990
17991 2007-11-23 Matthias Klose <doko@ubuntu.com>
17992
17993 * configure.ac: Adjust makeinfo version check.
17994 * configure: Regenerate.
17995
17996 2007-11-10 Jakub Jelinek <jakub@redhat.com>
17997
17998 PR fortran/34020
17999 * testsuite/libgomp.fortran/pr34020.f90: New test.
18000
18001 2007-11-06 Jakub Jelinek <jakub@redhat.com>
18002
18003 PR c++/33894
18004 * testsuite/libgomp.c++/atomic-1.C: New test.
18005
18006 2007-10-25 Jakub Jelinek <jakub@redhat.com>
18007
18008 PR libgomp/33275
18009 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
18010 Make x and y integers rather than (implicit) reals. Add private (j)
18011 clause to the last omp parallel.
18012
18013 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
18014
18015 * configure: Regenerate following changes to ../config/tls.m4.
18016
18017 2007-09-28 Jakub Jelinek <jakub@redhat.com>
18018
18019 * testsuite/libgomp.fortran/stack.f90: New test.
18020
18021 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
18022
18023 * config/mingw32/proc.c: New file.
18024
18025 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
18026
18027 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
18028 (main): Use __get_cpuid to get i386 target fetaures.
18029 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
18030 (main): Use __get_cpuid to get x86_64 target fetaures.
18031
18032 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
18033
18034 PR target/32765
18035 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
18036 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
18037
18038 2007-07-12 Jakub Jelinek <jakub@redhat.com>
18039
18040 PR fortran/32550
18041 * testsuite/libgomp.fortran/pr32550.f90: New test.
18042 * testsuite/libgomp.fortran/crayptr2.f90: New test.
18043
18044 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
18045
18046 * aclocal.m4: Regenerated.
18047
18048 2007-07-05 Tobias Burnus <burnus@net-b.de>
18049
18050 PR fortran/32359
18051 * testsuite/libgomp.fortran/pr32359.f90: New.
18052
18053 2007-07-02 Jakub Jelinek <jakub@redhat.com>
18054
18055 PR libgomp/32468
18056 * sections.c (GOMP_parallel_sections_start): Only decrease
18057 number of threads to COUNT if dyn_var is true.
18058 * testsuite/libgomp.c/pr32468.c: New test.
18059
18060 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18061
18062 PR libgomp/26308
18063 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
18064
18065 2007-06-21 Jakub Jelinek <jakub@redhat.com>
18066
18067 PR middle-end/32362
18068 * testsuite/libgomp.c/pr32362-1.c: New test.
18069 * testsuite/libgomp.c/pr32362-2.c: New test.
18070 * testsuite/libgomp.c/pr32362-3.c: New test.
18071
18072 2007-06-07 Jakub Jelinek <jakub@redhat.com>
18073
18074 * team.c (gomp_team_start): Fix setting up thread_attr
18075 stack size.
18076
18077 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
18078
18079 * configure: Regenerate.
18080
18081 2007-05-23 Steve Ellcey <sje@cup.hp.com>
18082
18083 * Makefile.in: Regenerate.
18084 * configure: Regenerate.
18085 * aclocal.m4: Regenerate.
18086 * testsuite/Makefile.in: Regenerate.
18087
18088 2007-05-04 Jakub Jelinek <jakub@redhat.com>
18089
18090 * config/linux/proc.c: New file.
18091
18092 PR libgomp/28482
18093 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
18094
18095 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
18096
18097 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
18098
18099 2007-04-16 Matthias Klose <doko@debian.org>
18100
18101 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
18102 flags if not building with -m64.
18103 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
18104 flag for i?86-*-* targets, if current target matches -m64.
18105
18106 2007-04-14 Steve Ellcey <sje@cup.hp.com>
18107
18108 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
18109 * Makefile.in: Regenerate.
18110
18111 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18112
18113 PR testsuite/31369
18114 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
18115 ld_library_path.
18116 * testsuite/libgomp.fortran/fortran.exp: Likewise.
18117
18118 2007-04-04 Jakub Jelinek <jakub@redhat.com>
18119
18120 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
18121 decls.
18122 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
18123 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
18124 (parse_affinity): New function.
18125 (initialize_env): Call it and gomp_init_affinity.
18126 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
18127 create new pthread_attr_t and call gomp_init_thread_affinity
18128 on it for each thread before passing the attribute to pthread_create.
18129 * config/linux/affinity.c: New file.
18130 * config/posix/affinity.c: New file.
18131 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
18132 * configure: Rebuilt.
18133 * config.h.in: Rebuilt.
18134 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
18135 * Makefile.in: Rebuilt.
18136
18137 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
18138
18139 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
18140 *-*-darwin*.
18141 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
18142 and use it if found.
18143
18144 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
18145
18146 * testsuite/config/default.exp: New file.
18147 * testsuite/lib/libgomp.exp: New file.
18148 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
18149 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
18150 load_lib *, load_gcc_lib *): Move to libgomp.exp.
18151 (libgomp_load): Remove.
18152 * testsuite/lib/libgomp.exp (libgomp_init): Compute
18153 always_ld_library_path, not ld_library_path. Set additional_flags
18154 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
18155 (target_compile): Do not call libgomp_init. Append lang_library_path
18156 and lang_link_flags to options.
18157 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
18158 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
18159 here.
18160 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
18161 always_ld_library_path. Set LD_LIBRARY_PATH here.
18162 * testsuite/libgomp.fortran/fortran.exp: Ditto.
18163 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
18164 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
18165 CX8 flag.
18166 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
18167 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
18168 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
18169 * testsuite/libgomp.c/pr29947-1.c: Ditto.
18170 * testsuite/libgomp.c/atomic-10.c: Ditto.
18171
18172 2007-03-21 Jakub Jelinek <jakub@redhat.com>
18173
18174 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
18175 dg-final cleanup-modules line.
18176 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
18177 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
18178 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
18179 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
18180 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
18181 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
18182 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
18183
18184 2007-03-18 Andreas Schwab <schwab@suse.de>
18185
18186 * acinclude.m4: Adjust regular expression for ld version
18187 extraction.
18188 * configure: Regenerate.
18189
18190 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
18191
18192 * Makefile.am: Add install-pdf target as copied from
18193 automake v1.10 rules.
18194 * Makefile.in: Regenerate
18195
18196 2007-02-07 Jakub Jelinek <jakub@redhat.com>
18197
18198 PR libgomp/28486
18199 * configure: Regenerate.
18200
18201 PR c++/30703
18202 * testsuite/libgomp.c++/pr30703.C: New test.
18203
18204 2007-02-02 Jakub Jelinek <jakub@redhat.com>
18205
18206 Revert:
18207 2006-07-05 Eric Christopher <echristo@apple.com>
18208 * configure.ac: Depend addition of -pthread on host OS.
18209 * configure: Regenerate.
18210
18211 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18212
18213 * libgomp.texi: Fix spacing after abbreviations.
18214
18215 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
18216
18217 PR libgomp/30546
18218 * configure.ac: Add check for makeinfo
18219 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
18220 if an appropriate version of makeinfo is found.
18221 * aclocal.m4: Regenerated.
18222 * configure: Regenerated.
18223 * Makefile.in: Regenerated.
18224 * testsuite/Makefile.in: Regenerated.
18225
18226 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
18227
18228 PR libgomp/30540
18229 * libgomp.texi: More about implementation-dependent settings.
18230
18231 2007-01-26 Tobias Burnus <burnus@net-b.de>
18232
18233 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
18234
18235 2007-01-24 Jakub Jelinek <jakub@redhat.com>
18236
18237 PR middle-end/30494
18238 * testsuite/libgomp.c/pr30494.c: New test.
18239
18240 2007-01-15 Tom Tromey <tromey@redhat.com>
18241
18242 * configure: Rebuilt.
18243 * configure.ac: Fixed comment.
18244
18245 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
18246
18247 * libgomp.texi: Document implementation specific default values of
18248 environment variables.
18249
18250 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
18251
18252 PR libgomp/28209
18253 * libgomp.texi: New file.
18254 * configure.ac: Add --enable-generated-files-in-srcdir option.
18255 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
18256 files to srcdir.
18257 * Makefile.in: Regenerated.
18258 * config.h.in: Regenerated.
18259 * testsuite/Makefile.in: Regenerated.
18260 * NOTES: Removed.
18261
18262 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
18263
18264 PR libgomp/29949
18265 * env.c (omp_set_num_threads): Set illegal thread count to 1.
18266
18267 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
18268
18269 * configure: Regenerate.
18270
18271 2006-12-04 Jakub Jelinek <jakub@redhat.com>
18272
18273 PR libgomp/29947
18274 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
18275 start if there shouldn't be any loop iterations.
18276 (gomp_loop_ordered_static_start): Remove start == end test.
18277 * testsuite/libgomp.c/pr29947-1.c: New test.
18278 * testsuite/libgomp.c/pr29947-2.c: New test.
18279
18280 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
18281
18282 * configure.tgt: Force initial-exec TLS model on Linux only.
18283
18284 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
18285
18286 * configure: Regenerated.
18287
18288 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
18289
18290 * env.c (parse_schedule): Reject out of range values.
18291 (parse_unsigned_long): Reject out of range, negative or zero values.
18292
18293 2006-10-29 Jakub Jelinek <jakub@redhat.com>
18294
18295 PR fortran/29629
18296 * testsuite/libgomp.fortran/pr29629.f90: New test.
18297
18298 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
18299
18300 PR libgomp/29494
18301 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
18302 * config/posix95: New directory.
18303 * config/posix95/omp-lock.h: New file.
18304 * config/posix95/lock.c: Likewise.
18305
18306 2006-10-14 Geoffrey Keating <geoffk@apple.com>
18307
18308 * aclocal.m4: Regenerate.
18309 * configure: Regenerate.
18310
18311 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
18312
18313 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
18314 '<' to '<='.
18315
18316 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
18317
18318 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
18319 test.
18320 * configure: Regenerate.
18321 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
18322
18323 2006-09-26 Jakub Jelinek <jakub@redhat.com>
18324
18325 PR middle-end/25261
18326 PR middle-end/28790
18327 * testsuite/libgomp.c/nestedfn-4.c: New test.
18328 * testsuite/libgomp.c/nestedfn-5.c: New test.
18329 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
18330
18331 PR fortran/29097
18332 * testsuite/libgomp.fortran/condinc1.f: New test.
18333 * testsuite/libgomp.fortran/condinc2.f: New test.
18334 * testsuite/libgomp.fortran/condinc3.f90: New test.
18335 * testsuite/libgomp.fortran/condinc4.f90: New test.
18336 * testsuite/libgomp.fortran/condinc1.inc: New file.
18337
18338 2006-09-18 Tom Tromey <tromey@redhat.com>
18339
18340 * configure: Rebuilt.
18341
18342 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
18343
18344 PR c/28768
18345 PR preprocessor/14634
18346 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
18347 to AC_DEFINE.
18348 * configure: Regenerate.
18349
18350 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
18351
18352 * testsuite/libgomp.fortran/reduction3.f90: Change
18353 -2147483648 to -huge(i)-1 to avoid overflow.
18354 * testsuite/libgomp.fortran/reduction4.f90: Change
18355 Z'ffffffff' to not(0) to avoid overflow.
18356
18357 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
18358
18359 PR libgomp/25938
18360 * Makefile.am (libsubincludedir): New.
18361 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
18362 * Makefile.in: Regenerate.
18363
18364 2006-08-17 Jakub Jelinek <jakub@redhat.com>
18365
18366 PR libgomp/28725
18367 * env.c: Include ctype.h.
18368 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
18369 leading and/or trailing whitespace and compare strings case
18370 insensitively.
18371
18372 2006-07-16 Jakub Jelinek <jakub@redhat.com>
18373
18374 PR fortran/28390
18375 * testsuite/libgomp.fortran/pr28390.f: New test.
18376
18377 2006-07-05 Eric Christopher <echristo@apple.com>
18378
18379 * configure.ac: Depend addition of -pthread on host OS.
18380 * configure: Regenerate.
18381
18382 2006-06-21 Jakub Jelinek <jakub@redhat.com>
18383
18384 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
18385 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
18386 defined.
18387
18388 2006-06-20 Jakub Jelinek <jakub@redhat.com>
18389
18390 PR libgomp/26175
18391 PR libgomp/26477
18392 * configure.ac: If neither --enable-linux-futex nor
18393 --disable-linux-futex is passed, determine the default by checking
18394 for compiling and/or running against NPTL. With --enable-linux-futex,
18395 check if SYS_gettid and SYS_futex are defined.
18396 * configure: Rebuilt.
18397
18398 2006-06-14 Richard Henderson <rth@redhat.com>
18399
18400 PR libgomp/28008
18401 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
18402 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
18403
18404 2006-06-09 Richard Henderson <rth@redhat.com>
18405
18406 * env.c (gomp_nthreads_var): Change to unsigned long.
18407 (gomp_run_sched_chunk): Likewise.
18408 (parse_unsigned_long): Rename from parse_num_threads and generalize.
18409 (initialize_env): Initialize gomp_thread_attr.
18410 * libgomp.h (gomp_nthreads_var): Update decl.
18411 (gomp_run_sched_chunk): Likewise.
18412 (gomp_thread_attr): Declare.
18413 * team.c (gomp_thread_attr): Export.
18414 (initialize_team): Don't initialize it.
18415
18416 2006-06-09 Jakub Jelinek <jakub@redhat.com>
18417
18418 PR fortran/27916
18419 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
18420 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
18421
18422 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
18423
18424 * config/mingw32/time.c: New file.
18425 * configure.tgt: Use it.
18426
18427 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
18428
18429 * Makefile.am: Add install-html target. Add install-html to .PHONY
18430 * Makefile.in: Regenerate.
18431
18432 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18433
18434 PR libgomp/27612
18435 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
18436 * testsuite/libgomp.c/critical-1.c: Likewise.
18437 * testsuite/libgomp.c/loop-1.c: Likewise.
18438 * testsuite/libgomp.c/loop-2.c: Likewise.
18439 * testsuite/libgomp.c/single-1.c: Likewise.
18440 * testsuite/libgomp.c/ordered-1.c: Likewise.
18441 * testsuite/libgomp.c/ordered-2.c: Likewise.
18442
18443 2006-05-15 Jakub Jelinek <jakub@redhat.com>
18444
18445 PR middle-end/27416
18446 * libgomp.fortran/pr27416-1.f90: New test.
18447
18448 2006-05-03 Jakub Jelinek <jakub@redhat.com>
18449
18450 PR fortran/27395
18451 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
18452 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
18453
18454 2006-05-02 Jakub Jelinek <jakub@redhat.com>
18455
18456 PR c++/26943
18457 * testsuite/libgomp.c/pr26943-1.c: New test.
18458 * testsuite/libgomp.c/pr26943-2.c: New test.
18459 * testsuite/libgomp.c/pr26943-3.c: New test.
18460 * testsuite/libgomp.c/pr26943-4.c: New test.
18461 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
18462 * testsuite/libgomp.c++/pr26943.C: New test.
18463
18464 2006-05-02 Jakub Jelinek <jakub@redhat.com>
18465
18466 PR middle-end/27337
18467 * testsuite/libgomp.c++/pr27337.C: New test.
18468
18469 2006-04-26 Jakub Jelinek <jakub@redhat.com>
18470
18471 PR c/26171
18472 * testsuite/libgomp.c/pr26171.c: New test.
18473
18474 2006-04-25 Richard Henderson <rth@redhat.com>
18475
18476 PR libgomp/25865
18477 * configure.ac: Use GCC_CHECK_TLS.
18478 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
18479 * Makefile.in, aclocal.m4, configure: Regenerate.
18480
18481 2006-04-10 Matthias Klose <doko@debian.org>
18482
18483 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
18484 directory names containing underscores.
18485
18486 2006-03-21 Jakub Jelinek <jakub@redhat.com>
18487
18488 PR c++/26691
18489 * testsuite/libgomp.c++/pr26691.C: New test.
18490
18491 2006-03-13 Jakub Jelinek <jakub@redhat.com>
18492
18493 * testsuite/libgomp.fortran/retval2.f90: New test.
18494
18495 2006-03-09 Diego Novillo <dnovillo@redhat.com>
18496
18497 * testsuite/libgomp.c++: New directory.
18498
18499 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
18500
18501 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
18502 * config/posix/sem.c: Implement the above.
18503
18504 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
18505
18506 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
18507 define HAVE_BROKEN_POSIX_SEMAPHORES.
18508 * configure: Rebuilt.
18509 * config.h.in: Rebuilt.
18510
18511 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
18512
18513 PR bootstrap/26161
18514 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
18515 for the other pthread check.
18516 * configure: Regenerate.
18517 * config.h.in: Regenerate.
18518
18519 2006-02-15 Jakub Jelinek <jakub@redhat.com>
18520
18521 PR libgomp/25938
18522 PR libgomp/25984
18523 * Makefile.am (fincludedir): New variable.
18524 (nodist_include_HEADERS): Remove Fortran files.
18525 (nodist_finclude_HEADERS): New variable.
18526 * Makefile.in: Regenerated.
18527
18528 2006-02-13 Jakub Jelinek <jakub@redhat.com>
18529
18530 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
18531 Remove tests for returning assumed character length arrays.
18532
18533 2006-02-12 Roger Sayle <roger@eyesopen.com>
18534 John David Anglin <dave@hiauly1.hia.nrc.ca>
18535
18536 PR libgomp/25936
18537 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
18538
18539 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
18540
18541 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
18542
18543 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
18544
18545 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
18546 part of LD_LIBRARY_PATH manually.
18547
18548 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
18549
18550 PR libgomp/25852
18551 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
18552 libgomp_init.
18553
18554 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
18555
18556 PR libgomp/25884
18557 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
18558 * configure.ac (PERL): Don't set.
18559 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
18560 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
18561 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
18562 * omp.h.in: Wrap the new configure substitutions with @ characters.
18563 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
18564 * aclocal.m4, configure, Makefile.in: Regenerate.
18565 * mkomp_h.pl: Delete.
18566
18567 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
18568
18569 PR libgomp/25259
18570 * configure.ac: Use GCC_HEADER_STDINT.
18571 * libgomp.h: Include gstdint.h.
18572 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
18573 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
18574
18575 2006-01-24 Richard Henderson <rth@redhat.com>
18576
18577 PR libgomp/25942
18578 * configure.ac: Add AM_MAINTAINER_MODE.
18579 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
18580
18581 2006-01-24 Diego Novillo <dnovillo@redhat.com>
18582
18583 * Makefile.in: Regenerate.
18584 * testsuite/Makefile.in: Regenerate.
18585 * aclocal.m4: Regenerate.
18586
18587 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
18588
18589 * config/posix/proc.c: Conditional include of sys/loadavg.h for
18590 Solaris.
18591 * configure.ac: Add check for loadavg.h.
18592 (link_gomp): Adjust comment.
18593 * configure: Regenerate.
18594 * config.h.in: Regenerate.
18595
18596 2006-01-21 Steve Ellcey <sje@cup.hp.com>
18597
18598 PR libgomp/25877
18599 * configure.ac: Remove check for alloca.h.
18600 * configure: Regenerate.
18601 * config.h.in: Regenerate.
18602 * libgomp.h: define gomp_alloca to be __builtin_alloca.
18603 * team.c: Remove use of alloca.h.
18604 Call gomp_alloca instead of alloca.
18605
18606 2006-01-20 Steve Ellcey <sje@cup.hp.com>
18607
18608 PR libgomp/25877
18609 * team.c: Add include of alloca.h.
18610 * configure.ac: Add check for alloca.h.
18611 * configure: Regenerate.
18612 * config.h.in: Regenerate.
18613
18614 2006-01-17 Jakub Jelinek <jakub@redhat.com>
18615
18616 PR fortran/25219
18617 * testsuite/libgomp.fortran/pr25219.f90: New test.
18618
18619 2005-12-05 Uros Bizjak <uros@kss-loka.si>
18620
18621 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
18622 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
18623 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
18624 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
18625 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
18626 testsuite/libgomp.fortran/threadprivate1.f90,
18627 testsuite/libgomp.fortran/threadprivate2.f90,
18628 testsuite/libgomp.fortran/threadprivate3.f90,
18629 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
18630 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
18631 testsuite/libgomp.fortran/omp_parse3.f90: Change required
18632 effective-target to TLS runtime.
18633
18634 * testsuite/libgomp.fortran/pr25162.f: Require
18635 effective-target TLS runtime.
18636
18637 2005-12-01 Jakub Jelinek <jakub@redhat.com>
18638
18639 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
18640 * testsuite/libgomp.c/nestedfn-3.c: New test.
18641
18642 2005-11-30 Jakub Jelinek <jakub@redhat.com>
18643
18644 PR fortran/25162
18645 * testsuite/libgomp.fortran/pr25162.f: New test.
18646
18647 2005-11-28 Jakub Jelinek <jakub@redhat.com>
18648
18649 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
18650 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
18651
18652 2005-11-25 Jakub Jelinek <jakub@redhat.com>
18653
18654 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
18655 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
18656 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
18657 single.c, team.c, work.c, config/linux/alpha/futex.h,
18658 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
18659 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
18660 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
18661 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
18662 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
18663 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
18664 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
18665 FSF address.
18666
18667 2005-11-18 Jakub Jelinek <jakub@redhat.com>
18668
18669 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
18670 to nodist_noinst_HEADERS.
18671 * Makefile.in: Rebuilt.
18672
18673 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
18674 add integer count field.
18675 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
18676 omp_nest_lock_t type change.
18677 (omp_init_nest_lock): Likewise. Initialize count to 0.
18678 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
18679 Increment count.
18680 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
18681 Decrement count.
18682 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
18683 Increment count if successful and return the new nesting level.
18684 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
18685 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
18686 * testsuite/libgomp.c/lib-1.c: New test.
18687 * testsuite/libgomp.fortran/lib1.f90: New test.
18688 * testsuite/libgomp.fortran/lib2.f: New test.
18689 * testsuite/libgomp.fortran/lib3.f: New test.
18690
18691 2005-11-17 Richard Henderson <rth@redhat.com>
18692
18693 PR 24845
18694 * Makefile.am (nodist_toolexeclib_HEADERS): New.
18695 * configure.ac (link_gomp): New. Substitute it.
18696 (AC_CONFIG_FILES): Add libgomp.spec.
18697 * libgomp.spec.in: New file.
18698 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
18699 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
18700
18701 2005-11-18 Jakub Jelinek <jakub@redhat.com>
18702
18703 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
18704 reduction(-:var) behaving the same as reduction(+:var).
18705 * testsuite/libgomp.c/reduction-4.c: New test.
18706
18707 2005-11-15 Uros Bizjak <uros@kss-loka.si>
18708
18709 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
18710 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
18711 testsuite/libgomp.c/copyin-3.c,
18712 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
18713 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
18714 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
18715 testsuite/libgomp.c++/pr24455.C,
18716 testsuite/libgomp.fortran/threadprivate1.f90,
18717 testsuite/libgomp.fortran/threadprivate2.f90,
18718 testsuite/libgomp.fortran/threadprivate3.f90,
18719 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
18720 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
18721 testsuite/libgomp.fortran/omp_parse3.f90: Require
18722 effective-target TLS.
18723
18724 2005-11-14 Diego Novillo <dnovillo@redhat.com>
18725
18726 * HEADER: Remove.
18727
18728 2005-11-13 Jakub Jelinek <jakub@redhat.com>
18729
18730 PR libgomp/24797
18731 * team.c (initialize_team): Pass NULL rather than free as
18732 pthread_key_create destructor. Initialize thread specific data
18733 pointer in initial thread to a static local variable rather than
18734 malloced memory.
18735
18736 2005-11-11 Uros Bizjak <uros@kss-loka.si>
18737
18738 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
18739 its location to ld_library_path.
18740
18741 2005-11-10 Diego Novillo <dnovillo@redhat.com>
18742
18743 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
18744
18745 2005-11-10 Diego Novillo <dnovillo@redhat.com>
18746
18747 * testsuite/libgomp.c: Rename from libgomp.dg.
18748
18749 2005-11-09 Diego Novillo <dnovillo@redhat.com>
18750
18751 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
18752 threadprivate variable 'i'.
18753
18754 2005-11-09 Jakub Jelinek <jakub@redhat.com>
18755
18756 * config/linux/s390/futex.h: New file.
18757 * configure.tgt: Use it.
18758
18759 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
18760 before the parallel.
18761
18762 2005-11-08 Jakub Jelinek <jakub@redhat.com>
18763
18764 PR c++/24734
18765 * testsuite/libgomp.c++/master-1.C: New test.
18766
18767 2005-11-07 Jakub Jelinek <jakub@redhat.com>
18768
18769 * testsuite/libgomp.dg/copyin-3.c: New test.
18770
18771 2005-11-07 Jakub Jelinek <jakub@redhat.com>
18772
18773 * testsuite/libgomp.fortran/retval1.f90: New test.
18774 * testsuite/libgomp.fortran/vla7.f90: New test.
18775
18776 2005-11-06 Jakub Jelinek <jakub@redhat.com>
18777
18778 * testsuite/libgomp.fortran/vla2.f90: New test.
18779 * testsuite/libgomp.fortran/vla3.f90: New test.
18780 * testsuite/libgomp.fortran/vla4.f90: New test.
18781 * testsuite/libgomp.fortran/vla5.f90: New test.
18782 * testsuite/libgomp.fortran/vla6.f90: New test.
18783
18784 2005-11-01 Jakub Jelinek <jakub@redhat.com>
18785
18786 * config/linux/sparc/futex.h: New file.
18787 * configure.tgt: Use it.
18788 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
18789
18790 * critical.c: Include stdlib.h.
18791 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
18792 ignoring return value.
18793 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
18794 LIBGOMP_CHECK_SYNC_BUILTINS check.
18795 * configure: Rebuilt.
18796
18797 2005-10-31 Jakub Jelinek <jakub@redhat.com>
18798
18799 * testsuite/libgomp.fortran/vla1.f90: New test.
18800
18801 2005-10-31 Richard Henderson <rth@redhat.com>
18802
18803 * testsuite/libgomp.fortran/character2.f90: Fix race condition
18804 setting 's' in different threads.
18805
18806 2005-10-31 Jakub Jelinek <jakub@redhat.com>
18807
18808 * libgomp.h (attribute_hidden, ialias): Define.
18809 * config/posix/proc.c (omp_get_num_procs): Add ialias.
18810 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
18811 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
18812 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
18813 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
18814 omp_test_lock, omp_test_nest_lock): Likewise.
18815 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
18816 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
18817 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
18818 omp_test_lock, omp_test_nest_lock): Likewise.
18819 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
18820 omp_get_dynamic, omp_get_nested): Likewise.
18821 * parallel.c (omp_get_num_threads, omp_get_max_threads,
18822 omp_get_thread_num, omp_in_parallel): Likewise.
18823 * fortran.c (ialias_redirect): Define.
18824 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
18825 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
18826 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
18827 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
18828 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
18829 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
18830 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
18831 omp_get_wtime): Add ialias_redirect.
18832
18833 2005-10-30 Jakub Jelinek <jakub@redhat.com>
18834
18835 * fortran.c: Include stdlib.h.
18836
18837 2005-10-29 Jakub Jelinek <jakub@redhat.com>
18838
18839 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
18840 * Makefile.in: Regenerated.
18841
18842 2005-10-28 Jakub Jelinek <jakub@redhat.com>
18843
18844 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
18845 * libgomp_f.h.in (omp_check_defines): New function.
18846 * env.c: Include libgomp_f.h.
18847 (initialize_env): Call omp_check_defines.
18848
18849 * testsuite/libgomp.dg/copyin-2.c: New test.
18850 * testsuite/libgomp.c++/copyin-2.C: New test.
18851 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
18852
18853 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
18854 * testsuite/libgomp.fortran/sharing2.f90: New test.
18855
18856 * testsuite/libgomp.dg/copyin-1.c: New test.
18857 * testsuite/libgomp.c++/copyin-1.C: New test.
18858
18859 2005-10-26 Jakub Jelinek <jakub@redhat.com>
18860
18861 * testsuite/libgomp.fortran/crayptr1.f90: New test.
18862
18863 * testsuite/libgomp.fortran/workshare1.f90: New test.
18864
18865 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
18866 only test.
18867 * libgomp.fortran/sharing1.f90: New test.
18868
18869 2005-10-24 Jakub Jelinek <jakub@redhat.com>
18870
18871 PR c++/24502
18872 * testsuite/libgomp.c++/loop-7.C: New test.
18873
18874 * testsuite/libgomp.dg/nestedfn-2.c: New test.
18875
18876 * testsuite/libgomp.dg/nestedfn-1.c: New test.
18877 * testsuite/libgomp.fortran/reduction6.f90: New test.
18878 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
18879
18880 2005-10-23 Richard Henderson <rth@redhat.com>
18881
18882 * testsuite/libgomp.c++/ctor-1.C: New.
18883 * testsuite/libgomp.c++/ctor-2.C: New.
18884 * testsuite/libgomp.c++/ctor-3.C: New.
18885 * testsuite/libgomp.c++/ctor-4.C: New.
18886 * testsuite/libgomp.c++/ctor-5.C: New.
18887 * testsuite/libgomp.c++/ctor-6.C: New.
18888 * testsuite/libgomp.c++/ctor-7.C: New.
18889 * testsuite/libgomp.c++/ctor-8.C: New.
18890 * testsuite/libgomp.c++/ctor-9.C: New.
18891
18892 2005-10-21 Diego Novillo <dnovillo@redhat.com>
18893
18894 PR 24455
18895 * testsuite/libgomp.c++/pr24455-1.C: New test.
18896 * testsuite/libgomp.c++/pr24455.C: New test.
18897 * testsuite/libgomp.dg/pr24455-1.c: New test.
18898 * testsuite/libgomp.dg/pr24455.c: New test.
18899
18900 2005-10-20 Richard Henderson <rth@redhat.com>
18901
18902 * testsuite/libgomp.c++/loop-6.C: New.
18903 * testsuite/libgomp.dg/loop-3.c: New.
18904
18905 2005-10-20 Jakub Jelinek <jakub@redhat.com>
18906
18907 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
18908 explicitly private.
18909 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
18910 explicitly shared.
18911
18912 2005-10-19 Diego Novillo <dnovillo@redhat.com>
18913
18914 * testsuite/libgomp.fortran/jacobi.f: New test.
18915
18916 2005-10-19 Richard Henderson <rth@redhat.com>
18917
18918 * configure.tgt (i?86-linux): Default to with_arch instead of
18919 CFLAGS. Add -mtune to match target_cpu.
18920 (x86_64-linux): Tune to i686.
18921
18922 * fortran.c (omp_test_nest_lock_): Fix typo.
18923
18924 2005-10-19 Jakub Jelinek <jakub@redhat.com>
18925
18926 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
18927 gomp_ordered_sync): Do nothing if team->nthreads == 1.
18928 * testsuite/libgomp.dg/ordered-3.c: New test.
18929
18930 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
18931 Remove volatile keyword.
18932
18933 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
18934 in COMMON block to avoid warnings on 64-bit targets.
18935
18936 2005-10-18 Diego Novillo <dnovillo@redhat.com>
18937
18938 * testsuite/libgomp.dg/shared-3.c: New test.
18939
18940 2005-10-18 Jakub Jelinek <jakub@redhat.com>
18941
18942 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
18943 * testsuite/libgomp.fortran/reduction5.f90: New test.
18944
18945 2005-10-18 Jakub Jelinek <jakub@redhat.com>
18946
18947 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
18948 dg-options.
18949 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
18950 flush loop now that __sync_synchronize has proper memory barrier.
18951 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
18952 Add -ffixed-form to dg-options.
18953
18954 2005-10-17 Diego Novillo <dnovillo@redhat.com>
18955
18956 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
18957 from subdirectories.
18958 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
18959 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
18960 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
18961 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
18962 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
18963 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
18964 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
18965 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
18966 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
18967 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
18968 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
18969 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
18970 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
18971 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
18972 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
18973 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
18974 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
18975 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
18976 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
18977 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
18978 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
18979 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
18980 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
18981 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
18982 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
18983
18984 2005-10-17 Jakub Jelinek <jakub@redhat.com>
18985
18986 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
18987 lang_library_path exists. Use find instead of glob to gather tests.
18988 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
18989
18990 2005-10-17 Diego Novillo <dnovillo@redhat.com>
18991
18992 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
18993 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
18994 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
18995 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
18996 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
18997 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
18998 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
18999 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
19000 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
19001 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
19002 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
19003 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
19004 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
19005
19006 2005-10-15 Jakub Jelinek <jakub@redhat.com>
19007
19008 * testsuite/libgomp.dg/vla-1.c: New test.
19009
19010 * testsuite/libgomp.fortran/reference2.f90: New test.
19011
19012 * testsuite/libgomp.fortran/character2.f90: Remove explicit
19013 declaration of omp_get_thread_num.
19014 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
19015 use omp_lib.
19016
19017 * testsuite/libgomp.fortran/reduction1.f90: New test.
19018 * testsuite/libgomp.fortran/reduction2.f90: New test.
19019 * testsuite/libgomp.fortran/reduction3.f90: New test.
19020 * testsuite/libgomp.fortran/reduction4.f90: New test.
19021
19022 2005-10-13 Richard Henderson <rth@redhat.com>
19023
19024 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
19025 * Makefile.in: Regenerate.
19026 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
19027 * libgomp.h: Include bar.h.
19028 (struct gomp_barrier): Remove.
19029 (struct gomp_team): Add barrier. Replace master_barrier with
19030 master_release. Replace threads with ordered_release.
19031 (struct gomp_thread): Replace barrier with release.
19032 * ordered.c (gomp_ordered_first): Update for ordered_release change.
19033 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
19034 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
19035 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
19036 (GOMP_single_copy_end): Likewise.
19037 * team.c (gomp_threads_dock): New.
19038 (gomp_barrier_init, gomp_barrier_destroy): Remove.
19039 (gomp_thread_start): Use gomp_barrier_wait.
19040 (new_team, free_team): Update for gomp_team changes.
19041 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
19042 (gomp_team_end): Use gomp_barrier_wait.
19043 (initialize_team): Update for gomp_thread changes.
19044 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
19045 (gomp_work_share_end_nowait): Use atomic ops when available.
19046 * config/linux/bar.c, config/linux/bar.h: New files.
19047 * config/posix/bar.c, config/posix/bar.h: New files.
19048
19049 2005-10-13 Jakub Jelinek <jakub@redhat.com>
19050
19051 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
19052 * testsuite/libgomp.dg/single-2.c: New test.
19053
19054 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
19055 lang_link_flags): Unset, so that they aren't inherited from previously
19056 sourced *.exp.
19057
19058 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
19059
19060 2005-10-12 Richard Henderson <rth@redhat.com>
19061
19062 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
19063 (libgomp_init): Use lang_test_file, lang_library_path, and
19064 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
19065
19066 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
19067 (lang_test_file, lang_link_flags): New.
19068 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
19069
19070 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
19071 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
19072 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
19073 testsuite/libgomp.c++/parallel-1.C,
19074 testsuite/libgomp.c++/reduction-1.C,
19075 testsuite/libgomp.c++/reduction-2.C,
19076 testsuite/libgomp.c++/reduction-3.C,
19077 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
19078 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
19079 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
19080 New files, largely cribbed from the C testsuite.
19081
19082 2005-10-12 Jakub Jelinek <jakub@redhat.com>
19083
19084 * testsuite/libgomp.fortran/character1.f90: New test.
19085 * testsuite/libgomp.fortran/character2.f90: New test.
19086
19087 * testsuite/libgomp.dg/nested-1.c: New test.
19088 * testsuite/libgomp.dg/nested-2.c: New test.
19089 * testsuite/libgomp.fortran/do1.f90: New test.
19090 * testsuite/libgomp.fortran/do2.f90: New test.
19091
19092 * testsuite/libgomp.fortran/reference1.f90: New test.
19093
19094 2005-10-11 Jakub Jelinek <jakub@redhat.com>
19095
19096 * testsuite/libgomp.dg/reduction-1.c: New test.
19097 * testsuite/libgomp.dg/reduction-2.c: New test.
19098 * testsuite/libgomp.dg/reduction-3.c: New test.
19099
19100 2005-10-10 Jakub Jelinek <jakub@redhat.com>
19101
19102 * testsuite/libgomp.dg/atomic-1.c: New test.
19103 * testsuite/libgomp.dg/atomic-2.c: New test.
19104
19105 2005-10-09 Richard Henderson <rth@redhat.com>
19106
19107 * critical.c (atomic_lock): New.
19108 (initialize_critical): Initialize it.
19109 (GOMP_atomic_start, GOMP_atomic_end): New.
19110 * libgomp.map: Export them.
19111 * libgomp_g.h: Declare them.
19112
19113 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
19114
19115 2005-10-02 Richard Henderson <rth@redhat.com>
19116
19117 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
19118 to XCFLAGS instead of CFLAGS.
19119
19120 2005-09-30 Richard Henderson <rth@redhat.com>
19121
19122 * configure.ac: Determine whether -pthread or -lpthread is needed.
19123 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
19124 * Makefile.in, configure: Rebuild.
19125
19126 2005-09-28 Richard Henderson <rth@redhat.com>
19127
19128 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
19129 * testsuite/libgomp.dg/omp-single-3.c: New test.
19130
19131 2005-09-28 Diego Novillo <dnovillo@redhat.com>
19132
19133 * testsuite/libgomp.dg/omp-single-2.c: New test.
19134 * testsuite/libgomp.dg/shared-2.c: Fix return code.
19135
19136 2005-09-27 Richard Henderson <rth@redhat.com>
19137
19138 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
19139 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
19140
19141 2005-09-27 Jakub Jelinek <jakub@redhat.com>
19142
19143 * testsuite/libgomp.dg/omp-loop03.c: New test.
19144
19145 2005-09-27 Diego Novillo <dnovillo@redhat.com>
19146
19147 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
19148
19149 2005-09-27 Diego Novillo <dnovillo@redhat.com>
19150
19151 * testsuite/libgomp.dg/omp-single-1.c: New test.
19152 * testsuite/libgomp.dg/shared-1.c: Return 0.
19153 Add prototype for abort.
19154 * testsuite/libgomp.dg/shared-2.c: Likewise.
19155
19156 2005-09-26 Jakub Jelinek <jakub@redhat.com>
19157
19158 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
19159 constructs.
19160
19161 2005-09-26 Diego Novillo <dnovillo@redhat.com>
19162
19163 * testsuite/libgomp.dg/shared-1.c: New test.
19164 * testsuite/libgomp.dg/shared-2.c: New test.
19165
19166 2005-09-24 Richard Henderson <rth@redhat.com>
19167
19168 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
19169
19170 2005-09-24 Richard Henderson <rth@redhat.com>
19171
19172 * iter.c (gomp_iter_static_next): Round up when computing number
19173 of iterations. Don't bother distributing a remainder equally.
19174
19175 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
19176 Don't call srand. Zero b before testing.
19177 (main): New.
19178
19179 2005-09-24 Jakub Jelinek <jakub@redhat.com>
19180
19181 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
19182 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
19183
19184 2005-09-23 Jakub Jelinek <jakub@redhat.com>
19185
19186 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
19187 without !$omp end do, followed immediately by subroutine end.
19188
19189 2005-09-23 Diego Novillo <dnovillo@redhat.com>
19190
19191 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
19192
19193 2005-09-22 Richard Henderson <rth@redhat.com>
19194
19195 * critical.c (GOMP_critical_name_start): Change argument to void**.
19196 Reuse the pointer space if the mutex fits.
19197 (GOMP_critical_name_end): Likewise.
19198 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
19199 * libgomp_g.h (GOMP_critical_name_start): Update decl.
19200 (GOMP_critical_name_end): Likewise.
19201 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
19202 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
19203
19204 2005-09-20 Richard Henderson <rth@redhat.com>
19205
19206 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
19207 (create_lock_lock): New.
19208 (initialize_critical): Initialize it.
19209 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
19210 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
19211
19212 2005-09-20 Diego Novillo <dnovillo@redhat.com>
19213
19214 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
19215
19216 2005-09-20 Diego Novillo <dnovillo@redhat.com>
19217
19218 * testsuite/libgomp.dg/omp-loop01.c: New test.
19219 * testsuite/libgomp.dg/omp-loop02.c: New test.
19220
19221 2005-09-20 Jakub Jelinek <jakub@redhat.com>
19222
19223 * configure.ac (AC_PROG_FC): Add.
19224 (USE_FORTRAN): New automake conditional.
19225 * configure: Rebuilt.
19226 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
19227 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
19228 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
19229 Add rules to build them.
19230 * Makefile.in: Rebuilt.
19231 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
19232 OMP_NEST_LOCK_KIND.
19233 * libgomp.map: Add Fortran wrappers.
19234 * libgomp_f.h.in: New file.
19235 * omp_lib.h.in: New file.
19236 * omp_lib.f90.in: New file.
19237 * fortran.c: New file.
19238 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
19239 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
19240 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
19241 libgfortran has been built.
19242 * testsuite/libgomp.fortran/fortran.exp: New file.
19243 * testsuite/libgomp.fortran/omp_cond1.f: New test.
19244 * testsuite/libgomp.fortran/omp_cond2.f: New test.
19245 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
19246 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
19247 * testsuite/libgomp.fortran/omp_hello.f: New test.
19248 * testsuite/libgomp.fortran/omp_orphan.f: New test.
19249 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
19250 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
19251 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
19252 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
19253 * testsuite/libgomp.fortran/omp_reduction.f: New test.
19254 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
19255 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
19256
19257 2005-08-30 Richard Henderson <rth@redhat.com>
19258
19259 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
19260 function for when aliases are not usable.
19261 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
19262 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
19263 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
19264 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
19265 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
19266 GOMP_loop_ordered_guided_next): Likewise.
19267 * ordered.c (GOMP_ordered_start): Likewise.
19268
19269 2005-08-01 Diego Novillo <dnovillo@redhat.com>
19270
19271 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
19272 * testsuite/libgomp.dg/omp_hello.c: Fix return code
19273 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
19274 * testsuite/libgomp.dg/omp_orphan.c: Likewise
19275 * testsuite/libgomp.dg/omp_reduction.c: Likewise
19276 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
19277 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
19278 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
19279 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
19280
19281 2005-07-07 Eric Christopher <echristo@redhat.com>
19282 Diego Novillo <dnovillo@redhat.com>
19283
19284 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
19285 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
19286 up code.
19287 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
19288 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
19289 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
19290 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
19291 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
19292 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
19293 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
19294
19295 2005-06-13 Diego Novillo <dnovillo@redhat.com>
19296
19297 * TOPLEVEL.patch: Remove.
19298
19299 2005-05-16 Richard Henderson <rth@redhat.com>
19300
19301 * configure.ac: Test for clock_gettime.
19302 * config.h.in, configure: Rebuild.
19303 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
19304 (omp_get_wtime): Use clock_gettime if available.
19305 (omp_get_wtick): Use clock_getres if available.
19306
19307 2005-05-11 Richard Henderson <rth@redhat.com>
19308
19309 * config/linux/ia64/futex.h: New file.
19310 * configure.tgt: Use it.
19311
19312 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
19313
19314 2005-05-07 Richard Henderson <rth@redhat.com>
19315
19316 * config/linux/powerpc/futex.h: New file.
19317 * configure.tgt: Use it.
19318
19319 * config/linux/i486/futex.h: Merge ...
19320 * config/linux/x86_64/futex.h: ... into ...
19321 * config/linux/x86/futex.h: ... here.
19322 * configure.tgt: Update to match.
19323
19324 2005-05-06 Richard Henderson <rth@redhat.com>
19325
19326 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
19327 * config/linux/i486/futex.h: Likewise.
19328 * config/linux/x86_64/futex.h: Likewise.
19329
19330 * config/linux/lock.c: New file.
19331 * config/linux/omp-lock.h: New file.
19332
19333 * critical.c, env.h: Don't include omp.h
19334 * config/posix/lock.c: Include libgomp.h instead of omp.h.
19335 * config/posix/time.c: Likewise.
19336 * config/posix/omp-lock.h: New file.
19337 * libgomp.h: Include omp-lock.h and omp.h.
19338 * Makefile.am (nodist_include_HEADERS): New.
19339 (omp.h): New rule.
19340 * configure.ac (PERL): New.
19341 * mkomp_h.pl: New file.
19342 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
19343 with templates.
19344 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
19345
19346 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
19347 build directory. Re-add -march=i486 hack.
19348
19349 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
19350 (libgomp_link_flags): Remove.
19351 (libgomp_initialized): Remove.
19352 (libgomp_init): Don't protect from reinitialization. Copy code
19353 from libstdc++ for getting the multilib set correctly.
19354
19355 2005-05-05 Richard Henderson <rth@redhat.com>
19356
19357 * config/linux/alpha/futex.h: New file.
19358 * configure.tgt (alpha*-*-linux*): Use it.
19359
19360 * config/posix/mutex.c: New file.
19361 * config/posix/sem.c: Use libgomp.h.
19362
19363 * configure.tgt (x86_64-linux): Also test CC for -m32.
19364 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
19365
19366 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
19367 after $gccpath.
19368
19369 * Makefile.am (SUBDIRS): New.
19370 (libgomp_la_LDFLAGS): Add -lpthread.
19371 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
19372 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
19373
19374 * libgomp_g.h: New file.
19375 * libgomp.h: Split out all public declarations to libgomp_g.h.
19376 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
19377 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
19378 * config/linux/sem.h: Likewise.
19379 * config/posix/sem.h: Likewise.
19380
19381 * Makefile.am (AM_LDFLAGS): New.
19382 (libgomp_version_script): Split out from ...
19383 (libgomp_la_LDFLAGS): ... here.
19384 (libgomp_version_info): New.
19385 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
19386 (LIBGOMP_ENABLE): New.
19387 (LIBGOMP_CHECK_LINKER_FEATURES): New.
19388 (LIBGOMP_ENABLE_SYMVERS): New.
19389 * configure.ac (AC_INIT): Version 1.0.
19390 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
19391 (enable-linux-futex): Likewise. Rename from enable-futex.
19392 (libtool_VERSION): New.
19393 (LIBGOMP_ENABLE_SYMVERS): Use it.
19394 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
19395 * Makefile.in, aclocal.m4, configure: Rebuild.
19396
19397 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
19398 (gomp_mutex_unlock_slow): Fix typo.
19399 * config/linux/sem.c: Similarly.
19400 (gomp_sem_post_slow): Fix typo.
19401 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
19402 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
19403 [__PIC__] (sys_futex0): Don't use tmp output in asm.
19404
19405 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
19406 (libgomp_la_LDFLAGS): Add top_srcdir to path.
19407 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
19408 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
19409 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
19410 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
19411 LDFLAGS. Pull enable_futex check to top-level.
19412 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
19413 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
19414
19415 First attempt at real configury.
19416 * Makefile, config.h: Remove file.
19417 * Makefile.am, Makefile.in: New file.
19418 * acinclude.m4 aclocal.m4: New file.
19419 * configure.ac, configure.tgt, configure: New file.
19420
19421 * config/posix/lock.c: Rename from sys-lock.c.
19422 * config/posix/mutex.h: Rename from sys-mutex.h.
19423 * config/posix/sem.c: Rename from sys-sem.c.
19424 * config/posix/sem.h: Rename from sys-sem.h.
19425 * config/posix/proc.c: Rename from sys-proc.c.
19426 * config/posix/time.c: Rename from sys-proc.c.
19427
19428 * config/linux/mutex.c: New file.
19429 * config/linux/mutex.h: New file.
19430 * config/linux/sem.c: New file.
19431 * config/linux/sem.h: New file.
19432 * config/linux/i486/futex.h: New file.
19433 * config/linux/x86_64/futex.h: New file.
19434
19435 2005-05-04 Richard Henderson <rth@redhat.com>
19436
19437 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
19438 * libgomp.h: Declare them.
19439 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
19440 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
19441
19442 2005-05-04 Richard Henderson <rth@redhat.com>
19443
19444 * libgomp-1 code drop
19445
19446 2005-05-04 Richard Henderson <rth@redhat.com>
19447
19448 * iter.c (gomp_iter_static_next): Return tri-state on 0.
19449 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
19450 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
19451 (gomp_iter_static_next): Update.
19452 (gomp_ordered_static_next): Update.
19453 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
19454 (gomp_loop_ordered_static_start): Likewise. Exit early for a
19455 totally empty range.
19456 (gomp_loop_ordered_static_next): Refine test for calling
19457 gomp_ordered_static_next.
19458 * testsuite/ordered-1.c: Add case for more threads than iterations.
19459
19460 * iter.c (gomp_iter_runtime_next_locked): Remove.
19461 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
19462 gomp_loop_guided_start, gomp_loop_ordered_static_start,
19463 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
19464 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
19465 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
19466 gomp_loop_ordered_guided_next): Downcase name, make static, add
19467 an external alias with the old name.
19468 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
19469 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
19470 switch and call one of the above static functions.
19471 * libgomp.h: Update.
19472
19473 * work.c (gomp_work_share_start): Lock the mutex for !first too.
19474 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
19475 GOMP_loop_guided_start, GOMP_loop_runtime_start,
19476 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
19477 GOMP_loop_ordered_guided_start): Update to match.
19478 * sections.c (GOMP_sections_start): Likewise.
19479 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
19480
19481 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
19482 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
19483 Use bounds check instead of modulus.
19484 (gomp_ordered_sync): Split out of GOMP_ordered_start.
19485 (gomp_ordered_last): Don't sync with ordered_owner here.
19486 (gomp_ordered_next): Likewise.
19487 (gomp_ordered_static_loop_next): Likewise.
19488 * loop.c, libgomp.h: Update to match.
19489
19490 * libgomp.h (GOMP_barrier): Declare.
19491
19492 * testsuite/barrier-1.c: New file.
19493 * testsuite/critical-1.c: New file.
19494 * testsuite/ordered-2.c: New file.
19495 * testsuite/ordered-1.c: New file.
19496 * testsuite/sections-1.c: New file.
19497 * testsuite/single-1.c: New file.
19498 * testsuite/Makefile (TESTS): Add them.
19499
19500 2005-05-04 Richard Henderson <rth@redhat.com>
19501
19502 * libgomp.h (struct gomp_work_share): Add ordered_owner.
19503 * loop.c (GOMP_loop_static_start): If not the startup thread,
19504 acquire the mutex to wait for initialization complete.
19505 (GOMP_loop_ordered_static_start): Likewise.
19506 (GOMP_loop_ordered_runtime_start): Likewise.
19507 (GOMP_loop_ordered_static_first): Remove.
19508 (GOMP_loop_ordered_dynamic_first): Remove.
19509 (GOMP_loop_ordered_guided_first): Remove.
19510 (GOMP_loop_ordered_runtime_first): Remove.
19511 * ordered.c (gomp_ordered_loop_first): Post to own release when
19512 we're the first thread.
19513 (gomp_ordered_loop_last): Wait on release if not owner.
19514 (gomp_ordered_loop_next): Likewise.
19515 (gomp_ordered_static_loop_init): New.
19516 (gomp_ordered_static_loop_next): Use ordered_owner.
19517 (GOMP_ordered_start): Likewise.
19518 * work.c (gomp_new_work_share): Initialize ordered_owner.
19519
19520 2005-05-03 Richard Henderson <rth@redhat.com>
19521
19522 * Makefile (OPT): New.
19523 (CFLAGS): Use it.
19524
19525 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
19526 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
19527 * libgomp.h, libgomp.map, NOTES: Update to match.
19528
19529 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
19530 Add initialized and thr members.
19531 (gomp_thread_start): Pause when initially spawned to wait for
19532 the whole team to be created.
19533 (gomp_team_start): Release team members at the end.
19534
19535 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
19536 (f_foo_1): Use GOMP_loop_end.
19537 (f_foo_2): Use GOMP_loop_end_nowait.
19538
19539 * testsuite/loop-2.c: New file.
19540 * testsuite/Makefile (TESTS): Add it.
19541
19542 2005-05-03 Richard Henderson <rth@redhat.com>
19543
19544 * iter.c (gomp_iter_static_next): Fix overflow check typo.
19545 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
19546 * team.c (new_team): Initialize oldest_live_gen to 1 if no
19547 initial work_share.
19548
19549 * testsuite/Makefile: New file.
19550 * testsuite/loop-1.c: New file.
19551
19552 2005-05-03 Richard Henderson <rth@redhat.com>
19553
19554 Initial implementation and checkin.
19555 \f
19556 Copyright (C) 2005-2023 Free Software Foundation, Inc.
19557
19558 Copying and distribution of this file, with or without modification,
19559 are permitted in any medium without royalty provided the copyright
19560 notice and this notice are preserved.