]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/ChangeLog
Daily bump.
[thirdparty/gcc.git] / libgomp / ChangeLog
1 2023-02-16 Jakub Jelinek <jakub@redhat.com>
2
3 * libgomp.texi: Fix typos - theads -> threads.
4
5 2023-02-16 Jakub Jelinek <jakub@redhat.com>
6
7 * testsuite/libgomp.fortran/target-nowait-array-section.f90: Fix
8 comment typo and improve its wording.
9
10 2023-02-15 Tobias Burnus <tobias@codesourcery.com>
11
12 * target.c (gomp_target_rev): Dereference ptr
13 to get device address.
14 * testsuite/libgomp.fortran/reverse-offload-5.f90: Add test
15 for unallocated allocatable.
16
17 2023-02-15 Tobias Burnus <tobias@codesourcery.com>
18
19 * target.c (gomp_map_vars_internal): Add 'i > 0' before doing a
20 kind check.
21 (GOMP_target_enter_exit_data): If the next map item is
22 GOMP_MAP_ALWAYS_POINTER map it together with the current item.
23 * testsuite/libgomp.fortran/target-enter-data-3.f90: New test.
24
25 2023-02-09 Tobias Burnus <tobias@codesourcery.com>
26
27 PR fortran/107424
28 * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: New test.
29 * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: New test.
30 * testsuite/libgomp.fortran/non-rectangular-loop-2.f90: New test.
31 * testsuite/libgomp.fortran/non-rectangular-loop-3.f90: New test.
32 * testsuite/libgomp.fortran/non-rectangular-loop-4.f90: New test.
33 * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: New test.
34
35 2023-02-07 Thomas Schwinge <thomas@codesourcery.com>
36
37 * testsuite/libgomp.fortran/reverse-offload-6.f90: Fix nvptx
38 offloading compilation.
39
40 2023-02-03 Tobias Burnus <tobias@codesourcery.com>
41
42 * target.c (gomp_target_rev): Handle mapnum == 0 and avoid
43 freeing not allocated memory.
44 * testsuite/libgomp.fortran/reverse-offload-6.f90: New test.
45
46 2023-02-03 Tobias Burnus <tobias@codesourcery.com>
47
48 * libgomp.texi (5.0 Impl. Status, gcn specifics): Update for
49 reverse offload.
50 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Accept
51 reverse-offload requirement.
52
53 2023-02-02 Andrew Stubbs <ams@codesourcery.com>
54
55 * config/gcn/libgomp-gcn.h (DEFAULT_GCN_STACK_SIZE): New define.
56 (DEFAULT_TEAM_ARENA_SIZE): New define.
57 (struct heap): Move to this file.
58 (struct kernargs_abi): Likewise.
59 * config/gcn/team.c (gomp_gcn_enter_kernel): Use team arena size from
60 the kernargs.
61 * libgomp.h: Include libgomp-gcn.h.
62 (TEAM_ARENA_SIZE): Remove.
63 (team_malloc): Update the error message.
64 * plugin/plugin-gcn.c (struct kernargs): Move common content to
65 struct kernargs_abi.
66 (struct agent_info): Rename team arenas to ephemeral memories.
67 (struct team_arena_list): Rename ....
68 (struct ephemeral_memories_list): to this.
69 (struct heap): Delete.
70 (team_arena_size): New variable.
71 (stack_size): New variable.
72 (print_kernel_dispatch): Update debug messages.
73 (init_environment_variables): Read GCN_TEAM_ARENA_SIZE.
74 Read GCN_STACK_SIZE.
75 (get_team_arena): Rename ...
76 (configure_ephemeral_memories): ... to this, and set up stacks.
77 (release_team_arena): Rename ...
78 (release_ephemeral_memories): ... to this.
79 (destroy_team_arenas): Rename ...
80 (destroy_ephemeral_memories): ... to this.
81 (create_kernel_dispatch): Add num_threads parameter.
82 Adjust for kernargs_abi refactor and ephemeral memories.
83 (release_kernel_dispatch): Adjust for ephemeral memories.
84 (run_kernel): Pass thread-count to create_kernel_dispatch.
85 (GOMP_OFFLOAD_init_device): Adjust for ephemeral memories.
86 (GOMP_OFFLOAD_fini_device): Adjust for ephemeral memories.
87
88 2023-02-02 Tobias Burnus <tobias@codesourcery.com>
89
90 * libgomp.texi (OpenMP TR11): Fix item for 'strict' modifier.
91
92 2023-02-01 Tobias Burnus <tobias@codesourcery.com>
93
94 * testsuite/libgomp.fortran/allocate-3.f90: Fix ALIGN
95 usage, remove unused -fdump-tree-original.
96 * testsuite/libgomp.fortran/allocate-4.f90: New.
97
98 2023-02-01 Tobias Burnus <tobias@codesourcery.com>
99
100 * libgomp.texi (5.0 Impl. Status): Update 'requires' and 'ancestor'.
101 (GCN): Add item about 'omp requires'.
102 (nvptx): Likewise; add item about reverse offload.
103
104 2023-01-27 Tobias Burnus <tobias@codesourcery.com>
105
106 PR fortran/108558
107 * testsuite/libgomp.fortran/has_device_addr.f90: New test.
108
109 2023-01-23 Tobias Burnus <tobias@codesourcery.com>
110
111 * libgomp.texi (OpenMP 5.0): Set non-rectangular
112 loop nest back to 'P' as Fortran support is incomplete.
113
114 2023-01-19 Jakub Jelinek <jakub@redhat.com>
115
116 PR middle-end/108459
117 * testsuite/libgomp.c/pr108459.c: New test.
118
119 2023-01-17 Martin Liska <mliska@suse.cz>
120
121 * Makefile.in: Regenerate.
122 * configure: Regenerate.
123
124 2023-01-07 LIU Hao <lh_mouse@126.com>
125
126 PR middle-end/108300
127 * config/mingw32/proc.c: Define `WIN32_LEAN_AND_MEAN` before
128 <windows.h>.
129
130 2023-01-05 Jakub Jelinek <jakub@redhat.com>
131
132 PR c++/108286
133 * testsuite/libgomp.c++/pr108286.C: New test.
134
135 2023-01-02 Jakub Jelinek <jakub@redhat.com>
136
137 * libgomp.texi: Bump @copying's copyright year.
138
139 2022-12-21 Chung-Lin Tang <cltang@codesourcery.com>
140
141 PR target/99555
142 * config/nvptx/bar.c (generation_to_barrier): Remove.
143 (futex_wait,futex_wake,do_spin,do_wait): Remove.
144 (GOMP_WAIT_H): Remove.
145 (#include "../linux/bar.c"): Remove.
146 (gomp_barrier_wait_end): New function.
147 (gomp_barrier_wait): Likewise.
148 (gomp_barrier_wait_last): Likewise.
149 (gomp_team_barrier_wait_end): Likewise.
150 (gomp_team_barrier_wait): Likewise.
151 (gomp_team_barrier_wait_final): Likewise.
152 (gomp_team_barrier_wait_cancel_end): Likewise.
153 (gomp_team_barrier_wait_cancel): Likewise.
154 (gomp_team_barrier_cancel): Likewise.
155 * config/nvptx/bar.h (gomp_barrier_t): Remove waiters, lock fields.
156 (gomp_barrier_init): Remove init of waiters, lock fields.
157 (gomp_team_barrier_wake): Remove prototype, add new static inline
158 function.
159
160 2022-12-21 Jakub Jelinek <jakub@redhat.com>
161
162 PR c++/108180
163 * testsuite/libgomp.c++/pr108180.C: New test.
164
165 2022-12-16 Tobias Burnus <tobias@codesourcery.com>
166
167 PR libfortran/108056
168 * testsuite/libgomp.fortran/allocate-4.f90: Remove
169 accidentally added file.
170
171 2022-12-15 Tobias Burnus <tobias@codesourcery.com>
172
173 PR libfortran/108056
174 * testsuite/libgomp.fortran/allocate-4.f90: New file.
175
176 2022-12-14 Julian Brown <julian@codesourcery.com>
177
178 * testsuite/libgomp.fortran/combined-directive-splitting-1.f90: New
179 test.
180
181 2022-12-10 Tobias Burnus <tobias@codesourcery.com>
182
183 * libgomp.h (struct target_mem_desc): Predeclare; move
184 below after 'reverse_splay_tree_node' and add rev_array
185 member.
186 (struct reverse_splay_tree_key_s, reverse_splay_compare): New.
187 (reverse_splay_tree_node, reverse_splay_tree,
188 reverse_splay_tree_key): New typedef.
189 (struct gomp_device_descr): Add mem_map_rev member.
190 * oacc-host.c (host_dispatch): NULL init .mem_map_rev.
191 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Claim
192 support for GOMP_REQUIRES_REVERSE_OFFLOAD.
193 * splay-tree.h (splay_tree_callback_stop): New typedef; like
194 splay_tree_callback but returning int not void.
195 (splay_tree_foreach_lazy): Define; like splay_tree_foreach but
196 taking splay_tree_callback_stop as argument.
197 * splay-tree.c (splay_tree_foreach_internal_lazy,
198 splay_tree_foreach_lazy): New; but early exit if callback returns
199 nonzero.
200 * target.c: Instatiate splay_tree_c with splay_tree_prefix 'reverse'.
201 (gomp_map_lookup_rev): New.
202 (gomp_load_image_to_device): Handle reverse-offload function
203 lookup table.
204 (gomp_unload_image_from_device): Free devicep->mem_map_rev.
205 (struct gomp_splay_tree_rev_lookup_data, gomp_splay_tree_rev_lookup,
206 gomp_map_rev_lookup, struct cpy_data, gomp_map_cdata_lookup_int,
207 gomp_map_cdata_lookup): New auxiliary structs and functions for
208 gomp_target_rev.
209 (gomp_target_rev): Implement reverse offloading and its mapping.
210 (gomp_target_init): Init current_device.mem_map_rev.root.
211 * testsuite/libgomp.fortran/reverse-offload-2.f90: New test.
212 * testsuite/libgomp.fortran/reverse-offload-3.f90: New test.
213 * testsuite/libgomp.fortran/reverse-offload-4.f90: New test.
214 * testsuite/libgomp.fortran/reverse-offload-5.f90: New test.
215 * testsuite/libgomp.fortran/reverse-offload-5a.f90: New test without
216 mapping of on-device allocated variables.
217
218 2022-12-09 Tobias Burnus <tobias@codesourcery.com>
219
220 * libgomp.texi (5.1 Impl. Status): Split allocate clause/directive
221 item about 'align'; mark clause as 'Y' and directive as 'N'.
222 * testsuite/libgomp.fortran/allocate-2.f90: New test.
223 * testsuite/libgomp.fortran/allocate-3.f90: New test.
224
225 2022-12-06 Marcel Vollweiler <marcel@codesourcery.com>
226
227 * config/gcn/icv-device.c (omp_get_teams_thread_limit): Added to
228 allow processing of device-specific values.
229 (omp_set_teams_thread_limit): Likewise.
230 (ialias): Likewise.
231 * config/nvptx/icv-device.c (omp_get_teams_thread_limit): Likewise.
232 (omp_set_teams_thread_limit): Likewise.
233 (ialias): Likewise.
234 * icv-device.c (omp_get_teams_thread_limit): Likewise.
235 (ialias): Likewise.
236 (omp_set_teams_thread_limit): Likewise.
237 * icv.c (omp_set_teams_thread_limit): Removed.
238 (omp_get_teams_thread_limit): Likewise.
239 (ialias): Likewise.
240 * libgomp.texi: Updated documentation for nvptx and gcn corresponding
241 to the limitation of the number of teams.
242 * plugin/plugin-gcn.c (limit_teams): New helper function that limits
243 the number of teams by twice the number of compute units.
244 (parse_target_attributes): Limit the number of teams on gcn offload
245 devices.
246 * target.c (get_gomp_offload_icvs): Added teams_thread_limit_var
247 handling.
248 (gomp_load_image_to_device): Added a size check for the ICVs struct
249 variable.
250 (gomp_copy_back_icvs): New function that is used in GOMP_target_ext to
251 copy back the ICV values from device to host.
252 (GOMP_target_ext): Update the number of teams and threads in the kernel
253 args also considering device-specific values.
254 * testsuite/libgomp.c-c++-common/icv-4.c: Fixed an error in the reading
255 of OMP_TEAMS_THREAD_LIMIT from the environment.
256 * testsuite/libgomp.c-c++-common/icv-5.c: Extended.
257 * testsuite/libgomp.c-c++-common/icv-6.c: Extended.
258 * testsuite/libgomp.c-c++-common/icv-7.c: Extended.
259 * testsuite/libgomp.c-c++-common/icv-9.c: New test.
260 * testsuite/libgomp.fortran/icv-5.f90: New test.
261 * testsuite/libgomp.fortran/icv-6.f90: New test.
262
263 2022-12-06 Tobias Burnus <tobias@codesourcery.com>
264
265 * libgomp.texi (OpenMP 5.2): Add missing 'the'.
266 (TR11): Add missing '@tab N @tab'.
267
268 2022-11-30 Tobias Burnus <tobias@codesourcery.com>
269
270 * libgomp.texi (OpenMP Context Selectors): Add 'gfx803' to gcn's isa.
271
272 2022-11-30 Paul-Antoine Arras <pa@codesourcery.com>
273
274 * testsuite/libgomp.c/declare-variant-4-fiji.c: New test.
275 * testsuite/libgomp.c/declare-variant-4-gfx803.c: New test.
276 * testsuite/libgomp.c/declare-variant-4-gfx900.c: New test.
277 * testsuite/libgomp.c/declare-variant-4-gfx906.c: New test.
278 * testsuite/libgomp.c/declare-variant-4-gfx908.c: New test.
279 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: New test.
280 * testsuite/libgomp.c/declare-variant-4.h: New header file.
281
282 2022-11-28 Tobias Burnus <tobias@codesourcery.com>
283
284 * libgomp.texi (OpenMP 5.2): Mark end-directive as Y.
285
286 2022-11-25 Sandra Loosemore <sandra@codesourcery.com>
287
288 * testsuite/lib/libgomp.exp: Load scanoffloadipa.exp library.
289 * testsuite/libgomp.c/target-simd-clone-1.c: New.
290 * testsuite/libgomp.c/target-simd-clone-2.c: New.
291 * testsuite/libgomp.c/target-simd-clone-3.c: New.
292
293 2022-11-25 Tobias Burnus <tobias@codesourcery.com>
294
295 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Use unsigned int
296 for 'i' to match 'fn_entries'; regard absent GOMP_REV_OFFLOAD_VAR
297 as valid and the code having no reverse-offload code.
298 * testsuite/libgomp.c-c++-common/reverse-offload-2.c: New test.
299
300 2022-11-25 Tobias Burnus <tobias@codesourcery.com>
301
302 * libgomp.texi (OpenMP Implementation Status): Add three 5.1 items
303 and status for Technical Report (TR) 11.
304
305 2022-11-21 Tobias Burnus <tobias@codesourcery.com>
306
307 * config/gcn/libgomp-gcn.h (struct output):
308 Remove 'msg_u64' from the union, change
309 value_u64[2] to value_u64[6].
310 * config/gcn/target.c (GOMP_target_ext): Update accordingly.
311 * plugin/plugin-gcn.c (process_reverse_offload, console_output):
312 Likewise.
313
314 2022-11-19 Tobias Burnus <tobias@codesourcery.com>
315
316 * config/gcn/libgomp-gcn.h: New file; contains
317 struct output, declared previously in plugin-gcn.c.
318 * config/gcn/target.c: Include it.
319 (GOMP_ADDITIONAL_ICVS): Declare as extern var.
320 (GOMP_target_ext): Handle reverse offload.
321 * plugin/plugin-gcn.c: Include libgomp-gcn.h.
322 (struct kernargs): Replace struct def by the one
323 from libgomp-gcn.h for output_data.
324 (process_reverse_offload): New.
325 (console_output): Call it.
326
327 2022-11-16 Tobias Burnus <tobias@codesourcery.com>
328 Andrew Stubbs <ams@codesourcery.com>
329
330 * config/gcn/team.c (gomp_gcn_enter_kernel): Use
331 __builtin_gcn_kernarg_ptr instead of asm ("s8").
332
333 2022-11-14 Martin Liska <mliska@suse.cz>
334
335 Revert:
336 2022-11-14 Martin Liska <mliska@suse.cz>
337
338 * doc/amd-radeon-gcn.rst: New file.
339 * doc/conf.py: New file.
340 * doc/copyright.rst: New file.
341 * doc/cuda-streams-usage.rst: New file.
342 * doc/enabling-openacc.rst: New file.
343 * doc/enabling-openmp.rst: New file.
344 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
345 * doc/first-invocation-openacc-library-api.rst: New file.
346 * doc/funding.rst: New file.
347 * doc/general-public-license-3.rst: New file.
348 * doc/gnu-free-documentation-license.rst: New file.
349 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
350 * doc/index.rst: New file.
351 * doc/indices-and-tables.rst: New file.
352 * doc/introduction.rst: New file.
353 * doc/memory-allocation-with-libmemkind.rst: New file.
354 * doc/nvptx.rst: New file.
355 * doc/offload-target-specifics.rst: New file.
356 * doc/openacc-environment-variables.rst: New file.
357 * doc/openacc-environment-variables/accdevicenum.rst: New file.
358 * doc/openacc-environment-variables/accdevicetype.rst: New file.
359 * doc/openacc-environment-variables/accproflib.rst: New file.
360 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
361 * doc/openacc-introduction.rst: New file.
362 * doc/openacc-library-and-environment-variables.rst: New file.
363 * doc/openacc-library-interoperability.rst: New file.
364 * doc/openacc-profiling-interface.rst: New file.
365 * doc/openacc-runtime-library-routines.rst: New file.
366 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
367 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
368 * doc/openacc-runtime-library-routines/accattach.rst: New file.
369 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
370 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
371 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
372 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
373 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
374 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
375 * doc/openacc-runtime-library-routines/accfree.rst: New file.
376 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
377 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
378 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
379 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
380 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
381 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
382 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
383 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
384 * doc/openacc-runtime-library-routines/accinit.rst: New file.
385 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
386 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
387 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
388 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
389 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
390 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
391 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
392 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
393 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
394 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
395 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
396 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
397 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
398 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
399 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
400 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
401 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
402 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
403 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
404 * doc/openacc-runtime-library-routines/accwait.rst: New file.
405 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
406 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
407 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
408 * doc/openmp-context-selectors.rst: New file.
409 * doc/openmp-environment-variables.rst: New file.
410 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
411 * doc/openmp-environment-variables/gompdebug.rst: New file.
412 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
413 * doc/openmp-environment-variables/gompspincount.rst: New file.
414 * doc/openmp-environment-variables/gompstacksize.rst: New file.
415 * doc/openmp-environment-variables/ompcancellation.rst: New file.
416 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
417 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
418 * doc/openmp-environment-variables/ompdynamic.rst: New file.
419 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
420 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
421 * doc/openmp-environment-variables/ompnested.rst: New file.
422 * doc/openmp-environment-variables/ompnumteams.rst: New file.
423 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
424 * doc/openmp-environment-variables/ompplaces.rst: New file.
425 * doc/openmp-environment-variables/ompprocbind.rst: New file.
426 * doc/openmp-environment-variables/ompschedule.rst: New file.
427 * doc/openmp-environment-variables/ompstacksize.rst: New file.
428 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
429 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
430 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
431 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
432 * doc/openmp-implementation-specifics.rst: New file.
433 * doc/openmp-implementation-status.rst: New file.
434 * doc/openmp-implementation-status/openmp-45.rst: New file.
435 * doc/openmp-implementation-status/openmp-50.rst: New file.
436 * doc/openmp-implementation-status/openmp-51.rst: New file.
437 * doc/openmp-implementation-status/openmp-52.rst: New file.
438 * doc/openmp-runtime-library-routines.rst: New file.
439 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
440 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
441 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
442 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
443 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
444 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
445 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
446 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
447 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
448 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
449 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
450 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
451 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
452 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
453 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
454 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
455 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
456 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
457 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
458 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
459 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
460 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
461 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
462 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
463 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
464 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
465 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
466 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
467 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
468 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
469 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
470 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
471 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
472 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
473 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
474 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
475 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
476 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
477 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
478 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
479 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
480 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
481 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
482 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
483 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
484 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
485 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
486 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
487 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
488 * doc/reporting-bugs.rst: New file.
489 * doc/the-libgomp-abi.rst: New file.
490 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
491 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
492 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
493 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
494 New file.
495 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
496 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
497 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
498 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
499 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
500 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
501 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
502 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
503 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
504 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
505 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
506
507 2022-11-14 Martin Liska <mliska@suse.cz>
508
509 Revert:
510 2022-11-14 Martin Liska <mliska@suse.cz>
511
512 * Makefile.in: Support Sphinx based documentation.
513
514 2022-11-14 Martin Liska <mliska@suse.cz>
515
516 Revert:
517 2022-11-14 Martin Liska <mliska@suse.cz>
518
519 * libgomp.texi: Removed.
520
521 2022-11-14 Martin Liska <mliska@suse.cz>
522
523 Revert:
524 2022-11-14 Martin Liska <mliska@suse.cz>
525
526 * Makefile.in: Support --with-sphinx-build.
527 * configure.ac: Likewise..
528 * configure: Regenerate.
529
530 2022-11-14 Martin Liska <mliska@suse.cz>
531
532 Revert:
533 2022-11-09 Martin Liska <mliska@suse.cz>
534
535 * Makefile.in: Build info pages conditionally.
536
537 2022-11-14 Martin Liska <mliska@suse.cz>
538
539 Revert:
540 2022-11-14 Martin Liska <mliska@suse.cz>
541
542 * doc/amd-radeon-gcn.rst:
543 Add trailing newline.
544 * doc/copyright.rst:
545 Add trailing newline.
546 * doc/cuda-streams-usage.rst:
547 Add trailing newline.
548 * doc/enabling-openacc.rst:
549 Add trailing newline.
550 * doc/enabling-openmp.rst:
551 Add trailing newline.
552 * doc/first-invocation-nvidia-cublas-library-api.rst:
553 Add trailing newline.
554 * doc/first-invocation-openacc-library-api.rst:
555 Add trailing newline.
556 * doc/funding.rst:
557 Add trailing newline.
558 * doc/general-public-license-3.rst:
559 Add trailing newline.
560 * doc/gnu-free-documentation-license.rst:
561 Add trailing newline.
562 * doc/implementation-status-and-implementation-defined-behavior.rst:
563 Add trailing newline.
564 * doc/index.rst:
565 Add trailing newline.
566 * doc/indices-and-tables.rst:
567 Add trailing newline.
568 * doc/introduction.rst:
569 Add trailing newline.
570 * doc/memory-allocation-with-libmemkind.rst:
571 Add trailing newline.
572 * doc/nvptx.rst:
573 Add trailing newline.
574 * doc/offload-target-specifics.rst:
575 Add trailing newline.
576 * doc/openacc-environment-variables.rst:
577 Add trailing newline.
578 * doc/openacc-environment-variables/accdevicenum.rst:
579 Add trailing newline.
580 * doc/openacc-environment-variables/accdevicetype.rst:
581 Add trailing newline.
582 * doc/openacc-environment-variables/accproflib.rst:
583 Add trailing newline.
584 * doc/openacc-environment-variables/gccaccnotify.rst:
585 Add trailing newline.
586 * doc/openacc-introduction.rst:
587 Add trailing newline.
588 * doc/openacc-library-and-environment-variables.rst:
589 Add trailing newline.
590 * doc/openacc-library-interoperability.rst:
591 Add trailing newline.
592 * doc/openacc-profiling-interface.rst:
593 Add trailing newline.
594 * doc/openacc-runtime-library-routines.rst:
595 Add trailing newline.
596 * doc/openacc-runtime-library-routines/accasynctest.rst:
597 Add trailing newline.
598 * doc/openacc-runtime-library-routines/accasynctestall.rst:
599 Add trailing newline.
600 * doc/openacc-runtime-library-routines/accattach.rst:
601 Add trailing newline.
602 * doc/openacc-runtime-library-routines/acccopyin.rst:
603 Add trailing newline.
604 * doc/openacc-runtime-library-routines/acccopyout.rst:
605 Add trailing newline.
606 * doc/openacc-runtime-library-routines/acccreate.rst:
607 Add trailing newline.
608 * doc/openacc-runtime-library-routines/accdelete.rst:
609 Add trailing newline.
610 * doc/openacc-runtime-library-routines/accdetach.rst:
611 Add trailing newline.
612 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
613 Add trailing newline.
614 * doc/openacc-runtime-library-routines/accfree.rst:
615 Add trailing newline.
616 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
617 Add trailing newline.
618 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
619 Add trailing newline.
620 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
621 Add trailing newline.
622 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
623 Add trailing newline.
624 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
625 Add trailing newline.
626 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
627 Add trailing newline.
628 * doc/openacc-runtime-library-routines/accgetproperty.rst:
629 Add trailing newline.
630 * doc/openacc-runtime-library-routines/acchostptr.rst:
631 Add trailing newline.
632 * doc/openacc-runtime-library-routines/accinit.rst:
633 Add trailing newline.
634 * doc/openacc-runtime-library-routines/accispresent.rst:
635 Add trailing newline.
636 * doc/openacc-runtime-library-routines/accmalloc.rst:
637 Add trailing newline.
638 * doc/openacc-runtime-library-routines/accmapdata.rst:
639 Add trailing newline.
640 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
641 Add trailing newline.
642 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
643 Add trailing newline.
644 * doc/openacc-runtime-library-routines/accondevice.rst:
645 Add trailing newline.
646 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
647 Add trailing newline.
648 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
649 Add trailing newline.
650 * doc/openacc-runtime-library-routines/accproflookup.rst:
651 Add trailing newline.
652 * doc/openacc-runtime-library-routines/accprofregister.rst:
653 Add trailing newline.
654 * doc/openacc-runtime-library-routines/accprofunregister.rst:
655 Add trailing newline.
656 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
657 Add trailing newline.
658 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
659 Add trailing newline.
660 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
661 Add trailing newline.
662 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
663 Add trailing newline.
664 * doc/openacc-runtime-library-routines/accshutdown.rst:
665 Add trailing newline.
666 * doc/openacc-runtime-library-routines/accunmapdata.rst:
667 Add trailing newline.
668 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
669 Add trailing newline.
670 * doc/openacc-runtime-library-routines/accupdateself.rst:
671 Add trailing newline.
672 * doc/openacc-runtime-library-routines/accwait.rst:
673 Add trailing newline.
674 * doc/openacc-runtime-library-routines/accwaitall.rst:
675 Add trailing newline.
676 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
677 Add trailing newline.
678 * doc/openacc-runtime-library-routines/accwaitasync.rst:
679 Add trailing newline.
680 * doc/openmp-context-selectors.rst:
681 Add trailing newline.
682 * doc/openmp-environment-variables.rst:
683 Add trailing newline.
684 * doc/openmp-environment-variables/gompcpuaffinity.rst:
685 Add trailing newline.
686 * doc/openmp-environment-variables/gompdebug.rst:
687 Add trailing newline.
688 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
689 Add trailing newline.
690 * doc/openmp-environment-variables/gompspincount.rst:
691 Add trailing newline.
692 * doc/openmp-environment-variables/gompstacksize.rst:
693 Add trailing newline.
694 * doc/openmp-environment-variables/ompcancellation.rst:
695 Add trailing newline.
696 * doc/openmp-environment-variables/ompdefaultdevice.rst:
697 Add trailing newline.
698 * doc/openmp-environment-variables/ompdisplayenv.rst:
699 Add trailing newline.
700 * doc/openmp-environment-variables/ompdynamic.rst:
701 Add trailing newline.
702 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
703 Add trailing newline.
704 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
705 Add trailing newline.
706 * doc/openmp-environment-variables/ompnested.rst:
707 Add trailing newline.
708 * doc/openmp-environment-variables/ompnumteams.rst:
709 Add trailing newline.
710 * doc/openmp-environment-variables/ompnumthreads.rst:
711 Add trailing newline.
712 * doc/openmp-environment-variables/ompplaces.rst:
713 Add trailing newline.
714 * doc/openmp-environment-variables/ompprocbind.rst:
715 Add trailing newline.
716 * doc/openmp-environment-variables/ompschedule.rst:
717 Add trailing newline.
718 * doc/openmp-environment-variables/ompstacksize.rst:
719 Add trailing newline.
720 * doc/openmp-environment-variables/omptargetoffload.rst:
721 Add trailing newline.
722 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
723 Add trailing newline.
724 * doc/openmp-environment-variables/ompthreadlimit.rst:
725 Add trailing newline.
726 * doc/openmp-environment-variables/ompwaitpolicy.rst:
727 Add trailing newline.
728 * doc/openmp-implementation-specifics.rst:
729 Add trailing newline.
730 * doc/openmp-implementation-status.rst:
731 Add trailing newline.
732 * doc/openmp-implementation-status/openmp-45.rst:
733 Add trailing newline.
734 * doc/openmp-implementation-status/openmp-50.rst:
735 Add trailing newline.
736 * doc/openmp-implementation-status/openmp-51.rst:
737 Add trailing newline.
738 * doc/openmp-implementation-status/openmp-52.rst:
739 Add trailing newline.
740 * doc/openmp-runtime-library-routines.rst:
741 Add trailing newline.
742 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
743 Add trailing newline.
744 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
745 Add trailing newline.
746 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
747 Add trailing newline.
748 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
749 Add trailing newline.
750 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
751 Add trailing newline.
752 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
753 Add trailing newline.
754 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
755 Add trailing newline.
756 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
757 Add trailing newline.
758 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
759 Add trailing newline.
760 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
761 Add trailing newline.
762 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
763 Add trailing newline.
764 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
765 Add trailing newline.
766 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
767 Add trailing newline.
768 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
769 Add trailing newline.
770 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
771 Add trailing newline.
772 * doc/openmp-runtime-library-routines/ompgetnested.rst:
773 Add trailing newline.
774 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
775 Add trailing newline.
776 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
777 Add trailing newline.
778 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
779 Add trailing newline.
780 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
781 Add trailing newline.
782 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
783 Add trailing newline.
784 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
785 Add trailing newline.
786 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
787 Add trailing newline.
788 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
789 Add trailing newline.
790 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
791 Add trailing newline.
792 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
793 Add trailing newline.
794 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
795 Add trailing newline.
796 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
797 Add trailing newline.
798 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
799 Add trailing newline.
800 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
801 Add trailing newline.
802 * doc/openmp-runtime-library-routines/ompinfinal.rst:
803 Add trailing newline.
804 * doc/openmp-runtime-library-routines/ompinitlock.rst:
805 Add trailing newline.
806 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
807 Add trailing newline.
808 * doc/openmp-runtime-library-routines/ompinparallel.rst:
809 Add trailing newline.
810 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
811 Add trailing newline.
812 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
813 Add trailing newline.
814 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
815 Add trailing newline.
816 * doc/openmp-runtime-library-routines/ompsetlock.rst:
817 Add trailing newline.
818 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
819 Add trailing newline.
820 * doc/openmp-runtime-library-routines/ompsetnested.rst:
821 Add trailing newline.
822 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
823 Add trailing newline.
824 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
825 Add trailing newline.
826 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
827 Add trailing newline.
828 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
829 Add trailing newline.
830 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
831 Add trailing newline.
832 * doc/openmp-runtime-library-routines/omptestlock.rst:
833 Add trailing newline.
834 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
835 Add trailing newline.
836 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
837 Add trailing newline.
838 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
839 Add trailing newline.
840 * doc/reporting-bugs.rst:
841 Add trailing newline.
842 * doc/the-libgomp-abi.rst:
843 Add trailing newline.
844 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
845 Add trailing newline.
846 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
847 Add trailing newline.
848 * doc/the-libgomp-abi/implementing-critical-construct.rst:
849 Add trailing newline.
850 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
851 Add trailing newline.
852 * doc/the-libgomp-abi/implementing-flush-construct.rst:
853 Add trailing newline.
854 * doc/the-libgomp-abi/implementing-for-construct.rst:
855 Add trailing newline.
856 * doc/the-libgomp-abi/implementing-master-construct.rst:
857 Add trailing newline.
858 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
859 Add trailing newline.
860 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
861 Add trailing newline.
862 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
863 Add trailing newline.
864 * doc/the-libgomp-abi/implementing-private-clause.rst:
865 Add trailing newline.
866 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
867 Add trailing newline.
868 * doc/the-libgomp-abi/implementing-sections-construct.rst:
869 Add trailing newline.
870 * doc/the-libgomp-abi/implementing-single-construct.rst:
871 Add trailing newline.
872 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
873 Add trailing newline.
874
875 2022-11-14 Martin Liska <mliska@suse.cz>
876
877 Revert:
878 2022-11-09 Martin Liska <mliska@suse.cz>
879
880 * Makefile.in: Add missing HAS_SPHINX_BUILD.
881
882 2022-11-14 Martin Liska <mliska@suse.cz>
883
884 Revert:
885 2022-11-14 Martin Liska <mliska@suse.cz>
886
887 * doc/conf.py: Add newline at last line.
888
889 2022-11-14 Martin Liska <mliska@suse.cz>
890
891 Revert:
892 2022-11-14 Martin Liska <mliska@suse.cz>
893
894 PR other/107620
895 * configure: Regenerate.
896 * configure.ac: Always set sphinx-build.
897
898 2022-11-13 Martin Liska <mliska@suse.cz>
899
900 PR other/107620
901 * configure: Regenerate.
902 * configure.ac: Always set sphinx-build.
903
904 2022-11-12 Jakub Jelinek <jakub@redhat.com>
905
906 PR libgomp/107641
907 * env.c (parse_unsigned_long): Cast params[2] to uintptr_t rather than
908 unsigned long. Change type of upper from unsigned to unsigned long.
909
910 2022-11-10 Martin Liska <mliska@suse.cz>
911
912 * doc/conf.py: Add newline at last line.
913
914 2022-11-09 Martin Liska <mliska@suse.cz>
915
916 * Makefile.in: Add missing HAS_SPHINX_BUILD.
917
918 2022-11-09 Martin Liska <mliska@suse.cz>
919
920 * doc/amd-radeon-gcn.rst:
921 Add trailing newline.
922 * doc/copyright.rst:
923 Add trailing newline.
924 * doc/cuda-streams-usage.rst:
925 Add trailing newline.
926 * doc/enabling-openacc.rst:
927 Add trailing newline.
928 * doc/enabling-openmp.rst:
929 Add trailing newline.
930 * doc/first-invocation-nvidia-cublas-library-api.rst:
931 Add trailing newline.
932 * doc/first-invocation-openacc-library-api.rst:
933 Add trailing newline.
934 * doc/funding.rst:
935 Add trailing newline.
936 * doc/general-public-license-3.rst:
937 Add trailing newline.
938 * doc/gnu-free-documentation-license.rst:
939 Add trailing newline.
940 * doc/implementation-status-and-implementation-defined-behavior.rst:
941 Add trailing newline.
942 * doc/index.rst:
943 Add trailing newline.
944 * doc/indices-and-tables.rst:
945 Add trailing newline.
946 * doc/introduction.rst:
947 Add trailing newline.
948 * doc/memory-allocation-with-libmemkind.rst:
949 Add trailing newline.
950 * doc/nvptx.rst:
951 Add trailing newline.
952 * doc/offload-target-specifics.rst:
953 Add trailing newline.
954 * doc/openacc-environment-variables.rst:
955 Add trailing newline.
956 * doc/openacc-environment-variables/accdevicenum.rst:
957 Add trailing newline.
958 * doc/openacc-environment-variables/accdevicetype.rst:
959 Add trailing newline.
960 * doc/openacc-environment-variables/accproflib.rst:
961 Add trailing newline.
962 * doc/openacc-environment-variables/gccaccnotify.rst:
963 Add trailing newline.
964 * doc/openacc-introduction.rst:
965 Add trailing newline.
966 * doc/openacc-library-and-environment-variables.rst:
967 Add trailing newline.
968 * doc/openacc-library-interoperability.rst:
969 Add trailing newline.
970 * doc/openacc-profiling-interface.rst:
971 Add trailing newline.
972 * doc/openacc-runtime-library-routines.rst:
973 Add trailing newline.
974 * doc/openacc-runtime-library-routines/accasynctest.rst:
975 Add trailing newline.
976 * doc/openacc-runtime-library-routines/accasynctestall.rst:
977 Add trailing newline.
978 * doc/openacc-runtime-library-routines/accattach.rst:
979 Add trailing newline.
980 * doc/openacc-runtime-library-routines/acccopyin.rst:
981 Add trailing newline.
982 * doc/openacc-runtime-library-routines/acccopyout.rst:
983 Add trailing newline.
984 * doc/openacc-runtime-library-routines/acccreate.rst:
985 Add trailing newline.
986 * doc/openacc-runtime-library-routines/accdelete.rst:
987 Add trailing newline.
988 * doc/openacc-runtime-library-routines/accdetach.rst:
989 Add trailing newline.
990 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
991 Add trailing newline.
992 * doc/openacc-runtime-library-routines/accfree.rst:
993 Add trailing newline.
994 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
995 Add trailing newline.
996 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
997 Add trailing newline.
998 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
999 Add trailing newline.
1000 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
1001 Add trailing newline.
1002 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
1003 Add trailing newline.
1004 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
1005 Add trailing newline.
1006 * doc/openacc-runtime-library-routines/accgetproperty.rst:
1007 Add trailing newline.
1008 * doc/openacc-runtime-library-routines/acchostptr.rst:
1009 Add trailing newline.
1010 * doc/openacc-runtime-library-routines/accinit.rst:
1011 Add trailing newline.
1012 * doc/openacc-runtime-library-routines/accispresent.rst:
1013 Add trailing newline.
1014 * doc/openacc-runtime-library-routines/accmalloc.rst:
1015 Add trailing newline.
1016 * doc/openacc-runtime-library-routines/accmapdata.rst:
1017 Add trailing newline.
1018 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
1019 Add trailing newline.
1020 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
1021 Add trailing newline.
1022 * doc/openacc-runtime-library-routines/accondevice.rst:
1023 Add trailing newline.
1024 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
1025 Add trailing newline.
1026 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
1027 Add trailing newline.
1028 * doc/openacc-runtime-library-routines/accproflookup.rst:
1029 Add trailing newline.
1030 * doc/openacc-runtime-library-routines/accprofregister.rst:
1031 Add trailing newline.
1032 * doc/openacc-runtime-library-routines/accprofunregister.rst:
1033 Add trailing newline.
1034 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
1035 Add trailing newline.
1036 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
1037 Add trailing newline.
1038 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
1039 Add trailing newline.
1040 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
1041 Add trailing newline.
1042 * doc/openacc-runtime-library-routines/accshutdown.rst:
1043 Add trailing newline.
1044 * doc/openacc-runtime-library-routines/accunmapdata.rst:
1045 Add trailing newline.
1046 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
1047 Add trailing newline.
1048 * doc/openacc-runtime-library-routines/accupdateself.rst:
1049 Add trailing newline.
1050 * doc/openacc-runtime-library-routines/accwait.rst:
1051 Add trailing newline.
1052 * doc/openacc-runtime-library-routines/accwaitall.rst:
1053 Add trailing newline.
1054 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
1055 Add trailing newline.
1056 * doc/openacc-runtime-library-routines/accwaitasync.rst:
1057 Add trailing newline.
1058 * doc/openmp-context-selectors.rst:
1059 Add trailing newline.
1060 * doc/openmp-environment-variables.rst:
1061 Add trailing newline.
1062 * doc/openmp-environment-variables/gompcpuaffinity.rst:
1063 Add trailing newline.
1064 * doc/openmp-environment-variables/gompdebug.rst:
1065 Add trailing newline.
1066 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
1067 Add trailing newline.
1068 * doc/openmp-environment-variables/gompspincount.rst:
1069 Add trailing newline.
1070 * doc/openmp-environment-variables/gompstacksize.rst:
1071 Add trailing newline.
1072 * doc/openmp-environment-variables/ompcancellation.rst:
1073 Add trailing newline.
1074 * doc/openmp-environment-variables/ompdefaultdevice.rst:
1075 Add trailing newline.
1076 * doc/openmp-environment-variables/ompdisplayenv.rst:
1077 Add trailing newline.
1078 * doc/openmp-environment-variables/ompdynamic.rst:
1079 Add trailing newline.
1080 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
1081 Add trailing newline.
1082 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
1083 Add trailing newline.
1084 * doc/openmp-environment-variables/ompnested.rst:
1085 Add trailing newline.
1086 * doc/openmp-environment-variables/ompnumteams.rst:
1087 Add trailing newline.
1088 * doc/openmp-environment-variables/ompnumthreads.rst:
1089 Add trailing newline.
1090 * doc/openmp-environment-variables/ompplaces.rst:
1091 Add trailing newline.
1092 * doc/openmp-environment-variables/ompprocbind.rst:
1093 Add trailing newline.
1094 * doc/openmp-environment-variables/ompschedule.rst:
1095 Add trailing newline.
1096 * doc/openmp-environment-variables/ompstacksize.rst:
1097 Add trailing newline.
1098 * doc/openmp-environment-variables/omptargetoffload.rst:
1099 Add trailing newline.
1100 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
1101 Add trailing newline.
1102 * doc/openmp-environment-variables/ompthreadlimit.rst:
1103 Add trailing newline.
1104 * doc/openmp-environment-variables/ompwaitpolicy.rst:
1105 Add trailing newline.
1106 * doc/openmp-implementation-specifics.rst:
1107 Add trailing newline.
1108 * doc/openmp-implementation-status.rst:
1109 Add trailing newline.
1110 * doc/openmp-implementation-status/openmp-45.rst:
1111 Add trailing newline.
1112 * doc/openmp-implementation-status/openmp-50.rst:
1113 Add trailing newline.
1114 * doc/openmp-implementation-status/openmp-51.rst:
1115 Add trailing newline.
1116 * doc/openmp-implementation-status/openmp-52.rst:
1117 Add trailing newline.
1118 * doc/openmp-runtime-library-routines.rst:
1119 Add trailing newline.
1120 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
1121 Add trailing newline.
1122 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
1123 Add trailing newline.
1124 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
1125 Add trailing newline.
1126 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
1127 Add trailing newline.
1128 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
1129 Add trailing newline.
1130 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
1131 Add trailing newline.
1132 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
1133 Add trailing newline.
1134 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
1135 Add trailing newline.
1136 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
1137 Add trailing newline.
1138 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
1139 Add trailing newline.
1140 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
1141 Add trailing newline.
1142 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
1143 Add trailing newline.
1144 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
1145 Add trailing newline.
1146 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
1147 Add trailing newline.
1148 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
1149 Add trailing newline.
1150 * doc/openmp-runtime-library-routines/ompgetnested.rst:
1151 Add trailing newline.
1152 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
1153 Add trailing newline.
1154 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
1155 Add trailing newline.
1156 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
1157 Add trailing newline.
1158 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
1159 Add trailing newline.
1160 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
1161 Add trailing newline.
1162 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
1163 Add trailing newline.
1164 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
1165 Add trailing newline.
1166 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
1167 Add trailing newline.
1168 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
1169 Add trailing newline.
1170 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
1171 Add trailing newline.
1172 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
1173 Add trailing newline.
1174 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
1175 Add trailing newline.
1176 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
1177 Add trailing newline.
1178 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
1179 Add trailing newline.
1180 * doc/openmp-runtime-library-routines/ompinfinal.rst:
1181 Add trailing newline.
1182 * doc/openmp-runtime-library-routines/ompinitlock.rst:
1183 Add trailing newline.
1184 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
1185 Add trailing newline.
1186 * doc/openmp-runtime-library-routines/ompinparallel.rst:
1187 Add trailing newline.
1188 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
1189 Add trailing newline.
1190 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
1191 Add trailing newline.
1192 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
1193 Add trailing newline.
1194 * doc/openmp-runtime-library-routines/ompsetlock.rst:
1195 Add trailing newline.
1196 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
1197 Add trailing newline.
1198 * doc/openmp-runtime-library-routines/ompsetnested.rst:
1199 Add trailing newline.
1200 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
1201 Add trailing newline.
1202 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
1203 Add trailing newline.
1204 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
1205 Add trailing newline.
1206 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
1207 Add trailing newline.
1208 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
1209 Add trailing newline.
1210 * doc/openmp-runtime-library-routines/omptestlock.rst:
1211 Add trailing newline.
1212 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
1213 Add trailing newline.
1214 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
1215 Add trailing newline.
1216 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
1217 Add trailing newline.
1218 * doc/reporting-bugs.rst:
1219 Add trailing newline.
1220 * doc/the-libgomp-abi.rst:
1221 Add trailing newline.
1222 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
1223 Add trailing newline.
1224 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
1225 Add trailing newline.
1226 * doc/the-libgomp-abi/implementing-critical-construct.rst:
1227 Add trailing newline.
1228 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1229 Add trailing newline.
1230 * doc/the-libgomp-abi/implementing-flush-construct.rst:
1231 Add trailing newline.
1232 * doc/the-libgomp-abi/implementing-for-construct.rst:
1233 Add trailing newline.
1234 * doc/the-libgomp-abi/implementing-master-construct.rst:
1235 Add trailing newline.
1236 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
1237 Add trailing newline.
1238 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
1239 Add trailing newline.
1240 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
1241 Add trailing newline.
1242 * doc/the-libgomp-abi/implementing-private-clause.rst:
1243 Add trailing newline.
1244 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
1245 Add trailing newline.
1246 * doc/the-libgomp-abi/implementing-sections-construct.rst:
1247 Add trailing newline.
1248 * doc/the-libgomp-abi/implementing-single-construct.rst:
1249 Add trailing newline.
1250 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
1251 Add trailing newline.
1252
1253 2022-11-09 Martin Liska <mliska@suse.cz>
1254
1255 * Makefile.in: Build info pages conditionally.
1256
1257 2022-11-09 Martin Liska <mliska@suse.cz>
1258
1259 * Makefile.in: Support --with-sphinx-build.
1260 * configure.ac: Likewise..
1261 * configure: Regenerate.
1262
1263 2022-11-09 Martin Liska <mliska@suse.cz>
1264
1265 * libgomp.texi: Removed.
1266
1267 2022-11-09 Martin Liska <mliska@suse.cz>
1268
1269 * Makefile.in: Support Sphinx based documentation.
1270
1271 2022-11-09 Martin Liska <mliska@suse.cz>
1272
1273 * doc/amd-radeon-gcn.rst: New file.
1274 * doc/conf.py: New file.
1275 * doc/copyright.rst: New file.
1276 * doc/cuda-streams-usage.rst: New file.
1277 * doc/enabling-openacc.rst: New file.
1278 * doc/enabling-openmp.rst: New file.
1279 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
1280 * doc/first-invocation-openacc-library-api.rst: New file.
1281 * doc/funding.rst: New file.
1282 * doc/general-public-license-3.rst: New file.
1283 * doc/gnu-free-documentation-license.rst: New file.
1284 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
1285 * doc/index.rst: New file.
1286 * doc/indices-and-tables.rst: New file.
1287 * doc/introduction.rst: New file.
1288 * doc/memory-allocation-with-libmemkind.rst: New file.
1289 * doc/nvptx.rst: New file.
1290 * doc/offload-target-specifics.rst: New file.
1291 * doc/openacc-environment-variables.rst: New file.
1292 * doc/openacc-environment-variables/accdevicenum.rst: New file.
1293 * doc/openacc-environment-variables/accdevicetype.rst: New file.
1294 * doc/openacc-environment-variables/accproflib.rst: New file.
1295 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
1296 * doc/openacc-introduction.rst: New file.
1297 * doc/openacc-library-and-environment-variables.rst: New file.
1298 * doc/openacc-library-interoperability.rst: New file.
1299 * doc/openacc-profiling-interface.rst: New file.
1300 * doc/openacc-runtime-library-routines.rst: New file.
1301 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
1302 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
1303 * doc/openacc-runtime-library-routines/accattach.rst: New file.
1304 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
1305 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
1306 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
1307 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
1308 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
1309 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
1310 * doc/openacc-runtime-library-routines/accfree.rst: New file.
1311 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
1312 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
1313 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
1314 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
1315 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
1316 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
1317 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
1318 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
1319 * doc/openacc-runtime-library-routines/accinit.rst: New file.
1320 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
1321 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
1322 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
1323 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
1324 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
1325 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
1326 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
1327 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
1328 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
1329 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
1330 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
1331 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
1332 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
1333 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
1334 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
1335 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
1336 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
1337 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
1338 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
1339 * doc/openacc-runtime-library-routines/accwait.rst: New file.
1340 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
1341 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
1342 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
1343 * doc/openmp-context-selectors.rst: New file.
1344 * doc/openmp-environment-variables.rst: New file.
1345 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
1346 * doc/openmp-environment-variables/gompdebug.rst: New file.
1347 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
1348 * doc/openmp-environment-variables/gompspincount.rst: New file.
1349 * doc/openmp-environment-variables/gompstacksize.rst: New file.
1350 * doc/openmp-environment-variables/ompcancellation.rst: New file.
1351 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
1352 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
1353 * doc/openmp-environment-variables/ompdynamic.rst: New file.
1354 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
1355 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
1356 * doc/openmp-environment-variables/ompnested.rst: New file.
1357 * doc/openmp-environment-variables/ompnumteams.rst: New file.
1358 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
1359 * doc/openmp-environment-variables/ompplaces.rst: New file.
1360 * doc/openmp-environment-variables/ompprocbind.rst: New file.
1361 * doc/openmp-environment-variables/ompschedule.rst: New file.
1362 * doc/openmp-environment-variables/ompstacksize.rst: New file.
1363 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
1364 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
1365 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
1366 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
1367 * doc/openmp-implementation-specifics.rst: New file.
1368 * doc/openmp-implementation-status.rst: New file.
1369 * doc/openmp-implementation-status/openmp-45.rst: New file.
1370 * doc/openmp-implementation-status/openmp-50.rst: New file.
1371 * doc/openmp-implementation-status/openmp-51.rst: New file.
1372 * doc/openmp-implementation-status/openmp-52.rst: New file.
1373 * doc/openmp-runtime-library-routines.rst: New file.
1374 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
1375 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
1376 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
1377 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
1378 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
1379 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
1380 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
1381 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
1382 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
1383 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
1384 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
1385 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
1386 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
1387 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
1388 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
1389 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
1390 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
1391 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
1392 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
1393 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
1394 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
1395 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
1396 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
1397 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
1398 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
1399 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
1400 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
1401 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
1402 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
1403 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
1404 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
1405 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
1406 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
1407 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
1408 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
1409 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
1410 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
1411 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
1412 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
1413 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
1414 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
1415 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
1416 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
1417 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
1418 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
1419 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
1420 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
1421 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
1422 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
1423 * doc/reporting-bugs.rst: New file.
1424 * doc/the-libgomp-abi.rst: New file.
1425 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
1426 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
1427 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
1428 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1429 New file.
1430 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
1431 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
1432 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
1433 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
1434 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
1435 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
1436 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
1437 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
1438 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
1439 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
1440 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
1441
1442 2022-11-04 Thomas Schwinge <thomas@codesourcery.com>
1443
1444 * libgomp-plugin.h (OFFLOAD_TARGET_TYPE_INTEL_MIC): Remove.
1445 * libgomp.texi (OpenMP Context Selectors): Remove Intel MIC
1446 documentation.
1447 * plugin/configfrag.ac <enable_offload_targets>
1448 [*-intelmic-* | *-intelmicemul-*]: Remove.
1449 * configure: Regenerate.
1450 * testsuite/lib/libgomp.exp (libgomp_init): Remove 'liboffloadmic'
1451 handling.
1452 (offload_target_to_openacc_device_type)
1453 [$offload_target = *-intelmic*]: Remove.
1454 (check_effective_target_offload_device_intel_mic)
1455 (check_effective_target_offload_device_any_intel_mic): Remove.
1456 * testsuite/libgomp.c-c++-common/on_device_arch.h
1457 (device_arch_intel_mic, on_device_arch_intel_mic, any_device_arch)
1458 (any_device_arch_intel_mic): Remove.
1459 * testsuite/libgomp.c-c++-common/target-45.c: Remove
1460 'offload_device_any_intel_mic' XFAIL.
1461 * testsuite/libgomp.fortran/target10.f90: Likewise.
1462
1463 2022-11-03 Tobias Burnus <tobias@codesourcery.com>
1464
1465 * testsuite/libgomp.fortran/target-11.f90: New test.
1466 * testsuite/libgomp.fortran/target-13.f90: New test.
1467
1468 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
1469
1470 PR libgomp/106643
1471 PR fortran/96668
1472 * oacc-mem.c (goacc_enter_data_internal): Support
1473 OpenACC 'declare create' with Fortran allocatable arrays, part II.
1474 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
1475 Adjust.
1476 * testsuite/libgomp.oacc-fortran/pr106643-1.f90: New.
1477
1478 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
1479
1480 PR libgomp/106643
1481 * oacc-mem.c (goacc_enter_data_internal): Support
1482 OpenACC 'declare create' with Fortran allocatable arrays, part I.
1483 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90:
1484 New.
1485 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
1486 New.
1487
1488 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
1489
1490 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-runtime.f90:
1491 New.
1492
1493 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
1494
1495 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90:
1496 New.
1497
1498 2022-11-02 Cesar Philippidis <cesar@codesourcery.com>
1499 Thomas Schwinge <thomas@codesourcery.com>
1500
1501 * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: New.
1502
1503 2022-10-28 Julian Brown <julian@codesourcery.com>
1504 Thomas Schwinge <thomas@codesourcery.com>
1505
1506 PR middle-end/90115
1507 * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
1508 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
1509 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
1510 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
1511 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1512
1513 2022-10-24 Thomas Schwinge <thomas@codesourcery.com>
1514
1515 * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
1516 'ptx_dev->rev_data'.
1517
1518 2022-10-24 Tobias Burnus <tobias@codesourcery.com>
1519
1520 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
1521 'static' for this variable.
1522 * config/nvptx/libgomp-nvptx.h: New file.
1523 * config/nvptx/target.c: Include it.
1524 (GOMP_ADDITIONAL_ICVS): Declare extern var.
1525 (GOMP_REV_OFFLOAD_VAR): Declare var.
1526 (GOMP_target_ext): Handle reverse offload.
1527 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
1528 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
1529 * target.c (gomp_target_rev): ... this new stub function.
1530 * libgomp.h (gomp_target_rev): Declare.
1531 * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
1532 * plugin/cuda-lib.def (cuMemHostAlloc): Add.
1533 * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
1534 (struct ptx_device): Add rev_data member.
1535 (nvptx_open_device): Remove async_engines query, last used in
1536 r10-304-g1f4c5b9b; add unified-address assert check.
1537 (GOMP_OFFLOAD_get_num_devices): Claim unified address
1538 support.
1539 (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
1540 offload functions exist. Make offload var available
1541 on host and device.
1542 (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
1543 (GOMP_OFFLOAD_run): Handle reverse offload.
1544
1545 2022-10-21 Thomas Schwinge <thomas@codesourcery.com>
1546
1547 PR tree-optimization/107195
1548 PR target/107344
1549 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
1550 regions checking.
1551
1552 2022-10-20 Tobias Burnus <tobias@codesourcery.com>
1553
1554 * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
1555 New.
1556 * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
1557 on_device_arch_gcn): New.
1558 * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
1559 requires-4.c but using heap-allocated memory.
1560
1561 2022-10-20 Thomas Schwinge <thomas@codesourcery.com>
1562
1563 PR target/105421
1564 * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
1565
1566 2022-10-17 Thomas Schwinge <thomas@codesourcery.com>
1567
1568 * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
1569 '-foffload-options' syntax.
1570
1571 2022-10-13 Tobias Burnus <tobias@codesourcery.com>
1572
1573 * testsuite/libgomp.fortran/task-7.f90: New test.
1574 * testsuite/libgomp.fortran/task-8.f90: New test.
1575 * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
1576 * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
1577 * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
1578 * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
1579 * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
1580
1581 2022-10-12 Jakub Jelinek <jakub@redhat.com>
1582
1583 * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
1584 in deprecation bullet.
1585
1586 2022-10-12 Jakub Jelinek <jakub@redhat.com>
1587
1588 * omp.h.in (omp_in_explicit_task): Declare.
1589 * omp_lib.h.in (omp_in_explicit_task): Likewise.
1590 * omp_lib.f90.in (omp_in_explicit_task): New interface.
1591 * libgomp.map (OMP_5.2): New symbol version, export
1592 omp_in_explicit_task and omp_in_explicit_task_.
1593 * task.c (omp_in_explicit_task): New function.
1594 * fortran.c (omp_in_explicit_task): Add ialias_redirect.
1595 (omp_in_explicit_task_): New function.
1596 * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
1597 * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
1598 * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
1599 * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
1600
1601 2022-10-12 Jakub Jelinek <jakub@redhat.com>
1602
1603 * task.c (gomp_create_artificial_team): Fix up handling of invocations
1604 from within explicit task.
1605 * target.c (GOMP_target_ext): Likewise.
1606 * testsuite/libgomp.c/task-7.c: New test.
1607 * testsuite/libgomp.c/task-8.c: New test.
1608 * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
1609 * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
1610
1611 2022-10-12 Martin Liska <mliska@suse.cz>
1612
1613 * configure: Regenerate.
1614
1615 2022-10-11 Olivier Hainque <hainque@adacore.com>
1616 Olivier Hainque <hainque@adacore.com>
1617
1618 * configure: Regenerate.
1619
1620 2022-10-05 Tobias Burnus <tobias@codesourcery.com>
1621
1622 * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
1623
1624 2022-10-04 Jakub Jelinek <jakub@redhat.com>
1625
1626 * libgomp.texi (Support begin/end declare target syntax in C/C++):
1627 Mark as implemented.
1628
1629 2022-09-30 Tobias Burnus <tobias@codesourcery.com>
1630
1631 PR fortran/105318
1632 * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
1633
1634 2022-09-28 Tobias Burnus <tobias@codesourcery.com>
1635
1636 * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
1637 for C/C++. Remove duplicated 'begin declare target' entry.
1638
1639 2022-09-24 Jakub Jelinek <jakub@redhat.com>
1640
1641 PR c/106981
1642 * testsuite/libgomp.c-c++-common/pr106981.c: New test.
1643
1644 2022-09-14 Julian Brown <julian@codesourcery.com>
1645
1646 * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
1647 * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
1648 * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
1649 * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
1650 test to here, make "run" test.
1651
1652 2022-09-13 Jakub Jelinek <jakub@redhat.com>
1653
1654 PR libgomp/106906
1655 * env.c (get_icv_member_addr): Cast false to void * before assigning
1656 it to icv_addr[1], and comment the whole assignment out.
1657
1658 2022-09-13 Tobias Burnus <tobias@codesourcery.com>
1659
1660 * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
1661 (nvptx): ... here.
1662
1663 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
1664
1665 * libgomp.texi (Offload-Target Specifics: nvptx): Document
1666 that reverse offload requires >= -march=sm_35.
1667 * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
1668 with -misa=sm_35.
1669 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
1670 * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
1671 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
1672 * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
1673 * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
1674
1675 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
1676
1677 * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
1678 (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
1679
1680 2022-09-12 Jakub Jelinek <jakub@redhat.com>
1681
1682 PR libgomp/106894
1683 * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
1684 (main): Avoid tests for which corresponding non-_ALL suffixed variable
1685 is in the environment, or for OMP_NUM_TEAMS on the device
1686 OMP_NUM_TEAMS_DEV_?.
1687
1688 2022-09-10 Iain Sandoe <iain@sandoe.co.uk>
1689
1690 * env.c (initialize_env): Include libiberty environ.h.
1691
1692 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
1693
1694 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
1695 function address table '$offload_func_table' if rev_fn_table
1696 is not NULL.
1697
1698 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
1699
1700 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
1701 .offload_func_table to populate rev_fn_table when requested.
1702
1703 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
1704
1705 * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
1706 'uint64_t **rev_fn_table' argument.
1707 * oacc-host.c (host_load_image): Likewise.
1708 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
1709 currently unused.
1710 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
1711 * target.c (gomp_load_image_to_device): Update call but pass
1712 NULL for now.
1713
1714 2022-09-09 Jakub Jelinek <jakub@redhat.com>
1715
1716 PR libgomp/106894
1717 * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
1718 char * for dest[1] initialization from params[1]. Formatting fixes.
1719
1720 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
1721
1722 PR fortran/106670
1723 * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
1724
1725 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
1726
1727 * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
1728 section; move OpenMP Context Selectors from ...
1729 (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
1730 'nvptx' sections.
1731
1732 2022-09-08 Marcel Vollweiler <marcel@codesourcery.com>
1733
1734 * config/gcn/icv-device.c (omp_get_default_device): Return device-
1735 specific ICV.
1736 (omp_get_max_teams): Added for GCN devices.
1737 (omp_set_num_teams): Likewise.
1738 (ialias): Likewise.
1739 * config/nvptx/icv-device.c (omp_get_default_device): Return device-
1740 specific ICV.
1741 (omp_get_max_teams): Added for NVPTX devices.
1742 (omp_set_num_teams): Likewise.
1743 (ialias): Likewise.
1744 * env.c (struct gomp_icv_list): New struct to store entries of initial
1745 ICV values.
1746 (struct gomp_offload_icv_list): New struct to store entries of device-
1747 specific ICV values that are copied to the device and back.
1748 (struct gomp_default_icv_values): New struct to store default values of
1749 ICVs according to the OpenMP standard.
1750 (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
1751 (print_env_var_error): Function that prints an error for invalid values
1752 for ICVs.
1753 (parse_unsigned_long_1): Removed getenv. Generalized.
1754 (parse_unsigned_long): Likewise.
1755 (parse_int_1): Likewise.
1756 (parse_int): Likewise.
1757 (parse_int_secure): Likewise.
1758 (parse_unsigned_long_list): Likewise.
1759 (parse_target_offload): Likewise.
1760 (parse_bind_var): Likewise.
1761 (parse_stacksize): Likewise.
1762 (parse_boolean): Likewise.
1763 (parse_wait_policy): Likewise.
1764 (parse_allocator): Likewise.
1765 (omp_display_env): Extended to output different variants of environment
1766 variables.
1767 (print_schedule): New helper function for omp_display_env which prints
1768 the values of run_sched_var.
1769 (print_proc_bind): New helper function for omp_display_env which prints
1770 the values of proc_bind_var.
1771 (enum gomp_parse_type): Collection of types used for parsing environment
1772 variables.
1773 (ENTRY): Preprocess string lengths of environment variables.
1774 (OMP_VAR_CNT): Preprocess table size.
1775 (OMP_HOST_VAR_CNT): Likewise.
1776 (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
1777 number.
1778 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
1779 (gomp_set_icv_flag): Sets a flag for a particular ICV.
1780 (print_device_specific_icvs): New helper function for omp_display_env to
1781 print device specific ICV values.
1782 (get_device_num): New helper function for parse_device_specific.
1783 Extracts the device number from an environment variable name.
1784 (get_icv_member_addr): Gets the memory address for a particular member
1785 of an ICV struct.
1786 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
1787 (initialize_icvs): New function to initialize a gomp_initial_icvs
1788 struct.
1789 (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
1790 (startswith): Checks if a string starts with a given prefix.
1791 (initialize_env): Extended to parse the new syntax of environment
1792 variables.
1793 * icv-device.c (omp_get_max_teams): Added.
1794 (ialias): Likewise.
1795 (omp_set_num_teams): Likewise.
1796 * icv.c (omp_set_num_teams): Moved to icv-device.c.
1797 (omp_get_max_teams): Likewise.
1798 (ialias): Likewise.
1799 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
1800 (GOMP_ADDITIONAL_ICVS): New target-side struct that
1801 holds the designated ICVs of the target device.
1802 * libgomp.h (enum gomp_icvs): Collection of ICVs.
1803 (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
1804 no suffix.
1805 (enum gomp_env_suffix): Collection of possible suffixes of environment
1806 variables.
1807 (struct gomp_initial_icvs): Contains all ICVs for which we need to store
1808 initial values.
1809 (struct gomp_default_icv):New struct to hold ICVs for which we need
1810 to store initial values.
1811 (struct gomp_icv_list): Definition of a linked list that is used for
1812 storing ICVs for the devices and also for _DEV, _ALL, and without
1813 suffix.
1814 (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
1815 a device.
1816 (struct gomp_offload_icv_list): Definition of a linked list that holds
1817 device-specific ICVs that are copied to devices.
1818 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
1819 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
1820 * libgomp.texi: Updated.
1821 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
1822 further ICVs from the offload image.
1823 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
1824 * target.c (gomp_get_offload_icv_item): Get a list item of
1825 gomp_offload_icv_list.
1826 (get_gomp_offload_icvs): New. Returns the ICV values
1827 depending on the device num and the variable hierarchy.
1828 (gomp_load_image_to_device): Extended to copy further ICVs to a device.
1829 * testsuite/libgomp.c-c++-common/icv-5.c: New test.
1830 * testsuite/libgomp.c-c++-common/icv-6.c: New test.
1831 * testsuite/libgomp.c-c++-common/icv-7.c: New test.
1832 * testsuite/libgomp.c-c++-common/icv-8.c: New test.
1833 * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
1834 * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
1835
1836 2022-09-08 Jakub Jelinek <jakub@redhat.com>
1837
1838 * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
1839 fully supported.
1840 * testsuite/libgomp.c/doacross-4.c: New test.
1841 * testsuite/libgomp.c/doacross-5.c: New test.
1842 * testsuite/libgomp.c/doacross-6.c: New test.
1843 * testsuite/libgomp.c/doacross-7.c: New test.
1844
1845 2022-09-05 Tobias Burnus <tobias@codesourcery.com>
1846
1847 * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
1848
1849 2022-08-26 Tobias Burnus <tobias@codesourcery.com>
1850
1851 * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
1852 refer to 'requires'.
1853 * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
1854 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
1855 * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
1856 * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
1857
1858 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
1859
1860 PR middle-end/106548
1861 * testsuite/libgomp.c/linear-2.c: New test.
1862
1863 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
1864
1865 * splay-tree.h: Fix splay_* macro unsetting if
1866 splay_tree_prefix is defined.
1867
1868 2022-07-29 Tobias Burnus <tobias@codesourcery.com>
1869
1870 * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
1871
1872 2022-07-29 Jakub Jelinek <jakub@redhat.com>
1873
1874 PR middle-end/106449
1875 * testsuite/libgomp.c-c++-common/pr106449.c: New test.
1876
1877 2022-07-12 Tobias Burnus <tobias@codesourcery.com>
1878
1879 * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
1880
1881 2022-07-12 Thomas Schwinge <thomas@codesourcery.com>
1882
1883 PR middle-end/101551
1884 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
1885 'offloading_enabled' diagnostics issue.
1886
1887 2022-07-11 Thomas Schwinge <thomas@codesourcery.com>
1888
1889 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
1890 '_Pragma' diagnostics verification.
1891
1892 2022-07-10 Lewis Hyatt <lhyatt@gmail.com>
1893
1894 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
1895 improved warning locations.
1896 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
1897
1898 2022-07-08 Thomas Schwinge <thomas@codesourcery.com>
1899
1900 * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
1901 * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
1902 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
1903 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
1904 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
1905
1906 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
1907
1908 * target.c (GOMP_offload_register, GOMP_offload_unregister):
1909 Denote as legacy entry points.
1910 * testsuite/lib/libgomp.exp
1911 (check_effective_target_offload_target_any): New proc.
1912 * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
1913 'offload_target_any'.
1914 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
1915 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
1916 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
1917
1918 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
1919
1920 * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
1921 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
1922
1923 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
1924
1925 * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
1926
1927 2022-07-06 Thomas Schwinge <thomas@codesourcery.com>
1928
1929 * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
1930 'data'.
1931 (GOMP_offload_unregister_ver): Likewise. Fix up 'target_data'.
1932
1933 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
1934 Jakub Jelinek <jakub@redhat.com>
1935
1936 * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
1937
1938 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
1939 Chung-Lin Tang <cltang@codesourcery.com>
1940 Thomas Schwinge <thomas@codesourcery.com>
1941
1942 * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
1943 omp_requires_mask arg.
1944 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
1945 return -1 when device available but omp_requires_mask != 0.
1946 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
1947 * oacc-host.c (host_get_num_devices, host_openacc_get_property):
1948 Update call.
1949 * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
1950 goacc_attach_host_thread_to_device, acc_get_num_devices,
1951 acc_set_device_num, get_property_any): Likewise.
1952 * target.c (omp_requires_mask): New global var.
1953 (gomp_requires_to_name): New.
1954 (GOMP_offload_register_ver): Handle passed omp_requires_mask.
1955 (gomp_target_init): Handle omp_requires_mask.
1956 * libgomp.texi (OpenMP 5.0): Update requires impl. status.
1957 (OpenMP 5.1): Add a missed item.
1958 (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
1959 * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
1960 * testsuite/libgomp.c-c++-common/requires-1.c: New test.
1961 * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
1962 * testsuite/libgomp.c-c++-common/requires-2.c: New test.
1963 * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
1964 * testsuite/libgomp.c-c++-common/requires-3.c: New test.
1965 * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
1966 * testsuite/libgomp.c-c++-common/requires-4.c: New test.
1967 * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
1968 * testsuite/libgomp.c-c++-common/requires-5.c: New test.
1969 * testsuite/libgomp.c-c++-common/requires-6.c: New test.
1970 * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
1971 * testsuite/libgomp.c-c++-common/requires-7.c: New test.
1972 * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
1973 * testsuite/libgomp.fortran/requires-1.f90: New test.
1974
1975 2022-07-01 Tobias Burnus <tobias@codesourcery.com>
1976
1977 * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
1978 with fromto as implemented.
1979
1980 2022-06-28 Martin Liska <mliska@suse.cz>
1981
1982 * acinclude.m4: Fix typo in mold linker detection.
1983 * Makefile.in: Regenerate.
1984 * configure: Regenerate.
1985
1986 2022-06-21 Jakub Jelinek <jakub@redhat.com>
1987 Paul Iannetta <piannetta@kalrayinc.com>
1988
1989 PR libgomp/106045
1990 * testsuite/libgomp.c/target-31.c: Add private (i) clause.
1991
1992 2022-06-17 Martin Liska <mliska@suse.cz>
1993
1994 * libgomp.texi: Add table header for new features of
1995 OpenMP 5.2.
1996
1997 2022-06-15 Jakub Jelinek <jakub@redhat.com>
1998
1999 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
2000 q to ddress of an automatic variable. Use -5 instead of -1 in
2001 omp_get_mapped_ptr call. Add test with omp_initial_device.
2002 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
2003 of -1 in omp_get_mapped_ptr call. Add test with omp_initial_device.
2004 Renumber stop arguments afterwards.
2005
2006 2022-06-13 Jakub Jelinek <jakub@redhat.com>
2007
2008 * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
2009 * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
2010 parameters.
2011 * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
2012 * target.c (resolve_device): Add remapped argument, handle
2013 GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
2014 for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
2015 if remapped, otherwise treat omp_initial_device that way. For
2016 omp_invalid_device, always emit gomp_fatal, even when
2017 OMP_TARGET_OFFLOAD isn't mandatory.
2018 (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
2019 GOMP_target_update, GOMP_target_update_ext,
2020 GOMP_target_enter_exit_data): Pass true as remapped argument to
2021 resolve_device.
2022 (omp_target_alloc, omp_target_free, omp_target_is_present,
2023 omp_target_memcpy_check, omp_target_associate_ptr,
2024 omp_target_disassociate_ptr, omp_get_mapped_ptr,
2025 omp_target_is_accessible): Pass false as remapped argument to
2026 resolve_device. Treat omp_initial_device the same as
2027 gomp_get_num_devices (). Don't bypass resolve_device calls if
2028 device_num is negative.
2029 (omp_pause_resource): Treat omp_initial_device the same as
2030 gomp_get_num_devices (). Call resolve_device.
2031 * icv-device.c (omp_set_default_device): Always set to device_num
2032 even when it is negative.
2033 * libgomp.texi: Document that Conforming device numbers,
2034 omp_initial_device and omp_invalid_device is implemented.
2035 * testsuite/libgomp.c/target-41.c (main): Add test with
2036 omp_initial_device.
2037 * testsuite/libgomp.c/target-45.c: New test.
2038 * testsuite/libgomp.c/target-46.c: New test.
2039 * testsuite/libgomp.c/target-47.c: New test.
2040 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
2041 test with omp_initial_device. Use -5 instead of -1 for negative value
2042 test.
2043 * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
2044 Likewise. Reorder stop numbers.
2045
2046 2022-06-10 Jakub Jelinek <jakub@redhat.com>
2047
2048 * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
2049 rather than "libmemkind.so".
2050
2051 2022-06-10 Thomas Schwinge <thomas@codesourcery.com>
2052
2053 * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
2054 * plugin/configfrag.ac (--with-cuda-driver)
2055 (--with-cuda-driver-include, --with-cuda-driver-lib)
2056 (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
2057 (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
2058 Remove.
2059 * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
2060 (cuda_driver_lib): Remove.
2061 * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
2062 * Makefile.in: Regenerate.
2063 * configure: Likewise.
2064 * testsuite/Makefile.in: Likewise.
2065
2066 2022-06-09 Jakub Jelinek <jakub@redhat.com>
2067
2068 * config/linux/allocator.c: Fix up #include directive.
2069
2070 2022-06-09 Jakub Jelinek <jakub@redhat.com>
2071
2072 * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
2073 (enum gomp_memkind_kind): New type.
2074 (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
2075 is defined.
2076 (struct gomp_memkind_data): New type.
2077 (memkind_data, memkind_data_once): New variables.
2078 (gomp_init_memkind, gomp_get_memkind): New functions.
2079 (omp_init_allocator): Initialize data.memkind, don't fail for
2080 omp_high_bw_mem_space if libmemkind supports it.
2081 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
2082 memkind support of LIBGOMP_USE_MEMKIND is defined.
2083 * config/linux/allocator.c: New file.
2084
2085 2022-06-03 Tobias Burnus <tobias@codesourcery.com>
2086
2087 * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
2088 * testsuite/libgomp.fortran/scope-2.f90: New test.
2089
2090 2022-06-02 David Malcolm <dmalcolm@redhat.com>
2091
2092 * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
2093
2094 2022-05-31 Jakub Jelinek <jakub@redhat.com>
2095
2096 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
2097 scope construct with allocate clause.
2098 * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
2099 * testsuite/libgomp.c-c++-common/scope-2.c: New test.
2100
2101 2022-05-28 Tobias Burnus <tobias@codesourcery.com>
2102
2103 * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
2104 * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
2105 explicit 'to' and 'enter' clause.
2106 * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
2107
2108 2022-05-28 Jakub Jelinek <jakub@redhat.com>
2109
2110 PR libgomp/105745
2111 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
2112 defined(HAVE__ALIGNED_MALLOC) case.
2113 * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
2114 handling as last option before fallback instead of first.
2115 (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
2116 _aligned_free.
2117
2118 2022-05-27 Jakub Jelinek <jakub@redhat.com>
2119
2120 * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
2121 clauses to enter.
2122 * testsuite/libgomp.c/target-41.c: Likewise.
2123
2124 2022-05-27 Tobias Burnus <tobias@codesourcery.com>
2125
2126 * libgomp.texi (Other new OpenMP 5.1 features): Add
2127 'begin declare target'.
2128 (Other new OpenMP 5.2 features): New.
2129
2130 2022-05-25 Jakub Jelinek <jakub@redhat.com>
2131
2132 * task.c (gomp_task_run_post_handle_dependers): If empty_task
2133 is the last task taskwait depend depends on, wake it up.
2134 Similarly if it is the last child of a taskgroup, use atomic
2135 store instead of decrement and awak taskgroup wait if any.
2136 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
2137
2138 2022-05-24 Andrew Stubbs <ams@codesourcery.com>
2139
2140 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
2141 EF_AMDGPU_MACH_AMDGCN_GFX90a.
2142 (gcn_gfx90a_s): New.
2143 (isa_hsa_name): Support gfx90a.
2144 (isa_code): Likewise.
2145
2146 2022-05-24 Tobias Burnus <tobias@codesourcery.com>
2147
2148 PR c/105378
2149 * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
2150 * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
2151
2152 2022-05-24 Jakub Jelinek <jakub@redhat.com>
2153
2154 PR c/105378
2155 * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
2156 * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
2157 * task.c (empty_task): New function.
2158 (gomp_task_run_post_handle_depend_hash): Declare earlier.
2159 (gomp_task_run_post_handle_depend): Declare.
2160 (GOMP_task): Optimize fn == empty_task if there is nothing to wait
2161 for.
2162 (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
2163 (GOMP_taskwait_depend_nowait): New function.
2164 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
2165
2166 2022-05-23 Tobias Burnus <tobias@codesourcery.com>
2167
2168 PR fortran/104949
2169 * target.c (gomp_map_vars_internal, copy_firstprivate_data):
2170 Support attach for GOMP_MAP_FIRSTPRIVATE.
2171 * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
2172 * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
2173 * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
2174
2175 2022-05-20 Marcel Vollweiler <marcel@codesourcery.com>
2176
2177 * libgomp.map: Added omp_target_memcpy_async and
2178 omp_target_memcpy_rect_async.
2179 * libgomp.texi: Both functions are now supported.
2180 * omp.h.in: Added omp_target_memcpy_async and
2181 omp_target_memcpy_rect_async.
2182 * omp_lib.f90.in: Added interfaces for both new functions.
2183 * omp_lib.h.in: Likewise.
2184 * target.c (ialias_redirect): Added for GOMP_task.
2185 (omp_target_memcpy): Restructured into check and copy part.
2186 (omp_target_memcpy_check): New helper function for omp_target_memcpy and
2187 omp_target_memcpy_async that checks requirements.
2188 (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
2189 omp_target_memcpy_async that performs the memcpy.
2190 (omp_target_memcpy_async_helper): New helper function that is used in
2191 omp_target_memcpy_async for the asynchronous task.
2192 (omp_target_memcpy_async): Added.
2193 (omp_target_memcpy_rect): Restructured into check and copy part.
2194 (omp_target_memcpy_rect_check): New helper function for
2195 omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
2196 requirements.
2197 (omp_target_memcpy_rect_copy): New helper function for
2198 omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
2199 the memcpy.
2200 (omp_target_memcpy_rect_async_helper): New helper function that is used
2201 in omp_target_memcpy_rect_async for the asynchronous task.
2202 (omp_target_memcpy_rect_async): Added.
2203 * task.c (ialias): Added for GOMP_task.
2204 * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
2205 * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
2206 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
2207 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
2208 * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
2209 * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
2210 * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
2211 * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
2212
2213 2022-05-18 Tobias Burnus <tobias@codesourcery.com>
2214
2215 * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
2216 (OpenMP Context Selectors): Add missing comma.
2217 * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
2218 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
2219 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
2220 * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
2221
2222 2022-05-17 Jakub Jelinek <jakub@redhat.com>
2223
2224 * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
2225 comment for omp_display_env feature.
2226
2227 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
2228
2229 * libgomp.texi (Offload-Target Specifics): New chapter; add section
2230 to document OpenMP context selectors.
2231
2232 2022-05-17 Jakub Jelinek <jakub@redhat.com>
2233
2234 * libgomp.h (struct gomp_task_depend_entry): Change is_in type
2235 from bool to unsigned char.
2236 * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
2237 Ignore dependencies where
2238 task->depend[i].is_in && task->depend[i].is_in == ent->is_in
2239 rather than just task->depend[i].is_in && ent->is_in. Remember
2240 whether GOMP_DEPEND_IN loop is needed and guard the loop with that
2241 conditional.
2242 (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
2243 Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
2244 rather than just elem.is_in && ent->is_in.
2245 * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
2246 inoutset depend-kind.
2247 * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
2248 * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
2249 * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
2250
2251 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
2252
2253 * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
2254
2255 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
2256
2257 * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
2258 * testsuite/libgomp.fortran/depend-5.f90: New test.
2259 * testsuite/libgomp.fortran/depend-6.f90: New test.
2260 * testsuite/libgomp.fortran/depend-7.f90: New test.
2261
2262 2022-05-16 Marcel Vollweiler <marcel@codesourcery.com>
2263
2264 * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
2265 * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
2266 * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
2267
2268 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
2269
2270 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
2271
2272 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
2273
2274 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
2275
2276 2022-05-13 Thomas Schwinge <thomas@codesourcery.com>
2277
2278 * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
2279 [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
2280 (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
2281 append '$(PLUGIN_NVPTX_LDFLAGS)'.
2282 * Makefile.in: Regenerate.
2283
2284 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
2285
2286 * Makefile.am (libgomp_la_LIBADD): Initialize.
2287 * plugin/configfrag.ac (DL_LIBS): New.
2288 (PLUGIN_GCN_LIBS): Remove.
2289 (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
2290 * plugin/Makefrag.am (libgomp_la_LIBADD)
2291 (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
2292 (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
2293 * Makefile.in: Regenerate.
2294 * config.h.in: Likewise.
2295 * configure: Likewise.
2296 * testsuite/Makefile.in: Likewise.
2297
2298 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
2299
2300 * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
2301 * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
2302 'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
2303 * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
2304 'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
2305 'PLUGIN_NVPTX_LINK_LIBCUDA'.
2306 * Makefile.in: Regenerate.
2307 * config.h.in: Likewise.
2308 * configure: Likewise.
2309
2310 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
2311
2312 * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
2313 for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
2314 * Makefile.in: Regenerate.
2315 * config.h.in: Likewise.
2316 * configure: Likewise.
2317 * testsuite/Makefile.in: Likewise.
2318
2319 2022-05-12 Jakub Jelinek <jakub@redhat.com>
2320
2321 * libgomp.h (struct gomp_task): Add depend_all_memory member.
2322 * task.c (gomp_init_task): Initialize depend_all_memory.
2323 (gomp_task_handle_depend): Handle omp_all_memory.
2324 (gomp_task_run_post_handle_depend_hash): Clear
2325 parent->depend_all_memory if equal to current task.
2326 (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
2327 * testsuite/libgomp.c-c++-common/depend-1.c: New test.
2328 * testsuite/libgomp.c-c++-common/depend-2.c: New test.
2329 * testsuite/libgomp.c-c++-common/depend-3.c: New test.
2330
2331 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
2332
2333 * plugin/configfrag.ac: Remove '--with-hsa-runtime',
2334 '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
2335 * Makefile.in: Regenerate.
2336 * configure: Likewise.
2337 * testsuite/Makefile.in: Likewise.
2338
2339 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
2340
2341 * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
2342 consider 'PLUGIN_GCN_CPPFLAGS'.
2343 (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
2344 'PLUGIN_GCN_LDFLAGS'.
2345 * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
2346 Remove.
2347 * Makefile.in: Regenerate.
2348 * configure: Likewise.
2349 * testsuite/Makefile.in: Likewise.
2350
2351 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
2352
2353 * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
2354 (HSA_RUNTIME_LDFLAGS): Remove.
2355 * configure: Regenerate.
2356
2357 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
2358
2359 * testsuite/lib/libgomp.exp (libgomp_init): Don't
2360 'append always_ld_library_path ":$hsa_runtime_lib"'.
2361 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
2362
2363 2022-05-10 Thomas Schwinge <thomas@codesourcery.com>
2364
2365 * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
2366 multi-device testing.
2367
2368 2022-05-06 Marcel Vollweiler <marcel@codesourcery.com>
2369
2370 * libgomp.map: Added omp_target_is_accessible.
2371 * libgomp.texi: Tagged omp_target_is_accessible as supported.
2372 * omp.h.in: Added omp_target_is_accessible.
2373 * omp_lib.f90.in: Added interface for omp_target_is_accessible.
2374 * omp_lib.h.in: Likewise.
2375 * target.c (omp_target_is_accessible): Added implementation of
2376 omp_target_is_accessible.
2377 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
2378 * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
2379
2380 2022-05-05 Sandra Loosemore <sandra@codesourcery.com>
2381
2382 * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
2383
2384 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
2385
2386 * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
2387
2388 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
2389
2390 * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
2391
2392 2022-05-03 Marcel Vollweiler <marcel@codesourcery.com>
2393
2394 * libgomp.map: Added omp_get_mapped_ptr.
2395 * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
2396 * omp.h.in: Added omp_get_mapped_ptr.
2397 * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
2398 * omp_lib.h.in: Likewise.
2399 * target.c (omp_get_mapped_ptr): Added implementation of
2400 omp_get_mapped_ptr.
2401 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
2402 * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
2403 * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
2404 * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
2405 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
2406 * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
2407 * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
2408 * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
2409
2410 2022-04-28 Thomas Schwinge <thomas@codesourcery.com>
2411
2412 PR fortran/104717
2413 * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
2414 privatization scanning. For GCN offloading compilation, raise
2415 '-mgang-private-size'.
2416
2417 2022-04-26 Jakub Jelinek <jakub@redhat.com>
2418
2419 PR libgomp/105358
2420 * work.c (gomp_init_work_share): Don't mask of adjustment for
2421 dynamic long long realignment if struct gomp_work_share has smaller
2422 alignof than long long.
2423 * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
2424 struct gomp_work_share has smaller alignof than long long or if
2425 sizeof (struct gomp_work_share) is smaller than
2426 INLINE_ORDERED_TEAM_IDS_OFF.
2427 * loop_ull.c (GOMP_loop_ull_start): Likewise.
2428 * sections.c (GOMP_sections2_start): Likewise.
2429
2430 2022-04-25 Jakub Jelinek <jakub@redhat.com>
2431 Thomas Schwinge <thomas@codesourcery.com>
2432
2433 PR fortran/104717
2434 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
2435
2436 2022-04-13 Jakub Jelinek <jakub@redhat.com>
2437
2438 * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
2439
2440 2022-04-06 Thomas Schwinge <thomas@codesourcery.com>
2441
2442 * plugin/cuda/cuda.h: Remove file.
2443 * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
2444 "cuda/cuda.h" instead of <cuda.h>.
2445 * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
2446 'PLUGIN_NVPTX_CPPFLAGS'.
2447 * configure: Regenerate.
2448
2449 2022-04-05 Chung-Lin Tang <cltang@codesourcery.com>
2450
2451 * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
2452
2453 2022-04-04 Tom de Vries <tdevries@suse.de>
2454
2455 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
2456 on_device_arch_nvptx instead of offload_target_nvptx.
2457 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
2458
2459 2022-04-01 Tom de Vries <tdevries@suse.de>
2460
2461 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
2462 and use REC_DEPTH.
2463 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
2464
2465 2022-04-01 Tom de Vries <tdevries@suse.de>
2466
2467 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
2468 num_workers check.
2469
2470 2022-03-29 Chenghua Xu <xuchenghua@loongson.cn>
2471 Lulu Cheng <chenglulu@loongson.cn>
2472
2473 * configure.tgt: Add LoongArch triplet.
2474
2475 2022-03-28 Tom de Vries <tdevries@suse.de>
2476
2477 * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
2478 instead of /libexec/.
2479 * configure: Regenerate.
2480
2481 2022-03-25 Tom de Vries <tdevries@suse.de>
2482
2483 PR libgomp/105042
2484 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
2485 execution time.
2486 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
2487 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
2488
2489 2022-03-23 Tobias Burnus <tobias@codesourcery.com>
2490
2491 PR middle-end/104285
2492 * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
2493 * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
2494 * testsuite/libgomp.c++/target-same-name-2.C: New test.
2495 * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
2496 * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
2497 * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
2498
2499 2022-03-22 Tom de Vries <tdevries@suse.de>
2500
2501 PR target/104916
2502 PR target/104783
2503 * testsuite/libgomp.c/pr104783-2.c: New test.
2504
2505 2022-03-18 Tobias Burnus <tobias@codesourcery.com>
2506
2507 PR fortran/103039
2508 * testsuite/libgomp.fortran/associate4.f90: New test.
2509
2510 2022-03-18 Tom de Vries <tdevries@suse.de>
2511
2512 PR target/104952
2513 * testsuite/libgomp.c/pr104952-1.c: New test.
2514 * testsuite/libgomp.c/pr104952-2.c: New test.
2515
2516 2022-03-18 Jakub Jelinek <jakub@redhat.com>
2517
2518 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
2519 variable next to pl variable.
2520
2521 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
2522
2523 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
2524 Enhance.
2525 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
2526 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2527
2528 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
2529
2530 PR middle-end/90115
2531 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
2532 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2533
2534 2022-03-16 Marcel Vollweiler <marcel@codesourcery.com>
2535
2536 * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
2537 omp_set_max_active_levels.
2538 * testsuite/libgomp.fortran/icv-8.f90: New test.
2539
2540 2022-03-16 Thomas Schwinge <thomas@codesourcery.com>
2541
2542 PR testsuite/102841
2543 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
2544
2545 2022-03-13 Tobias Burnus <tobias@codesourcery.com>
2546
2547 * libgomp.texi: Fix typo.
2548
2549 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
2550
2551 PR middle-end/100280
2552 PR middle-end/104892
2553 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
2554 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
2555 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2556 Likewise.
2557 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
2558 Likewise.
2559 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2560 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
2561 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
2562 Likewise.
2563
2564 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
2565
2566 PR middle-end/104892
2567 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
2568 to PR104892.
2569 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
2570 enable '--param=openacc-kernels=decompose' and adjust.
2571 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
2572 Likewise.
2573 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2574 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
2575 Likewise.
2576
2577 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
2578
2579 PR middle-end/90115
2580 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
2581 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
2582 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2583 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
2584
2585 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
2586
2587 PR middle-end/100280
2588 PR middle-end/104086
2589 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
2590 Merge this...
2591 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
2592 ..., and this...
2593 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
2594 this, and adjust.
2595 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2596 Extend.
2597
2598 2022-03-10 Hafiz Abid Qadeer <abidh@codesourcery.com>
2599
2600 * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
2601 trait. Test last index in w and v array. Remove redundant
2602 assignment to V(1). Move alignment checks at the end of
2603 parallel region.
2604
2605 2022-03-10 Tom de Vries <tdevries@suse.de>
2606
2607 * testsuite/libgomp.c/pr104783.c: New test.
2608
2609 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
2610
2611 PR middle-end/90115
2612 PR middle-end/102330
2613 PR middle-end/104774
2614 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2615 Enhance.
2616 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
2617 Adjust.
2618 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
2619 Likewise.
2620 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
2621 Likewise.
2622 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
2623 Likewise.
2624 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
2625 Likewise.
2626 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
2627 Likewise.
2628 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
2629 Likewise.
2630 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
2631 Likewise.
2632 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
2633 Likewise.
2634 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
2635 Likewise.
2636 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
2637 Likewise.
2638 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
2639 Likewise.
2640 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
2641 Likewise.
2642 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
2643 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
2644 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2645
2646 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
2647
2648 PR middle-end/90115
2649 * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
2650 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
2651 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
2652 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
2653
2654 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
2655
2656 PR testsuite/104791
2657 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
2658 expected diagnostics.
2659
2660 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
2661
2662 PR middle-end/104784
2663 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
2664 Test with '--param=openacc-kernels=decompose'.
2665 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
2666 Likewise.
2667 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
2668 Likewise.
2669 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
2670 Likewise.
2671 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
2672 Likewise.
2673 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
2674 Likewise.
2675 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
2676 Likewise.
2677 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
2678 Likewise.
2679 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
2680 Likewise.
2681 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
2682 Likewise.
2683 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
2684 Likewise.
2685 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
2686 Likewise.
2687 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
2688 Likewise.
2689 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
2690 Likewise.
2691 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
2692 Likewise.
2693 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
2694 Likewise.
2695 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
2696 Likewise.
2697 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
2698 Likewise.
2699 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
2700 Likewise.
2701 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
2702 Likewise.
2703 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
2704 Likewise.
2705 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
2706 Likewise.
2707 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
2708 Likewise.
2709 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
2710 Likewise.
2711 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
2712 Likewise.
2713 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
2714 Likewise.
2715 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
2716 Likewise.
2717 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
2718 Likewise.
2719 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
2720 Likewise.
2721 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
2722 Likewise.
2723 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
2724 Likewise.
2725 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
2726 Likewise.
2727 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
2728 Likewise.
2729
2730 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
2731
2732 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
2733 Test '-fopt-info-omp-all'.
2734 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
2735 Likewise.
2736 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
2737 Likewise.
2738 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
2739 Likewise.
2740 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
2741 Likewise.
2742 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
2743 Likewise.
2744 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
2745 Likewise.
2746 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
2747 Likewise.
2748 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
2749 Likewise.
2750 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
2751 Likewise.
2752 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
2753 Likewise.
2754 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
2755 Likewise.
2756 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
2757 Likewise.
2758 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
2759 Likewise.
2760 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
2761 Likewise.
2762 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
2763 Likewise.
2764 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
2765 Likewise.
2766 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
2767 Likewise.
2768 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
2769 Likewise.
2770 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
2771 Likewise.
2772 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
2773 Likewise.
2774 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
2775 Likewise.
2776 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
2777 Likewise.
2778 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
2779 Likewise.
2780 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
2781 Likewise.
2782 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
2783 Likewise.
2784 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
2785 Likewise.
2786 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
2787 Likewise.
2788 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
2789 Likewise.
2790 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
2791 Likewise.
2792 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
2793 Likewise.
2794 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
2795 Likewise.
2796 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
2797 Likewise.
2798
2799 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
2800
2801 PR middle-end/100280
2802 PR middle-end/104132
2803 PR middle-end/104133
2804 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2805 Extend.
2806
2807 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
2808
2809 PR middle-end/100280
2810 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
2811 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2812 Likewise.
2813
2814 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
2815
2816 PR middle-end/100280
2817 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
2818 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2819 Likewise.
2820
2821 2022-02-28 Tom de Vries <tdevries@suse.de>
2822
2823 * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
2824 * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
2825 * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
2826 * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
2827 * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
2828 * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
2829
2830 2022-02-24 Tom de Vries <tdevries@suse.de>
2831
2832 * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
2833 * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
2834 * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
2835 * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
2836 * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
2837 * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
2838 * testsuite/libgomp.c/declare-variant-3.h: New header file.
2839
2840 2022-02-22 Thomas Schwinge <thomas@codesourcery.com>
2841
2842 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
2843 gang-redundant execution.
2844
2845 2022-02-22 Tom de Vries <tdevries@suse.de>
2846
2847 PR target/99555
2848 * config/nvptx/bar.c (generation_to_barrier): New function, copied
2849 from config/rtems/bar.c.
2850 (futex_wait, futex_wake): New function.
2851 (do_spin, do_wait): New function, copied from config/linux/wait.h.
2852 (gomp_barrier_wait_end, gomp_barrier_wait_last)
2853 (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
2854 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
2855 and replace with include of config/linux/bar.c.
2856 * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
2857 (gomp_barrier_init): Init new fields.
2858 * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
2859 workarounds.
2860 * testsuite/libgomp.c/pr99555-1.c: Same.
2861 * testsuite/libgomp.fortran/task-detach-6.f90: Same.
2862
2863 2022-02-22 Tom de Vries <tdevries@suse.de>
2864
2865 PR testsuite/104146
2866 * testsuite/libgomp.c++/pr96390.C: Add additional-option
2867 -foffload=-Wa,--verify for nvptx.
2868 * testsuite/libgomp.c-c++-common/pr96390.c: Same.
2869
2870 2022-02-15 Tobias Burnus <tobias@codesourcery.com>
2871
2872 * testsuite/libgomp.fortran/depend-4.f90: New test.
2873
2874 2022-02-10 Tobias Burnus <tobias@codesourcery.com>
2875
2876 PR c++/102204
2877 * testsuite/libgomp.c++/target-virtual-1.C: New test.
2878
2879 2022-02-10 Marcel Vollweiler <marcel@codesourcery.com>
2880
2881 * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
2882 * target.c (copy_firstprivate_data): Copy only if host address is not
2883 NULL.
2884 * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
2885 * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
2886 * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
2887 * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
2888 * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
2889 * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
2890 * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
2891 * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
2892 * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
2893 * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
2894
2895 2022-02-08 Jakub Jelinek <jakub@redhat.com>
2896
2897 PR libgomp/104385
2898 * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
2899 clear task->parent.
2900 * testsuite/libgomp.c/pr104385.c: New test.
2901
2902 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
2903
2904 * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
2905 STOP of previous commit.
2906
2907 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
2908
2909 * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
2910 from is_64bit_aligned_.
2911 * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
2912 and use it, more implicit none, remove unused argument.
2913
2914 2022-02-03 David Seifert <soap@gentoo.org>
2915 Jakub Jelinek <jakub@redhat.com>
2916
2917 * configure.ac: Support --disable-werror.
2918 * configure: Regenerate.
2919
2920 2022-02-01 Tom de Vries <tdevries@suse.de>
2921
2922 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
2923 PR83812 workaround.
2924 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
2925 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
2926
2927 2022-02-01 Tom de Vries <tdevries@suse.de>
2928
2929 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
2930 num_workers for nvidia accelerator to fix libgomp error 'insufficient
2931 resources'.
2932 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
2933 Same.
2934 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
2935
2936 2022-02-01 Tom de Vries <tdevries@suse.de>
2937
2938 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
2939 recursion depth.
2940 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
2941
2942 2022-01-31 Martin Liska <mliska@suse.cz>
2943
2944 * acinclude.m4: Detect *_ld_is_mold and use it.
2945 * configure: Regenerate.
2946
2947 2022-01-27 Tobias Burnus <tobias@codesourcery.com>
2948
2949 * libgomp.texi (OpenMP 5.0): Update implementation status.
2950
2951 2022-01-21 Thomas Schwinge <thomas@codesourcery.com>
2952
2953 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
2954 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
2955 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
2956 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
2957 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
2958 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
2959 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
2960 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
2961 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
2962 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
2963 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
2964 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
2965 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
2966 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
2967 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
2968
2969 2022-01-19 Marcel Vollweiler <marcel@codesourcery.com>
2970
2971 * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
2972 "static") to make the device num available in the offload image.
2973
2974 2022-01-19 Martin Liska <mliska@suse.cz>
2975 Thomas Schwinge <thomas@codesourcery.com>
2976
2977 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
2978 patterns.
2979 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
2980 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
2981 Likewise.
2982 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
2983 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2984 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
2985 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
2986 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
2987 Likewise.
2988 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
2989 Likewise.
2990 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
2991 Likewise.
2992 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
2993 Likewise.
2994 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
2995 Likewise.
2996 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
2997 Likewise.
2998 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
2999 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3000 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3001
3002 2022-01-18 Martin Liska <mliska@suse.cz>
3003
3004 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
3005 in dg-warning.
3006 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3007 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
3008 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
3009 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3010 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3011 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
3012 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
3013 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
3014 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
3015 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
3016 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
3017 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
3018 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3019 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3020 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3021
3022 2022-01-17 Thomas Schwinge <thomas@codesourcery.com>
3023
3024 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
3025 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3026 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3027
3028 2022-01-17 Julian Brown <julian@codesourcery.com>
3029 Thomas Schwinge <thomas@codesourcery.com>
3030
3031 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
3032 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
3033 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
3034
3035 2022-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
3036 Andrew Stubbs <ams@codesourcery.com>
3037
3038 * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
3039 the number of teams and threads if necessary.
3040 (gcn_exec): Automatically set the number of gangs and workers if
3041 necessary.
3042
3043 2022-01-13 Hafiz Abid Qadeer <abidh@codesourcery.com>
3044
3045 * testsuite/libgomp.fortran/allocate-1.c: New test.
3046 * testsuite/libgomp.fortran/allocate-1.f90: New test.
3047 * libgomp.texi: Remove string that says that allocate clause
3048 support is for C/C++ only.
3049
3050 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3051
3052 * testsuite/libgomp.c-c++-common/on_device_arch.h
3053 (any_device_arch, any_device_arch_intel_mic): New.
3054 * testsuite/lib/libgomp.exp
3055 (check_effective_target_offload_device_any_intel_mic): New.
3056 * testsuite/libgomp.c-c++-common/target-45.c: Use it.
3057 * testsuite/libgomp.fortran/target10.f90: Likewise.
3058
3059 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3060
3061 PR tree-optimization/102192
3062 * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
3063 '-Wuninitialized' diagnostics.
3064
3065 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3066
3067 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
3068 current '-Wuninitialized' diagnostics.
3069 * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
3070 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
3071 * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
3072 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
3073 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3074 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
3075 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
3076 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3077 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3078 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
3079 * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
3080 Likewise.
3081
3082 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3083
3084 * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
3085 for 'offload_device_intel_mic'.
3086
3087 2022-01-13 Julian Brown <julian@codesourcery.com>
3088 Thomas Schwinge <thomas@codesourcery.com>
3089
3090 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
3091 offloading execution XFAIL.
3092
3093 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3094
3095 PR middle-end/100280
3096 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3097 Update.
3098 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
3099 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3100 Likewise.
3101
3102 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3103
3104 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3105 Enhance.
3106 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3107 Likewise.
3108 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
3109 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
3110 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
3111 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
3112 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3113 Likewise.
3114 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3115 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
3116 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
3117 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
3118
3119 2022-01-04 Tobias Burnus <tobias@codesourcery.com>
3120
3121 * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
3122 * testsuite/libgomp.fortran/target10.f90: Likewise.
3123
3124 2022-01-04 Chung-Lin Tang <cltang@codesourcery.com>
3125
3126 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
3127 into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
3128 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
3129
3130 2022-01-03 Jakub Jelinek <jakub@redhat.com>
3131
3132 * libgomp.texi: Bump @copying's copyright year.
3133
3134 2021-12-13 Tobias Burnus <tobias@codesourcery.com>
3135
3136 * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
3137 * testsuite/libgomp.fortran/atomic-19.f90: New test.
3138
3139 2021-12-10 Andrew Stubbs <ams@codesourcery.com>
3140
3141 * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
3142 (GOMP_OFFLOAD_load_image): Locate the offload variables via the
3143 table, not individual symbols.
3144
3145 2021-12-09 Chung-Lin Tang <cltang@codesourcery.com>
3146
3147 * testsuite/libgomp.c++/target-lambda-1.C: Only run under
3148 "target offload_device_nonshared_as"
3149 * testsuite/libgomp.c++/target-this-3.C: Likewise.
3150 * testsuite/libgomp.c++/target-this-4.C: Likewise.
3151
3152 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
3153
3154 * target.c (gomp_map_vars_existing): Make sure attached pointer is
3155 not overwritten during cross-host/device copying.
3156 (gomp_update): Likewise.
3157 (gomp_exit_data): Likewise.
3158 * testsuite/libgomp.c++/target-11.C: Adjust testcase.
3159 * testsuite/libgomp.c++/target-12.C: Likewise.
3160 * testsuite/libgomp.c++/target-15.C: Likewise.
3161 * testsuite/libgomp.c++/target-16.C: Likewise.
3162 * testsuite/libgomp.c++/target-17.C: Likewise.
3163 * testsuite/libgomp.c++/target-21.C: Likewise.
3164 * testsuite/libgomp.c++/target-23.C: Likewise.
3165 * testsuite/libgomp.c/target-23.c: Likewise.
3166 * testsuite/libgomp.c/target-29.c: Likewise.
3167 * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
3168
3169 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
3170
3171 PR middle-end/92120
3172 * libgomp.h (gomp_attach_pointer): Add bool parameter.
3173 * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
3174 (goacc_enter_data_internal): Likewise.
3175 * target.c (gomp_map_vars_existing): Update assert condition to
3176 include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
3177 (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
3178 parameter, add support for mapping a pointer with NULL target.
3179 (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
3180 parameter, add support for attaching a pointer with NULL target.
3181 (gomp_map_vars_internal): Update calls to gomp_map_pointer and
3182 gomp_attach_pointer, add handling for
3183 GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
3184 GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
3185 * testsuite/libgomp.c++/target-23.C: New testcase.
3186 * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
3187 * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
3188 * testsuite/libgomp.c++/target-this-1.C: New testcase.
3189 * testsuite/libgomp.c++/target-this-2.C: New testcase.
3190 * testsuite/libgomp.c++/target-this-3.C: New testcase.
3191 * testsuite/libgomp.c++/target-this-4.C: New testcase.
3192 * testsuite/libgomp.c++/target-this-5.C: New testcase.
3193
3194 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
3195
3196 * libgomp.texi (OpenMP 5.1): Update status.
3197
3198 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
3199
3200 * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
3201
3202 2021-12-02 Chung-Lin Tang <cltang@codesourcery.com>
3203
3204 PR fortran/90030
3205 * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
3206 * testsuite/libgomp.fortran/pr90030.f90: New test.
3207
3208 2021-11-30 Kwok Cheung Yeung <kcy@codesourcery.com>
3209 Thomas Schwinge <thomas@codesourcery.com>
3210
3211 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
3212 temporary skip.
3213
3214 2021-11-30 Cesar Philippidis <cesar@codesourcery.com>
3215 Thomas Schwinge <thomas@codesourcery.com>
3216
3217 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
3218 skip.
3219
3220 2021-11-29 Richard Biener <rguenther@suse.de>
3221
3222 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
3223 return.
3224
3225 2021-11-24 Jakub Jelinek <jakub@redhat.com>
3226
3227 PR middle-end/103384
3228 * testsuite/libgomp.c/declare-variant-2.c: New test.
3229
3230 2021-11-18 David Edelsohn <dje.gcc@gmail.com>
3231
3232 * alloc.c (gomp_aligned_alloc): Fix typo.
3233
3234 2021-11-18 Jakub Jelinek <jakub@redhat.com>
3235
3236 PR libgomp/102838
3237 * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
3238 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
3239 (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
3240 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
3241 * work.c (alloc_work_share, gomp_work_share_start): Likewise.
3242 * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
3243 gomp_aligned_alloc instead of team_malloc.
3244
3245 2021-11-18 Jakub Jelinek <jakub@redhat.com>
3246
3247 PR libgomp/102838
3248 * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
3249 memalign over posix_memalign over aligned_alloc over fallback
3250 with malloc instead of aligned_alloc over _aligned_alloc over
3251 posix_memalign over memalign over fallback with malloc. For
3252 aligned_alloc, round up size up to multiple of al.
3253
3254 2021-11-16 Jakub Jelinek <jakub@redhat.com>
3255
3256 * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
3257 construct as implemented.
3258
3259 2021-11-15 Tobias Burnus <tobias@codesourcery.com>
3260
3261 * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
3262
3263 2021-11-15 Jakub Jelinek <jakub@redhat.com>
3264
3265 * task.c (gomp_create_target_task): Copy args array as well.
3266 * target.c (gomp_target_fallback): Add args argument.
3267 Set gomp_icv (true)->thread_limit_var if thread_limit is present.
3268 (GOMP_target): Adjust gomp_target_fallback caller.
3269 (GOMP_target_ext): Likewise.
3270 (gomp_target_task_fn): Likewise.
3271 * config/nvptx/team.c (gomp_nvptx_main): Set
3272 gomp_global_icv.thread_limit_var.
3273 * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
3274
3275 2021-11-15 Jakub Jelinek <jakub@redhat.com>
3276
3277 * config/nvptx/team.c (__gomp_team_num): Define as
3278 __attribute__((shared)) var.
3279 (gomp_nvptx_main): Initialize __gomp_team_num to 0.
3280 * config/nvptx/target.c (__gomp_team_num): Declare as
3281 extern __attribute__((shared)) var.
3282 (GOMP_teams4): Use __gomp_team_num as the team number instead of
3283 %ctaid.x. If first, initialize it to %ctaid.x. If num_teams_lower
3284 is bigger than num_blocks, use num_teams_lower teams and arrange for
3285 bumping of __gomp_team_num if !first and returning false once we run
3286 out of teams.
3287 * config/nvptx/teams.c (__gomp_team_num): Declare as
3288 extern __attribute__((shared)) var.
3289 (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
3290
3291 2021-11-15 Jakub Jelinek <jakub@redhat.com>
3292
3293 * testsuite/libgomp.c/teams-5.c: New test.
3294
3295 2021-11-12 Jakub Jelinek <jakub@redhat.com>
3296
3297 PR target/103201
3298 * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
3299 to ...
3300 * config/gcn/teams.c: ... here. New file.
3301
3302 2021-11-12 Chung-Lin Tang <cltang@codesourcery.com>
3303
3304 * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
3305 implicit map handling to allow a "superset" existing map as valid case.
3306 (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
3307 (get_implicit): New function to extract implicit status.
3308 (gomp_map_fields_existing): Adjust arguments in calls to
3309 gomp_map_vars_existing, and add uses of get_implicit.
3310 (gomp_map_vars_internal): Likewise.
3311 * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
3312
3313 2021-11-12 Jakub Jelinek <jakub@redhat.com>
3314
3315 * libgomp_g.h (GOMP_teams4): Declare.
3316 * libgomp.map (GOMP_5.1): Export GOMP_teams4.
3317 * target.c (GOMP_teams4): New function.
3318 * config/nvptx/target.c (GOMP_teams): Remove.
3319 (GOMP_teams4): New function.
3320 * config/gcn/target.c (GOMP_teams): Remove.
3321 (GOMP_teams4): New function.
3322 * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
3323 teams instead of <= 2.
3324 * testsuite/libgomp.c-c++-common/teams-2.c: New test.
3325
3326 2021-11-11 Tobias Burnus <tobias@codesourcery.com>
3327
3328 * testsuite/libgomp.fortran/teams-1.f90: New test.
3329
3330 2021-11-11 Jakub Jelinek <jakub@redhat.com>
3331
3332 * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
3333 * team.c (struct gomp_thread_start_data): Likewise.
3334 (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
3335 (gomp_team_start): Initialize start_data->num_teams and
3336 start_data->team_num. Update nthr->num_teams and nthr->team_num.
3337 * teams.c (gomp_num_teams, gomp_team_num): Remove.
3338 (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
3339 instead of gomp_num_teams and gomp_team_num.
3340 (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
3341 (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
3342 * testsuite/libgomp.c/teams-4.c: New test.
3343
3344 2021-11-11 Jakub Jelinek <jakub@redhat.com>
3345
3346 * testsuite/libgomp.c-c++-common/teams-1.c: New test.
3347
3348 2021-11-09 Thomas Schwinge <thomas@codesourcery.com>
3349
3350 * env.c (parse_gomp_openacc_dim): Restore parsing.
3351
3352 2021-10-30 Tobias Burnus <tobias@codesourcery.com>
3353
3354 PR middle-end/102972
3355 * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
3356 parallel construct.
3357 * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
3358 * testsuite/libgomp.c/target-3.c: Likewise.
3359 * testsuite/libgomp.c/target-5.c: Likewise.
3360 * testsuite/libgomp.c/target-6.c: Likewise.
3361 * testsuite/libgomp.c/target-teams-1.c: Likewise.
3362 * testsuite/libgomp.c/teams-1.c: Likewise.
3363 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
3364 * testsuite/libgomp.c/thread-limit-3.c: Likewise.
3365 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
3366 * testsuite/libgomp.c/thread-limit-5.c: Likewise.
3367 * testsuite/libgomp.fortran/icv-3.f90: Likewise.
3368 * testsuite/libgomp.fortran/icv-4.f90: Likewise.
3369 * testsuite/libgomp.fortran/teams1.f90: Likewise.
3370
3371 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
3372
3373 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
3374 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
3375
3376 2021-10-27 Jakub Jelinek <jakub@redhat.com>
3377
3378 * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
3379 aren't implemented for Fortran yet.
3380
3381 2021-10-27 Jakub Jelinek <jakub@redhat.com>
3382
3383 * testsuite/libgomp.c/loop-26.c: New test.
3384 * testsuite/libgomp.c/loop-27.c: New test.
3385
3386 2021-10-25 Tobias Burnus <tobias@codesourcery.com>
3387
3388 PR testsuite/102910
3389 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
3390 instead of #include <alloca.h> + alloca.
3391
3392 2021-10-21 Chung-Lin Tang <cltang@codesourcery.com>
3393
3394 * libgomp.texi (Support of strictly structured blocks in Fortran):
3395 Adjust to 'Y'.
3396 * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
3397
3398 2021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
3399
3400 * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
3401 * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
3402
3403 2021-10-20 Jakub Jelinek <jakub@redhat.com>
3404
3405 PR libgomp/102838
3406 * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
3407 (struct gomp_work_share): Only use aligned(64) attribute if
3408 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
3409 add padding before lock to ensure lock is at offset 64 bytes
3410 into the structure.
3411 (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
3412 New poor man's static assertions.
3413 * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
3414 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
3415
3416 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
3417 Richard Biener <rguenther@suse.de>
3418
3419 * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
3420
3421 2021-10-18 Jakub Jelinek <jakub@redhat.com>
3422
3423 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
3424 && gomp_places_list_len < count after nfirst <= nlast loop condition.
3425
3426 2021-10-18 Tobias Burnus <tobias@codesourcery.com>
3427
3428 PR fortran/102086
3429 PR fortran/92189
3430 PR fortran/92621
3431 PR fortran/101308
3432 PR fortran/101309
3433 PR fortran/101635
3434 PR fortran/92482
3435 * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
3436
3437 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3438
3439 * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
3440 type from char [50] to const char *.
3441 (places_array): Add a testcase for simplified syntax place followed
3442 by length or length and stride.
3443
3444 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3445
3446 * env.c (parse_one_place): Handle non-negative-number the same
3447 as { non-negative-number }. Reject even !number:1 and
3448 !number:1:stride or !place:1 or !place:1:stride instead of just
3449 length other than 1.
3450 * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
3451 and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
3452 omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
3453 as implemented.
3454 * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
3455 simplified syntax.
3456
3457 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3458
3459 * env.c (parse_schedule): For strtoul or strtoull calls which don't
3460 clearly reject return value 0 as invalid handle the case where end
3461 pointer is the same as first argument as invalid.
3462 (parse_unsigned_long_1): Likewise.
3463 (parse_one_place): Likewise.
3464 (parse_places_var): Likewise.
3465 (parse_stacksize): Likewise.
3466 (parse_spincount): Likewise.
3467 (parse_affinity): Likewise.
3468 (parse_gomp_openacc_dim): Likewise. Avoid strict aliasing violation.
3469 Make code valid C89.
3470 * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
3471 For strtoul calls which don't clearly reject return value 0 as
3472 invalid handle the case where end pointer is the same as first
3473 argument as invalid.
3474 (gomp_affinity_init_level_1): Likewise.
3475 (gomp_affinity_init_numa_domains): Likewise.
3476 * config/rtems/proc.c (parse_thread_pools): Likewise.
3477
3478 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3479
3480 * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
3481 after creating count places clean up and return immediately.
3482 * testsuite/libgomp.c/places-6.c: New test.
3483 * testsuite/libgomp.c/places-7.c: New test.
3484 * testsuite/libgomp.c/places-8.c: New test.
3485 * testsuite/libgomp.c/places-9.c: New test.
3486 * testsuite/libgomp.c/places-10.c: New test.
3487
3488 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3489
3490 * env.c (parse_places_var): Handle numa_domains as level 5.
3491 * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
3492 function.
3493 (gomp_affinity_init_level): Use it instead of
3494 gomp_affinity_init_level_1 for level == 5.
3495 * testsuite/libgomp.c/places-5.c: New test.
3496
3497 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3498
3499 * env.c (parse_places_var): Handle ll_caches as level 4.
3500 * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
3501 function.
3502 (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
3503 last level cache.
3504 (gomp_affinity_init_level): Likewise.
3505 * testsuite/libgomp.c/places-1.c: New test.
3506 * testsuite/libgomp.c/places-2.c: New test.
3507 * testsuite/libgomp.c/places-3.c: New test.
3508 * testsuite/libgomp.c/places-4.c: New test.
3509
3510 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
3511
3512 * libgomp.texi (OpenMP 5.0): Update entry for declare variant
3513 directive.
3514
3515 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
3516
3517 * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
3518
3519 2021-10-12 Julian Brown <julian@codesourcery.com>
3520
3521 * target.c (gomp_copy_host2dev): Release device lock on cbuf
3522 error path.
3523
3524 2021-10-12 Tobias Burnus <tobias@codesourcery.com>
3525
3526 * testsuite/libgomp.fortran/icv-3.f90: New.
3527 * testsuite/libgomp.fortran/icv-4.f90: New.
3528
3529 2021-10-12 Jakub Jelinek <jakub@redhat.com>
3530
3531 * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
3532 omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
3533 OMP_TEAMS_THREAD_LIMIT): Document.
3534
3535 2021-10-12 Jakub Jelinek <jakub@redhat.com>
3536
3537 * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
3538 to avoid makeinfo warnings.
3539
3540 2021-10-12 Jakub Jelinek <jakub@redhat.com>
3541
3542 * testsuite/libgomp.c-c++-common/icv-3.c: New test.
3543 * testsuite/libgomp.c-c++-common/icv-4.c: New test.
3544
3545 2021-10-12 Jakub Jelinek <jakub@redhat.com>
3546
3547 PR libgomp/102628
3548 PR libgomp/102668
3549 * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
3550 allocation sizes from 420 to 320 and from 768 to 568.
3551 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
3552 * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
3553 for cr from 16 to 4.
3554
3555 2021-10-12 Jakub Jelinek <jakub@redhat.com>
3556
3557 * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
3558 * testsuite/libgomp.c/scan-12.c: Likewise.
3559 * testsuite/libgomp.c/scan-13.c: Likewise.
3560 * testsuite/libgomp.c/scan-14.c: Likewise.
3561 * testsuite/libgomp.c/scan-15.c: Likewise.
3562 * testsuite/libgomp.c/scan-16.c: Likewise.
3563 * testsuite/libgomp.c/scan-17.c: Likewise.
3564 * testsuite/libgomp.c/scan-18.c: Likewise.
3565 * testsuite/libgomp.c/scan-19.c: Likewise.
3566 * testsuite/libgomp.c/scan-20.c: Likewise.
3567 * testsuite/libgomp.c/scan-21.c: Likewise.
3568 * testsuite/libgomp.c/scan-22.c: Likewise.
3569 * testsuite/libgomp.c++/scan-9.C: Likewise.
3570 * testsuite/libgomp.c++/scan-10.C: Likewise.
3571 * testsuite/libgomp.c++/scan-11.C: Likewise.
3572 * testsuite/libgomp.c++/scan-12.C: Likewise.
3573 * testsuite/libgomp.c++/scan-13.C: Likewise.
3574 * testsuite/libgomp.c++/scan-14.C: Likewise.
3575 * testsuite/libgomp.c++/scan-15.C: Likewise.
3576 * testsuite/libgomp.c++/scan-16.C: Likewise.
3577
3578 2021-10-12 Kewen Lin <linkw@linux.ibm.com>
3579
3580 * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
3581
3582 2021-10-11 Marcel Vollweiler <marcel@codesourcery.com>
3583
3584 * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
3585 omp_atv_serialized.
3586 * omp.h.in: Add deprecated flag for omp_atv_sequential.
3587 * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
3588 * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
3589 * testsuite/libgomp.fortran/alloc-12.f90: New test.
3590
3591 2021-10-11 Jakub Jelinek <jakub@redhat.com>
3592
3593 * omp.h.in (omp_set_num_teams, omp_get_max_teams,
3594 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
3595 * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
3596 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
3597 * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
3598 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
3599 * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
3600 * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
3601 omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
3602 omp_set_teams_thread_limit{,_,_8_}.
3603 * icv.c (omp_set_num_teams, omp_get_max_teams,
3604 omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
3605 functions.
3606 * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
3607 (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
3608 (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
3609 vars.
3610 * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
3611 gomp_teams_thread_limit_var as fallback if not zero. If num_teams
3612 is not specified, use gomp_nteams_var.
3613 * fortran.c (omp_set_num_teams, omp_get_max_teams,
3614 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
3615 ialias_redirect.
3616 (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
3617 omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
3618 omp_get_teams_thread_limit_): New functions.
3619
3620 2021-10-09 liuhongt <hongtao.liu@intel.com>
3621
3622 * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
3623 * testsuite/libgomp.c++/scan-11.C: Ditto.
3624 * testsuite/libgomp.c++/scan-12.C: Ditto.
3625 * testsuite/libgomp.c++/scan-13.C: Ditto.
3626 * testsuite/libgomp.c++/scan-14.C: Ditto.
3627 * testsuite/libgomp.c++/scan-15.C: Ditto.
3628 * testsuite/libgomp.c++/scan-16.C: Ditto.
3629 * testsuite/libgomp.c++/scan-9.C: Ditto.
3630 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
3631 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
3632 * testsuite/libgomp.c/scan-11.c: Ditto.
3633 * testsuite/libgomp.c/scan-12.c: Ditto.
3634 * testsuite/libgomp.c/scan-13.c: Ditto.
3635 * testsuite/libgomp.c/scan-14.c: Ditto.
3636 * testsuite/libgomp.c/scan-15.c: Ditto.
3637 * testsuite/libgomp.c/scan-16.c: Ditto.
3638 * testsuite/libgomp.c/scan-17.c: Ditto.
3639 * testsuite/libgomp.c/scan-18.c: Ditto.
3640 * testsuite/libgomp.c/scan-19.c: Ditto.
3641 * testsuite/libgomp.c/scan-20.c: Ditto.
3642 * testsuite/libgomp.c/scan-21.c: Ditto.
3643 * testsuite/libgomp.c/scan-22.c: Ditto.
3644
3645 2021-10-09 Jakub Jelinek <jakub@redhat.com>
3646
3647 * libgomp.texi (OpenMP 5.1): Mention implemented support for
3648 structured block sequences in C/C++. Mention support for
3649 unconstrained/reproducible modifiers on order clause.
3650 Mention partial (C/C++ only) support of extentensions to atomics
3651 construct. Mention partial (C/C++ on clause only) support of
3652 align/allocator modifiers on allocate clause.
3653
3654 2021-10-02 Tobias Burnus <tobias@codesourcery.com>
3655
3656 * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
3657 based on libgomp.c-c++-common/order-reproducible-1.c.
3658 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
3659 * testsuite/libgomp.fortran/my-usleep.c: New test.
3660
3661 2021-10-01 Tobias Burnus <tobias@codesourcery.com>
3662
3663 * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
3664 * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
3665 * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
3666 * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
3667 based on libgomp.c-c++-common/alloc-9.c.
3668
3669 2021-10-01 Jakub Jelinek <jakub@redhat.com>
3670
3671 * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
3672 * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
3673
3674 2021-10-01 Jakub Jelinek <jakub@redhat.com>
3675
3676 * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
3677 ialias_redirect.
3678 * env.c (handle_omp_display_env): Use ialias_call.
3679 * icv-device.c: Move ialias right below each function.
3680 (omp_get_device_num): Use ialias_call.
3681 * fortran.c (omp_fulfill_event): Add ialias_redirect.
3682 * icv.c (omp_get_active_level): Add ialias_redirect.
3683
3684 2021-10-01 Jakub Jelinek <jakub@redhat.com>
3685
3686 * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
3687 __alloc_align__ (1) attribute.
3688 * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
3689
3690 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
3691
3692 * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
3693 for -fintrinsic-modules-path= warning of the C compiler.
3694 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
3695 * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
3696
3697 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
3698
3699 * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
3700 omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
3701 * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
3702 omp_realloc): Add.
3703 * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
3704 omp_realloc): Add.
3705 * testsuite/libgomp.fortran/alloc-10.f90: New test.
3706 * testsuite/libgomp.fortran/alloc-6.f90: New test.
3707 * testsuite/libgomp.fortran/alloc-7.c: New test.
3708 * testsuite/libgomp.fortran/alloc-7.f90: New test.
3709 * testsuite/libgomp.fortran/alloc-8.f90: New test.
3710 * testsuite/libgomp.fortran/alloc-9.f90: New test.
3711
3712 2021-09-30 Jakub Jelinek <jakub@redhat.com>
3713
3714 * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
3715 omp_realloc): New prototypes.
3716 (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
3717 attribute.
3718 * allocator.c: Include string.h.
3719 (omp_aligned_alloc): No longer static, add ialias. Add new_alignment
3720 variable and use it instead of alignment so that when retrying the old
3721 alignment is used again. Don't retry if new alignment is the same
3722 as old alignment, unless allocator had pool size.
3723 (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
3724 (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
3725 * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
3726 omp_aligned_calloc and omp_realloc.
3727 * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
3728 omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
3729 * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
3730 * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
3731 * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
3732 * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
3733
3734 2021-09-28 Tobias Burnus <tobias@codesourcery.com>
3735
3736 PR libgomp/96661
3737 * configure.ac: Only check for int-type = 2*size_t support when
3738 building with Fortran support.
3739 * configure: Regenerate.
3740
3741 2021-09-28 Thomas Schwinge <thomas@codesourcery.com>
3742
3743 * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
3744 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3745
3746 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
3747
3748 * team.c: Initialize start_data.
3749 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
3750 * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
3751
3752 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
3753
3754 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
3755 dg-message back to dg-note.
3756
3757 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
3758
3759 PR fortran/94070
3760 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
3761 expected dg-note output.
3762
3763 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
3764
3765 PR fortran/55534
3766 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
3767 r12-3722 by removing -Wno-missing-include-dirs.
3768 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
3769
3770 2021-09-22 Jakub Jelinek <jakub@redhat.com>
3771
3772 * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
3773 * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
3774
3775 2021-09-21 Tobias Burnus <tobias@codesourcery.com>
3776
3777 PR fortran/55534
3778 * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
3779 to ALWAYS_CFLAGS.
3780 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
3781
3782 2021-09-18 Jakub Jelinek <jakub@redhat.com>
3783
3784 * testsuite/libgomp.c++/default-1.C: New test.
3785 * testsuite/libgomp.c-c++-common/default-1.c: New test.
3786 * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
3787 to default clause in C and C++" as implemented.
3788
3789 2021-09-17 Julian Brown <julian@codesourcery.com>
3790
3791 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
3792
3793 2021-09-17 Julian Brown <julian@codesourcery.com>
3794
3795 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
3796
3797 2021-09-17 Jakub Jelinek <jakub@redhat.com>
3798
3799 * libgomp.texi (OpenMP 5.1): Spelling fix,
3800 declare variante -> declare variant.
3801
3802 2021-09-17 Jakub Jelinek <jakub@redhat.com>
3803
3804 * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
3805 Use /* */ comments instead of //.
3806 * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
3807 * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
3808 * testsuite/libgomp.c++/atomic-16.C: New test.
3809 * testsuite/libgomp.c++/atomic-17.C: New test.
3810
3811 2021-09-10 Jakub Jelinek <jakub@redhat.com>
3812
3813 * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
3814 * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
3815 * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
3816
3817 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
3818
3819 * libgomp.texi (OpenMP Implementation Status): Extend
3820 OpenMP 5.0 section.
3821 (OpenACC Profiling Interface): Fix typo.
3822
3823 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
3824
3825 * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
3826 not to 4.5; link to new section.
3827 (OpenMP Implementation Status): New.
3828
3829 2021-09-06 Thomas Schwinge <thomas@codesourcery.com>
3830
3831 * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
3832
3833 2021-09-03 Tobias Burnus <tobias@codesourcery.com>
3834
3835 * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
3836 dg-output.
3837 * testsuite/libgomp.fortran/error-1.f90: Likewise.
3838
3839 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
3840 Jakub Jelinek <jakub@redhat.com>
3841
3842 * testsuite/libgomp.c/address-space-1.c: New file.
3843
3844 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
3845
3846 * testsuite/lib/libgomp.exp
3847 (check_effective_target_offload_target_intelmic): Remove 'proc'.
3848 (check_effective_target_offload_device_intel_mic): New 'proc'.
3849 * testsuite/libgomp.c-c++-common/on_device_arch.h
3850 (device_arch_intel_mic, on_device_arch_intel_mic): New.
3851 * testsuite/libgomp.c-c++-common/target-45.c: Use that for
3852 'dg-xfail-run-if'.
3853 * testsuite/libgomp.fortran/target10.f90: Likewise.
3854
3855 2021-08-23 Tobias Burnus <tobias@codesourcery.com>
3856
3857 * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
3858 * testsuite/libgomp.fortran/taskloop-4.f90: New test.
3859 * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
3860 * testsuite/libgomp.fortran/taskloop-5.f90: New test.
3861
3862 2021-08-23 Jakub Jelinek <jakub@redhat.com>
3863
3864 * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
3865 * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
3866 * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
3867
3868 2021-08-22 Thomas Schwinge <thomas@codesourcery.com>
3869
3870 * config/nvptx/error.c (fwrite, exit): Override, too.
3871 * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
3872 of offloading testing.
3873 * testsuite/libgomp.fortran/error-1.f90: Likewise.
3874
3875 2021-08-20 Tobias Burnus <tobias@codesourcery.com>
3876
3877 * testsuite/libgomp.fortran/error-1.f90: New test.
3878
3879 2021-08-20 Jakub Jelinek <jakub@redhat.com>
3880
3881 * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
3882 * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
3883 * error.c (GOMP_warning, GOMP_error): New functions.
3884 * testsuite/libgomp.c-c++-common/error-1.c: New test.
3885
3886 2021-08-18 Tobias Burnus <tobias@codesourcery.com>
3887
3888 * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
3889 omp_target_free. omp_target_is_present, omp_target_memcpy,
3890 omp_target_memcpy_rect, omp_target_associate_ptr,
3891 omp_target_disassociate_ptr): Add interface.
3892 * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
3893 omp_target_free. omp_target_is_present, omp_target_memcpy,
3894 omp_target_memcpy_rect, omp_target_associate_ptr,
3895 omp_target_disassociate_ptr): Add interface.
3896 * testsuite/libgomp.fortran/alloc-1.F90: Remove local
3897 interface block for omp_alloc + omp_free.
3898 * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
3899 * testsuite/libgomp.fortran/refcount-1.f90: New test.
3900 * testsuite/libgomp.fortran/target-12.f90: New test.
3901
3902 2021-08-18 Jakub Jelinek <jakub@redhat.com>
3903
3904 * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
3905
3906 2021-08-17 Tobias Burnus <tobias@codesourcery.com>
3907
3908 * testsuite/libgomp.fortran/scope-1.f90: New test.
3909 * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
3910
3911 2021-08-17 Jakub Jelinek <jakub@redhat.com>
3912
3913 * Makefile.am (libgomp_la_SOURCES): Add scope.c
3914 * Makefile.in: Regenerated.
3915 * libgomp_g.h (GOMP_scope_start): Declare.
3916 * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
3917 * scope.c: New file.
3918 * testsuite/libgomp.c-c++-common/scope-1.c: New test.
3919 * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
3920
3921 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
3922
3923 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
3924 '?:' issues.
3925
3926 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
3927
3928 * testsuite/libgomp.fortran/masked-1.f90: New test.
3929
3930 2021-08-13 Thomas Schwinge <thomas@codesourcery.com>
3931
3932 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
3933
3934 2021-08-12 Jakub Jelinek <jakub@redhat.com>
3935
3936 * testsuite/libgomp.c-c++-common/masked-1.c: New test.
3937
3938 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
3939
3940 * env.c (parse_bind_var): Accept 'primary' as alias for
3941 'master'.
3942 (omp_display_env): Add TODO comment to
3943 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
3944 * libgomp.texi: Change 'master thread' to 'primary thread'
3945 in line with OpenMP 5.1.
3946 (omp_get_proc_bind): Add omp_proc_bind_primary and note that
3947 omp_proc_bind_master is an alias of it.
3948 (OMP_PROC_BIND): Mention 'PRIMARY'.
3949 * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
3950 (omp_proc_bind_primary): Add.
3951 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
3952 * omp_lib.f90.in (omp_proc_bind_primary): Add.
3953 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
3954 * omp_lib.h.in (omp_proc_bind_primary): Add.
3955 * testsuite/libgomp.c/affinity-1.c: Check that
3956 'primary' works and is identical to 'master'.
3957
3958 2021-08-09 Julian Brown <julian@codesourcery.com>
3959 Kwok Cheung Yeung <kcy@codesourcery.com>
3960 Thomas Schwinge <thomas@codesourcery.com>
3961
3962 * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
3963 16.
3964 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
3965 [acc_device_radeon]: Update.
3966 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
3967 [ACC_DEVICE_TYPE_radeon]: Likewise.
3968 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
3969 [acc_device_radeon]: Likewise.
3970 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
3971 [ACC_DEVICE_TYPE_radeon]: Likewise.
3972 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
3973 'openacc_radeon_accel_selected' and '-O0'.
3974 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
3975
3976 2021-08-05 Chung-Lin Tang <cltang@codesourcery.com>
3977
3978 * icv-device.c (omp_get_device_num): New API function, host side.
3979 * fortran.c (omp_get_device_num_): New interface function.
3980 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
3981 * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
3982 omp_get_device_num_.
3983 * libgomp.texi (omp_get_device_num): Add documentation for new API
3984 function.
3985 * omp.h.in (omp_get_device_num): Add declaration.
3986 * omp_lib.f90.in (omp_get_device_num): Likewise.
3987 * omp_lib.h.in (omp_get_device_num): Likewise.
3988 * target.c (gomp_load_image_to_device): If additional entry for device
3989 number exists at end of returned entries from 'load_image_func' hook,
3990 copy the assigned device number over to the device variable.
3991 * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
3992 (omp_get_device_num): New API function, device side.
3993 * plugin/plugin-gcn.c ("symcat.h"): Add include.
3994 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
3995 at end of returned 'target_table' entries.
3996 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
3997 (omp_get_device_num): New API function, device side.
3998 * plugin/plugin-nvptx.c ("symcat.h"): Add include.
3999 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
4000 at end of returned 'target_table' entries.
4001 * testsuite/lib/libgomp.exp
4002 (check_effective_target_offload_target_intelmic): New function for
4003 testing for intelmic offloading.
4004 * testsuite/libgomp.c-c++-common/target-45.c: New test.
4005 * testsuite/libgomp.fortran/target10.f90: New test.
4006
4007 2021-07-30 Thomas Schwinge <thomas@codesourcery.com>
4008 Ulrich Drepper <drepper@redhat.com>
4009
4010 * fortran.c (omp_display_env_, omp_display_env_8_): Only
4011 '#ifndef LIBGOMP_OFFLOADED_ONLY'.
4012
4013 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
4014 Julian Brown <julian@codesourcery.com>
4015 Kwok Cheung Yeung <kcy@codesourcery.com>
4016
4017 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
4018 's%oaccdevlow%oaccloops%g'.
4019 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
4020 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4021 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
4022 Likewise.
4023 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
4024 Likewise.
4025 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
4026 Likewise.
4027 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
4028 Likewise.
4029 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
4030 Likewise.
4031 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
4032 Likewise.
4033 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
4034 Likewise.
4035 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
4036 Likewise.
4037 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
4038
4039 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
4040
4041 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
4042 threader.
4043 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
4044
4045 2021-07-27 Ulrich Drepper <drepper@gmail.com>
4046
4047 * env.c (wait_policy, stacksize): New static variables,
4048 move out of handle_omp_display_env.
4049 (omp_display_env): New function. The meat of the old
4050 handle_omp_display_env function.
4051 (handle_omp_display_env): Change to not take parameters
4052 and instead use the global variables. Only perform
4053 parsing, defer to omp_display_env for the implementation.
4054 (initialize_env): Remove local variables wait_policy and
4055 stacksize. Don't pass parameters to handle_omp_display_env.
4056 * fortran.c: Add ialias_redirect for omp_display_env.
4057 (omp_display_env_, omp_display_env_8_): New functions.
4058 * libgomp.map (OMP_5.1): New version. Add omp_display_env,
4059 omp_display_env_, and omp_display_env_8_.
4060 * omp.h.in: Declare omp_display_env.
4061 * omp_lib.f90.in: Likewise.
4062 * omp_lib.h.in: Likewise.
4063
4064 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
4065 Julian Brown <julian@codesourcery.com>
4066
4067 * target.c (gomp_coalesce_buf_add): Update comment.
4068 (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
4069 'aq && cbuf'.
4070 (gomp_map_vars_internal): Only 'if (!aq)', do
4071 'gomp_coalesce_buf_add'.
4072 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
4073 XFAIL.
4074
4075 2021-07-27 Julian Brown <julian@codesourcery.com>
4076 Thomas Schwinge <thomas@codesourcery.com>
4077
4078 * libgomp.h (gomp_copy_host2dev): Update prototype.
4079 * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
4080 argument to gomp_copy_host2dev (false).
4081 * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
4082 (copy_data): Don't free src.
4083 (queue_push_copy): Remove free_src handling.
4084 (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
4085 (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
4086 snapshotting.
4087 (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
4088 queue_push_copy.
4089 * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
4090 (gomp_copy_host2dev): Add EPHEMERAL parameter. Snapshot source
4091 data when true, and set up deferred freeing of temporary buffer.
4092 (gomp_copy_dev2host): Update call to goacc_device_copy_async.
4093 (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
4094 (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
4095 calls to gomp_copy_host2dev with appropriate ephemeral argument.
4096 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
4097 XFAIL.
4098
4099 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
4100 Tom de Vries <tom@codesourcery.com>
4101
4102 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
4103 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
4104
4105 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
4106
4107 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
4108 sequencing of 'async' data copying vs. profiling events.
4109 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
4110 Likewise.
4111
4112 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
4113 Julian Brown <julian@codesourcery.com>
4114
4115 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
4116 'async'/'wait' issue.
4117 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
4118 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
4119 * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
4120
4121 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
4122 Joseph Myers <joseph@codesourcery.com>
4123 Cesar Philippidis <cesar@codesourcery.com>
4124
4125 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
4126 file.
4127 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
4128 Likewise.
4129 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
4130 Likewise.
4131 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
4132
4133 2021-07-20 Thomas Schwinge <thomas@codesourcery.com>
4134
4135 PR target/101484
4136 * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
4137 '-Wno-error=array-bounds'.
4138 * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
4139 * libgomp.h [__AMDGCN__]: Likewise.
4140
4141 2021-07-19 Thomas Schwinge <thomas@codesourcery.com>
4142
4143 PR target/101484
4144 * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
4145 * libgomp.h [__AMDGCN__]: Likewise.
4146
4147 2021-07-13 Jakub Jelinek <jakub@redhat.com>
4148 Florian Weimer <fweimer@redhat.com>
4149
4150 * config/linux/sem.h: Don't include limits.h.
4151 (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
4152 * config/linux/affinity.c: Include limits.h.
4153
4154 2021-07-01 Jakub Jelinek <jakub@redhat.com>
4155
4156 PR middle-end/94366
4157 * testsuite/libgomp.c-c++-common/pr94366.c: New test.
4158
4159 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
4160
4161 PR other/67300
4162 * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
4163 -foffload=nvptx-none= by -foffload-options=nvptx-none= to
4164 avoid disabling other offload targets.
4165 * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
4166 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
4167 * testsuite/libgomp.c/target-44.c: Likewise.
4168
4169 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
4170
4171 * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
4172 target has shared memory and disable some scalar pointer/allocatable
4173 checks if not as firstprivate does not work.
4174
4175 2021-06-25 Chung-Lin Tang <cltang@codesourcery.com>
4176
4177 PR testsuite/101114
4178 * testsuite/libgomp.c-c++-common/struct-elem-5.c:
4179 Add "target offload_device_nonshared_as" condition for enabling test.
4180
4181 2021-06-24 Jakub Jelinek <jakub@redhat.com>
4182
4183 * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
4184 * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
4185 * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
4186 * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
4187
4188 2021-06-23 Jakub Jelinek <jakub@redhat.com>
4189
4190 PR middle-end/101167
4191 * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
4192
4193 2021-06-17 Chung-Lin Tang <cltang@codesourcery.com>
4194
4195 * hashtab.h (htab_clear): New function with initialization code
4196 factored out from...
4197 (htab_create): ...here, adjust to use htab_clear function.
4198 * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
4199 special refcount values, add comments.
4200 (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
4201 (REFCOUNT_LINK): Likewise.
4202 (REFCOUNT_STRUCTELEM): New special refcount range for structure
4203 element siblings.
4204 (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
4205 sibling maps.
4206 (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
4207 (REFCOUNT_STRUCTELEM_FLAG_LAST): Flag to indicate last sibling.
4208 (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
4209 (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
4210 (struct splay_tree_key_s): Add structelem_refcount and
4211 structelem_refcount_ptr fields into a union with dynamic_refcount.
4212 Add comments.
4213 (gomp_map_vars): Delete declaration.
4214 (gomp_map_vars_async): Likewise.
4215 (gomp_unmap_vars): Likewise.
4216 (gomp_unmap_vars_async): Likewise.
4217 (goacc_map_vars): New declaration.
4218 (goacc_unmap_vars): Likewise.
4219 * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
4220 (goacc_enter_datum): Likewise.
4221 (goacc_enter_data_internal): Likewise.
4222 * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
4223 and goacc_unmap_vars.
4224 (GOACC_data_start): Adjust to use goacc_map_vars.
4225 (GOACC_data_end): Adjust to use goacc_unmap_vars.
4226 * target.c (hash_entry_type): New typedef.
4227 (htab_alloc): New function hook for hashtab.h.
4228 (htab_free): Likewise.
4229 (htab_hash): Likewise.
4230 (htab_eq): Likewise.
4231 (hashtab.h): Add file include.
4232 (gomp_increment_refcount): New function.
4233 (gomp_decrement_refcount): Likewise.
4234 (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
4235 gomp_increment_refcount.
4236 (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
4237 to gomp_map_vars_existing.
4238 (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
4239 variable to guard OpenMP specific paths, adjust calls to
4240 gomp_map_vars_existing, add structure element sibling splay_tree_key
4241 sequence creation code, adjust Fortran map case to avoid increment
4242 under OpenMP.
4243 (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
4244 local refcount_set if caller passed in NULL, adjust call to
4245 gomp_map_vars_internal.
4246 (gomp_map_vars_async): Adjust and rename into...
4247 (goacc_map_vars): ...this new function, adjust call to
4248 gomp_map_vars_internal.
4249 (gomp_remove_splay_tree_key): New function with code factored out from
4250 gomp_remove_var_internal.
4251 (gomp_remove_var_internal): Add code to handle removing multiple
4252 splay_tree_key sequence for structure elements, adjust code to use
4253 gomp_remove_splay_tree_key for splay-tree key removal.
4254 (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
4255 gomp_decrement_refcount.
4256 (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
4257 local refcount_set if caller passed in NULL, adjust call to
4258 gomp_unmap_vars_internal.
4259 (gomp_unmap_vars_async): Adjust and rename into...
4260 (goacc_unmap_vars): ...this new function, adjust call to
4261 gomp_unmap_vars_internal.
4262 (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
4263 gomp_unmap_vars.
4264 (GOMP_target_ext): Likewise.
4265 (gomp_target_data_fallback): Adjust call to gomp_map_vars.
4266 (GOMP_target_data): Likewise.
4267 (GOMP_target_data_ext): Likewise.
4268 (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
4269 (gomp_exit_data): Add refcount_set parameter, adjust to use
4270 gomp_decrement_refcount, adjust to queue splay-tree keys for removal
4271 after main loop.
4272 (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
4273 gomp_map_vars and gomp_exit_data.
4274 (gomp_target_task_fn): Likewise.
4275 * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
4276 * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
4277 * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
4278 * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
4279 * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
4280 * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
4281
4282 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
4283
4284 PR fortran/92568
4285 * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
4286
4287 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
4288 Thomas Schwinge <thomas@codesourcery.com>
4289
4290 * libgomp.map (GOACC_2.0.2): New symbol version.
4291 * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
4292 * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
4293
4294 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
4295 Andrew Stubbs <ams@codesourcery.com>
4296
4297 * oacc-mem.c (goacc_enter_exit_data_internal): New function,
4298 extracted from...
4299 (GOACC_enter_exit_data): ... here.
4300 (GOACC_declare): Use it.
4301
4302 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
4303
4304 * oacc-parallel.c (GOACC_declare): Move...
4305 * oacc-mem.c: ... here.
4306 * libgomp_g.h: Adjust.
4307
4308 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
4309 Thomas Schwinge <thomas@codesourcery.com>
4310
4311 * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
4312 handling.
4313
4314 2021-06-10 Jakub Jelinek <jakub@redhat.com>
4315
4316 PR tree-optimization/100981
4317 * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
4318 dsdotr and dsdoti to 0.
4319
4320 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
4321
4322 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
4323 if atomic compare-and-swap is supported on 'int'.
4324
4325 2021-06-09 Richard Biener <rguenther@suse.de>
4326
4327 PR tree-optimization/100981
4328 * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
4329
4330 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4331
4332 * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
4333 unconditionally.
4334 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
4335 Update.
4336 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4337 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
4338
4339 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4340
4341 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
4342 '-DACC_MEM_SHARED=0'.
4343 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
4344 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
4345 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
4346 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
4347 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
4348 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
4349 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
4350 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
4351 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
4352 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
4353 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
4354 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
4355 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
4356 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
4357 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
4358 'acc_device_radeon' testing.
4359 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
4360 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
4361 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
4362 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
4363 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
4364 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
4365 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
4366 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
4367 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
4368 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
4369 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
4370 for non-'openacc_nvidia_accel_selected'.
4371 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
4372 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
4373 all implement this checking".
4374 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
4375 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
4376 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
4377 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
4378 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
4379
4380 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4381
4382 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
4383 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
4384
4385 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4386
4387 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
4388 for 'acc_device_radeon'.
4389
4390 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4391
4392 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
4393 for non-'acc_device_nvidia'.
4394
4395 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4396
4397 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
4398 'acc_device_radeon' testing.
4399 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
4400 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
4401 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
4402
4403 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4404
4405 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
4406 require 'openacc_nvidia_accel_selected'. Fix up for
4407 'ACC_DEVICE_TYPE_radeon'.
4408
4409 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4410
4411 * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
4412 'openacc_nvidia_accel_selected'.
4413 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
4414
4415 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4416
4417 * testsuite/lib/libgomp.exp
4418 (check_effective_target_openacc_radeon_accel_selected):
4419 Streamline.
4420
4421 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4422
4423 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
4424 PR80547 workaround.
4425
4426 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4427
4428 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
4429 <acc_device_nvidia>: Update comment.
4430
4431 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
4432
4433 * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
4434
4435 2021-05-27 Jakub Jelinek <jakub@redhat.com>
4436
4437 * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
4438 check_effective_target_openacc_cublas,
4439 check_effective_target_openacc_cudart): New.
4440 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
4441 target openacc_cublas.
4442 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
4443 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
4444 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
4445 target openacc_cuda.
4446 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
4447 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
4448 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
4449 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
4450 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
4451 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
4452 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
4453 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
4454 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
4455 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
4456 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
4457 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
4458 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
4459 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
4460 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
4461 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
4462 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
4463 targets openacc_cublas and openacc_cudart.
4464 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
4465 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
4466 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
4467 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
4468 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
4469 Require effective target openacc_cudart.
4470 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
4471 for effective target openacc_cuda and add && defined USE_CUDA_H to
4472 preprocessor conditionals. Guard -lcuda also on openacc_cuda
4473 effective target.
4474
4475 2021-05-26 Jakub Jelinek <jakub@redhat.com>
4476
4477 PR libgomp/100573
4478 * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
4479 GOMP_target_end_data, GOMP_target_update_ext,
4480 GOMP_target_enter_exit_data): New dummy entrypoints.
4481 * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
4482 GOMP_target_end_data, GOMP_target_update_ext,
4483 GOMP_target_enter_exit_data): Likewise.
4484 * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
4485 OMPFROM, OMPTO): Define.
4486 (main): Remove #pragma omp target teams around all the tests.
4487 * testsuite/libgomp.c-c++-common/target-41.c: New test.
4488 * testsuite/libgomp.c-c++-common/target-42.c: New test.
4489
4490 2021-05-25 Jakub Jelinek <jakub@redhat.com>
4491
4492 PR middle-end/99928
4493 * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
4494
4495 2021-05-24 Tobias Burnus <tobias@codesourcery.com>
4496
4497 PR fortran/86470
4498 * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
4499 * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
4500 * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
4501
4502 2021-05-22 Thomas Schwinge <thomas@codesourcery.com>
4503
4504 PR testsuite/90115
4505 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
4506 uninteresting/varying diagnostics.
4507
4508 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
4509
4510 PR middle-end/90115
4511 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
4512 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4513
4514 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
4515
4516 PR middle-end/90115
4517 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
4518 file.
4519 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
4520 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
4521 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4522 Likewise.
4523 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4524 Likewise.
4525 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4526 Likewise.
4527 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4528 Likewise.
4529 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4530 Likewise.
4531 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4532 Likewise.
4533 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
4534 Likewise.
4535 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
4536 Likewise.
4537 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
4538 Likewise.
4539 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
4540 Likewise.
4541 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
4542 Likewise.
4543 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
4544 Likewise.
4545 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4546 Likewise.
4547 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4548 Likewise.
4549 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
4550 Likewise.
4551 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4552 Likewise.
4553 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4554 Likewise.
4555 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4556 Likewise.
4557 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4558 Likewise.
4559 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4560 Likewise.
4561 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4562 Likewise.
4563 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
4564 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
4565 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
4566 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
4567 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
4568 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4569 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4570 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
4571 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4572 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4573 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4574 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
4575 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4576 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
4577 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
4578 Likewise.
4579 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
4580 Likewise.
4581 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
4582 Likewise.
4583 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
4584 Likewise.
4585 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
4586 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
4587 Likewise.
4588 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
4589 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
4590 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
4591 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
4592 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
4593 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
4594 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4595 Likewise.
4596 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4597 Likewise.
4598 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4599 Likewise.
4600 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4601 Likewise.
4602 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
4603 Likewise.
4604 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
4605 Likewise.
4606 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
4607 Likewise.
4608 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
4609 Likewise.
4610 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
4611 Likewise.
4612 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
4613 Likewise.
4614 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
4615 Likewise.
4616 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
4617 Likewise.
4618 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
4619 Likewise.
4620 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
4621 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4622 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
4623 Likewise.
4624 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
4625 Likewise.
4626 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
4627 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4628 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
4629
4630 2021-05-21 Julian Brown <julian@codesourcery.com>
4631 Chung-Lin Tang <cltang@codesourcery.com>
4632 Thomas Schwinge <thomas@codesourcery.com>
4633
4634 PR middle-end/90115
4635 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
4636 test.
4637 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
4638 Likewise.
4639 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
4640 Likewise.
4641
4642 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
4643
4644 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
4645 for nvptx offloading.
4646
4647 2021-05-21 Tobias Burnus <tobias@codesourcery.com>
4648
4649 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
4650
4651 2021-05-19 Thomas Schwinge <thomas@codesourcery.com>
4652
4653 PR target/83812
4654 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
4655
4656 2021-05-19 Julian Brown <julian@codesourcery.com>
4657
4658 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
4659
4660 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
4661
4662 * testsuite/lib/libgomp.exp
4663 (check_effective_target_offload_target_nvptx): Don't shadow global
4664 'offload_targets' variable.
4665
4666 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
4667
4668 * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
4669 '-latomic' to nvptx offloading compilation.
4670 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
4671
4672 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
4673
4674 * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
4675 offloading compilation.
4676
4677 2021-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
4678
4679 * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
4680 if new tasks generated.
4681 * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
4682
4683 2021-05-14 Tobias Burnus <tobias@codesourcery.com>
4684
4685 * testsuite/libgomp.fortran/parallel-master.f90: New test.
4686
4687 2021-05-13 Martin Liska <mliska@suse.cz>
4688
4689 PR testsuite/100569
4690 * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
4691 * testsuite/libgomp.c/pr46032-2.c: Likewise.
4692 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
4693 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
4694
4695 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
4696
4697 * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
4698 * testsuite/libgomp.fortran/task-detach-12.f90: New test.
4699
4700 2021-05-11 Jakub Jelinek <jakub@redhat.com>
4701
4702 PR middle-end/100471
4703 * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
4704 GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
4705 reduction pointer.
4706 * testsuite/libgomp.c/task-reduction-4.c: New test.
4707
4708 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
4709 Tom de Vries <tdevries@suse.de>
4710
4711 * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
4712 complex/floating-point || + && reduction with 'omp target'.
4713 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
4714
4715 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
4716
4717 * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
4718 * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
4719 * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
4720 * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
4721
4722 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
4723
4724 PR testsuite/100397
4725 * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
4726 declaration to scope of non-'depend'-guarded assignment to avoid races.
4727
4728 2021-05-03 Tom de Vries <tdevries@suse.de>
4729
4730 PR target/100321
4731 * testsuite/libgomp.c/target-44.c: New test.
4732
4733 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
4734
4735 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
4736
4737 2021-04-29 Tom de Vries <tdevries@suse.de>
4738
4739 * testsuite/libgomp.c/pr81778.c: New test.
4740
4741 2021-04-29 Tom de Vries <tdevries@suse.de>
4742
4743 PR target/100232
4744 * testsuite/libgomp.c/target-43.c: New file.
4745
4746 2021-04-28 Jakub Jelinek <jakub@redhat.com>
4747 Tobias Burnus <tobias@codesourcery.com>
4748
4749 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
4750 * target.c (gomp_load_plugin_for_device): If set and if a plugin
4751 can't be dlopened, silently assume it has no devices.
4752 * Makefile.in: Regenerate.
4753 * config.h.in: Regenerate.
4754 * configure: Regenerate.
4755
4756 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
4757
4758 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
4759 Use [Ww]arning in dg-bogus as FE diagnostic and default
4760 diagnostic differ and the result depends on ENABLE_OFFLOAD.
4761 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4762 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4763 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4764
4765 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
4766
4767 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
4768 Correct spelling in dg-bogus to match -Wopenacc-parallelism.
4769 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4770 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4771 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4772
4773 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
4774 Nathan Sidwell <nathan@codesourcery.com>
4775 Tom de Vries <vries@codesourcery.com>
4776 Julian Brown <julian@codesourcery.com>
4777 Kwok Cheung Yeung <kcy@codesourcery.com>
4778
4779 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
4780 '-Wopenacc-parallelism', and match diagnostics, as appropriate.
4781 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
4782 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4783 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4784 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4785 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
4786 Likewise.
4787 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
4788 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
4789 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4790 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
4791 Likewise.
4792 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
4793 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
4794 Likewise.
4795 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
4796 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
4797 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
4798 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
4799 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
4800 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
4801 Likewise.
4802 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
4803 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
4804 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4805 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4806 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4807 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
4808 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
4809 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
4810 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4811 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4812 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
4813
4814 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
4815
4816 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
4817 compile with '-w'.
4818 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
4819 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
4820 Likewise.
4821 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
4822 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
4823 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4824 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
4825 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4826 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4827 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4828
4829 2021-04-22 Richard Biener <rguenther@suse.de>
4830
4831 * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
4832 only on nvptx-none.
4833
4834 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
4835
4836 * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
4837 omp_depend_kind instead of defining it as 16.
4838
4839 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
4840
4841 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
4842 New, based on check_effective_target_offload_target_nvptx.
4843 (check_effective_target_offload_target_nvptx): Call it.
4844 (check_effective_target_offload_target_amdgcn): New.
4845 * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
4846 Require target offload_target_nvptx || offload_target_amdgcn.
4847 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
4848 * testsuite/libgomp.c/pr86416-1.c: Likewise.
4849 * testsuite/libgomp.c/pr86416-2.c: Likewise.
4850
4851 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
4852
4853 * testsuite/libgomp.fortran/depobj-1.f90: New test.
4854
4855 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
4856
4857 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4858 '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
4859 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
4860 Likewise.
4861 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4862 Likewise.
4863 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
4864
4865 2021-04-15 Thomas Schwinge <thomas@codesourcery.com>
4866
4867 PR target/99555
4868 * testsuite/lib/libgomp.exp
4869 (check_effective_target_offload_device_nvptx): New.
4870 * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
4871 resolved, make sure that we exit quickly, with error status,
4872 XFAILed.
4873 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
4874 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
4875
4876 2021-04-14 Jakub Jelinek <jakub@redhat.com>
4877
4878 PR testsuite/100071
4879 * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
4880 cp = omp_alloc with cp, p arguments instead of cq, q and call
4881 c_f_pointer after last cq = omp_alloc with cq, q.
4882
4883 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
4884
4885 PR middle-end/98088
4886 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
4887 for loop with GT/GE condition.
4888 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
4889
4890 2021-04-09 Thomas Schwinge <thomas@codesourcery.com>
4891
4892 PR middle-end/84991
4893 PR middle-end/84992
4894 PR middle-end/90779
4895 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
4896
4897 2021-04-09 Jakub Jelinek <jakub@redhat.com>
4898
4899 PR libgomp/99984
4900 * team.c (gomp_thread_start): Call pthread_setspecific for
4901 !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
4902 has been initialized to avoid false positive warning.
4903
4904 2021-03-29 Tobias Burnus <tobias@codesourcery.com>
4905
4906 PR target/99555
4907 * testsuite/lib/on_device_arch.c: Move to ...
4908 * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
4909 * testsuite/libgomp.fortran/on_device_arch.c: New file;
4910 #include on_device_arch.h.
4911 * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
4912 on_device_arch.h instead of using dg-additional-source.
4913 * testsuite/libgomp.c/pr99555-1.c: Likewise.
4914 * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
4915 on_device_arch.c without relative paths.
4916
4917 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
4918
4919 * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
4920 the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
4921 * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
4922 * config.h.in: Regenerate.
4923 * configure: Likewise.
4924
4925 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
4926
4927 PR target/99555
4928 * testsuite/lib/on_device_arch.c: New file.
4929 * testsuite/libgomp.c/pr99555-1.c: Likewise.
4930 * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
4931 skip for nvptx offloading, with error status.
4932 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
4933
4934 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
4935
4936 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
4937 OpenACC 'serial' construct diagnostic for nvptx offloading.
4938
4939 2021-03-15 Tobias Burnus <tobias@codesourcery.com>
4940
4941 PR c++/99509
4942 * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
4943
4944 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
4945
4946 PR fortran/98858
4947 * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
4948
4949 2021-03-04 Jakub Jelinek <jakub@redhat.com>
4950
4951 * configure.ac: Add AC_CHECK_SIZEOF([void *]).
4952 * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
4953 checking of -m32 or -mx32 options on the command line.
4954 * config.h.in: Regenerated.
4955 * configure: Regenerated.
4956
4957 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
4958
4959 * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
4960 support from the target.
4961
4962 2021-02-25 Kwok Cheung Yeung <kcy@codesourcery.com>
4963 Jakub Jelinek <jakub@redhat.com>
4964
4965 PR libgomp/98738
4966 * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
4967 (struct gomp_task): Replace detach and completion_sem fields with
4968 union containing completion_sem and detach_team. Add deferred_p
4969 field.
4970 (struct gomp_team): Remove task_detach_queue.
4971 * task.c: Include assert.h.
4972 (gomp_init_task): Initialize deferred_p and completion_sem fields.
4973 Rearrange initialization order of fields.
4974 (task_fulfilled_p): Delete.
4975 (GOMP_task): Use address of task as the event handle. Remove
4976 initialization of detach field. Initialize deferred_p field.
4977 Use automatic local for completion_sem. Initialize detach_team field
4978 for deferred tasks.
4979 (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
4980 Set kind of suspended detach task to GOMP_TASK_DETACHED and
4981 decrement task_running_count. Move finish_cancelled block out of
4982 else branch. Relocate call to gomp_team_barrier_done.
4983 (GOMP_taskwait): Handle tasks with completion events that have not
4984 been fulfilled.
4985 (GOMP_taskgroup_end): Likewise.
4986 (omp_fulfill_event): Use address of task as event handle. Post to
4987 completion_sem for undeferred tasks. Clear detach_team if task
4988 has not finished. For finished tasks, handle post-execution tasks,
4989 call gomp_team_barrier_wake if necessary, and free task.
4990 * team.c (gomp_new_team): Remove initialization of task_detach_queue.
4991 (free_team): Remove free of task_detach_queue.
4992 * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
4993 * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
4994 * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
4995 * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
4996 * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
4997 Change data-sharing of detach events on enclosing parallel to private.
4998 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise. Remove
4999 taskwait directive.
5000 * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
5001 * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
5002 * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
5003 * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
5004 * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
5005 * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
5006 * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
5007 * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
5008 * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
5009 * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
5010 Change data-sharing of detach events on enclosing parallel to private.
5011 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise. Remove
5012 taskwait directive.
5013 * testsuite/libgomp.fortran/task-detach-7.f90: New.
5014 * testsuite/libgomp.fortran/task-detach-8.f90: New.
5015 * testsuite/libgomp.fortran/task-detach-9.f90: New.
5016 * testsuite/libgomp.fortran/task-detach-10.f90: New.
5017 * testsuite/libgomp.fortran/task-detach-11.f90: New.
5018
5019 2021-02-22 Tobias Burnus <tobias@codesourcery.com>
5020
5021 PR fortran/99171
5022 * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
5023
5024 2021-02-17 Julian Brown <julian@codesourcery.com>
5025
5026 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
5027 expected errors.
5028
5029 2021-02-17 Julian Brown <julian@codesourcery.com>
5030
5031 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
5032 * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
5033
5034 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
5035
5036 * config/linux/x86/futex.h (__futex_wait):
5037 Revert output type back to long.
5038 (__futex_wake): Ditto.
5039 (futex_wait): Update for revert.
5040 (futex_wake): Ditto.
5041
5042 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
5043
5044 * config/linux/x86/futex.h (__futex_wait): New static inline
5045 wrapper function. Correct output type to int and
5046 timeout type to void *.
5047 (__futex_wake): New static inline wrapper function.
5048 Correct output type to int.
5049 (futex_wait): Use __futex_wait.
5050 (futex_wake): Use __futex_wake.
5051
5052 2021-02-10 Julian Brown <julian@codesourcery.com>
5053
5054 PR fortran/98979
5055 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
5056 errors.
5057
5058 2021-02-04 Julian Brown <julian@codesourcery.com>
5059
5060 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
5061
5062 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
5063
5064 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
5065 EF_AMDGPU_MACH_AMDGCN_GFX908.
5066 (gcn_gfx908_s): New constant string.
5067 (isa_hsa_name): Add gfx908.
5068 (isa_code): Add gfx908.
5069
5070 2021-01-25 Kwok Cheung Yeung <kcy@codesourcery.com>
5071
5072 * libgomp.texi (omp_fulfill_event): New entry.
5073
5074 2021-01-20 Jakub Jelinek <jakub@redhat.com>
5075
5076 * task.c (GOMP_task): Rename priority argument to priority_arg,
5077 add priority automatic variable and modify that variable. Instead of
5078 clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
5079 check flags for that bit.
5080
5081 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
5082
5083 PR fortran/98476
5084 * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
5085
5086 2021-01-18 Andreas Schwab <schwab@suse.de>
5087
5088 * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
5089
5090 2021-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
5091
5092 * config/rtems/sem.h (gomp_sem_getcount): New function.
5093
5094 2021-01-18 Jakub Jelinek <jakub@redhat.com>
5095
5096 * config/linux/sem.h (gomp_sem_getcount): New function.
5097 * config/posix/sem.h (gomp_sem_getcount): New function.
5098 * config/posix/sem.c (gomp_sem_getcount): New function.
5099 * config/accel/sem.h (gomp_sem_getcount): New function.
5100 * task.c (task_fulfilled_p): Use gomp_sem_getcount.
5101 (omp_fulfill_event): Likewise.
5102
5103 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
5104
5105 * fortran.c (omp_fulfill_event_): New.
5106 * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
5107 (struct gomp_team): Add task_detach_queue and task_detach_count
5108 fields.
5109 * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
5110 * libgomp_g.h (GOMP_task): Add extra argument.
5111 * omp.h.in (enum omp_event_handle_t): New.
5112 (omp_fulfill_event): New.
5113 * omp_lib.f90.in (omp_event_handle_kind): New.
5114 (omp_fulfill_event): New.
5115 * omp_lib.h.in (omp_event_handle_kind): New.
5116 (omp_fulfill_event): Declare.
5117 * priority_queue.c (priority_tree_find): New.
5118 (priority_list_find): New.
5119 (priority_queue_find): New.
5120 * priority_queue.h (priority_queue_predicate): New.
5121 (priority_queue_find): New.
5122 * task.c (gomp_init_task): Initialize detach field.
5123 (task_fulfilled_p): New.
5124 (GOMP_task): Add detach argument. Ignore detach argument if
5125 GOMP_TASK_FLAG_DETACH not set in flags. Initialize completion_sem
5126 field. Copy address of completion_sem into detach argument and
5127 into the start of the data record. Wait for detach event if task
5128 not deferred.
5129 (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
5130 Remove completed tasks and requeue dependent tasks.
5131 (omp_fulfill_event): New.
5132 * team.c (gomp_new_team): Initialize task_detach_queue and
5133 task_detach_count fields.
5134 (free_team): Free task_detach_queue field.
5135 * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
5136 * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
5137 * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
5138 * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
5139 * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
5140 * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
5141 * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
5142 * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
5143 * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
5144 * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
5145 * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
5146 * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
5147
5148 2021-01-15 Jakub Jelinek <jakub@redhat.com>
5149
5150 PR target/70454
5151 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
5152 be added through preprocessor check on
5153 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
5154
5155 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
5156
5157 PR libgomp/65099
5158 * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
5159 configurations.
5160 * configure: Regenerate.
5161 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
5162 check.
5163
5164 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
5165
5166 * configure: Re-generate.
5167
5168 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
5169
5170 * configure: Re-generate.
5171
5172 2021-01-05 Julian Brown <julian@codesourcery.com>
5173
5174 * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
5175 (struct ptx_device): Add omp_stacks struct.
5176 (nvptx_open_device): Initialise cached-stacks housekeeping info.
5177 (nvptx_close_device): Free cached stacks block and mutex.
5178 (nvptx_stacks_free): New function.
5179 (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
5180 (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
5181 (nvptx_stacks_alloc): Rename to...
5182 (nvptx_stacks_acquire): This. Cache stacks block between runs if same
5183 size or smaller is required.
5184 (nvptx_stacks_free): Remove.
5185 (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
5186 during kernel execution.
5187
5188 2021-01-01 Jakub Jelinek <jakub@redhat.com>
5189
5190 * libgomp.texi: Bump @copying's copyright year.
5191
5192 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
5193
5194 * libgomp.texi (Top): Avoid bad "up" link.
5195
5196 2020-12-18 Jakub Jelinek <jakub@redhat.com>
5197
5198 * testsuite/libgomp.c/task-6.c: New test.
5199
5200 2020-12-09 Andrew Stubbs <ams@codesourcery.com>
5201
5202 * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
5203 (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
5204
5205 2020-12-08 Tobias Burnus <tobias@codesourcery.com>
5206
5207 * testsuite/libgomp.fortran/scan-1.f90: New test.
5208
5209 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
5210
5211 PR target/97865
5212 * configure: Regenerate.
5213
5214 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
5215
5216 * configure: Regenerate.
5217
5218 2020-11-25 Thomas Schwinge <thomas@codesourcery.com>
5219
5220 * testsuite/libgomp.oacc-c++/cache-1.C: New.
5221 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
5222
5223 2020-11-25 Andrew Stubbs <ams@codesourcery.com>
5224
5225 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
5226 expected results.
5227
5228 2020-11-24 Andrew Stubbs <ams@codesourcery.com>
5229
5230 * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
5231 (reserved): Delete unused define.
5232
5233 2020-11-24 Thomas Schwinge <thomas@codesourcery.com>
5234
5235 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
5236 Tcl 8.5-specific behavior.
5237 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
5238
5239 2020-11-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5240
5241 * env.c (gomp_global_icv): Remove nest_var field. Add
5242 max_active_levels_var field.
5243 (gomp_max_active_levels_var): Remove.
5244 (parse_boolean): Return true on success.
5245 (handle_omp_display_env): Express OMP_NESTED in terms of
5246 max_active_levels_var. Change format specifier for
5247 max_active_levels_var.
5248 (initialize_env): Set max_active_levels_var from
5249 OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
5250 OMP_PROC_BIND.
5251 * icv.c (omp_set_nested): Express in terms of
5252 max_active_levels_var.
5253 (omp_get_nested): Likewise.
5254 (omp_set_max_active_levels): Use max_active_levels_var field instead
5255 of gomp_max_active_levels_var.
5256 (omp_get_max_active_levels): Likewise.
5257 * libgomp.h (struct gomp_task_icv): Remove nest_var field. Add
5258 max_active_levels_var field.
5259 (gomp_supported_active_levels): Set to UCHAR_MAX.
5260 (gomp_max_active_levels_var): Delete.
5261 * libgomp.texi (omp_get_nested): Update documentation.
5262 (omp_set_nested): Likewise.
5263 (OMP_MAX_ACTIVE_LEVELS): Likewise.
5264 (OMP_NESTED): Likewise.
5265 (OMP_NUM_THREADS): Likewise.
5266 (OMP_PROC_BIND): Likewise.
5267 * parallel.c (gomp_resolve_num_threads): Replace reference
5268 to nest_var with max_active_levels_var. Use max_active_levels_var
5269 field instead of gomp_max_active_levels_var.
5270
5271 2020-11-18 Tobias Burnus <tobias@codesourcery.com>
5272
5273 * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
5274 nvptx_usleep; use also for device={arch(gcn)}.
5275
5276 2020-11-14 Jakub Jelinek <jakub@redhat.com>
5277
5278 * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
5279 (foo): Add tests for non-VLA private and firstprivate clauses on
5280 omp task.
5281 (bar): Likewise. Remove taking of address from private/firstprivate
5282 variables.
5283 * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
5284 (foo): Add p, q, px and s arguments. Add tests for array reductions
5285 and for non-VLA private and firstprivate clauses on omp task.
5286 (bar): Removed.
5287 (main): Adjust foo caller. Don't call bar.
5288
5289 2020-11-13 Gergö Barany <gergo@codesourcery.com>
5290 Thomas Schwinge <thomas@codesourcery.com>
5291
5292 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
5293 New.
5294 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
5295 Likewise.
5296 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5297 Likewise.
5298 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
5299 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
5300
5301 2020-11-13 Gergö Barany <gergo@codesourcery.com>
5302 Thomas Schwinge <thomas@codesourcery.com>
5303
5304 PR fortran/94358
5305 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
5306
5307 2020-11-13 Jakub Jelinek <jakub@redhat.com>
5308
5309 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
5310 for array reductions.
5311 (main): Adjust foo callers.
5312
5313 2020-11-12 Jakub Jelinek <jakub@redhat.com>
5314
5315 * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
5316 * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
5317 * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
5318 * allocator.c (omp_aligned_alloc): New for now static function,
5319 add alignment argument and handle it.
5320 (omp_alloc): Reimplement using omp_aligned_alloc.
5321 (GOMP_alloc, GOMP_free): New functions.
5322 (omp_free): Add ialias.
5323 * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
5324 * testsuite/libgomp.c++/allocate-1.C: New test.
5325
5326 2020-11-12 Thomas Schwinge <thomas@codesourcery.com>
5327
5328 PR fortran/97782
5329 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
5330
5331 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
5332
5333 * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
5334 usable.
5335 * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
5336 'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
5337 (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
5338 (goacc_enter_data_internal): Likewise.
5339 * target.c (gomp_map_vars_internal):
5340 Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
5341 of gomp_attach_pointer for OpenMP cases.
5342 (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
5343 (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
5344 * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
5345
5346 2020-11-05 Ulrich Drepper <drepper@redhat.com>
5347 Kwok Cheung Yeung <kcy@codesourcery.com>
5348
5349 * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
5350 * Makefile.in: Regenerate.
5351 * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
5352 pragmas to ignore -Wdeprecated-declarations warnings.
5353 * icv.c: Likewise.
5354 * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
5355 Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
5356 and omp_get_nested with __GOMP_DEPRECATED_5_0.
5357 * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
5358 deprecated.
5359 * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
5360 to test options.
5361 * testsuite/libgomp.c/affinity-1.c: Likewise.
5362 * testsuite/libgomp.c/affinity-2.c: Likewise.
5363 * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
5364 * testsuite/libgomp.c/lib-1.c: Likewise.
5365 * testsuite/libgomp.c/nested-1.c: Likewise.
5366 * testsuite/libgomp.c/nested-2.c: Likewise.
5367 * testsuite/libgomp.c/nested-3.c: Likewise.
5368 * testsuite/libgomp.c/pr32362-1.c: Likewise.
5369 * testsuite/libgomp.c/pr32362-2.c: Likewise.
5370 * testsuite/libgomp.c/pr32362-3.c: Likewise.
5371 * testsuite/libgomp.c/pr35549.c: Likewise.
5372 * testsuite/libgomp.c/pr42942.c: Likewise.
5373 * testsuite/libgomp.c/pr61200.c: Likewise.
5374 * testsuite/libgomp.c/sort-1.c: Likewise.
5375 * testsuite/libgomp.c/target-5.c: Likewise.
5376 * testsuite/libgomp.c/target-6.c: Likewise.
5377 * testsuite/libgomp.c/teams-1.c: Likewise.
5378 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
5379 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
5380 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
5381 * testsuite/libgomp.fortran/affinity1.f90: Likewise.
5382 * testsuite/libgomp.fortran/lib1.f90: Likewise.
5383 * testsuite/libgomp.fortran/lib2.f: Likewise.
5384 * testsuite/libgomp.fortran/nested1.f90: Likewise.
5385 * testsuite/libgomp.fortran/teams1.f90: Likewise.
5386
5387 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
5388
5389 PR target/85486
5390 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
5391 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
5392 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
5393
5394 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
5395
5396 PR testsuite/80219
5397 PR testsuite/85303
5398 * testsuite/lib/libgomp.exp (libgomp_init): Set
5399 'gcc_warning_prefix', 'gcc_error_prefix'.
5400
5401 2020-10-30 Jakub Jelinek <jakub@redhat.com>
5402
5403 * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
5404 even in field_tgt_clear initializer.
5405
5406 2020-10-28 Jakub Jelinek <jakub@redhat.com>
5407
5408 * testsuite/libgomp.c/target-42.c: New test.
5409
5410 2020-10-28 Jakub Jelinek <jakub@redhat.com>
5411 Tom de Vries <tdevries@suse.de>
5412
5413 PR testsuite/81690
5414 * testsuite/libgomp.c/usleep.h: New file.
5415 * testsuite/libgomp.c/target-32.c: Include usleep.h.
5416 (main): Use tgt_usleep instead of usleep.
5417 * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
5418 (main): Use tgt_usleep instead of usleep.
5419
5420 2020-10-28 Jakub Jelinek <jakub@redhat.com>
5421
5422 PR lto/96680
5423 * testsuite/libgomp.c/declare-variant-1.c: New test.
5424
5425 2020-10-22 Jakub Jelinek <jakub@redhat.com>
5426
5427 * testsuite/libgomp.c/target-41.c: New test.
5428
5429 2020-10-22 Jakub Jelinek <jakub@redhat.com>
5430
5431 * icv.c (omp_get_initial_device): Remove including corresponding
5432 ialias.
5433 * icv-device.c (omp_get_initial_device): New function. Return
5434 gomp_get_num_devices (). Add ialias.
5435 * target.c (resolve_device): Don't fail with
5436 OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
5437 gomp_get_num_devices ().
5438 (omp_target_alloc, omp_target_free, omp_target_is_present,
5439 omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
5440 omp_target_disassociate_ptr, omp_pause_resource): Use
5441 gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
5442 first use in the functions, in uses dominated by the
5443 gomp_get_num_devices call use num_devices_openmp instead.
5444 * libgomp.texi (omp_get_initial_device): Document.
5445 * config/gcn/icv-device.c (omp_get_initial_device): New function.
5446 Add ialias.
5447 * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
5448 * testsuite/libgomp.c/target-40.c: New test.
5449
5450 2020-10-21 Jakub Jelinek <jakub@redhat.com>
5451
5452 * env.c (parse_target_offload): Change new_offload var type to int,
5453 preinitialize to -1, remove found var and test new_offload != -1
5454 instead of found.
5455
5456 2020-10-20 Jakub Jelinek <jakub@redhat.com>
5457
5458 * target.c (gomp_target_init): Inside of the function, use automatic
5459 variables corresponding to num_devices, num_devices_openmp and devices
5460 global variables and update the globals only at the end of the
5461 function.
5462
5463 2020-10-20 Kwok Cheung Yeung <kcy@codesourcery.com>
5464
5465 * env.c (gomp_target_offload_var): New.
5466 (parse_target_offload): New.
5467 (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
5468 (initialize_env): Parse OMP_TARGET_OFFLOAD.
5469 * libgomp.h (gomp_target_offload_t): New.
5470 (gomp_target_offload_var): New.
5471 * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
5472 * target.c (resolve_device): Generate error if device not found and
5473 offloading is mandatory.
5474 (gomp_target_fallback): Generate error if offloading is mandatory.
5475 (GOMP_target): Add argument in call to gomp_target_fallback.
5476 (GOMP_target_ext): Likewise.
5477 (gomp_target_data_fallback): Generate error if offloading is mandatory.
5478 (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
5479 (GOMP_target_data_ext): Likewise.
5480 (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
5481 (gomp_target_init): Return early if offloading is disabled.
5482
5483 2020-10-15 Kwok Cheung Yeung <kcy@codesourcery.com>
5484
5485 * libgomp.texi (omp_get_max_active_levels): Modify description.
5486 (omp_get_supported_active_levels): Make descriptions consistent.
5487
5488 2020-10-14 Jakub Jelinek <jakub@redhat.com>
5489
5490 * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
5491
5492 2020-10-13 Kwok Cheung Yeung <kcy@codesourcery.com>
5493
5494 * env.c (gomp_max_active_levels_var): Initialize to
5495 gomp_supported_active_levels.
5496 (initialize_env): Limit gomp_max_active_levels_var to be at most
5497 equal to gomp_supported_active_levels.
5498 * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
5499 (omp_get_supported_active_levels_): New.
5500 * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
5501 to at most equal to gomp_supported_active_levels.
5502 (omp_get_supported_active_levels): New.
5503 * libgomp.h (gomp_supported_active_levels): New.
5504 * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
5505 omp_get_supported_active_levels_.
5506 * libgomp.texi (omp_get_supported_active_levels): New.
5507 (omp_set_max_active_levels): Update. Add reference to
5508 omp_get_supported_active_levels.
5509 * omp.h.in (omp_get_supported_active_levels): New.
5510 * omp_lib.f90.in (omp_get_supported_active_levels): New.
5511 * omp_lib.h.in (omp_get_supported_active_levels): New.
5512 * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
5513 against omp_get_supported_active_levels.
5514 * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
5515
5516 2020-10-11 Clement Chigot <clement.chigot@atos.net>
5517
5518 * config/t-aix: Delete and recreate libgomp before creating
5519 FAT library.
5520
5521 2020-10-08 Tom de Vries <tdevries@suse.de>
5522
5523 PR libgomp/81802
5524 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
5525 dimensions.
5526
5527 2020-10-06 Tom de Vries <tdevries@suse.de>
5528
5529 * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
5530
5531 2020-10-06 Tom de Vries <tdevries@suse.de>
5532
5533 PR middle-end/90861
5534 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
5535
5536 2020-10-05 Tom de Vries <tdevries@suse.de>
5537
5538 PR fortran/95654
5539 * testsuite/libgomp.fortran/pr95654.f90: New test.
5540
5541 2020-10-02 Tobias Burnus <tobias@codesourcery.com>
5542
5543 * Makefile.in: Regenerate with automake 1.15.1.
5544 * aclocal.m4: Likewise.
5545 * configure: Likewise.
5546 * testsuite/Makefile.in: Likewise.
5547
5548 2020-09-30 Andrew Stubbs <ams@codesourcery.com>
5549
5550 * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
5551 and amdgcn targets.
5552
5553 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
5554
5555 * testsuite/libgomp.fortran/declare-target-3.f90: New test.
5556
5557 2020-09-29 Andrew Stubbs <ams@codesourcery.com>
5558
5559 * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
5560 total number of threads is one.
5561 (gomp_team_barrier_wake): Likewise.
5562 (gomp_team_barrier_wait_end): Likewise.
5563 (gomp_team_barrier_wait_cancel_end): Likewise.
5564 * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
5565 (gomp_team_barrier_wake): Likewise.
5566 (gomp_team_barrier_wait_end): Likewise.
5567 (gomp_team_barrier_wait_cancel_end): Likewise.
5568 * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
5569
5570 2020-09-28 Tobias Burnus <tobias@codesourcery.com>
5571
5572 PR middle-end/96390
5573 * testsuite/libgomp.c++/pr96390.C: New test.
5574 * testsuite/libgomp.c-c++-common/pr96390.c: New test.
5575
5576 2020-09-27 Clement Chigot <clement.chigot@atos.net>
5577
5578 * config/t-aix: Use $(AR) without -X32_64.
5579
5580 2020-09-25 Jakub Jelinek <jakub@redhat.com>
5581
5582 * testsuite/libgomp.c/loop-25.c: New test.
5583
5584 2020-09-22 Tobias Burnus <tobias@codesourcery.com>
5585
5586 PR fortran/95654
5587 * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
5588
5589 2020-09-22 Tom de Vries <tdevries@suse.de>
5590
5591 * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
5592 fails.
5593
5594 2020-09-16 Nathan Sidwell <nathan@acm.org>
5595
5596 * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
5597
5598 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
5599
5600 PR fortran/96668
5601 * target.c (gomp_map_vars_internal): Initialize has_nullptr.
5602
5603 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
5604
5605 PR fortran/96668
5606 * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
5607 * target.c (gomp_map_vars_existing): Add always_to_flag flag.
5608 (gomp_map_vars_existing): Update call to it.
5609 (gomp_map_fields_existing): Likewise
5610 (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
5611 now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
5612 remapped.
5613 (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
5614 GOMP_MAP_POINTER.
5615 * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
5616 * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
5617
5618 2020-09-14 Tom de Vries <tdevries@suse.de>
5619
5620 * config/nvptx/atomic.c: New file. Add
5621 __sync_val_compare_and_swap_16.
5622 * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
5623 target offload_target_nvptx.
5624
5625 2020-09-08 Julian Brown <julian@codesourcery.com>
5626
5627 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
5628 iteration-ordering assumptions.
5629
5630 2020-09-08 Julian Brown <julian@codesourcery.com>
5631
5632 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
5633 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
5634
5635 2020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
5636
5637 * plugin/plugin-nvptx.c (nvptx_free):
5638 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
5639 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
5640 comments.
5641
5642 2020-08-20 Tobias Burnus <tobias@codesourcery.com>
5643
5644 * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
5645
5646 2020-08-13 Kwok Cheung Yeung <kcy@codesourcery.com>
5647
5648 * testsuite/libgomp.c-c++-common/reduction-16.c: New.
5649
5650 2020-08-13 Jakub Jelinek <jakub@redhat.com>
5651
5652 * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
5653 * testsuite/libgomp.c/loop-23.c (main): Likewise.
5654 * testsuite/libgomp.c/loop-24.c: New test.
5655
5656 2020-08-08 Jakub Jelinek <jakub@redhat.com>
5657 Tobias Burnus <tobias@codesourcery.com>
5658
5659 PR fortran/93553
5660 * testsuite/libgomp.fortran/pr93553.f90: New test.
5661
5662 2020-08-05 Jakub Jelinek <jakub@redhat.com>
5663
5664 * testsuite/libgomp.c/loop-22.c: New test.
5665 * testsuite/libgomp.c/loop-23.c: New test.
5666
5667 2020-08-05 Jakub Jelinek <jakub@redhat.com>
5668
5669 PR middle-end/96459
5670 * testsuite/libgomp.c/teams-3.c: New test.
5671 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
5672 if not defined yet.
5673 (N(test)): Use it before all N(f*) calls.
5674 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
5675 (main): Don't call all test_* functions from within
5676 #pragma omp teams reduction(|:err), call them directly.
5677
5678 2020-08-04 Tom de Vries <tdevries@suse.de>
5679
5680 PR target/96428
5681 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
5682 * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
5683
5684 2020-08-03 Julian Brown <julian@codesourcery.com>
5685 Thomas Schwinge <thomas@codesourcery.com>
5686
5687 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
5688 shared-memory devices. Extend with further checking.
5689
5690 2020-08-03 Martin Jambor <mjambor@suse.cz>
5691
5692 * plugin/Makefrag.am: Remove configuration of HSA plugin.
5693 * aclocal.m4: Regenerated.
5694 * Makefile.in: Regenerated.
5695 * config.h.in: Regenerated.
5696 * configure: Regenerated.
5697 * plugin/configfrag.ac: Likewise.
5698 * plugin/hsa_ext_finalize.h: Removed.
5699 * plugin/plugin-hsa.c: Likewise.
5700 * testsuite/Makefile.in: Regenerated.
5701 * testsuite/lib/libgomp.exp
5702 (offload_target_to_openacc_device_type): Remove hsa case.
5703 (check_effective_target_hsa_offloading_selected_nocache): Removed
5704 (check_effective_target_hsa_offloading_selected): Likewise.
5705 (libgomp_init): Do not add -Wno-hsa to additional_flags.
5706 * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
5707 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
5708 * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
5709 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
5710 * testsuite/libgomp.hsa.c/c.exp: Likewise.
5711 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
5712 * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
5713 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
5714 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
5715 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
5716 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
5717 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
5718 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
5719 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
5720 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
5721 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
5722 * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
5723 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
5724 * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
5725 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
5726 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
5727 * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
5728 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
5729 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
5730
5731 2020-07-27 Julian Brown <julian@codesourcery.com>
5732 Thomas Schwinge <thomas@codesourcery.com>
5733
5734 * libgomp.h (struct target_var_desc): Rename do_detach field to
5735 is_attach.
5736 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
5737 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
5738 (goacc_enter_data_internal): Don't affect reference counts
5739 for attach mappings.
5740 (goacc_exit_data_internal): Don't affect reference counts for detach
5741 mappings.
5742 * target.c (gomp_map_vars_existing): Don't affect reference counts for
5743 attach mappings.
5744 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
5745 mark attach mappings.
5746 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
5747 reference count for attach mappings.
5748 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
5749 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
5750 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
5751 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
5752 test as shouldfail.
5753 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
5754 gracefully in no-finalize mode.
5755 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
5756
5757 2020-07-24 Thomas Schwinge <thomas@codesourcery.com>
5758
5759 * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
5760 use.
5761 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5762 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5763
5764 2020-07-23 Julian Brown <julian@codesourcery.com>
5765 Thomas Schwinge <thomas@codesourcery.com>
5766
5767 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
5768 finalization for detach operation.
5769 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
5770 New test.
5771
5772 2020-07-23 Tobias Burnus <tobias@codesourcery.com>
5773
5774 * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
5775 * libgomp_f.h.in (omp_check_defines): Check whether
5776 sizeof of determined Fortran kind and C typedef match.
5777 * omp_lib.f90.in: Add omp_depened_kind.
5778 * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
5779 * configure: Regenerate.
5780 * Makefile.in: Regenerate.
5781 * testsuite/Makefile.in: Regenerate.
5782
5783 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
5784
5785 * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
5786 gcc/testsuite/c-c++-common/gomp/.
5787 * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
5788 * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
5789 from gcc/testsuite/gfortran.dg/gomp/.
5790 * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
5791
5792 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
5793
5794 * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
5795 * omp_lib.h.in: Likewise.
5796
5797 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
5798
5799 PR target/95620
5800 * testsuite/libgomp.c/pr95620.c: New test.
5801
5802 2020-07-16 Julian Brown <julian@codesourcery.com>
5803 Thomas Schwinge <thomas@codesourcery.com>
5804
5805 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
5806 * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
5807
5808 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
5809
5810 * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
5811 avoid conversion on 32bit systems from 32bit to 64bit due
5812 to -fdefault-integer-8.
5813
5814 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
5815
5816 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
5817 variables; add character(kind=4) tests; update TODO comment.
5818
5819 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
5820
5821 * allocator.c: Add ialias for omp_init_allocator and
5822 omp_destroy_allocator.
5823 * configure.ac: Set INTPTR_T_KIND.
5824 * configure: Regenerate.
5825 * Makefile.in: Regenerate.
5826 * testsuite/Makefile.in: Regenerate.
5827 * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
5828 omp_set_default_allocator_, omp_get_default_allocator_): New
5829 functions and ialias_redirect.
5830 * icv.c: Add ialias for omp_set_default_allocator and
5831 omp_get_default_allocator.
5832 * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
5833 omp_destroy_allocator_, omp_set_default_allocator_ and
5834 omp_get_default_allocator_.
5835 * omp_lib.f90.in: Add allocator traits parameters, declare
5836 allocator routines and add related kind parameters.
5837 * omp_lib.h.in: Likewise.
5838 * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
5839 * testsuite/libgomp.fortran/alloc-1.F90: New test.
5840 * testsuite/libgomp.fortran/alloc-2.F90: New test.
5841 * testsuite/libgomp.fortran/alloc-3.F: New test.
5842 * testsuite/libgomp.fortran/alloc-4.f90: New test.
5843 * testsuite/libgomp.fortran/alloc-5.f90: New test.
5844
5845 2020-07-14 Tom de Vries <tom@codesourcery.com>
5846 Cesar Philippidis <cesar@codesourcery.com>
5847 Thomas Schwinge <thomas@codesourcery.com>
5848 Kwok Cheung Yeung <kcy@codesourcery.com>
5849
5850 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
5851 New variable.
5852 (acc_init_1): Set acc_init_thread to pthread_self (). Set
5853 acc_init_state to initializing at the start, and to initialized at the
5854 end.
5855 (self_initializing_p): New function.
5856 (acc_get_device_type): Return acc_device_none if called by thread that
5857 is currently executing acc_init_1.
5858 * libgomp.texi (acc_get_device_type): Update documentation.
5859 (Implementation Status and Implementation-Defined Behavior): Likewise.
5860 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
5861
5862 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
5863
5864 * config/t-aix: Set BITS from compiler cpp macro.
5865
5866 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
5867
5868 * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
5869
5870 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
5871
5872 PR fortran/67311
5873 * testsuite/libgomp.fortran/target-map-1.f90: New test.
5874
5875 2020-07-14 Jakub Jelinek <jakub@redhat.com>
5876
5877 * testsuite/libgomp.c/loop-21.c: New test.
5878
5879 2020-07-13 Julian Brown <julian@codesourcery.com>
5880 Thomas Schwinge <thomas@codesourcery.com>
5881
5882 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
5883
5884 2020-07-10 Julian Brown <julian@codesourcery.com>
5885 Thomas Schwinge <thomas@codesourcery.com>
5886
5887 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
5888 dynamic_refcount.
5889 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
5890 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
5891 dynamic_refcount.
5892 (acc_unmap_data): Update comment.
5893 (goacc_map_var_existing, goacc_enter_datum): Adjust for
5894 dynamic_refcount semantics.
5895 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
5896 Adjust for dynamic_refcount semantics.
5897 (goacc_enter_data_internal): Implement "present" case of dynamic
5898 memory-map handling here. Update "non-present" case for
5899 dynamic_refcount semantics.
5900 (goacc_exit_data_internal): Use goacc_exit_datum_1.
5901 * target.c (gomp_map_vars_internal): Remove
5902 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
5903 handling.
5904 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
5905 (gomp_load_image_to_device): Substitute dynamic_refcount for
5906 virtual_refcount.
5907 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
5908 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
5909 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
5910 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
5911 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
5912 trace output.
5913 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
5914 trace output.
5915 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
5916 test.
5917 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
5918 Remove stale comment.
5919 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
5920 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
5921 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
5922 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
5923 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
5924 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
5925
5926 2020-07-10 Julian Brown <julian@codesourcery.com>
5927 Thomas Schwinge <thomas@codesourcery.com>
5928
5929 * oacc-mem.c (goacc_map_var_existing): New function.
5930 (goacc_enter_datum): Use above function.
5931 (goacc_exit_datum_1): New function.
5932 (goacc_exit_datum): Use above function.
5933
5934 2020-07-09 Julian Brown <julian@codesourcery.com>
5935 Thomas Schwinge <thomas@codesourcery.com>
5936
5937 PR middle-end/95270
5938 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
5939 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
5940
5941 2020-07-09 Julian Brown <julian@codesourcery.com>
5942
5943 * oacc-mem.c (find_group_last): Group data-movement clauses
5944 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
5945 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
5946
5947 2020-07-09 Jakub Jelinek <jakub@redhat.com>
5948
5949 * testsuite/libgomp.c/loop-19.c: New test.
5950 * testsuite/libgomp.c/loop-20.c: New test.
5951
5952 2020-07-09 Jakub Jelinek <jakub@redhat.com>
5953
5954 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
5955 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
5956 it. Remove __omp_alloctrait_value_max__.
5957 * allocator.c (omp_init_allocator): Handle omp_atv_default for
5958 omp_atk_alignment and omp_atk_pool_size.
5959
5960 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
5961
5962 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
5963 behavior for 'GOMP_MAP_FORCE_FROM'.
5964 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
5965
5966 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
5967
5968 * oacc-mem.c (goacc_exit_data_internal): Remove
5969 'GOMP_MAP_ALWAYS_FROM' handling.
5970
5971 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
5972
5973 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
5974 'scan-assembler' with 'scan-offload-rtl'.
5975 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
5976 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
5977 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
5978 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
5979
5980 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
5981
5982 * target.c (gomp_map_vars_existing): Assert 'kind !=
5983 GOMP_MAP_ATTACH'.
5984 (gomp_map_vars_internal): Clean up.
5985
5986 2020-06-27 Jakub Jelinek <jakub@redhat.com>
5987
5988 * testsuite/libgomp.c/loop-17.c: New test.
5989 * testsuite/libgomp.c/loop-18.c: New test.
5990
5991 2020-06-26 Marek Polacek <polacek@redhat.com>
5992
5993 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
5994
5995 2020-06-23 Alexandre Oliva <oliva@adacore.com>
5996
5997 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
5998 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
5999
6000 2020-06-22 David Edelsohn <dje.gcc@gmail.com>
6001
6002 * Makefile.am: Use -include.
6003 * Makefile.in: Regenerate.
6004
6005 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
6006
6007 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
6008 * Makefile.in: Regenerate
6009 * configure.ac (tmake_file): Substitute.
6010 * configure: Regenerate.
6011 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
6012 * config/t-aix: New file.
6013
6014 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
6015
6016 PR lto/94848
6017 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
6018 'dg-do run'.
6019
6020 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
6021
6022 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
6023 variant for HSA_RUNTIME_LIB name.
6024 (find_executable_symbol_1): Delete.
6025 (find_executable_symbol): Delete.
6026 (init_kernel_properties): Add ".kd" suffix to symbol names.
6027 (find_load_offset): Delete.
6028 (create_and_finalize_hsa_program): Remove relocation handling.
6029
6030 2020-06-16 Tobias Burnus <tobias@codesourcery.com>
6031
6032 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
6033
6034 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
6035
6036 PR lto/94848
6037 PR middle-end/95551
6038 * testsuite/libgomp.fortran/target-var.f90: New test.
6039
6040 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
6041 Julian Brown <julian@codesourcery.com>
6042
6043 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
6044 special handling.
6045
6046 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
6047 Julian Brown <julian@codesourcery.com>
6048
6049 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
6050 Simplify.
6051
6052 2020-06-05 Julian Brown <julian@codesourcery.com>
6053
6054 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
6055 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
6056
6057 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6058
6059 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
6060 Evaluate 'copyfrom' individually for each entry.
6061 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
6062
6063 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6064
6065 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
6066 Evaluate 'finalize' individually for each entry.
6067 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
6068 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
6069 file.
6070
6071 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6072
6073 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
6074 usage.
6075 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
6076
6077 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6078 Julian Brown <julian@codesourcery.com>
6079
6080 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
6081 checking.
6082 (acc_unmap_data, goacc_exit_data_internal): Restore
6083 'is_tgt_unmapped' checking.
6084 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
6085 file.
6086 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
6087 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
6088 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6089 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6090 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6091 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
6092
6093 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6094 Julian Brown <julian@codesourcery.com>
6095
6096 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
6097
6098 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6099
6100 PR libgomp/92854
6101 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
6102
6103 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6104
6105 PR libgomp/92854
6106 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
6107 more.
6108
6109 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6110 Julian Brown <julian@codesourcery.com>
6111
6112 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
6113 'gomp_map_vars'.
6114 (acc_map_data): Clean up accordingly.
6115
6116 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6117
6118 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
6119 of over-eager 'finalize' clause.
6120 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
6121 file.
6122 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
6123 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
6124 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6125 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6126 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6127 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
6128 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
6129 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
6130
6131 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6132
6133 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
6134
6135 2020-06-04 Julian Brown <julian@codesourcery.com>
6136
6137 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
6138 error path.
6139 (goacc_detach_internal): Likewise.
6140
6141 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6142
6143 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
6144 the checkpoint.
6145 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
6146 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
6147 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
6148 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
6149 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
6150
6151 2020-06-02 Jakub Jelinek <jakub@redhat.com>
6152
6153 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
6154 defined.
6155
6156 2020-05-30 Jakub Jelinek <jakub@redhat.com>
6157
6158 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
6159
6160 2020-05-30 Jakub Jelinek <jakub@redhat.com>
6161
6162 * allocator.c (omp_alloc): For size == 0, return NULL early.
6163
6164 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
6165
6166 PR bootstrap/95413
6167 * configure: Regenerated.
6168
6169 2020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
6170
6171 PR libfortran/95191
6172 * testsuite/libgomp.fortran/async_io_9.f90: New test.
6173
6174 2020-05-19 Jakub Jelinek <jakub@redhat.com>
6175
6176 * omp.h.in (omp_uintptr_t): New typedef.
6177 (__GOMP_UINTPTR_T_ENUM): Define.
6178 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
6179 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
6180 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
6181 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
6182 omp_get_default_allocator, omp_alloc, omp_free): Declare.
6183 * libgomp.h (struct gomp_team_state): Add def_allocator field.
6184 (gomp_def_allocator): Declare.
6185 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
6186 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
6187 omp_alloc and omp_free.
6188 * team.c (gomp_team_start): Copy over ts.def_allocator.
6189 * env.c (gomp_def_allocator): New variable.
6190 (parse_wait_policy): Adjust function comment.
6191 (parse_allocator): New function.
6192 (handle_omp_display_env): Print OMP_ALLOCATOR.
6193 (initialize_env): Call parse_allocator.
6194 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
6195 * allocator.c: New file.
6196 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
6197 functions.
6198 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
6199 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
6200 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
6201 * Makefile.in: Regenerated.
6202
6203 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
6204
6205 PR bootstrap/95147
6206 * configure: Regenerated.
6207
6208 2020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
6209
6210 PR libfortran/95119
6211 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
6212
6213 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
6214
6215 * configure: Regenerated.
6216
6217 2020-05-14 Jakub Jelinek <jakub@redhat.com>
6218
6219 * testsuite/libgomp.c-c++-common/target-40.c: New test.
6220
6221 2020-05-13 Tobias Burnus <tobias@codesourcery.com>
6222
6223 PR fortran/94690
6224 * testsuite/libgomp.fortran/pr66199-3.f90: New.
6225 * testsuite/libgomp.fortran/pr66199-4.f90: New.
6226 * testsuite/libgomp.fortran/pr66199-5.f90: New.
6227 * testsuite/libgomp.fortran/pr66199-6.f90: New.
6228 * testsuite/libgomp.fortran/pr66199-7.f90: New.
6229 * testsuite/libgomp.fortran/pr66199-8.f90: New.
6230 * testsuite/libgomp.fortran/pr66199-9.f90: New.
6231
6232 2020-05-12 Jakub Jelinek <jakub@redhat.com>
6233
6234 * testsuite/libgomp.c/target-39.c: New test.
6235
6236 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
6237
6238 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
6239 * openacc.f90 (acc_device_current): Likewise.
6240 * openacc.h (acc_device_current): Likewise.
6241 * openacc_lib.h (acc_device_current): Likewise.
6242
6243 PR target/94282
6244 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
6245 'dg-allow-blank-lines-in-output'.
6246
6247 * oacc-init.c (get_openacc_name): Handle 'gcn'.
6248 * testsuite/lib/libgomp.exp
6249 (offload_target_to_openacc_device_type) [amdgcn*]: Return
6250 'radeon'. Adjust all users.
6251 (check_effective_target_openacc_amdgcn_accel_present): Rename
6252 to...
6253 (check_effective_target_openacc_radeon_accel_present): ... this.
6254 Adjust all users.
6255 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
6256 (check_effective_target_openacc_radeon_accel_selected): ... this.
6257 Adjust all users.
6258
6259 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
6260 'dg-do run'.
6261
6262 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
6263
6264 PR other/94629
6265
6266 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
6267 hsa_iterate_agents.
6268 (GOMP_OFFLOAD_init_device): Check return values from both calls to
6269 hsa_agent_iterate_regions.
6270
6271 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
6272
6273 PR middle-end/94635
6274 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
6275 run'.
6276
6277 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
6278
6279 PR middle-end/94120
6280 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
6281 test case.
6282
6283 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
6284
6285 PR middle-end/94635
6286 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
6287
6288 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
6289
6290 PR libgomp/92843
6291 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
6292 Rename to...
6293 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
6294 ... this.
6295 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
6296 Rename to...
6297 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
6298 ... this.
6299 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
6300 Rename to...
6301 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
6302 ... this.
6303 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
6304 Rename to...
6305 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
6306 ... this.
6307 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
6308 Rename to...
6309 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
6310 ... this.
6311 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
6312 Rename to...
6313 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
6314 ... this.
6315 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
6316 Rename to...
6317 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
6318 ... this.
6319 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
6320 Rename to...
6321 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
6322 ... this.
6323 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
6324 Rename to...
6325 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
6326 ... this.
6327 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
6328 Rename to...
6329 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
6330 ... this.
6331 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
6332 Rename to...
6333 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
6334 ... this.
6335 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
6336 Rename to...
6337 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
6338 ... this.
6339 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
6340 Rename to...
6341 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
6342 ... this.
6343 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
6344 Rename to...
6345 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
6346 ... this.
6347 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
6348 Rename to...
6349 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
6350 ... this.
6351 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
6352 Rename to...
6353 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
6354 ... this.
6355
6356 2020-04-10 Julian Brown <julian@codesourcery.com>
6357 Thomas Schwinge <thomas@codesourcery.com>
6358
6359 PR libgomp/92843
6360 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
6361 New file.
6362 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
6363 Likewise.
6364 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
6365 Likewise.
6366 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
6367 Likewise.
6368 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
6369 Likewise.
6370 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
6371 Likewise.
6372 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
6373 Likewise.
6374 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
6375 Likewise.
6376 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
6377 Likewise.
6378 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
6379 Likewise.
6380 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
6381 Likewise.
6382 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
6383 Likewise.
6384 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
6385 Likewise.
6386 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
6387 Likewise.
6388 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
6389 Likewise.
6390 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
6391 Likewise.
6392
6393 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
6394
6395 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
6396 run'.
6397
6398 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
6399
6400 PR middle-end/94120
6401 * libgomp.oacc-c++/declare-pr94120.C: New.
6402
6403 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
6404
6405 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
6406 files.
6407 * configure: Regenerate.
6408 * testsuite/libgomp-site-extra.exp.in: New file.
6409 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
6410 variable.
6411 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
6412 variable.
6413 * testsuite/Makefile.in: Regenerate.
6414
6415 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
6416
6417 PR tree-optimization/89713
6418 PR c/94392
6419 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
6420 'bar.sync'.
6421 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
6422
6423 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
6424
6425 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
6426 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
6427
6428 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
6429
6430 PR libgomp/81689
6431 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
6432
6433 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
6434
6435 PR libgomp/94251
6436 * target.c (gomp_load_image_to_device): Fix link
6437 variable handling.
6438
6439 2020-03-19 Jakub Jelinek <jakub@redhat.com>
6440
6441 PR c++/93931
6442 * testsuite/libgomp.c++/pr93931.C: New test.
6443
6444 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
6445
6446 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
6447 dg-allow-blank-lines-in-output.
6448
6449 2020-03-18 Julian Brown <julian@codesourcery.com>
6450 Tobias Burnus <tobias@codesourcery.com>
6451
6452 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
6453 it work concurrently.
6454
6455 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
6456
6457 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
6458 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
6459 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
6460
6461 2020-03-14 Jakub Jelinek <jakub@redhat.com>
6462
6463 PR middle-end/93566
6464 * testsuite/libgomp.c/pr93566.c: New test.
6465
6466 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
6467
6468 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
6469 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
6470 integer(acc_device_property) for the type of the return value of
6471 acc_get_property.
6472
6473 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
6474
6475 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
6476 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
6477 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
6478 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
6479 (acc_set_device_num): Fix Fortran argument name, use same name for C.
6480 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
6481 corrections; add note about the previous interface and named constant.
6482 (OpenACC library and environment variables): Fix two typos.
6483 * openacc.f90: Use for all procedures the argument names from the spec
6484 as for …_h they are user visible.
6485 (openacc_kinds): Rename acc_device_property to
6486 acc_device_property_kinds and change value to int32 ; and update users.
6487 Re-add acc_device_property for for backward compatibility.
6488 (acc_get_property_string_h): Clean up as acc_device_property_kind
6489 changed.
6490 (acc_get_property_h): Likewise and return c_size_t instead of
6491 acc_device_property.
6492 (openacc): Also export acc_device_property_kinds.
6493 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
6494 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
6495 handling; check against /= 0 instead of == 1 to match C.
6496 * openacc_lib.h: Use for all procedures the argument names from the spec
6497 as for …_h they are user visible. Place !GCC$ into the first column to
6498 be active also for fixed-form souce form.
6499 (acc_device_current, acc_device_property_kind, acc_device_property,
6500 acc_property_memory, acc_property_free_memory, acc_property_name,
6501 acc_property_vendor, acc_property_driver): New named constants.
6502 (acc_get_property, acc_get_property_string): New generic interface.
6503
6504 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
6505
6506 PR libgomp/93481
6507 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
6508 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
6509 optional.
6510 (gomp_target_task_fn): Assert "devicep->async_run_func".
6511 (clear_unsupported_flags): New function to remove unsupported flags
6512 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
6513 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
6514 * testsuite/libgomp.c/target-33.c:
6515 Remove xfail for offload_target_nvptx.
6516 * testsuite/libgomp.c/target-34.c: Likewise.
6517
6518 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
6519
6520 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
6521 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
6522 * testsuite/libgomp.c/target-34.c: Likewise.
6523 * testsuite/libgomp.c/target-link-1.c: Add xfail for
6524 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
6525
6526 2020-02-09 Jakub Jelinek <jakub@redhat.com>
6527
6528 * testsuite/libgomp.c/target-38.c: New test.
6529
6530 2020-02-06 Jakub Jelinek <jakub@redhat.com>
6531
6532 PR libgomp/93515
6533 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
6534
6535 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
6536
6537 * testsuite/lib/libgomp.exp
6538 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
6539 and not as 'source' argument to libgomp_target_compile.
6540
6541 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
6542
6543 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
6544 (gcn_gfx801_s): Remove.
6545 (isa_hsa_name): Remove gfx801.
6546 (isa_gcc_name): Remove gfx801/carizzo.
6547 (isa_code): Remove gfx801.
6548
6549 2020-02-03 Julian Brown <julian@codesourcery.com>
6550 Tobias Burnus <tobias@codesourcery.com>
6551
6552 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
6553 and *_finalize variants; document acc_attach and acc_detach; update
6554 references from OpenACC 2.0 to 2.6.
6555 * openacc.f90 (openacc_version): Update to 201711.
6556 * openacc_lib.h (openacc_version): Update to 201711.
6557 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
6558 openacc_version to 201711.
6559 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
6560
6561 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
6562
6563 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
6564 and vgpr_count fields.
6565 (struct kernel_info): Add a field for a hsa_kernel_description.
6566 (run_kernel): Reduce the number of threads/workers if the requested
6567 number would require too many VGPRs.
6568 (init_basic_kernel_info): Initialize description field with
6569 the hsa_kernel_description entry for the kernel.
6570
6571 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
6572
6573 PR bootstrap/93409
6574 * plugin/configfrag.ac (enable_offload_targets): Skip
6575 HSA and GCN plugin besides -m32 also for -mx32.
6576 * configure: Regenerate.
6577
6578 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
6579
6580 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
6581
6582 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
6583
6584 * plugin-gcn.c (struct agent_info): Add fields "name" and
6585 "vendor_name" ...
6586 (GOMP_OFFLOAD_init_device): ... and init from here.
6587 (struct hsa_context_info): Add field "driver_version_s" ...
6588 (init_hsa_contest): ... and init from here.
6589 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
6590 implementation.
6591 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
6592 Enable test execution for amdgcn and host offloading targets.
6593 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
6594 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
6595 (expect_device_properties): Split function into ...
6596 (expect_device_string_properties): ... this new function ...
6597 (expect_device_memory): ... and this new function.
6598 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
6599 Add test.
6600
6601 2020-01-28 Julian Brown <julian@codesourcery.com>
6602
6603 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
6604 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
6605 component/non-component variable refs in a single directive.
6606 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
6607
6608 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
6609
6610 * configure.ac: Handle `--with-toolexeclibdir='.
6611 * Makefile.in: Regenerate.
6612 * aclocal.m4: Regenerate.
6613 * configure: Regenerate.
6614 * testsuite/Makefile.in: Regenerate.
6615
6616 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
6617
6618 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
6619 (expect_device_properties): Remove "expected_free_mem" argument,
6620 change "expected_total_mem" argument type to size_t;
6621 change types of acc_get_property results to size_t,
6622 adapt format strings.
6623 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
6624 Use %zu instead of %zd to print size_t values.
6625 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
6626 rename to ...
6627 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
6628 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
6629 rename to ...
6630 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
6631
6632 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
6633
6634 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
6635 the device id.
6636
6637 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
6638
6639 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
6640 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
6641 Adjust test dimensions for amdgcn.
6642 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
6643 gang/worker/vector expectations dynamically.
6644 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
6645 (main): Likewise.
6646 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
6647 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
6648 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
6649 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
6650 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
6651 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
6652 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
6653 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
6654 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
6655 (acc_gang): Recognise acc_device_radeon.
6656 (acc_worker): Likewise.
6657 (acc_vector): Likewise.
6658 (main): Set expectations for amdgcn.
6659 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
6660 (main): Adjust gang/worker/vector expectations dynamically.
6661 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
6662 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
6663 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
6664 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
6665 for amdgcn.
6666
6667 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
6668
6669 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
6670 acc_device_radeon.
6671 (openacc): Likewise.
6672 * openacc.f90 (openacc_kinds): Likewise.
6673 (openacc): Likewise.
6674 * openacc.h (acc_device_t): Likewise.
6675 * openacc_lib.h: Likewise.
6676 * testsuite/lib/libgomp.exp
6677 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
6678 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
6679 (cb_compute_construct_end): Likewise.
6680 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
6681 (cb_enqueue_launch_start): Likewise.
6682 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
6683 (cb_enter_data_end): Likewise.
6684 (cb_exit_data_start): Likewise.
6685 (cb_exit_data_end): Likewise.
6686 (cb_compute_construct_end): Likewise.
6687 (cb_enqueue_launch_start): Likewise.
6688 (cb_enqueue_launch_end): Likewise.
6689 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
6690 (main): Likewise.
6691
6692 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
6693
6694 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
6695 to use this instead of 'enum gomp_device_property'.
6696 (GOMP_OFFLOAD_get_property): Rename to...
6697 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
6698 * libgomp.h (struct gomp_device_descr): Move
6699 'GOMP_OFFLOAD_openacc_get_property'...
6700 (struct acc_dispatch_t): ... here. Adjust all users.
6701 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
6702
6703 * target.c (gomp_map_vars_internal)
6704 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
6705 paths.
6706
6707 2020-01-10 Jakub Jelinek <jakub@redhat.com>
6708
6709 PR libgomp/93219
6710 * libgomp.h (gomp_print_string): Change return type from void to int.
6711 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
6712 not all characters have been written.
6713
6714 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
6715
6716 * libgomp.texi: Fix typos, use https.
6717
6718 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
6719
6720 * testsuite/libgomp.fortran/optional-map.f90: Add test for
6721 unallocated/disassociated actual arguments to nonallocatable/nonpointer
6722 dummy arguments; those are/shall be regarded as absent arguments.
6723 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
6724 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
6725
6726 2020-01-01 Jakub Jelinek <jakub@redhat.com>
6727
6728 Update copyright years.
6729
6730 * libgomp.texi: Bump @copying's copyright year.
6731
6732 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
6733
6734 PR libgomp/93065
6735 * oacc-init.c (goacc_runtime_deinitialize): New function.
6736
6737 2019-12-28 Jakub Jelinek <jakub@redhat.com>
6738
6739 PR bootstrap/93074
6740 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
6741 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
6742
6743 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
6744 Frederik Harwath <frederik@codesourcery.com>
6745 Thomas Schwinge <tschwinge@codesourcery.com>
6746
6747 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
6748 * libgomp-plugin.h (gomp_device_property_value): New union.
6749 (gomp_device_property_value): New prototype.
6750 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
6751 constant.
6752 (acc_device_property_t): New enum.
6753 (acc_get_property, acc_get_property_string): New prototypes.
6754 * oacc-init.c (acc_get_device_type): Also assert that result
6755 is not `acc_device_current'.
6756 (get_property_any, acc_get_property, acc_get_property_string):
6757 New functions.
6758 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
6759 `acc_property_memory', `acc_property_free_memory',
6760 `acc_property_name', `acc_property_vendor' and
6761 `acc_property_driver' constants. Add `acc_device_property' data
6762 type.
6763 (openacc_internal): Add `acc_get_property' and
6764 `acc_get_property_string' interfaces. Add `acc_get_property_h',
6765 `acc_get_property_string_h', `acc_get_property_l' and
6766 `acc_get_property_string_l'.
6767 * oacc-host.c (host_get_property): New function.
6768 (host_dispatch): Wire it.
6769 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
6770 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
6771 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
6772 * libgomp.texi (OpenACC Runtime Library Routines): Add
6773 `acc_get_property'.
6774 (acc_get_property): New node.
6775 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
6776 function (stub).
6777 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
6778 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
6779 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
6780 calls.
6781 (GOMP_OFFLOAD_get_property): New function.
6782 (struct ptx_device): Add new field "name".
6783 (cuda_driver_version_s): Add new static variable ...
6784 (nvptx_init): ... and init from here.
6785
6786 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
6787 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
6788 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
6789 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
6790 with test helper functions.
6791
6792 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
6793
6794 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
6795
6796 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
6797 variable.
6798
6799 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
6800
6801 * target.c (gomp_map_vars_internal): Restore 'omp declare target
6802 link' handling.
6803
6804 2019-12-19 Julian Brown <julian@codesourcery.com>
6805
6806 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
6807 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
6808 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
6809
6810 2019-12-19 Julian Brown <julian@codesourcery.com>
6811 Cesar Philippidis <cesar@codesourcery.com>
6812
6813 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
6814 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
6815 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
6816 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
6817 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
6818 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
6819 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
6820 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
6821 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
6822 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
6823 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
6824 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
6825 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
6826
6827 2019-12-19 Julian Brown <julian@codesourcery.com>
6828
6829 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
6830 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
6831 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
6832 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
6833 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
6834 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
6835 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
6836 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
6837 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
6838 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
6839 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
6840 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
6841
6842 2019-12-19 Julian Brown <julian@codesourcery.com>
6843
6844 * libgomp.h (struct target_var_desc): Add do_detach flag.
6845 * oacc-init.c (acc_shutdown_1): Free aux block if present.
6846 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
6847 struct components. Tidy up and add some new checks.
6848 (goacc_enter_data_internal): Update call to find_group_last.
6849 (goacc_exit_data_internal): Support detach operations and
6850 GOMP_MAP_STRUCT.
6851 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
6852 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
6853 attach/detach in enter/exit data detection code.
6854 * target.c (gomp_map_vars_existing): Initialise do_detach field of
6855 tgt_var_desc.
6856 (gomp_map_vars_internal): Support attach.
6857 (gomp_unmap_vars_internal): Support detach.
6858
6859 2019-12-19 Julian Brown <julian@codesourcery.com>
6860 Thomas Schwinge <thomas@codesourcery.com>
6861
6862 * libgomp.h (struct splay_tree_aux): Add attach_count field.
6863 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
6864 * libgomp.map (OACC_2.6): New section. Add acc_attach,
6865 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
6866 acc_detach_finalize_async.
6867 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
6868 acc_detach, acc_detach_async, acc_detach_finalize,
6869 acc_detach_finalize_async): New functions.
6870 * openacc.h (acc_attach, acc_attach_async, acc_detach,
6871 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
6872 prototypes.
6873 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
6874 (gomp_remove_var_internal): Free attachment counts if present.
6875 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
6876 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
6877
6878 2019-12-19 Julian Brown <julian@codesourcery.com>
6879 Cesar Philippidis <cesar@codesourcery.com>
6880
6881 * libgomp.h (gomp_map_val): Add prototype.
6882 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
6883 open-coding device-address calculation.
6884 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
6885 non-present case.
6886
6887 2019-12-19 Julian Brown <julian@codesourcery.com>
6888
6889 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
6890 field for virtual_refcount.
6891 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
6892 (gomp_free_memmap): Remove prototype.
6893 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
6894 instead of calling gomp_free_memmap.
6895 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
6896 dynamic_refcount.
6897 (acc_unmap_data): Open code instead of forcing target_mem_desc's
6898 to_free field to NULL then calling gomp_unmap_vars. Handle
6899 REFCOUNT_INFINITY on target blocks.
6900 (goacc_enter_data): Rename to...
6901 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
6902 handling for mapping groups. Use virtual_refcount instead of
6903 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
6904 map_map_vars_async call. Re-do lookup for target pointer return value.
6905 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
6906 renamed goacc_enter_datum function.
6907 (goacc_exit_data): Rename to...
6908 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
6909 (acc_delete, acc_delete_async, acc_delete_finalize,
6910 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
6911 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
6912 goacc_exit_datum function.
6913 (gomp_acc_remove_pointer, find_pointer): Remove functions.
6914 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
6915 New functions.
6916 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
6917 goacc_exit_data_internal helper functions.
6918 * target.c (gomp_map_vars_internal): Handle
6919 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
6920 semantics.
6921 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
6922 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
6923 virtual_refcount field instead of dynamic_refcount.
6924 (gomp_free_memmap): Remove function.
6925 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
6926 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
6927 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
6928
6929 2019-12-19 Julian Brown <julian@codesourcery.com>
6930 Thomas Schwinge <thomas@codesourcery.com>
6931
6932 * libgomp.h (struct splay_tree_aux): New.
6933 (struct splay_tree_key_s): Replace link_key field with aux pointer.
6934 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
6935 to aux struct.
6936 (gomp_remove_var_internal): Free aux block if present.
6937 (gomp_load_image_to_device): Zero-initialise aux field instead of
6938 link_key field.
6939 (omp_target_associate_pointer): Zero-initialise aux field.
6940
6941 2019-12-18 Jakub Jelinek <jakub@redhat.com>
6942
6943 PR middle-end/86416
6944 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
6945 q or none.
6946 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
6947 L or none.
6948
6949 2019-12-19 Julian Brown <julian@codesourcery.com>
6950 Maciej W. Rozycki <macro@codesourcery.com>
6951 Tobias Burnus <tobias@codesourcery.com>
6952 Thomas Schwinge <thomas@codesourcery.com>
6953
6954 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
6955 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
6956 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
6957 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
6958 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
6959 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
6960 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
6961 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
6962 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
6963
6964 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
6965
6966 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
6967 called...
6968 (goacc_insert_pointer): ... from here, "present" case.
6969 (goacc_insert_pointer): Inline function into...
6970 (GOACC_enter_exit_data): ... here, and simplify.
6971
6972 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
6973 called...
6974 (goacc_insert_pointer): ... from here, "not present" case.
6975
6976 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
6977 all users.
6978
6979 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
6980 'goacc_enter_data', 'goacc_exit_data'.
6981
6982 * oacc-mem.c (delete_copyout): Refactor into...
6983 (goacc_exit_data): ... this. Adjust all users.
6984
6985 * oacc-mem.c (present_create_copy): Refactor into...
6986 (goacc_enter_data): ... this. Adjust all users.
6987
6988 * target.c (gomp_unmap_vars_internal): Add a safeguard to
6989 'gomp_remove_var'.
6990
6991 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
6992 like 'GOMP_MAP_FROM'.
6993
6994 PR libgomp/92726
6995 PR libgomp/92970
6996 PR libgomp/92984
6997 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
6998 fails.
6999 (GOACC_enter_exit_data): Simplify accordingly.
7000 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
7001 subsuming...
7002 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
7003 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
7004 file.
7005 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
7006 subsuming...
7007 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
7008 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
7009 file.
7010 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
7011 subsuming...
7012 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
7013
7014 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
7015 'finalize' handling.
7016
7017 PR libgomp/92848
7018 * oacc-mem.c (acc_map_data, present_create_copy)
7019 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
7020 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
7021 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
7022 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
7023 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
7024 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
7025 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
7026 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
7027 Remove "XFAIL"s.
7028
7029 * target.c (gomp_unmap_tgt): Make it 'static'.
7030 * libgomp.h (gomp_unmap_tgt): Remove.
7031
7032 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
7033
7034 PR middle-end/86416
7035 * testsuite/libgomp.c/pr86416-1.c: New.
7036 * testsuite/libgomp.c/pr86416-2.c: New.
7037
7038 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
7039
7040 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
7041 all symbols as public except for the 'use …, only' imported symbol,
7042 which is private.
7043 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
7044 all symbols from module openacc_kinds as PUBLIC
7045 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
7046 fix comment typo.
7047 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
7048
7049 2019-12-13 Julian Brown <julian@codesourcery.com>
7050
7051 PR libgomp/92881
7052
7053 * libgomp.h (gomp_remove_var_async): Add prototype.
7054 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
7055 gomp_remove_var.
7056 * target.c (gomp_unref_tgt): Change return type to bool, indicating
7057 whether target_mem_desc was unmapped.
7058 (gomp_unref_tgt_void): New.
7059 (gomp_remove_var): Reimplement in terms of...
7060 (gomp_remove_var_internal): ...this new helper function.
7061 (gomp_remove_var_async): New, implemented using above helper function.
7062 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
7063 gomp_unref_tgt.
7064
7065 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
7066
7067 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
7068 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
7069 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
7070 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
7071 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
7072 Likewise.
7073 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
7074 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
7075
7076 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
7077
7078 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
7079 as public except for the 'use …, only' imported symbol, which is
7080 private.
7081 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
7082 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
7083 attributes for acc_copyout_finalize and acc_delete_finalize.
7084
7085 2019-12-11 Jakub Jelinek <jakub@redhat.com>
7086
7087 PR fortran/92899
7088 * testsuite/libgomp.fortran/atomic1.f90: New test.
7089
7090 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
7091
7092 PR libgomp/92843
7093 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
7094 reference counting for structured 'REFCOUNT_INFINITY'. Add some
7095 assertions.
7096 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
7097 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
7098 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
7099 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
7100 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
7101
7102 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
7103 * oacc-mem.c: ... here.
7104 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
7105 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
7106 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
7107 Remove.
7108 * libgomp_g.h: Update.
7109
7110 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
7111 * oacc-async.c: ... here.
7112 * oacc-int.h (goacc_wait): Declare.
7113 * libgomp_g.h: Update
7114
7115 PR libgomp/92854
7116 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
7117 New file.
7118 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
7119 Likewise.
7120 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
7121 Likewise.
7122 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
7123 Likewise.
7124 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
7125 Likewise.
7126 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
7127 Likewise.
7128
7129 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
7130 Julian Brown <julian@codesourcery.com>
7131
7132 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
7133 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
7134
7135 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
7136
7137 * omp_lib.h.in: Fix spelling of function declaration
7138 omp_get_cancell(l)ation.
7139 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
7140 Fix typos.
7141 * env.c: Fix comment typos.
7142 * oacc-host.c: Likewise.
7143 * ordered.c: Likewise.
7144 * task.c: Likewise.
7145 * team.c: Likewise.
7146 * config/gcn/task.c: Likewise.
7147 * config/gcn/team.c: Likewise.
7148 * config/nvptx/task.c: Likewise.
7149 * config/nvptx/team.c: Likewise.
7150 * plugin/plugin-gcn.c: Likewise.
7151 * testsuite/libgomp.fortran/jacobi.f: Likewise.
7152 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
7153 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
7154
7155 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
7156
7157 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
7158 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
7159 unnecessary 'dg-additional-options "-w"'.
7160
7161 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
7162 Julian Brown <julian@codesourcery.com>
7163
7164 PR libgomp/92116
7165 PR libgomp/92877
7166
7167 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
7168 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
7169 Adjust all users.
7170 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
7171 Remove XFAIL.
7172 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
7173 Likewise.
7174 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
7175
7176 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
7177
7178 PR libgomp/92503
7179 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
7180 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
7181 file.
7182 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
7183 Likewise.
7184 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
7185 Likewise.
7186 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
7187 Likewise.
7188 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
7189 Likewise.
7190 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
7191 Likewise.
7192 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
7193 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
7194 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
7195 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
7196 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
7197 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
7198 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
7199 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7200 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
7201 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
7202
7203 PR libgomp/92840
7204 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
7205 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
7206 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
7207 New file.
7208 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
7209 Likewise.
7210 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
7211 Likewise.
7212 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
7213 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
7214
7215 PR libgomp/92511
7216 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
7217 this file...
7218 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
7219 this file...
7220 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
7221 file...
7222 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
7223 file...
7224 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
7225 ... with their content moved into, and extended in this new file.
7226 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
7227 New file.
7228 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
7229 Likewise.
7230 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
7231 Likewise.
7232 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
7233 Likewise.
7234
7235 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
7236
7237 PR libgomp/92854
7238 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
7239
7240 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
7241
7242 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
7243
7244 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
7245
7246 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
7247 unique.
7248 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
7249 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
7250 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
7251 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
7252 Ditto.
7253 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
7254 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
7255
7256 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
7257
7258 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
7259
7260 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
7261 Kwok Cheung Yeung <kcy@codesourcery.com>
7262
7263 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
7264 if input it a NULL pointer.
7265 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
7266 diagnostic of NULL pointer.
7267 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
7268 * testsuite/libgomp.fortran/optional-map.f90: New.
7269 * testsuite/libgomp.fortran/use_device_addr-1.f90
7270 (test_dummy_opt_callee_1_absent): New.
7271 (test_dummy_opt_call_1): Call it.
7272 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
7273 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
7274 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
7275 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
7276 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
7277 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
7278 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
7279 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
7280 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
7281 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
7282 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
7283 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
7284 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
7285 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
7286 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
7287 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
7288
7289 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
7290
7291 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
7292 expect dg-output of 'Error termination.' for GCN.
7293 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
7294 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
7295
7296 2019-12-04 Jakub Jelinek <jakub@redhat.com>
7297
7298 PR fortran/92756
7299 * testsuite/libgomp.fortran/teams1.f90: New test.
7300 * testsuite/libgomp.fortran/teams2.f90: New test.
7301
7302 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
7303
7304 * oacc-init.c (acc_known_device_type): Add function.
7305 (unknown_device_type_error): Add function.
7306 (name_of_acc_device_t): Change to call unknown_device_type_error
7307 on unknown type.
7308 (resolve_device): Use acc_known_device_type.
7309 (acc_init): Fail if acc_device_t argument is not valid.
7310 (acc_shutdown): Likewise.
7311 (acc_get_num_devices): Likewise.
7312 (acc_set_device_type): Likewise.
7313 (acc_get_device_num): Likewise.
7314 (acc_set_device_num): Likewise.
7315 (acc_on_device): Add comment that argument validity is not checked.
7316
7317 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
7318
7319 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
7320 Recognize amdgcn.
7321 (check_effective_target_openacc_amdgcn_accel_present): New proc.
7322 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
7323 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
7324 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7325 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7326
7327 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
7328
7329 PR libgomp/91938
7330 * configure.tgt: Avoid IE tls on *-*-musl*.
7331
7332 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
7333
7334 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
7335 adding a common-block test case.
7336
7337 2019-11-29 Jakub Jelinek <jakub@redhat.com>
7338
7339 PR c++/60228
7340 * testsuite/libgomp.c++/udr-20.C: New test.
7341 * testsuite/libgomp.c++/udr-21.C: New test.
7342
7343 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
7344
7345 * testsuite/lib/libgomp.exp
7346 (check_effective_target_offload_target_nvptx): New proc.
7347 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
7348 'dg-skip-if'.
7349 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
7350 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
7351 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
7352
7353 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7354
7355 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
7356 * testsuite/libgomp.c/pr39591-2.c: Likewise.
7357 * testsuite/libgomp.c/pr39591-3.c: Likewise.
7358 * testsuite/libgomp.c/private-1.c: Likewise.
7359 * testsuite/libgomp.c/task-1.c: Likewise.
7360 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
7361
7362 2019-11-20 Julian Brown <julian@codesourcery.com>
7363
7364 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
7365 aq->mutex here.
7366 (queue_push_launch): Lock aq->mutex before calling
7367 wait_for_queue_nonfull.
7368 (queue_push_callback): Likewise.
7369 (queue_push_asyncwait): Likewise.
7370 (queue_push_placeholder): Likewise.
7371
7372 2019-11-20 Julian Brown <julian@codesourcery.com>
7373
7374 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
7375 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
7376 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
7377 return code.
7378
7379 2019-11-20 Julian Brown <julian@codesourcery.com>
7380
7381 PR libgomp/92511
7382
7383 * oacc-mem.c (present_create_copy): Fix device pointer return value in
7384 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
7385 in non-present/create case.
7386 (delete_copyout): Change error condition to fail only on copies outside
7387 of mapped block. Adjust error message accordingly.
7388 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
7389 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
7390 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
7391 message.
7392 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7393 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
7394 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7395
7396 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
7397
7398 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
7399 libatomic in build-tree testing.
7400
7401 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
7402
7403 * testsuite/Makefile.in: Regenerate.
7404
7405 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
7406
7407 * testsuite/libgomp.c/target-print-1.c: New file.
7408 * testsuite/libgomp.fortran/target-print-1.f90: New file.
7409 * testsuite/libgomp.oacc-c/print-1.c: New file.
7410 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
7411
7412 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
7413 Kwok Cheung Yeung <kcy@codesourcery.com>
7414 Julian Brown <julian@codesourcery.com>
7415 Tom de Vries <tom@codesourcery.com>
7416
7417 * plugin/Makefrag.am: Add amdgcn plugin support.
7418 * plugin/configfrag.ac: Likewise.
7419 * plugin/plugin-gcn.c: New file.
7420 * configure: Regenerate.
7421 * Makefile.in: Regenerate.
7422 * testsuite/Makefile.in: Regenerate.
7423
7424 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
7425
7426 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
7427 and use team_malloc variants.
7428 (gomp_gcn_exit_kernel): Use team_free.
7429 * libgomp.h (TEAM_ARENA_SIZE): Define.
7430 (TEAM_ARENA_START): Define.
7431 (TEAM_ARENA_FREE): Define.
7432 (TEAM_ARENA_END): Define.
7433 (team_malloc): New function.
7434 (team_malloc_cleared): New function.
7435 (team_free): New function.
7436 * team.c (gomp_new_team): Initialize and use team_malloc.
7437 (free_team): Use team_free.
7438 (gomp_free_thread): Use team_free.
7439 (gomp_pause_host): Use team_free.
7440 * work.c (gomp_init_work_share): Use team_malloc.
7441 (gomp_fini_work_share): Use team_free.
7442
7443 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
7444 Kwok Cheung Yeung <kcy@codesourcery.com>
7445 Julian Brown <julian@codesourcery.com>
7446 Tom de Vries <tom@codesourcery.com>
7447
7448 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
7449 * Makefile.in: Regenerate.
7450 * config.h.in (PLUGIN_GCN): Add new undef.
7451 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
7452 * config/gcn/affinity-fmt.c: New file.
7453 * config/gcn/bar.c: New file.
7454 * config/gcn/bar.h: New file.
7455 * config/gcn/doacross.h: New file.
7456 * config/gcn/icv-device.c: New file.
7457 * config/gcn/oacc-target.c: New file.
7458 * config/gcn/simple-bar.h: New file.
7459 * config/gcn/target.c: New file.
7460 * config/gcn/task.c: New file.
7461 * config/gcn/team.c: New file.
7462 * config/gcn/time.c: New file.
7463 * configure.ac: Add amdgcn*-*-*.
7464 * configure: Regenerate.
7465 * configure.tgt: Add amdgcn*-*-*.
7466 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
7467 * libgomp.h (gcn_thrs): Add amdgcn variant.
7468 (set_gcn_thrs): Likewise.
7469 (gomp_thread): Likewise.
7470 * oacc-int.h (goacc_thread): Likewise.
7471 * oacc-target.c: New file.
7472 * openacc.f90 (acc_device_gcn): New parameter.
7473 * openacc.h (acc_device_t): Add acc_device_gcn.
7474 * team.c (gomp_free_pool_helper): Add amdgcn support.
7475
7476 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
7477 Julian Brown <julian@codesourcery.com>
7478
7479 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
7480 parameter.
7481 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
7482 queue constructor.
7483 * oacc-host.c (host_openacc_async_construct): Add device parameter.
7484 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
7485 device parameter.
7486
7487 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
7488
7489 * configure.tgt (nvptx*-*-*): Add "accel" directory.
7490 * config/nvptx/libgomp-plugin.c: Move ...
7491 * config/accel/libgomp-plugin.c: ... to here.
7492 * config/nvptx/lock.c: Move ...
7493 * config/accel/lock.c: ... to here.
7494 * config/nvptx/mutex.c: Move ...
7495 * config/accel/mutex.c: ... to here.
7496 * config/nvptx/mutex.h: Move ...
7497 * config/accel/mutex.h: ... to here.
7498 * config/nvptx/oacc-async.c: Move ...
7499 * config/accel/oacc-async.c: ... to here.
7500 * config/nvptx/oacc-cuda.c: Move ...
7501 * config/accel/oacc-cuda.c: ... to here.
7502 * config/nvptx/oacc-host.c: Move ...
7503 * config/accel/oacc-host.c: ... to here.
7504 * config/nvptx/oacc-init.c: Move ...
7505 * config/accel/oacc-init.c: ... to here.
7506 * config/nvptx/oacc-mem.c: Move ...
7507 * config/accel/oacc-mem.c: ... to here.
7508 * config/nvptx/oacc-plugin.c: Move ...
7509 * config/accel/oacc-plugin.c: ... to here.
7510 * config/nvptx/omp-lock.h: Move ...
7511 * config/accel/omp-lock.h: ... to here.
7512 * config/nvptx/openacc.f90: Move ...
7513 * config/accel/openacc.f90: ... to here.
7514 * config/nvptx/pool.h: Move ...
7515 * config/accel/pool.h: ... to here.
7516 * config/nvptx/proc.c: Move ...
7517 * config/accel/proc.c: ... to here.
7518 * config/nvptx/ptrlock.c: Move ...
7519 * config/accel/ptrlock.c: ... to here.
7520 * config/nvptx/ptrlock.h: Move ...
7521 * config/accel/ptrlock.h: ... to here.
7522 * config/nvptx/sem.c: Move ...
7523 * config/accel/sem.c: ... to here.
7524 * config/nvptx/sem.h: Move ...
7525 * config/accel/sem.h: ... to here.
7526 * config/nvptx/thread-stacksize.h: Move ...
7527 * config/accel/thread-stacksize.h: ... to here.
7528
7529 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
7530 Tobias Burnus <tobias@codesourcery.com>
7531 Frederik Harwath <frederik@codesourcery.com>
7532 Thomas Schwinge <thomas@codesourcery.com>
7533
7534 libgomp/
7535 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
7536 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
7537 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
7538
7539 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
7540 Kwok Cheung Yeung <kcy@codesourcery.com>
7541
7542 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
7543 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
7544
7545 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
7546
7547 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
7548
7549 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
7550 run'.
7551 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
7552 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
7553
7554 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
7555
7556 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
7557 Add expected warnings about missing reduction clauses.
7558 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
7559 Likewise.
7560 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
7561 Likewise.
7562 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
7563 Likewise.
7564
7565 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
7566
7567 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
7568 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
7569 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
7570 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
7571 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
7572 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
7573
7574 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
7575
7576 PR fortran/92305
7577 * testsuite/libgomp.fortran/allocatable2.f90: Use
7578 unique numbers with 'stop'.
7579 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
7580 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
7581 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
7582 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
7583 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
7584
7585 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
7586
7587 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
7588 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
7589 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
7590 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
7591 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
7592 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
7593
7594 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
7595
7596 * testsuite/libgomp.fortran/target9.f90: New.
7597
7598 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
7599
7600 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
7601 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
7602 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
7603 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
7604 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
7605 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
7606 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
7607 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
7608 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
7609 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
7610 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
7611 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
7612 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
7613 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
7614 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
7615 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
7616 * testsuite/libgomp.fortran/associate1.f90: Ditto.
7617 * testsuite/libgomp.fortran/associate2.f90: Ditto.
7618 * testsuite/libgomp.fortran/associate3.f90: Ditto.
7619 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
7620 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
7621 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
7622 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
7623 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
7624 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
7625 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
7626 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
7627 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
7628 * testsuite/libgomp.fortran/character1.f90: Ditto.
7629 * testsuite/libgomp.fortran/character2.f90: Ditto.
7630 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
7631 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
7632 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
7633 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
7634 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
7635 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
7636 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
7637 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
7638 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
7639 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
7640 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
7641 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
7642 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
7643 * testsuite/libgomp.fortran/do1.f90: Ditto.
7644 * testsuite/libgomp.fortran/do2.f90: Ditto.
7645 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
7646 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
7647 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
7648 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
7649 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
7650 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
7651 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
7652 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
7653 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
7654 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
7655 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
7656 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
7657 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
7658 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
7659 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
7660 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
7661 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
7662 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
7663 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
7664 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
7665 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
7666 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
7667 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
7668 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
7669 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
7670 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
7671 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
7672 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
7673 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
7674 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
7675 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
7676 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
7677 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
7678 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
7679 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
7680 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
7681 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
7682 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
7683 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
7684 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
7685 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
7686 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
7687 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
7688 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
7689 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
7690 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
7691 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
7692 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
7693 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
7694 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
7695 * testsuite/libgomp.fortran/lib1.f90: Ditto.
7696 * testsuite/libgomp.fortran/lib4.f90: Ditto.
7697 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
7698 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
7699 * testsuite/libgomp.fortran/nested1.f90: Ditto.
7700 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
7701 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
7702 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
7703 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
7704 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
7705 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
7706 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
7707 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
7708 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
7709 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
7710 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
7711 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
7712 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
7713 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
7714 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
7715 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
7716 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
7717 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
7718 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
7719 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
7720 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
7721 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
7722 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
7723 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
7724 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
7725 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
7726 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
7727 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
7728 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
7729 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
7730 * testsuite/libgomp.fortran/pr28390.f: Ditto.
7731 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
7732 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
7733 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
7734 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
7735 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
7736 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
7737 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
7738 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
7739 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
7740 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
7741 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
7742 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
7743 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
7744 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
7745 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
7746 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
7747 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
7748 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
7749 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
7750 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
7751 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
7752 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
7753 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
7754 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
7755 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
7756 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
7757 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
7758 * testsuite/libgomp.fortran/reference1.f90: Ditto.
7759 * testsuite/libgomp.fortran/reference2.f90: Ditto.
7760 * testsuite/libgomp.fortran/retval1.f90: Ditto.
7761 * testsuite/libgomp.fortran/retval2.f90: Ditto.
7762 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
7763 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
7764 * testsuite/libgomp.fortran/simd1.f90: Ditto.
7765 * testsuite/libgomp.fortran/simd2.f90: Ditto.
7766 * testsuite/libgomp.fortran/simd3.f90: Ditto.
7767 * testsuite/libgomp.fortran/simd4.f90: Ditto.
7768 * testsuite/libgomp.fortran/simd5.f90: Ditto.
7769 * testsuite/libgomp.fortran/simd6.f90: Ditto.
7770 * testsuite/libgomp.fortran/simd7.f90: Ditto.
7771 * testsuite/libgomp.fortran/stack.f90: Ditto.
7772 * testsuite/libgomp.fortran/strassen.f90: Ditto.
7773 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
7774 * testsuite/libgomp.fortran/tabs2.f: Ditto.
7775 * testsuite/libgomp.fortran/target1.f90: Ditto.
7776 * testsuite/libgomp.fortran/target2.f90: Ditto.
7777 * testsuite/libgomp.fortran/target3.f90: Ditto.
7778 * testsuite/libgomp.fortran/target4.f90: Ditto.
7779 * testsuite/libgomp.fortran/target5.f90: Ditto.
7780 * testsuite/libgomp.fortran/target6.f90: Ditto.
7781 * testsuite/libgomp.fortran/target7.f90: Ditto.
7782 * testsuite/libgomp.fortran/target8.f90: Ditto.
7783 * testsuite/libgomp.fortran/task1.f90: Ditto.
7784 * testsuite/libgomp.fortran/task2.f90: Ditto.
7785 * testsuite/libgomp.fortran/task3.f90: Ditto.
7786 * testsuite/libgomp.fortran/task4.f90: Ditto.
7787 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
7788 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
7789 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
7790 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
7791 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
7792 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
7793 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
7794 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
7795 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
7796 * testsuite/libgomp.fortran/udr1.f90: Ditto.
7797 * testsuite/libgomp.fortran/udr10.f90: Ditto.
7798 * testsuite/libgomp.fortran/udr11.f90: Ditto.
7799 * testsuite/libgomp.fortran/udr12.f90: Ditto.
7800 * testsuite/libgomp.fortran/udr13.f90: Ditto.
7801 * testsuite/libgomp.fortran/udr14.f90: Ditto.
7802 * testsuite/libgomp.fortran/udr15.f90: Ditto.
7803 * testsuite/libgomp.fortran/udr2.f90: Ditto.
7804 * testsuite/libgomp.fortran/udr3.f90: Ditto.
7805 * testsuite/libgomp.fortran/udr4.f90: Ditto.
7806 * testsuite/libgomp.fortran/udr5.f90: Ditto.
7807 * testsuite/libgomp.fortran/udr6.f90: Ditto.
7808 * testsuite/libgomp.fortran/udr7.f90: Ditto.
7809 * testsuite/libgomp.fortran/udr8.f90: Ditto.
7810 * testsuite/libgomp.fortran/udr9.f90: Ditto.
7811 * testsuite/libgomp.fortran/vla1.f90: Ditto.
7812 * testsuite/libgomp.fortran/vla2.f90: Ditto.
7813 * testsuite/libgomp.fortran/vla3.f90: Ditto.
7814 * testsuite/libgomp.fortran/vla4.f90: Ditto.
7815 * testsuite/libgomp.fortran/vla5.f90: Ditto.
7816 * testsuite/libgomp.fortran/vla6.f90: Ditto.
7817 * testsuite/libgomp.fortran/vla7.f90: Ditto.
7818 * testsuite/libgomp.fortran/vla8.f90: Ditto.
7819 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
7820 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
7821
7822 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
7823
7824 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
7825 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
7826 Ditto; add 'dg-do run' for torture testing.
7827 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
7828 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
7829 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
7830 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
7831 * testsuite/libgomp.fortran/pr28390.f: Ditto.
7832 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
7833 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
7834 * testsuite/libgomp.fortran/task2.f90: Ditto.
7835 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
7836 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
7837 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
7838 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
7839 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
7840 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
7841
7842 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
7843
7844 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
7845 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
7846 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
7847 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
7848 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
7849 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
7850 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
7851 Use 'stop' not abort().
7852 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
7853 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
7854 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
7855 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
7856 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
7857 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
7858 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
7859 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
7860 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
7861 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
7862 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
7863 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
7864 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
7865 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
7866 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
7867 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
7868 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
7869 Ditto.
7870 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
7871 Ditto.
7872 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
7873 Ditto.
7874 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
7875 Ditto.
7876 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
7877 Ditto.
7878 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
7879 Ditto.
7880 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
7881 Ditto.
7882 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
7883 Ditto.
7884 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
7885 Ditto.
7886 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
7887 Ditto.
7888 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
7889 Ditto.
7890 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
7891 Ditto.
7892 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
7893 Ditto.
7894 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
7895 Ditto.
7896 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
7897 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
7898 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
7899 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
7900 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
7901 Likewise and also add 'dg-do run'.
7902 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
7903 Ditto.
7904
7905 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
7906 Tobias Burnus <tobias@codesourcery.com>
7907
7908 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
7909 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
7910 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
7911
7912 2019-10-14 Jakub Jelinek <jakub@redhat.com>
7913
7914 PR libgomp/92081
7915 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
7916 than 0.
7917
7918 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
7919
7920 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
7921 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
7922
7923 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
7924
7925 PR middle-end/92036
7926 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
7927 file.
7928
7929 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
7930
7931 PR testsuite/91884
7932 * testsuite/libgomp.fortran/fortran.exp: Conditionally
7933 add -lquadmath.
7934 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
7935
7936 2019-10-09 Jakub Jelinek <jakub@redhat.com>
7937
7938 PR libgomp/92028
7939 * target.c (gomp_map_vars_internal): Readd the previous
7940 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
7941 though do that just in the !not_found_cnt case.
7942
7943 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
7944
7945 * gfortran.dg/gomp/target-simd.f90: New.
7946
7947 2019-10-02 Julian Brown <julian@codesourcery.com>
7948 Cesar Philippidis <cesar@codesourcery.com>
7949
7950 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
7951 * target.c (FIELD_TGT_EMPTY): Define.
7952 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
7953 as switch instead of list of ifs.
7954 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
7955
7956 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
7957
7958 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
7959 include. Replace alloca () with __builtin_alloca ().
7960 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
7961
7962 2019-10-01 Jakub Jelinek <jakub@redhat.com>
7963
7964 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
7965 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
7966 * oacc-parallel.c: Don't include "libgomp_g.h".
7967 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
7968 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
7969 * aclocal.m4: Regenerated.
7970 * config.h.in: Regenerated.
7971 * configure: Regenerated.
7972 * Makefile.in: Regenerated.
7973
7974 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
7975
7976 * libgomp_g.h: Include stdint.h instead of gstdint.h.
7977
7978 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
7979
7980 * configure: Regenerate.
7981
7982 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
7983
7984 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
7985 string is initialized.
7986
7987 2019-09-06 Florian Weimer <fweimer@redhat.com>
7988
7989 * configure: Regenerate.
7990
7991 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
7992
7993 PR other/79543
7994 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
7995 scanning to conform to the GNU Coding Standards.
7996 * configure: Regenerate.
7997
7998 2019-08-28 Jakub Jelinek <jakub@redhat.com>
7999
8000 PR libgomp/91530
8001 * testsuite/libgomp.c/scan-21.c: New test.
8002 * testsuite/libgomp.c/scan-22.c: New test.
8003
8004 2019-08-27 Jakub Jelinek <jakub@redhat.com>
8005
8006 PR libgomp/91530
8007 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
8008 targets.
8009 * testsuite/libgomp.c/scan-12.c: Likewise.
8010 * testsuite/libgomp.c/scan-13.c: Likewise.
8011 * testsuite/libgomp.c/scan-14.c: Likewise.
8012 * testsuite/libgomp.c/scan-15.c: Likewise.
8013 * testsuite/libgomp.c/scan-16.c: Likewise.
8014 * testsuite/libgomp.c/scan-17.c: Likewise.
8015 * testsuite/libgomp.c/scan-18.c: Likewise.
8016 * testsuite/libgomp.c/scan-19.c: Likewise.
8017 * testsuite/libgomp.c/scan-20.c: Likewise.
8018 * testsuite/libgomp.c++/scan-9.C: Likewise.
8019 * testsuite/libgomp.c++/scan-10.C: Likewise.
8020 * testsuite/libgomp.c++/scan-11.C: Likewise.
8021 * testsuite/libgomp.c++/scan-12.C: Likewise.
8022 * testsuite/libgomp.c++/scan-14.C: Likewise.
8023 * testsuite/libgomp.c++/scan-15.C: Likewise.
8024 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
8025 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
8026 * testsuite/libgomp.c++/scan-16.C: Likewise.
8027
8028 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
8029
8030 PR fortran/91473
8031 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
8032 -std=legacy so invalid code in the test case is accepted.
8033
8034 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
8035
8036 PR fortran/91422
8037 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
8038 dimension.
8039
8040 2019-08-08 Jakub Jelinek <jakub@redhat.com>
8041
8042 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
8043 perform the lookup in the first loop only if !not_found_cnt, otherwise
8044 perform lookups for it in the second loop guarded with
8045 if (not_found_cnt || has_firstprivate).
8046 * testsuite/libgomp.c/target-37.c: New test.
8047 * testsuite/libgomp.c++/target-22.C: New test.
8048
8049 2019-08-07 Jakub Jelinek <jakub@redhat.com>
8050
8051 * testsuite/libgomp.c/target-18.c (struct S): New type.
8052 (foo): Use use_device_addr clause instead of use_device_ptr clause
8053 where required by OpenMP 5.0, add further tests for both use_device_ptr
8054 and use_device_addr clauses.
8055 * testsuite/libgomp.c++/target-9.C (struct S): New type.
8056 (foo): Use use_device_addr clause instead of use_device_ptr clause
8057 where required by OpenMP 5.0, add further tests for both use_device_ptr
8058 and use_device_addr clauses. Add t and u arguments.
8059 (main): Adjust caller.
8060
8061 2019-08-06 Jakub Jelinek <jakub@redhat.com>
8062
8063 * testsuite/libgomp.c++/loop-13.C: New test.
8064 * testsuite/libgomp.c++/loop-14.C: New test.
8065 * testsuite/libgomp.c++/loop-15.C: New test.
8066
8067 2019-07-31 Jakub Jelinek <jakub@redhat.com>
8068
8069 PR middle-end/91301
8070 * testsuite/libgomp.c++/for-27.C: New test.
8071
8072 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
8073
8074 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
8075 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
8076
8077 2019-07-20 Jakub Jelinek <jakub@redhat.com>
8078
8079 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
8080
8081 2019-07-08 Jakub Jelinek <jakub@redhat.com>
8082
8083 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
8084 * testsuite/libgomp.c++/scan-16.C: Likewise.
8085
8086 2019-07-06 Jakub Jelinek <jakub@redhat.com>
8087
8088 * testsuite/libgomp.c/scan-19.c: New test.
8089 * testsuite/libgomp.c/scan-20.c: New test.
8090
8091 * testsuite/libgomp.c/scan-11.c: New test.
8092 * testsuite/libgomp.c/scan-12.c: New test.
8093 * testsuite/libgomp.c/scan-13.c: New test.
8094 * testsuite/libgomp.c/scan-14.c: New test.
8095 * testsuite/libgomp.c/scan-15.c: New test.
8096 * testsuite/libgomp.c/scan-16.c: New test.
8097 * testsuite/libgomp.c/scan-17.c: New test.
8098 * testsuite/libgomp.c/scan-18.c: New test.
8099 * testsuite/libgomp.c++/scan-9.C: New test.
8100 * testsuite/libgomp.c++/scan-10.C: New test.
8101 * testsuite/libgomp.c++/scan-11.C: New test.
8102 * testsuite/libgomp.c++/scan-12.C: New test.
8103 * testsuite/libgomp.c++/scan-13.C: New test.
8104 * testsuite/libgomp.c++/scan-14.C: New test.
8105 * testsuite/libgomp.c++/scan-15.C: New test.
8106 * testsuite/libgomp.c++/scan-16.C: New test.
8107
8108 2019-07-04 Jakub Jelinek <jakub@redhat.com>
8109
8110 * testsuite/libgomp.c/scan-9.c: New test.
8111 * testsuite/libgomp.c/scan-10.c: New test.
8112
8113 2019-07-03 Jakub Jelinek <jakub@redhat.com>
8114
8115 * testsuite/libgomp.c++/scan-1.C: New test.
8116 * testsuite/libgomp.c++/scan-2.C: New test.
8117 * testsuite/libgomp.c++/scan-3.C: New test.
8118 * testsuite/libgomp.c++/scan-4.C: New test.
8119 * testsuite/libgomp.c++/scan-5.C: New test.
8120 * testsuite/libgomp.c++/scan-6.C: New test.
8121 * testsuite/libgomp.c++/scan-7.C: New test.
8122 * testsuite/libgomp.c++/scan-8.C: New test.
8123 * testsuite/libgomp.c/scan-1.c: New test.
8124 * testsuite/libgomp.c/scan-2.c: New test.
8125 * testsuite/libgomp.c/scan-3.c: New test.
8126 * testsuite/libgomp.c/scan-4.c: New test.
8127 * testsuite/libgomp.c/scan-5.c: New test.
8128 * testsuite/libgomp.c/scan-6.c: New test.
8129 * testsuite/libgomp.c/scan-7.c: New test.
8130 * testsuite/libgomp.c/scan-8.c: New test.
8131
8132 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
8133
8134 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
8135 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
8136 Likewise.
8137
8138 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
8139 check.
8140
8141 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
8142
8143 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
8144 file.
8145
8146 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
8147
8148 PR fortran/90743
8149 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
8150 case.
8151 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
8152 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
8153 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
8154 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
8155
8156 PR testsuite/90861
8157 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
8158
8159 PR middle-end/90862
8160 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
8161
8162 2019-06-16 Tom de Vries <tdevries@suse.de>
8163
8164 PR tree-optimization/89376
8165 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
8166
8167 2019-06-15 Tom de Vries <tdevries@suse.de>
8168
8169 PR tree-optimization/89713
8170 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
8171 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
8172
8173 2019-06-15 Jakub Jelinek <jakub@redhat.com>
8174
8175 PR middle-end/90779
8176 * testsuite/libgomp.c/pr90779.c: New test.
8177 * testsuite/libgomp.fortran/pr90779.f90: New test.
8178
8179 2019-06-15 Tom de Vries <tdevries@suse.de>
8180
8181 PR tree-optimization/90009
8182 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
8183
8184 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
8185
8186 PR tree-optimization/89713
8187 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
8188
8189 2019-06-11 Jakub Jelinek <jakub@redhat.com>
8190
8191 PR target/90811
8192 * testsuite/libgomp.c/pr90811.c: New test.
8193
8194 2019-06-05 Jakub Jelinek <jakub@redhat.com>
8195
8196 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
8197 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
8198
8199 2019-06-04 Jakub Jelinek <jakub@redhat.com>
8200
8201 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
8202 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
8203 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
8204 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
8205
8206 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8207
8208 * configure.ac: Call AX_COUNT_CPUS.
8209 Substitute CPU_COUNT.
8210 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
8211 count fallback.
8212 * aclocal.m4: Regenerate.
8213 * configure: Regenerate.
8214 * Makefile.in, testsuite/Makefile.in: Regenerate.
8215
8216 2019-05-29 Jakub Jelinek <jakub@redhat.com>
8217
8218 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
8219 to ...
8220 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
8221 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
8222 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
8223
8224 2019-05-27 Jakub Jelinek <jakub@redhat.com>
8225
8226 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
8227
8228 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
8229
8230 PR libgomp/90641
8231 * work.c (gomp_init_work_share): Instead of aligning final ordered
8232 value to multiples of long long alignment, align to that the
8233 first part (ordered team ids) and if inline_ordered_team_ids
8234 is not on a long long alignment boundary within the structure,
8235 use __alignof__ (long long) - 1 pad size always.
8236 * loop.c (GOMP_loop_start): Fix *mem computation if
8237 inline_ordered_team_ids is not aligned on long long alignment boundary
8238 within the structure.
8239 * loop-ull.c (GOMP_loop_ull_start): Likewise.
8240 * sections.c (GOMP_sections2_start): Likewise.
8241
8242 2019-05-24 Jakub Jelinek <jakub@redhat.com>
8243
8244 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
8245 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
8246
8247 PR libgomp/90585
8248 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
8249 HAVE_INTTYPES_H is defined.
8250 (print_uint64_t): New typedef.
8251 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
8252 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
8253 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
8254 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
8255 before casting to void *.
8256 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
8257 * oacc-mem.c: Don't include config.h nor stdint.h.
8258 * target.c: Don't include config.h.
8259 * oacc-cuda.c: Likewise.
8260 * oacc-host.c: Don't include stdint.h.
8261
8262 2019-05-20 Jakub Jelinek <jakub@redhat.com>
8263
8264 PR libgomp/90527
8265 * alloc.c (_GNU_SOURCE): Define.
8266
8267 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
8268
8269 * acc_prof.h: New file.
8270 * oacc-profiling.c: Likewise.
8271 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
8272 Add these, respectively.
8273 * Makefile.in: Regenerate.
8274 * env.c (initialize_env): Call goacc_profiling_initialize.
8275 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
8276 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
8277 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
8278 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
8279 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
8280 acc_prof_register, acc_prof_unregister, and acc_register_library.
8281 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
8282 GOMP_PLUGIN_goacc_thread.
8283 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
8284 prof_callbacks_enabled members.
8285 (goacc_prof_enabled, goacc_profiling_initialize)
8286 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
8287 (goacc_profiling_dispatch): Declare.
8288 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
8289 (GOACC_PROFILING_SETUP_P): Define.
8290 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
8291 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
8292 OpenACC Profiling Interface.
8293 * oacc-cuda.c (acc_get_current_cuda_device)
8294 (acc_get_current_cuda_context, acc_get_cuda_stream)
8295 (acc_set_cuda_stream): Likewise.
8296 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
8297 (acc_init, acc_set_device_type, acc_get_device_type)
8298 (acc_get_device_num, goacc_lazy_initialize): Likewise.
8299 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
8300 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
8301 (acc_unmap_data, present_create_copy, delete_copyout)
8302 (update_dev_host): Likewise.
8303 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
8304 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
8305 Likewise.
8306 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
8307 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
8308 Likewise.
8309 * libgomp.texi: Update.
8310 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
8311 file.
8312 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
8313 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
8314 Likewise.
8315 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
8316 Likewise.
8317 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
8318 Likewise.
8319 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
8320 Likewise.
8321
8322 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
8323
8324 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
8325 (struct goacc_asyncqueue_list): Likewise.
8326 (goacc_aq): Likewise.
8327 (goacc_aq_list): Likewise.
8328 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
8329 (GOMP_OFFLOAD_openacc_async_test): Remove.
8330 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
8331 (GOMP_OFFLOAD_openacc_async_wait): Remove.
8332 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
8333 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
8334 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
8335 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
8336 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
8337 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
8338 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
8339 (GOMP_OFFLOAD_openacc_async_exec): Declare.
8340 (GOMP_OFFLOAD_openacc_async_construct): Declare.
8341 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
8342 (GOMP_OFFLOAD_openacc_async_test): Declare.
8343 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
8344 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
8345 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
8346 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
8347 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
8348
8349 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
8350 (gomp_acc_insert_pointer): Adjust declaration.
8351 (gomp_copy_host2dev): New declaration.
8352 (gomp_copy_dev2host): Likewise.
8353 (gomp_map_vars_async): Likewise.
8354 (gomp_unmap_tgt): Likewise.
8355 (gomp_unmap_vars_async): Likewise.
8356 (gomp_fini_device): Likewise.
8357
8358 * oacc-async.c (get_goacc_thread): New function.
8359 (get_goacc_thread_device): New function.
8360 (lookup_goacc_asyncqueue): New function.
8361 (get_goacc_asyncqueue): New function.
8362 (acc_async_test): Adjust code to use new async design.
8363 (acc_async_test_all): Likewise.
8364 (acc_wait): Likewise.
8365 (acc_wait_async): Likewise.
8366 (acc_wait_all): Likewise.
8367 (acc_wait_all_async): Likewise.
8368 (goacc_async_free): New function.
8369 (goacc_init_asyncqueues): Likewise.
8370 (goacc_fini_asyncqueues): Likewise.
8371 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
8372 design.
8373 (acc_set_cuda_stream): Likewise.
8374 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
8375 (host_openacc_register_async_cleanup): Remove.
8376 (host_openacc_async_exec): New function.
8377 (host_openacc_async_test): Adjust parameters.
8378 (host_openacc_async_test_all): Remove.
8379 (host_openacc_async_wait): Remove.
8380 (host_openacc_async_wait_async): Remove.
8381 (host_openacc_async_wait_all): Remove.
8382 (host_openacc_async_wait_all_async): Remove.
8383 (host_openacc_async_set_async): Remove.
8384 (host_openacc_async_synchronize): New function.
8385 (host_openacc_async_serialize): New function.
8386 (host_openacc_async_host2dev): New function.
8387 (host_openacc_async_dev2host): New function.
8388 (host_openacc_async_queue_callback): New function.
8389 (host_openacc_async_construct): New function.
8390 (host_openacc_async_destruct): New function.
8391 (struct gomp_device_descr host_dispatch): Remove initialization of old
8392 interface, add initialization of new async sub-struct.
8393 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
8394 (goacc_attach_host_thread_to_device): Remove old async code usage.
8395 * oacc-int.h (goacc_init_asyncqueues): New declaration.
8396 (goacc_fini_asyncqueues): Likewise.
8397 (goacc_async_copyout_unmap_vars): Likewise.
8398 (goacc_async_free): Likewise.
8399 (get_goacc_asyncqueue): Likewise.
8400 (lookup_goacc_asyncqueue): Likewise.
8401 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
8402 design.
8403 (present_create_copy): Adjust code to use new async design.
8404 (delete_copyout): Likewise.
8405 (update_dev_host): Likewise.
8406 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
8407 async design.
8408 (gomp_acc_remove_pointer): Adjust code to use new async design.
8409 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
8410 design.
8411 (GOACC_enter_exit_data): Likewise.
8412 (goacc_wait): Likewise.
8413 (GOACC_update): Likewise.
8414 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
8415 when called, warn as obsolete in comment.
8416 * target.c (goacc_device_copy_async): New function.
8417 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
8418 add goacc_device_copy_async case.
8419 (gomp_copy_dev2host): Likewise.
8420 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
8421 (gomp_map_pointer): Likewise.
8422 (gomp_map_fields_existing): Likewise.
8423 (gomp_map_vars_internal): New always_inline function, renamed from
8424 gomp_map_vars.
8425 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
8426 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
8427 passing goacc_asyncqueue argument.
8428 (gomp_unmap_tgt): Remove static, add attribute_hidden.
8429 (gomp_unref_tgt): New function.
8430 (gomp_unmap_vars_internal): New always_inline function, renamed from
8431 gomp_unmap_vars.
8432 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
8433 (gomp_unmap_vars_async): Implement by calling
8434 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
8435 (gomp_fini_device): New function.
8436 (gomp_exit_data): Adjust gomp_copy_dev2host call.
8437 (gomp_load_plugin_for_device): Remove old interface, adjust to load
8438 new async interface.
8439 (gomp_target_fini): Adjust code to call gomp_fini_device.
8440
8441 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
8442 (struct ptx_stream): Remove.
8443 (struct nvptx_thread): Remove current_stream field.
8444 (cuda_map_create): Remove.
8445 (cuda_map_destroy): Remove.
8446 (map_init): Remove.
8447 (map_fini): Remove.
8448 (map_pop): Remove.
8449 (map_push): Remove.
8450 (struct goacc_asyncqueue): Define.
8451 (struct nvptx_callback): Define.
8452 (struct ptx_free_block): Define.
8453 (struct ptx_device): Remove null_stream, active_streams, async_streams,
8454 stream_lock, and next fields.
8455 (enum ptx_event_type): Remove.
8456 (struct ptx_event): Remove.
8457 (ptx_event_lock): Remove.
8458 (ptx_events): Remove.
8459 (init_streams_for_device): Remove.
8460 (fini_streams_for_device): Remove.
8461 (select_stream_for_async): Remove.
8462 (nvptx_init): Remove ptx_events and ptx_event_lock references.
8463 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
8464 case.
8465 (nvptx_open_device): Add free_blocks initialization, remove
8466 init_streams_for_device call.
8467 (nvptx_close_device): Remove fini_streams_for_device call, add
8468 free_blocks destruct code.
8469 (event_gc): Remove.
8470 (event_add): Remove.
8471 (nvptx_exec): Adjust parameters and code.
8472 (nvptx_free): Likewise.
8473 (nvptx_host2dev): Remove.
8474 (nvptx_dev2host): Remove.
8475 (nvptx_set_async): Remove.
8476 (nvptx_async_test): Remove.
8477 (nvptx_async_test_all): Remove.
8478 (nvptx_wait): Remove.
8479 (nvptx_wait_async): Remove.
8480 (nvptx_wait_all): Remove.
8481 (nvptx_wait_all_async): Remove.
8482 (nvptx_get_cuda_stream): Remove.
8483 (nvptx_set_cuda_stream): Remove.
8484 (GOMP_OFFLOAD_alloc): Adjust code.
8485 (GOMP_OFFLOAD_free): Likewise.
8486 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
8487 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
8488 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
8489 (GOMP_OFFLOAD_openacc_async_wait): Remove.
8490 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
8491 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
8492 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
8493 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
8494 (cuda_free_argmem): New function.
8495 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
8496 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
8497 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
8498 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
8499 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
8500 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
8501 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
8502 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
8503 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
8504 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
8505 (cuda_callback_wrapper): New function.
8506 (cuda_memcpy_sanity_check): New function.
8507 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
8508 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
8509 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
8510 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
8511
8512 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
8513
8514 PR target/87835
8515 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
8516
8517 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
8518
8519 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
8520
8521 2019-03-27 Kevin Buettner <kevinb@redhat.com>
8522
8523 * team.c (gomp_team_start): Initialize pool->threads[0].
8524
8525 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
8526
8527 * testsuite/libgomp.oacc-c++/c++.exp: Specify
8528 "-foffload=$offload_target".
8529 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8530 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8531 * testsuite/lib/libgomp.exp
8532 (check_effective_target_openacc_nvidia_accel_configured): Remove,
8533 as (conceptually) merged into
8534 check_effective_target_openacc_nvidia_accel_selected. Adjust all
8535 users.
8536
8537 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
8538 * testsuite/libgomp-test-support.exp.in: Adjust.
8539 * testsuite/lib/libgomp.exp: Likewise. Don't populate
8540 openacc_device_types_s.
8541 (offload_target_to_openacc_device_type): New proc.
8542 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
8543 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8544 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8545 * Makefile.in: Regenerate.
8546 * configure: Likewise.
8547 * testsuite/Makefile.in: Likewise.
8548
8549 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
8550 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
8551 instead of OFFLOAD_TARGETS.
8552 * target.c (gomp_target_init): Adjust.
8553 * testsuite/libgomp-test-support.exp.in: Likewise.
8554 * testsuite/lib/libgomp.exp: Likewise. Populate
8555 openacc_device_types_s instead of offload_targets_s_openacc.
8556 (check_effective_target_openacc_nvidia_accel_selected)
8557 (check_effective_target_openacc_host_selected): Adjust.
8558 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
8559 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8560 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8561 * Makefile.in: Regenerate.
8562 * config.h.in: Likewise.
8563 * configure: Likewise.
8564 * testsuite/Makefile.in: Likewise.
8565
8566 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
8567 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
8568 "offloading: supported, but hardware not accessible".
8569 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8570 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8571
8572 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
8573
8574 PR c/87924
8575 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
8576 goacc_wait().
8577 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
8578 and related adjustment.
8579
8580 2019-01-30 Jakub Jelinek <jakub@redhat.com>
8581
8582 PR c++/88988
8583 * testsuite/libgomp.c++/pr88988.C: New test.
8584
8585 2019-01-28 Jakub Jelinek <jakub@redhat.com>
8586
8587 PR middle-end/89002
8588 * testsuite/libgomp.c/pr89002.c: New test.
8589
8590 2019-01-28 Richard Biener <rguenther@suse.de>
8591
8592 PR testsuite/89064
8593 PR tree-optimization/86865
8594 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
8595
8596 2019-01-24 Tom de Vries <tdevries@suse.de>
8597
8598 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
8599 once instantiated_devices drops to 0.
8600
8601 2019-01-23 Tom de Vries <tdevries@suse.de>
8602
8603 PR target/PR88946
8604 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
8605 cuMemFree.
8606 (nvptx_exec): Don't call map_push if mapnum == 0.
8607 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
8608
8609 2019-01-23 Tom de Vries <tdevries@suse.de>
8610
8611 PR target/88941
8612 PR target/88939
8613 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
8614 (map_fini): Remove "assert (!s->map->active)".
8615 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
8616
8617 2019-01-23 Tom de Vries <tdevries@suse.de>
8618
8619 PR target/87835
8620 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
8621 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
8622
8623 2019-01-15 Tom de Vries <tdevries@suse.de>
8624
8625 PR target/80547
8626 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
8627 New test.
8628
8629 2019-01-12 Tom de Vries <tdevries@suse.de>
8630
8631 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
8632 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
8633 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
8634 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
8635
8636 2019-01-12 Tom de Vries <tdevries@suse.de>
8637
8638 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
8639
8640 2019-01-12 Tom de Vries <tdevries@suse.de>
8641
8642 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
8643 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
8644 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
8645
8646 2019-01-12 Tom de Vries <tdevries@suse.de>
8647
8648 PR target/85486
8649 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
8650 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
8651
8652 2019-01-12 Tom de Vries <tdevries@suse.de>
8653
8654 PR target/85381
8655 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
8656 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
8657
8658 2019-01-12 Tom de Vries <tdevries@suse.de>
8659
8660 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
8661 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
8662 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
8663
8664 2019-01-12 Tom de Vries <tdevries@suse.de>
8665
8666 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
8667 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
8668 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
8669
8670 2019-01-12 Tom de Vries <tdevries@suse.de>
8671
8672 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
8673 resources diagnostic.
8674
8675 2019-01-12 Tom de Vries <tdevries@suse.de>
8676
8677 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
8678 vector length to be 128.
8679 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
8680 length 2097152 to be reduced to 1024 instead of 32.
8681
8682 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
8683 James Norris <jnorris@codesourcery.com>
8684
8685 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
8686 Library Routines", and "Environment Variables".
8687
8688 2019-01-11 Tom de Vries <tdevries@suse.de>
8689
8690 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
8691 num_workers 16.
8692
8693 2019-01-11 Tom de Vries <tdevries@suse.de>
8694
8695 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
8696 -foffload=-w.
8697 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
8698 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
8699 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
8700 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
8701
8702 2019-01-11 Tom de Vries <tdevries@suse.de>
8703
8704 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
8705 test.
8706
8707 2019-01-10 Nathan Sidwell <nathan@acm.org>
8708 Julian Brown <julian@codesourcery.com>
8709
8710 PR lto/71959
8711 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
8712 * testsuite/libgomp.oacc-c++/pr71959.C: New.
8713
8714 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
8715
8716 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
8717 and paste code.
8718
8719 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
8720
8721 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
8722 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
8723 write.
8724
8725 2019-01-09 Tom de Vries <tdevries@suse.de>
8726
8727 PR target/88756
8728 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
8729 #define instead of "const int".
8730 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
8731 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
8732 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
8733 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
8734
8735 2019-01-09 Tom de Vries <tdevries@suse.de>
8736
8737 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
8738 one worker.
8739
8740 2019-01-07 Tom de Vries <tdevries@suse.de>
8741
8742 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
8743 GOMP_OPENACC_DIM argument.
8744
8745 2019-01-03 Tom de Vries <tdevries@suse.de>
8746
8747 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
8748 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
8749
8750 2019-01-01 Jakub Jelinek <jakub@redhat.com>
8751
8752 Update copyright years.
8753
8754 2019-01-01 Jakub Jelinek <jakub@redhat.com>
8755
8756 * libgomp.texi: Bump @copying's copyright year.
8757
8758 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
8759
8760 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
8761 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
8762 (GOACC_declare): Redefine the "device" argument to "flags".
8763
8764 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
8765 Cesar Philippidis <cesar@codesourcery.com>
8766
8767 * target.c (struct gomp_coalesce_chunk): New structure.
8768 (struct gomp_coalesce_buf): Update the chunks member to use that
8769 type. Adjust all users.
8770
8771 2018-12-19 Tom de Vries <tdevries@suse.de>
8772
8773 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
8774 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
8775 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
8776
8777 2018-12-19 Tom de Vries <tdevries@suse.de>
8778
8779 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
8780 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
8781 gcc/testsuite/gcc.dg/goacc.
8782 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
8783
8784 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
8785 Chung-Lin Tang <cltang@codesourcery.com>
8786
8787 * oacc-mem.c (acc_present_or_create): Remove definition and change
8788 to alias of acc_create.
8789 (acc_present_or_copyin): Remove definition and change to alias of
8790 acc_copyin.
8791 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
8792 of acc_present_or_create.
8793 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
8794 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8795 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
8796 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
8797 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
8798 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
8799 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
8800 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8801 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8802 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8803 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
8804 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
8805 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
8806 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
8807 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
8808 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8809
8810 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
8811
8812 PR libgomp/88495
8813 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
8814 "identical parameters".
8815 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
8816 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
8817
8818 PR libgomp/88484
8819 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
8820 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
8821
8822 PR libgomp/88407
8823 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
8824 (nvptx_wait_async): Unseen async-argument is a no-op.
8825 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
8826 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
8827 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
8828 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
8829 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
8830 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
8831 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
8832 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
8833 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
8834
8835 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
8836 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
8837
8838 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
8839
8840 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
8841 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
8842 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
8843
8844 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
8845
8846 PR libgomp/88370
8847 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
8848 (acc_set_cuda_stream): Clarify.
8849 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
8850 "async_valid_p".
8851 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
8852 acc_async_sync".
8853 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
8854 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
8855 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
8856 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
8857
8858 2018-12-14 Tom de Vries <tdevries@suse.de>
8859
8860 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
8861 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
8862 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
8863 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
8864 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
8865
8866 2018-12-13 Tom de Vries <tdevries@suse.de>
8867
8868 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
8869 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
8870 * fortran.c (omp_display_affinity_): ... here.
8871 * libgomp.h (gomp_print_string): Declare.
8872 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
8873 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
8874 write.
8875
8876 2018-12-13 Jakub Jelinek <jakub@redhat.com>
8877
8878 PR libgomp/88460
8879 * testsuite/libgomp.c++/for-24.C (results): Include it in
8880 omp declare target region.
8881 (main): Use map (always, tofrom: results) instead of
8882 map (tofrom: results).
8883
8884 2018-12-12 Jakub Jelinek <jakub@redhat.com>
8885
8886 PR fortran/88463
8887 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
8888 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
8889
8890 * testsuite/libgomp.c-c++-common/for-16.c: New test.
8891
8892 2018-12-12 Andreas Schwab <schwab@suse.de>
8893
8894 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
8895 clobbered.
8896
8897 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
8898
8899 PR fortran/88411
8900 * testsuite/libgomp.fortran/async_io_8.f90: New test.
8901
8902 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
8903 Jakub Jelinek <jakub@redhat.com>
8904
8905 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
8906 devicep->host2dev_func.
8907
8908 2018-12-08 Jakub Jelinek <jakub@redhat.com>
8909
8910 PR libgomp/87995
8911 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
8912 tls_runtime effective target.
8913 (t): New threadprivate variable.
8914 (main): Set t in threads which execute iterations of the worksharing
8915 loop. Propagate that to the task after the loop and don't abort
8916 if the current taskgroup hasn't been cancelled.
8917
8918 2018-12-02 Jakub Jelinek <jakub@redhat.com>
8919
8920 * testsuite/libgomp.c/task-reduction-3.c: New test.
8921
8922 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
8923
8924 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
8925
8926 PR libgomp/88288
8927 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
8928 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
8929
8930 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
8931
8932 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
8933
8934 2018-10-19 Richard Biener <rguenther@suse.de>
8935
8936 PR tree-optimization/88182
8937 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
8938
8939 2018-11-26 Jakub Jelinek <jakub@redhat.com>
8940
8941 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
8942 (RUNTEST): Don't define.
8943 (RUNTESTDEFAULTFLAGS): Add.
8944 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
8945 (distclean-am): Depend on distclean-DEJAGNU.
8946 (check-am): If -j% option is present in MFLAGS and if
8947 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
8948 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
8949 * testsuite/Makefile.in: Regenerated.
8950
8951 2018-11-26 Richard Biener <rguenther@suse.de>
8952
8953 PR tree-optimization/88182
8954 * testsuite/libgomp.c++/pr88182.C: New testcase.
8955
8956 2018-11-20 Jakub Jelinek <jakub@redhat.com>
8957
8958 PR bootstrap/88106
8959 * config/mingw32/affinity-fmt.c: New file.
8960
8961 2018-11-09 Jakub Jelinek <jakub@redhat.com>
8962
8963 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
8964 (gomp_display_affinity): Use __builtin_choose_expr to handle
8965 properly handle argument having integral, or pointer or some other
8966 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
8967 with uint64_t type instead of %llx and unsigned long long.
8968
8969 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
8970 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
8971
8972 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8973
8974 * affinity.c: Include <string.h>, <stdio.h>.
8975 (gomp_display_affinity_place): Remove cpusetp.
8976 * teams.c: Include <limits.h>.
8977
8978 2018-11-08 Jakub Jelinek <jakub@redhat.com>
8979
8980 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
8981 in_reduction clause for s[0].
8982
8983 * affinity.c (gomp_display_affinity_place): New function.
8984 * affinity-fmt.c: New file.
8985 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
8986 * config/linux/affinity.c (gomp_display_affinity_place): New function.
8987 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
8988 Move these functions to ...
8989 * config/nvptx/teams.c: ... here. New file.
8990 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
8991 New functions.
8992 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
8993 functions.
8994 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
8995 and _aligned_malloc.
8996 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
8997 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
8998 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
8999 gomp_affinity_format_len): New variables.
9000 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
9001 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
9002 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
9003 modifiers. Display (non-default) chunk sizes. Print
9004 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
9005 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
9006 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
9007 * fortran.c: Include stdio.h and string.h.
9008 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
9009 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
9010 (omp_set_affinity_format_, omp_get_affinity_format_,
9011 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
9012 omp_pause_resource_all_): New functions.
9013 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
9014 switch.
9015 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
9016 functions to ...
9017 * teams.c: ... here. New file.
9018 * libgomp_g.h: Include gstdint.h.
9019 (GOMP_loop_nonmonotonic_runtime_start,
9020 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
9021 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
9022 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
9023 GOMP_parallel_loop_nonmonotonic_runtime,
9024 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9025 GOMP_loop_ull_nonmonotonic_runtime_start,
9026 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
9027 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
9028 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9029 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
9030 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
9031 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
9032 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
9033 GOMP_teams_reg): Declare.
9034 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
9035 gomp_aligned_alloc uses fallback implementation.
9036 (gomp_aligned_alloc, gomp_aligned_free): Declare.
9037 (enum gomp_schedule_type): Add GFS_MONOTONIC.
9038 (struct gomp_doacross_work_share): Add extra field.
9039 (struct gomp_work_share): Add task_reductions field.
9040 (struct gomp_taskgroup): Add workshare and reductions fields.
9041 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
9042 (gomp_thread_handle): New typedef.
9043 (gomp_display_affinity_place, gomp_set_affinity_format,
9044 gomp_display_string, gomp_display_affinity,
9045 gomp_display_affinity_thread): Declare.
9046 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
9047 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
9048 gomp_workshare_task_reduction_register): Declare.
9049 (gomp_team_start): Add taskgroup argument.
9050 (gomp_pause_host): Declare.
9051 (gomp_init_work_share, gomp_work_share_start): Change bool argument
9052 to size_t.
9053 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
9054 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
9055 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
9056 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
9057 GOMP_loop_ull_doacross_start,
9058 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
9059 GOMP_loop_maybe_nonmonotonic_runtime_next,
9060 GOMP_loop_maybe_nonmonotonic_runtime_start,
9061 GOMP_loop_nonmonotonic_runtime_next,
9062 GOMP_loop_nonmonotonic_runtime_start,
9063 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9064 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
9065 GOMP_loop_ull_nonmonotonic_runtime_next,
9066 GOMP_loop_ull_nonmonotonic_runtime_start,
9067 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9068 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
9069 GOMP_taskgroup_reduction_register,
9070 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
9071 GOMP_teams_reg and GOMP_taskwait_depend.
9072 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
9073 omp_{capture,display}_affinity{,_}, and
9074 omp_[gs]et_affinity_format{,_}.
9075 * loop.c: Include string.h.
9076 (GOMP_loop_runtime_next): Add ialias.
9077 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
9078 (gomp_loop_static_start, gomp_loop_dynamic_start,
9079 gomp_loop_guided_start, gomp_loop_ordered_static_start,
9080 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
9081 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
9082 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
9083 or gomp_doacross_init callers.
9084 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
9085 GOMP_loop_doacross_start): New functions.
9086 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
9087 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
9088 Mask off GFS_MONOTONIC bit.
9089 (GOMP_loop_maybe_nonmonotonic_runtime_next,
9090 GOMP_loop_maybe_nonmonotonic_runtime_start,
9091 GOMP_loop_nonmonotonic_runtime_next,
9092 GOMP_loop_nonmonotonic_runtime_start,
9093 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9094 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
9095 functions.
9096 (gomp_parallel_loop_start): Pass NULL as taskgroup to
9097 gomp_team_start.
9098 * loop_ull.c: Include string.h.
9099 (GOMP_loop_ull_runtime_next): Add ialias.
9100 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
9101 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
9102 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
9103 gomp_loop_ull_ordered_dynamic_start,
9104 gomp_loop_ull_ordered_guided_start,
9105 gomp_loop_ull_doacross_static_start,
9106 gomp_loop_ull_doacross_dynamic_start,
9107 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
9108 and gomp_doacross_ull_init callers.
9109 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
9110 GOMP_loop_ull_doacross_start): New functions.
9111 (GOMP_loop_ull_runtime_start,
9112 GOMP_loop_ull_ordered_runtime_start,
9113 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
9114 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9115 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
9116 GOMP_loop_ull_nonmonotonic_runtime_next,
9117 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
9118 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
9119 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
9120 (omp_pause_resource_t, omp_depend_t): New typedefs.
9121 (enum omp_lock_hint_t): Renamed to ...
9122 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
9123 enumerators using numbers and omp_lock_hint_* as their aliases.
9124 (omp_lock_hint_t): New typedef. Rename to ...
9125 (omp_sync_hint_t): ... this.
9126 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
9127 omp_sync_hint_t instead of omp_lock_hint_t.
9128 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9129 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9130 Declare.
9131 (omp_target_is_present, omp_target_disassociate_ptr):
9132 Change first argument from void * to const void *.
9133 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
9134 from void * to const void *.
9135 (omp_target_associate_ptr): Change first and second arguments from
9136 void * to const void *.
9137 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
9138 omp_pause_hard): New parameters.
9139 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9140 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9141 New interfaces.
9142 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
9143 omp_pause_hard): New parameters.
9144 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9145 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9146 New externals.
9147 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
9148 EXTRA argument. If not needed to prepare array, if extra is 0,
9149 clear ws->doacross, otherwise allocate just doacross structure and
9150 extra payload. If array is needed, allocate also extra payload.
9151 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
9152 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
9153 doacross == NULL.
9154 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
9155 gomp_team_start.
9156 (GOMP_parallel): Likewise. Formatting fix.
9157 (GOMP_parallel_reductions): New function.
9158 (GOMP_cancellation_point): If taskgroup has workshare
9159 flag set, check cancelled of prev taskgroup if any.
9160 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
9161 on prev taskgroup if any.
9162 * sections.c: Include string.h.
9163 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
9164 (GOMP_sections_start): Adjust gomp_work_share_start caller.
9165 (GOMP_sections2_start): New function.
9166 (GOMP_parallel_sections_start, GOMP_parallel_sections):
9167 Pass NULL as taskgroup to gomp_team_start.
9168 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
9169 gomp_work_share_start callers.
9170 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
9171 If taskgroup has workshare flag set, check cancelled on prev
9172 taskgroup if any. Guard all cancellation tests with
9173 gomp_cancel_var test.
9174 (omp_target_is_present, omp_target_disassociate_ptr):
9175 Change ptr argument from void * to const void *.
9176 (omp_target_memcpy): Change src argument from void * to const void *.
9177 (omp_target_memcpy_rect): Likewise.
9178 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
9179 instead of char * where needed.
9180 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
9181 from void * to const void *.
9182 (omp_pause_resource, omp_pause_resource_all): New functions.
9183 * task.c (gomp_task_handle_depend): Handle new depend array format
9184 in addition to the old. Handle mutexinoutset kinds the same as
9185 inout for now, handle unspecified kinds.
9186 (gomp_create_target_task): If taskgroup has workshare flag set, check
9187 cancelled on prev taskgroup if any. Guard all cancellation tests with
9188 gomp_cancel_var test. Handle new depend array format count in
9189 addition to the old.
9190 (GOMP_task): Likewise. Adjust function comment.
9191 (gomp_task_run_pre): If taskgroup has workshare flag set, check
9192 cancelled on prev taskgroup if any. Guard all cancellation tests with
9193 gomp_cancel_var test.
9194 (GOMP_taskwait_depend): New function.
9195 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
9196 format in addition to the old. Handle mutexinoutset kinds the same as
9197 inout for now, handle unspecified kinds. Fix a function comment typo.
9198 (gomp_taskgroup_init): New function.
9199 (GOMP_taskgroup_start): Use it.
9200 (gomp_reduction_register, gomp_create_artificial_team,
9201 GOMP_taskgroup_reduction_register,
9202 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
9203 gomp_parallel_reduction_register,
9204 gomp_workshare_task_reduction_register,
9205 gomp_workshare_taskgroup_start,
9206 GOMP_workshare_task_reduction_unregister): New functions.
9207 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
9208 check cancelled on prev taskgroup if any. Guard all cancellation
9209 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
9210 by calling GOMP_taskgroup_reduction_register.
9211 * team.c (gomp_thread_attr): Remove comment.
9212 (struct gomp_thread_start_data): Add handle field.
9213 (gomp_thread_start): Call pthread_detach.
9214 (gomp_new_team): Adjust gomp_init_work_share caller.
9215 (gomp_free_pool_helper): Call pthread_detach.
9216 (gomp_team_start): Add taskgroup argument, initialize implicit
9217 tasks' taskgroup field to that. Don't call
9218 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
9219 (gomp_team_end): Determine nesting by thr->ts.level != 0
9220 rather than thr->ts.team != NULL.
9221 (gomp_pause_pool_helper, gomp_pause_host): New functions.
9222 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
9223 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
9224 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
9225 if more than 1 allocate also extra payload at the end of array. Never
9226 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
9227 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
9228 return true instead of ws.
9229 * Makefile.in: Regenerated.
9230 * configure: Regenerated.
9231 * config.h.in: Regenerated.
9232 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
9233 in some cases.
9234 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
9235 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
9236 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
9237 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
9238 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
9239 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
9240 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
9241 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
9242 * testsuite/libgomp.c-c++-common/for-10.c: New test.
9243 * testsuite/libgomp.c-c++-common/for-11.c: New test.
9244 * testsuite/libgomp.c-c++-common/for-12.c: New test.
9245 * testsuite/libgomp.c-c++-common/for-13.c: New test.
9246 * testsuite/libgomp.c-c++-common/for-14.c: New test.
9247 * testsuite/libgomp.c-c++-common/for-15.c: New test.
9248 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
9249 define a different N(test), don't define N(f0) to N(f14), but instead
9250 define N(f20) to N(f34) using != comparisons.
9251 * testsuite/libgomp.c-c++-common/for-7.c: New test.
9252 * testsuite/libgomp.c-c++-common/for-8.c: New test.
9253 * testsuite/libgomp.c-c++-common/for-9.c: New test.
9254 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
9255 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
9256 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
9257 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
9258 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
9259 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
9260 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
9261 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
9262 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
9263 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
9264 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
9265 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
9266 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
9267 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
9268 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
9269 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
9270 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
9271 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
9272 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
9273 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
9274 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
9275 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
9276 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
9277 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
9278 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
9279 * testsuite/libgomp.c++/depend-1.C: New test.
9280 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
9281 * testsuite/libgomp.c++/depobj-1.C: New test.
9282 * testsuite/libgomp.c++/for-16.C: New test.
9283 * testsuite/libgomp.c++/for-21.C: New test.
9284 * testsuite/libgomp.c++/for-22.C: New test.
9285 * testsuite/libgomp.c++/for-23.C: New test.
9286 * testsuite/libgomp.c++/for-24.C: New test.
9287 * testsuite/libgomp.c++/for-25.C: New test.
9288 * testsuite/libgomp.c++/for-26.C: New test.
9289 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
9290 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
9291 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
9292 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
9293 * testsuite/libgomp.c++/task-reduction-10.C: New test.
9294 * testsuite/libgomp.c++/task-reduction-11.C: New test.
9295 * testsuite/libgomp.c++/task-reduction-12.C: New test.
9296 * testsuite/libgomp.c++/task-reduction-13.C: New test.
9297 * testsuite/libgomp.c++/task-reduction-14.C: New test.
9298 * testsuite/libgomp.c++/task-reduction-15.C: New test.
9299 * testsuite/libgomp.c++/task-reduction-16.C: New test.
9300 * testsuite/libgomp.c++/task-reduction-17.C: New test.
9301 * testsuite/libgomp.c++/task-reduction-18.C: New test.
9302 * testsuite/libgomp.c++/task-reduction-19.C: New test.
9303 * testsuite/libgomp.c/task-reduction-1.c: New test.
9304 * testsuite/libgomp.c++/task-reduction-1.C: New test.
9305 * testsuite/libgomp.c/task-reduction-2.c: New test.
9306 * testsuite/libgomp.c++/task-reduction-2.C: New test.
9307 * testsuite/libgomp.c++/task-reduction-3.C: New test.
9308 * testsuite/libgomp.c++/task-reduction-4.C: New test.
9309 * testsuite/libgomp.c++/task-reduction-5.C: New test.
9310 * testsuite/libgomp.c++/task-reduction-6.C: New test.
9311 * testsuite/libgomp.c++/task-reduction-7.C: New test.
9312 * testsuite/libgomp.c++/task-reduction-8.C: New test.
9313 * testsuite/libgomp.c++/task-reduction-9.C: New test.
9314 * testsuite/libgomp.c/teams-1.c: New test.
9315 * testsuite/libgomp.c/teams-2.c: New test.
9316 * testsuite/libgomp.c/thread-limit-4.c: New test.
9317 * testsuite/libgomp.c/thread-limit-5.c: New test.
9318 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
9319
9320 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
9321
9322 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
9323 acc_memcpy_to/from_device functions, now with async parameter.
9324 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
9325 (acc_memcpy_from_device): Likewise.
9326 (acc_memcpy_to_device_async): New API function.
9327 (acc_memcpy_from_device_async): Likewise.
9328 (present_create_copy): Add async parameter and async setting/unsetting.
9329 (acc_create): Adjust present_create_copy call.
9330 (acc_copyin): Likewise.
9331 (acc_present_or_create): Likewise.
9332 (acc_present_or_copyin): Likewise.
9333 (acc_create_async): New API function.
9334 (acc_copyin_async): New API function.
9335 (delete_copyout): Add async parameter and async setting/unsetting.
9336 (acc_delete): Adjust delete_copyout call.
9337 (acc_copyout): Likewise.
9338 (acc_delete_async): New API function.
9339 (acc_copyout_async): Likewise.
9340 (update_dev_host): Add async parameter and async setting/unsetting.
9341 (acc_update_device): Adjust update_dev_host call.
9342 (acc_update_self): Likewise.
9343 (acc_update_device_async): New API function.
9344 (acc_update_self_async): Likewise.
9345 * openacc.h (acc_copyin_async): Declare new API function.
9346 (acc_create_async): Likewise.
9347 (acc_copyout_async): Likewise.
9348 (acc_delete_async): Likewise.
9349 (acc_update_device_async): Likewise.
9350 (acc_update_self_async): Likewise.
9351 (acc_memcpy_to_device_async): Likewise.
9352 (acc_memcpy_from_device_async): Likewise.
9353 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
9354 (acc_copyin_async_64_h): New subroutine.
9355 (acc_copyin_async_array_h): New subroutine.
9356 (acc_create_async_32_h): New subroutine.
9357 (acc_create_async_64_h): New subroutine.
9358 (acc_create_async_array_h): New subroutine.
9359 (acc_copyout_async_32_h): New subroutine.
9360 (acc_copyout_async_64_h): New subroutine.
9361 (acc_copyout_async_array_h): New subroutine.
9362 (acc_delete_async_32_h): New subroutine.
9363 (acc_delete_async_64_h): New subroutine.
9364 (acc_delete_async_array_h): New subroutine.
9365 (acc_update_device_async_32_h): New subroutine.
9366 (acc_update_device_async_64_h): New subroutine.
9367 (acc_update_device_async_array_h): New subroutine.
9368 (acc_update_self_async_32_h): New subroutine.
9369 (acc_update_self_async_64_h): New subroutine.
9370 (acc_update_self_async_array_h): New subroutine.
9371 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
9372 (acc_copyin_async_64_h): New subroutine.
9373 (acc_copyin_async_array_h): New subroutine.
9374 (acc_create_async_32_h): New subroutine.
9375 (acc_create_async_64_h): New subroutine.
9376 (acc_create_async_array_h): New subroutine.
9377 (acc_copyout_async_32_h): New subroutine.
9378 (acc_copyout_async_64_h): New subroutine.
9379 (acc_copyout_async_array_h): New subroutine.
9380 (acc_delete_async_32_h): New subroutine.
9381 (acc_delete_async_64_h): New subroutine.
9382 (acc_delete_async_array_h): New subroutine.
9383 (acc_update_device_async_32_h): New subroutine.
9384 (acc_update_device_async_64_h): New subroutine.
9385 (acc_update_device_async_array_h): New subroutine.
9386 (acc_update_self_async_32_h): New subroutine.
9387 (acc_update_self_async_64_h): New subroutine.
9388 (acc_update_self_async_array_h): New subroutine.
9389 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
9390 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
9391 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
9392 acc_memcpy_to_device_async*, acc_update_device_async*, and
9393 acc_update_self_async* entries.
9394 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
9395 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
9396 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
9397
9398 2018-10-31 Joseph Myers <joseph@codesourcery.com>
9399
9400 PR bootstrap/82856
9401 * Makefile.am: Include multilib.am
9402 (AUTOMAKE_OPTIONS): Add info-in-builddir.
9403 (CLEANFILES): Remove libgomp.info.
9404 * configure.ac: Remove AC_PREREQ.
9405 * testsuite/Makefile.am (RUNTEST): Remove quotes.
9406 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
9407 Regenerate.
9408
9409 2018-10-29 Joseph Myers <joseph@codesourcery.com>
9410 Julian Brown <julian@codesourcery.com>
9411
9412 * testsuite/libgomp.oacc-c++/this.C: New.
9413
9414 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
9415
9416 * plugin/plugin-nvptx.c (struct cuda_map): New.
9417 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
9418 h_tail with (cuda_map *) map.
9419 (cuda_map_create): New function.
9420 (cuda_map_destroy): New function.
9421 (map_init): Update to use a linked list of cuda_map objects.
9422 (map_fini): Likewise.
9423 (map_pop): Likewise.
9424 (map_push): Likewise. Return CUdeviceptr instead of void.
9425 (init_streams_for_device): Remove stales references to ptx_stream
9426 members.
9427 (select_stream_for_async): Likewise.
9428 (nvptx_exec): Update call to map_init.
9429
9430 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
9431 Julian Brown <julian@codesourcery.com>
9432
9433 PR middle-end/86336
9434 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
9435
9436 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
9437 Thomas Koenig <tkoenig@gcc.gnu.org>
9438
9439 PR fortran/25829
9440 * testsuite/libgomp.fortran/async_io_1.f90: New test.
9441 * testsuite/libgomp.fortran/async_io_2.f90: New test.
9442 * testsuite/libgomp.fortran/async_io_3.f90: New test.
9443 * testsuite/libgomp.fortran/async_io_4.f90: New test.
9444 * testsuite/libgomp.fortran/async_io_5.f90: New test.
9445 * testsuite/libgomp.fortran/async_io_6.f90: New test.
9446 * testsuite/libgomp.fortran/async_io_7.f90: New test.
9447
9448 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
9449 Tom de Vries <tdevries@suse.de>
9450
9451 PR target/85590
9452 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
9453 (cuOccupancyMaxPotentialBlockSize): Declare.
9454 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
9455 CUDA_ONE_CALL_MAYBE_NULL.
9456 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
9457 CUoccupancyB2DSize and declare
9458 cuOccupancyMaxPotentialBlockSize.
9459 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
9460 default num_gangs and num_workers when the driver supports it.
9461
9462 2018-08-08 Tom de Vries <tdevries@suse.de>
9463
9464 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
9465 CUDA_ONE_CALL_MAYBE_NULL.
9466 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
9467 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
9468 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
9469 are not found.
9470
9471 2018-08-08 Tom de Vries <tdevries@suse.de>
9472
9473 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
9474 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
9475 present.
9476
9477 2018-08-08 Tom de Vries <tdevries@suse.de>
9478
9479 * plugin/plugin-nvptx.c
9480 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
9481 (nvptx_open_device): Use
9482 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
9483
9484 2018-08-08 Tom de Vries <tdevries@suse.de>
9485
9486 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
9487 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
9488
9489 2018-08-07 Tom de Vries <tdevries@suse.de>
9490
9491 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
9492 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
9493 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
9494 corresponding call in CUDA_ONE_CALL. Add def/undef of
9495 CUDA_ONE_CALL_MAYBE_NULL.
9496 (CUDA_CALL_EXISTS): Define.
9497
9498 2018-08-07 Tom de Vries <tdevries@suse.de>
9499
9500 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
9501 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
9502 corresponding undefs right after.
9503
9504 2018-08-04 Tom de Vries <tdevries@suse.de>
9505
9506 * plugin/configfrag.ac: For --without-cuda-driver, set
9507 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
9508 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
9509 * configure: Regenerate.
9510
9511 2018-08-02 Tom de Vries <tdevries@suse.de>
9512
9513 PR target/86660
9514 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
9515 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
9516 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
9517 Same.
9518 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
9519 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
9520 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
9521
9522 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
9523 Thomas Schwinge <thomas@codesourcery.com>
9524
9525 * config/nvptx/oacc-parallel.c: Truncate.
9526
9527 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
9528 James Norris <jnorris@codesourcery.com>
9529
9530 * plugin/plugin-nvptx.c (struct map): Removed.
9531 (map_init, map_pop): Remove use of struct map.
9532 (map_push): Likewise and change argument list.
9533 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
9534
9535 2018-08-01 Tom de Vries <tdevries@suse.de>
9536
9537 * plugin/cuda-lib.def: New file. Factor out of ...
9538 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
9539 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
9540 using CUDA_CALLS.
9541
9542 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
9543
9544 Revert 'AsyncI/O patch committed'.
9545 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
9546 Thomas Koenig <tkoenig@gcc.gnu.org>
9547
9548 PR fortran/25829
9549 * testsuite/libgomp.fortran/async_io_1.f90: New test.
9550 * testsuite/libgomp.fortran/async_io_2.f90: New test.
9551 * testsuite/libgomp.fortran/async_io_3.f90: New test.
9552 * testsuite/libgomp.fortran/async_io_4.f90: New test.
9553 * testsuite/libgomp.fortran/async_io_5.f90: New test.
9554 * testsuite/libgomp.fortran/async_io_6.f90: New test.
9555 * testsuite/libgomp.fortran/async_io_7.f90: New test.
9556
9557 2018-07-30 Tom de Vries <tdevries@suse.de>
9558
9559 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
9560 (nvptx_exec): Ensure worker and vector default dims don't exceed
9561 targ_fn->max_threads_per_block.
9562
9563 2018-07-30 Tom de Vries <tdevries@suse.de>
9564
9565 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
9566 (nvptx_open_device): Init default_dims for device.
9567 (nvptx_exec): Use default_dims from device.
9568
9569 2018-07-26 Jakub Jelinek <jakub@redhat.com>
9570
9571 PR testsuite/86660
9572 * testsuite/libgomp.c++/for-15.C (results): Include it in
9573 omp declare target region.
9574 (main): Use map (always, tofrom: results) instead of
9575 map (tofrom: results).
9576
9577 PR middle-end/86660
9578 * testsuite/libgomp.c/pr86660.c: New test.
9579
9580 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
9581 Tom de Vries <tdevries@suse.de>
9582
9583 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
9584 sufficient resources to launch a kernel, and give a hint on how to fix
9585 it.
9586
9587 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
9588 Tom de Vries <tdevries@suse.de>
9589
9590 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
9591 max_threads_per_block and max_threads_per_multiprocessor fields.
9592 (nvptx_open_device): Initialize new fields.
9593 (nvptx_exec): Use num_sms, and new fields.
9594
9595 2018-07-26 Tom de Vries <tdevries@suse.de>
9596
9597 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
9598 to correct locations. Remove xfail.
9599
9600 2018-07-26 Tom de Vries <tdevries@suse.de>
9601
9602 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
9603 acc_wait. Move acc_async_test calls to correct locations. Remove
9604 xfail.
9605
9606 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
9607 Thomas Koenig <tkoenig@gcc.gnu.org>
9608
9609 PR fortran/25829
9610 * testsuite/libgomp.fortran/async_io_1.f90: New test.
9611 * testsuite/libgomp.fortran/async_io_2.f90: New test.
9612 * testsuite/libgomp.fortran/async_io_3.f90: New test.
9613 * testsuite/libgomp.fortran/async_io_4.f90: New test.
9614 * testsuite/libgomp.fortran/async_io_5.f90: New test.
9615 * testsuite/libgomp.fortran/async_io_6.f90: New test.
9616 * testsuite/libgomp.fortran/async_io_7.f90: New test.
9617
9618 2018-07-17 Jakub Jelinek <jakub@redhat.com>
9619
9620 PR middle-end/86542
9621 * testsuite/libgomp.c++/pr86542.C: New test.
9622
9623 PR middle-end/86539
9624 * testsuite/libgomp.c++/pr86539.C: New test.
9625
9626 2018-07-11 Jakub Jelinek <jakub@redhat.com>
9627
9628 PR c++/86443
9629 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
9630 (results): Make sure the variable is not inside declare target region.
9631 (qux): Remove unused function.
9632
9633 2018-07-10 Jakub Jelinek <jakub@redhat.com>
9634
9635 PR c++/86443
9636 * testsuite/libgomp.c++/for-15.C: New test.
9637
9638 2018-06-26 Jakub Jelinek <jakub@redhat.com>
9639
9640 PR c++/86291
9641 * testsuite/libgomp.c++/pr86291.C: New test.
9642
9643 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
9644
9645 * libgomp.texi (Top): Move www.openmp.org to https.
9646 (Enabling OpenMP): Ditto.
9647 (omp_get_active_level): Ditto.
9648 (omp_get_ancestor_thread_num): Ditto.
9649 (omp_get_cancellation): Ditto.
9650 (omp_get_default_device): Ditto.
9651 (omp_get_dynamic): Ditto.
9652 (omp_get_level): Ditto.
9653 (omp_get_max_active_levels): Ditto.
9654 (omp_get_max_task_priority): Ditto.
9655 (omp_get_max_threads): Ditto.
9656 (omp_get_nested): Ditto.
9657 (omp_get_num_devices): Ditto.
9658 (omp_get_num_procs): Ditto.
9659 (omp_get_num_teams): Ditto.
9660 (omp_get_num_threads): Ditto.
9661 (omp_get_proc_bind): Ditto.
9662 (omp_get_schedule): Ditto.
9663 (omp_get_team_num): Ditto.
9664 (omp_get_team_size): Ditto.
9665 (omp_get_thread_limit): Ditto.
9666 (omp_get_thread_num): Ditto.
9667 (omp_in_parallel): Ditto.
9668 (omp_in_final): Ditto.
9669 (omp_is_initial_device): Ditto.
9670 (omp_set_default_device): Ditto.
9671 (omp_set_dynamic): Ditto.
9672 (omp_set_max_active_levels): Ditto.
9673 (omp_set_nested): Ditto.
9674 (omp_set_num_threads): Ditto.
9675 (omp_set_schedule): Ditto.
9676 (omp_init_lock): Ditto.
9677 (omp_set_lock): Ditto.
9678 (omp_test_lock): Ditto.
9679 (omp_unset_lock): Ditto.
9680 (omp_destroy_lock): Ditto.
9681 (omp_init_nest_lock): Ditto.
9682 (omp_set_nest_lock): Ditto.
9683 (omp_test_nest_lock): Ditto.
9684 (omp_unset_nest_lock): Ditto.
9685 (omp_destroy_nest_lock): Ditto.
9686 (omp_get_wtick): Ditto.
9687 (omp_get_wtime): Ditto.
9688 (OMP_CANCELLATION): Ditto.
9689 (OMP_DISPLAY_ENV): Ditto.
9690 (OMP_DEFAULT_DEVICE): Ditto.
9691 (OMP_DYNAMIC): Ditto.
9692 (OMP_MAX_ACTIVE_LEVELS): Ditto.
9693 (OMP_MAX_TASK_PRIORITY): Ditto.
9694 (OMP_NESTED): Ditto.
9695 (OMP_NUM_THREADS): Ditto.
9696 (OMP_PROC_BIND): Ditto.
9697 (OMP_PLACES): Ditto.
9698 (OMP_STACKSIZE): Ditto.
9699 (OMP_SCHEDULE): Ditto.
9700 (OMP_THREAD_LIMIT): Ditto.
9701 (OMP_WAIT_POLICY): Ditto.
9702
9703 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
9704 James Norris <jnorris@codesourcery.com>
9705 Julian Brown <julian@codesourcery.com>
9706 Thomas Schwinge <thomas@codesourcery.com>
9707 Tom de Vries <tom@codesourcery.com>
9708
9709 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
9710 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
9711 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
9712 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
9713 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
9714 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
9715 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
9716 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
9717 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
9718 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
9719 Likewise.
9720 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
9721 Likewise.
9722 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
9723 Likewise.
9724 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
9725 Likewise.
9726 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
9727 Likewise.
9728 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
9729 Likewise.
9730 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
9731 Likewise.
9732 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
9733 Likewise.
9734 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
9735 Likewise.
9736 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
9737 Likewise.
9738 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
9739 Likewise.
9740 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
9741 Likewise.
9742 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
9743 Likewise.
9744 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
9745 Likewise.
9746 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
9747 Likewise.
9748 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
9749 Likewise.
9750 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
9751 Likewise.
9752 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
9753 Likewise.
9754 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
9755 Likewise.
9756 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
9757 Likewise.
9758 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
9759 Likewise.
9760 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
9761 Likewise.
9762 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
9763 Likewise.
9764 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
9765 Likewise.
9766 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
9767 Likewise.
9768 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
9769 Likewise.
9770 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
9771 Likewise.
9772 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
9773 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
9774 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
9775 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
9776 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
9777 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
9778 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
9779 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
9780 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
9781 Likewise.
9782 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
9783 Likewise.
9784 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
9785 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
9786 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
9787 Likewise.
9788 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
9789 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
9790 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
9791 Likewise.
9792 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
9793 Likewise.
9794 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
9795 Likewise.
9796 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
9797 Likewise.
9798 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
9799 Likewise.
9800 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
9801 Likewise.
9802 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
9803 Likewise.
9804 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
9805 Likewise.
9806 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
9807 Likewise.
9808 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
9809 Likewise.
9810 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
9811 Likewise.
9812 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
9813 Likewise.
9814 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
9815 Likewise.
9816 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
9817 Likewise.
9818 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
9819 Likewise.
9820 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
9821 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
9822 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
9823 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
9824 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
9825 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
9826 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
9827
9828 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
9829 Thomas Schwinge <thomas@codesourcery.com>
9830 Cesar Philippidis <cesar@codesourcery.com>
9831
9832 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
9833 (gomp_acc_remove_pointer): Update declaration.
9834 (gomp_acc_declare_allocate): Declare.
9835 (gomp_remove_var): Declare.
9836 * libgomp.map (OACC_2.5): Define.
9837 * oacc-mem.c (acc_map_data): Update refcount.
9838 (acc_unmap_data): Likewise.
9839 (present_create_copy): Likewise.
9840 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
9841 (acc_copyin): Likewise.
9842 (FLAG_FINALIZE): Define.
9843 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
9844 (acc_delete_finalize): New function.
9845 (acc_delete_finalize_async): New function.
9846 (acc_copyout_finalize): New function.
9847 (acc_copyout_finalize_async): New function.
9848 (gomp_acc_insert_pointer): Update refcounts.
9849 (gomp_acc_remove_pointer): Return if data is not present on the
9850 accelerator.
9851 * oacc-parallel.c (find_pset): Rename to find_pointer.
9852 (find_pointer): Add support for GOMP_MAP_POINTER.
9853 (handle_ftn_pointers): New function.
9854 (GOACC_parallel_keyed): Update refcounts of variables.
9855 (GOACC_enter_exit_data): Add support for finalized data mappings.
9856 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
9857 of fortran arrays.
9858 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
9859 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
9860 for GOMP_MAP_FORCE_FROM.
9861 * openacc.f90 (module openacc_internal): Add
9862 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
9863 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
9864 acc_copyout_finalize and acc_delete_finalize.
9865 (acc_copyout_finalize_32_h): New subroutine.
9866 (acc_copyout_finalize_64_h): New subroutine.
9867 (acc_copyout_finalize_array_h): New subroutine.
9868 (acc_delete_finalize_32_h): New subroutine.
9869 (acc_delete_finalize_64_h): New subroutine.
9870 (acc_delete_finalize_array_h): New subroutine.
9871 * openacc.h (acc_copyout_finalize): Declare.
9872 (acc_copyout_finalize_async): Declare.
9873 (acc_delete_finalize): Declare.
9874 (acc_delete_finalize_async): Declare.
9875 * openacc_lib.h (acc_copyout_finalize): New interface.
9876 (acc_delete_finalize): New interface.
9877 * target.c (gomp_map_vars): Update dynamic_refcount.
9878 (gomp_remove_var): New function.
9879 (gomp_unmap_vars): Use it.
9880 (gomp_unload_image_from_device): Likewise.
9881 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
9882 case to utilize OpenACC 2.5 data clause semantics.
9883 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
9884 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
9885 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
9886 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
9887 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
9888 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
9889 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
9890 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
9891 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
9892 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
9893 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
9894 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
9895 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
9896 utilize OpenACC 2.5 data clause semantics.
9897 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
9898 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
9899 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
9900 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
9901 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
9902 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
9903 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
9904 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
9905 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
9906
9907 2018-05-21 Janus Weil <janus@gcc.gnu.org>
9908
9909 PR fortran/85841
9910 PR testsuite/85865
9911 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
9912 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
9913 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
9914 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
9915 * testsuite/libgomp.fortran/task2.f90: Ditto.
9916 * testsuite/libgomp.fortran/vla1.f90: Ditto.
9917 * testsuite/libgomp.fortran/vla2.f90: Ditto.
9918 * testsuite/libgomp.fortran/vla3.f90: Ditto.
9919 * testsuite/libgomp.fortran/vla4.f90: Ditto.
9920 * testsuite/libgomp.fortran/vla5.f90: Ditto.
9921 * testsuite/libgomp.fortran/vla6.f90: Ditto.
9922 * testsuite/libgomp.fortran/vla8.f90: Ditto.
9923 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
9924 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
9925
9926 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
9927
9928 PR c++/85782
9929 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
9930
9931 2018-05-09 Tom de Vries <tom@codesourcery.com>
9932
9933 PR libgomp/82901
9934 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
9935 to GOACC_enter_exit_data.
9936
9937 2018-05-09 Tom de Vries <tom@codesourcery.com>
9938
9939 PR libgomp/83792
9940 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
9941 (async_synchronous_p): New function.
9942 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
9943 async_valid_p.
9944 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
9945 async_valid_stream_id_p.
9946 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
9947 * oacc-parallel.c (GOACC_parallel_keyed): Same.
9948
9949 2018-05-07 Tom de Vries <tom@codesourcery.com>
9950
9951 PR testsuite/85677
9952 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
9953 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
9954
9955 2018-05-03 Tom de Vries <tom@codesourcery.com>
9956
9957 PR testsuite/85106
9958 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
9959 extra_tool_flags if it contains an -foffload=-fdump-* flag.
9960 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
9961 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
9962
9963 2018-05-02 Tom de Vries <tom@codesourcery.com>
9964
9965 PR libgomp/85411
9966 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
9967 GOMP_OPENACC_DIM ...
9968 * env.c (parse_gomp_openacc_dim): ... here. New function.
9969 (initialize_env): Call parse_gomp_openacc_dim.
9970 (goacc_default_dims): Define.
9971 * libgomp.h (goacc_default_dims): Declare.
9972 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
9973 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
9974 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
9975 GOMP_PLUGIN_acc_default_dim.
9976 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
9977 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
9978
9979 2018-05-02 Tom de Vries <tom@codesourcery.com>
9980
9981 PR testsuite/83791
9982 * testsuite/libgomp.c++/udr-9.C: Update.
9983 * testsuite/libgomp.c++/atomic-16.C: Remove.
9984 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
9985 * testsuite/libgomp.c++/loop-13.C: Remove.
9986 * testsuite/libgomp.c++/loop-14.C: Remove.
9987 * testsuite/libgomp.c++/loop-15.C: Remove.
9988 * testsuite/libgomp.c++/monotonic-1.C: Remove.
9989 * testsuite/libgomp.c++/monotonic-2.C: Remove.
9990 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
9991 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
9992 * testsuite/libgomp.c++/ordered-1.C: Remove.
9993 * testsuite/libgomp.c++/pr45784.C: Remove.
9994 * testsuite/libgomp.c++/pr64824.C: Remove.
9995 * testsuite/libgomp.c++/pr64868.C: Remove.
9996 * testsuite/libgomp.c++/pr66199-1.C: Remove.
9997 * testsuite/libgomp.c++/pr66199-2.C: Remove.
9998 * testsuite/libgomp.c++/pr66199-3.C: Remove.
9999 * testsuite/libgomp.c++/pr66199-4.C: Remove.
10000 * testsuite/libgomp.c++/pr66199-5.C: Remove.
10001 * testsuite/libgomp.c++/pr66199-6.C: Remove.
10002 * testsuite/libgomp.c++/pr66199-7.C: Remove.
10003 * testsuite/libgomp.c++/pr66199-8.C: Remove.
10004 * testsuite/libgomp.c++/pr66199-9.C: Remove.
10005 * testsuite/libgomp.c++/pr69389.C: Remove.
10006 * testsuite/libgomp.c++/simd10.C: Remove.
10007 * testsuite/libgomp.c++/simd11.C: Remove.
10008 * testsuite/libgomp.c++/simd12.C: Remove.
10009 * testsuite/libgomp.c++/simd13.C: Remove.
10010 * testsuite/libgomp.c++/target-1.C: Remove.
10011 * testsuite/libgomp.c++/target-3.C: Remove.
10012 * testsuite/libgomp.c++/target-4.C: Remove.
10013 * testsuite/libgomp.c++/target-5.C: Remove.
10014 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
10015 * testsuite/libgomp.c++/taskloop-1.C: Remove.
10016 * testsuite/libgomp.c++/taskloop-2.C: Remove.
10017 * testsuite/libgomp.c++/taskloop-3.C: Remove.
10018 * testsuite/libgomp.c++/taskloop-4.C: Remove.
10019 * testsuite/libgomp.c++/udr-9.C: Remove.
10020 * testsuite/libgomp.c++/for-10.C: Remove.
10021 * testsuite/libgomp.c++/for-11.C: Remove.
10022 * testsuite/libgomp.c++/for-12.C: Remove.
10023 * testsuite/libgomp.c++/for-13.C: Remove.
10024 * testsuite/libgomp.c++/for-14.C: Remove.
10025 * testsuite/libgomp.c++/for-9.C: Remove.
10026 * testsuite/libgomp.c/atomic-18.c: Move ...
10027 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
10028 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
10029 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
10030 * testsuite/libgomp.c/loop-13.c: Move ...
10031 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
10032 * testsuite/libgomp.c/loop-14.c: Move ...
10033 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
10034 * testsuite/libgomp.c/loop-15.c: Remove.
10035 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
10036 * testsuite/libgomp.c/monotonic-1.c: Move ...
10037 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
10038 * testsuite/libgomp.c/monotonic-2.c: Move ...
10039 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
10040 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
10041 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
10042 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
10043 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
10044 * testsuite/libgomp.c/ordered-4.c: Move ...
10045 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
10046 * testsuite/libgomp.c/pr45784.c: Move ...
10047 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
10048 * testsuite/libgomp.c/pr64824.c: Move ...
10049 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
10050 * testsuite/libgomp.c/pr64868.c: Move ...
10051 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
10052 * testsuite/libgomp.c/pr66199-1.c: Move ...
10053 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
10054 * testsuite/libgomp.c/pr66199-2.c: Move ...
10055 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
10056 * testsuite/libgomp.c/pr66199-3.c: Move ...
10057 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
10058 * testsuite/libgomp.c/pr66199-4.c: Move ...
10059 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
10060 * testsuite/libgomp.c/pr66199-5.c: Move ...
10061 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
10062 * testsuite/libgomp.c/pr66199-6.c: Move ...
10063 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
10064 * testsuite/libgomp.c/pr66199-7.c: Move ...
10065 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
10066 * testsuite/libgomp.c/pr66199-8.c: Move ...
10067 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
10068 * testsuite/libgomp.c/pr66199-9.c: Move ...
10069 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
10070 * testsuite/libgomp.c/pr69389.c: Move ...
10071 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
10072 * testsuite/libgomp.c/simd-14.c: Move ...
10073 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
10074 * testsuite/libgomp.c/simd-15.c: Move ...
10075 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
10076 * testsuite/libgomp.c/simd-16.c: Move ...
10077 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
10078 * testsuite/libgomp.c/simd-17.c: Move ...
10079 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
10080 * testsuite/libgomp.c/target-1.c: Move ...
10081 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
10082 * testsuite/libgomp.c/target-10.c: Move ...
10083 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
10084 * testsuite/libgomp.c/target-13.c: Move ...
10085 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
10086 * testsuite/libgomp.c/target-2.c: Move ...
10087 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
10088 * testsuite/libgomp.c/taskgroup-1.c: Move ...
10089 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
10090 * testsuite/libgomp.c/taskloop-1.c: Move ...
10091 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
10092 * testsuite/libgomp.c/taskloop-2.c: Move ...
10093 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
10094 * testsuite/libgomp.c/taskloop-3.c: Move ...
10095 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
10096 * testsuite/libgomp.c/taskloop-4.c: Move ...
10097 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
10098 * testsuite/libgomp.c/udr-1.c: Move ...
10099 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
10100 * testsuite/libgomp.c/for-1.c: Move ...
10101 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
10102 * testsuite/libgomp.c/for-1.h: Move ...
10103 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
10104 * testsuite/libgomp.c/for-2.c: Move ...
10105 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
10106 * testsuite/libgomp.c/for-2.h: Move ...
10107 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
10108 * testsuite/libgomp.c/for-3.c: Move ...
10109 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
10110 * testsuite/libgomp.c/for-4.c: Move ...
10111 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
10112 * testsuite/libgomp.c/for-5.c: Move ...
10113 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
10114 * testsuite/libgomp.c/for-6.c: Move ...
10115 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
10116
10117 2018-05-02 Tom de Vries <tom@codesourcery.com>
10118
10119 PR libgomp/82428
10120 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
10121 __builtin_goacc_parlevel_{id,size}.
10122 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
10123 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
10124 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
10125 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
10126 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
10127 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
10128 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
10129 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
10130 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
10131 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
10132 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
10133 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
10134 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
10135 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
10136 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
10137 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
10138 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
10139 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
10140 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
10141 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
10142 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
10143 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
10144 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
10145
10146 2018-05-02 Tom de Vries <tom@codesourcery.com>
10147
10148 PR testsuite/85106
10149 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
10150
10151 2018-05-02 Tom de Vries <tom@codesourcery.com>
10152
10153 PR testsuite/85106
10154 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
10155
10156 2018-04-29 Julian Brown <julian@codesourcery.com>
10157 Tom de Vries <tom@codesourcery.com>
10158
10159 PR testsuite/85527
10160 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
10161 arbitrary order for iterations of atomic subtract check.
10162
10163 2018-04-28 Tom de Vries <tom@codesourcery.com>
10164
10165 PR testsuite/85527
10166 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
10167 atomic capture results obtained in parallel loop to an array, instead of
10168 to a scalar.
10169
10170 2018-04-26 Tom de Vries <tom@codesourcery.com>
10171
10172 PR libgomp/84020
10173 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
10174 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
10175 (process_GOMP_NVPTX_JIT): New function.
10176 (link_ptx): Use process_GOMP_NVPTX_JIT.
10177
10178 2018-04-26 Richard Biener <rguenther@suse.de>
10179 Tom de Vries <tom@codesourcery.com>
10180
10181 PR lto/85422
10182 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
10183
10184 2018-04-26 Tom de Vries <tom@codesourcery.com>
10185
10186 PR target/85519
10187 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
10188 recursion depth from 25 to 23.
10189 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
10190
10191 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
10192
10193 * configure: Regenerated.
10194
10195 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
10196 Tom de Vries <tom@codesourcery.com>
10197
10198 PR target/85445
10199 * testsuite/libgomp.oacc-c++/ref-1.C: New.
10200
10201 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
10202
10203 PR libgomp/85463
10204 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
10205 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
10206 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
10207 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
10208 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
10209 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
10210
10211 PR libfortran/85166
10212 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
10213 abort".
10214 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
10215
10216 2018-04-19 Jakub Jelinek <jakub@redhat.com>
10217
10218 * configure: Regenerated.
10219
10220 2018-04-18 David Malcolm <dmalcolm@redhat.com>
10221
10222 PR jit/85384
10223 * configure: Regenerate.
10224
10225 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
10226 Tom de Vries <tom@codesourcery.com>
10227
10228 PR middle-end/84955
10229 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
10230 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
10231
10232 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
10233
10234 PR fortran/83064
10235 PR testsuite/85346
10236 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
10237 test from gfortran.dg to here.
10238
10239 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
10240
10241 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
10242 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
10243
10244 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
10245
10246 PR middle-end/84955
10247 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
10248 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
10249
10250 2018-04-05 Tom de Vries <tom@codesourcery.com>
10251
10252 PR target/85204
10253 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
10254
10255 2018-03-26 Tom de Vries <tom@codesourcery.com>
10256
10257 PR tree-optimization/85063
10258 * testsuite/libgomp.c/switch-conversion-2.c: New test.
10259 * testsuite/libgomp.c/switch-conversion.c: New test.
10260 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
10261 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
10262
10263 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
10264
10265 PR fortran/84381
10266 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
10267 call abort by STOP n.
10268 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
10269 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
10270 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
10271 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
10272 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
10273 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
10274 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
10275 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
10276 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
10277 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
10278 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
10279 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
10280 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
10281 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
10282 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
10283 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
10284 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
10285 * testsuite/libgomp.fortran/associate1.f90: Likewise.
10286 * testsuite/libgomp.fortran/associate2.f90: Likewise.
10287 * testsuite/libgomp.fortran/associate3.f90: Likewise.
10288 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
10289 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
10290 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
10291 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
10292 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
10293 * testsuite/libgomp.fortran/character1.f90: Likewise.
10294 * testsuite/libgomp.fortran/character2.f90: Likewise.
10295 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
10296 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
10297 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
10298 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
10299 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
10300 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
10301 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
10302 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
10303 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
10304 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
10305 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
10306 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
10307 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
10308 * testsuite/libgomp.fortran/do1.f90: Likewise.
10309 * testsuite/libgomp.fortran/do2.f90: Likewise.
10310 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
10311 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
10312 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
10313 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
10314 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
10315 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
10316 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
10317 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
10318 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
10319 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
10320 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
10321 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
10322 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
10323 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
10324 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
10325 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
10326 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
10327 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
10328 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
10329 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
10330 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
10331 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
10332 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
10333 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
10334 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
10335 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
10336 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
10337 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
10338 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
10339 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
10340 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
10341 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
10342 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
10343 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
10344 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
10345 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
10346 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
10347 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
10348 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
10349 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
10350 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
10351 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
10352 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
10353 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
10354 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
10355 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
10356 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
10357 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
10358 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
10359 * testsuite/libgomp.fortran/lib1.f90: Likewise.
10360 * testsuite/libgomp.fortran/lib2.f: Likewise.
10361 * testsuite/libgomp.fortran/lib3.f: Likewise.
10362 * testsuite/libgomp.fortran/lib4.f90: Likewise.
10363 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
10364 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
10365 * testsuite/libgomp.fortran/nested1.f90: Likewise.
10366 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
10367 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
10368 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
10369 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
10370 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
10371 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
10372 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
10373 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
10374 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
10375 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
10376 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
10377 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
10378 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
10379 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
10380 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
10381 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
10382 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
10383 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
10384 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
10385 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
10386 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
10387 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
10388 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
10389 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
10390 * testsuite/libgomp.fortran/pr25162.f: Likewise.
10391 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
10392 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
10393 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
10394 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
10395 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
10396 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
10397 * testsuite/libgomp.fortran/pr28390.f: Likewise.
10398 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
10399 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
10400 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
10401 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
10402 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
10403 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
10404 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
10405 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
10406 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
10407 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
10408 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
10409 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
10410 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
10411 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
10412 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
10413 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
10414 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
10415 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
10416 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
10417 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
10418 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
10419 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
10420 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
10421 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
10422 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
10423 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
10424 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
10425 * testsuite/libgomp.fortran/reference1.f90: Likewise.
10426 * testsuite/libgomp.fortran/reference2.f90: Likewise.
10427 * testsuite/libgomp.fortran/retval1.f90: Likewise.
10428 * testsuite/libgomp.fortran/retval2.f90: Likewise.
10429 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
10430 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
10431 * testsuite/libgomp.fortran/simd1.f90: Likewise.
10432 * testsuite/libgomp.fortran/simd2.f90: Likewise.
10433 * testsuite/libgomp.fortran/simd3.f90: Likewise.
10434 * testsuite/libgomp.fortran/simd4.f90: Likewise.
10435 * testsuite/libgomp.fortran/simd5.f90: Likewise.
10436 * testsuite/libgomp.fortran/simd6.f90: Likewise.
10437 * testsuite/libgomp.fortran/simd7.f90: Likewise.
10438 * testsuite/libgomp.fortran/stack.f90: Likewise.
10439 * testsuite/libgomp.fortran/strassen.f90: Likewise.
10440 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
10441 * testsuite/libgomp.fortran/tabs2.f: Likewise.
10442 * testsuite/libgomp.fortran/target1.f90: Likewise.
10443 * testsuite/libgomp.fortran/target2.f90: Likewise.
10444 * testsuite/libgomp.fortran/target3.f90: Likewise.
10445 * testsuite/libgomp.fortran/target4.f90: Likewise.
10446 * testsuite/libgomp.fortran/target5.f90: Likewise.
10447 * testsuite/libgomp.fortran/target6.f90: Likewise.
10448 * testsuite/libgomp.fortran/target7.f90: Likewise.
10449 * testsuite/libgomp.fortran/target8.f90: Likewise.
10450 * testsuite/libgomp.fortran/task1.f90: Likewise.
10451 * testsuite/libgomp.fortran/task2.f90: Likewise.
10452 * testsuite/libgomp.fortran/task3.f90: Likewise.
10453 * testsuite/libgomp.fortran/task4.f90: Likewise.
10454 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
10455 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
10456 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
10457 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
10458 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
10459 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
10460 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
10461 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
10462 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
10463 * testsuite/libgomp.fortran/udr1.f90: Likewise.
10464 * testsuite/libgomp.fortran/udr10.f90: Likewise.
10465 * testsuite/libgomp.fortran/udr11.f90: Likewise.
10466 * testsuite/libgomp.fortran/udr12.f90: Likewise.
10467 * testsuite/libgomp.fortran/udr13.f90: Likewise.
10468 * testsuite/libgomp.fortran/udr14.f90: Likewise.
10469 * testsuite/libgomp.fortran/udr15.f90: Likewise.
10470 * testsuite/libgomp.fortran/udr2.f90: Likewise.
10471 * testsuite/libgomp.fortran/udr3.f90: Likewise.
10472 * testsuite/libgomp.fortran/udr4.f90: Likewise.
10473 * testsuite/libgomp.fortran/udr5.f90: Likewise.
10474 * testsuite/libgomp.fortran/udr6.f90: Likewise.
10475 * testsuite/libgomp.fortran/udr7.f90: Likewise.
10476 * testsuite/libgomp.fortran/udr8.f90: Likewise.
10477 * testsuite/libgomp.fortran/udr9.f90: Likewise.
10478 * testsuite/libgomp.fortran/vla1.f90: Likewise.
10479 * testsuite/libgomp.fortran/vla2.f90: Likewise.
10480 * testsuite/libgomp.fortran/vla3.f90: Likewise.
10481 * testsuite/libgomp.fortran/vla4.f90: Likewise.
10482 * testsuite/libgomp.fortran/vla5.f90: Likewise.
10483 * testsuite/libgomp.fortran/vla6.f90: Likewise.
10484 * testsuite/libgomp.fortran/vla7.f90: Likewise.
10485 * testsuite/libgomp.fortran/vla8.f90: Likewise.
10486 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
10487 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
10488 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
10489 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
10490 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
10491 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
10492 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
10493 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
10494 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
10495 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
10496 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
10497 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
10498 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
10499 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
10500 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
10501 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
10502 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
10503 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
10504 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
10505 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
10506 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
10507 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
10508 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
10509 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
10510 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
10511 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
10512 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
10513 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
10514 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
10515 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
10516 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
10517 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
10518 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
10519 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
10520 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
10521 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
10522 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
10523 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
10524 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
10525 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
10526 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
10527 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
10528 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
10529 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
10530 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
10531 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
10532 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
10533 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
10534 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
10535 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
10536 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
10537 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
10538 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
10539 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
10540 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
10541 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
10542 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
10543 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
10544 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
10545 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
10546 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
10547 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
10548 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
10549 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
10550 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
10551 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
10552 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
10553 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
10554 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
10555 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
10556 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
10557 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
10558 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
10559 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
10560 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
10561 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
10562 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
10563 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
10564 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
10565 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
10566 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
10567 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
10568 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
10569 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
10570 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
10571 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
10572 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
10573 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
10574 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
10575 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
10576 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
10577 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
10578 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
10579 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
10580
10581 2018-03-20 Richard Biener <rguenther@suse.de>
10582
10583 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
10584 parallelizable loop.
10585
10586 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
10587
10588 PR target/84148
10589 * configure: Regenerate.
10590
10591 2018-02-16 Jakub Jelinek <jakub@redhat.com>
10592
10593 PR fortran/84418
10594 * libgomp.fortran/pr84418-1.f90: New test.
10595 * libgomp.fortran/pr84418-2.f90: New test.
10596
10597 2018-02-14 Jakub Jelinek <jakub@redhat.com>
10598
10599 PR fortran/84313
10600 * testsuite/libgomp.fortran/threadprivate4.f90: Add
10601 -std=f2003 -fall-intrinsics into dg-additional-options.
10602
10603 2018-02-08 Martin Jambor <mjambor@suse.cz>
10604
10605 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
10606 clonable.
10607
10608 2018-02-08 Martin Jambor <mjambor@suse.cz>
10609
10610 * testsuite/libgomp.hsa.c/staticvar.c: New test.
10611
10612 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10613
10614 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
10615 [__cplusplus]: Declare extern "C".
10616
10617 2018-02-07 Tom de Vries <tom@codesourcery.com>
10618
10619 PR libgomp/84217
10620 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
10621
10622 2018-01-29 Christoph Spiel <cspiel@freenet.de>
10623 Jakub Jelinek <jakub@redhat.com>
10624
10625 PR libgomp/84096
10626 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
10627 instead of omp_lock_t.
10628
10629 2018-01-25 Tom de Vries <tom@codesourcery.com>
10630
10631 PR target/84028
10632 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
10633
10634 2018-01-24 Tom de Vries <tom@codesourcery.com>
10635
10636 PR target/83589
10637 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
10638
10639 2018-01-24 Tom de Vries <tom@codesourcery.com>
10640
10641 PR target/81352
10642 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
10643
10644 2018-01-19 Tom de Vries <tom@codesourcery.com>
10645 Cesar Philippidis <cesar@codesourcery.com>
10646
10647 PR target/83920
10648 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
10649 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
10650
10651 2018-01-03 Jakub Jelinek <jakub@redhat.com>
10652
10653 Update copyright years.
10654
10655 * libgomp.texi: Bump @copying's copyright year.
10656
10657 2017-12-30 Tom de Vries <tom@codesourcery.com>
10658
10659 PR libgomp/83046
10660 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
10661 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
10662
10663 2017-12-27 Tom de Vries <tom@codesourcery.com>
10664
10665 PR c++/83046
10666 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
10667 (test_nonstatic): Fix return type to workaround PR83046.
10668
10669 2017-12-05 Jakub Jelinek <jakub@redhat.com>
10670
10671 PR testsuite/83281
10672 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
10673 j suffix instead of i.
10674 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
10675 Likewise.
10676
10677 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
10678
10679 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
10680 call to acc_wait (1).
10681
10682 2017-11-24 Jakub Jelinek <jakub@redhat.com>
10683
10684 PR fortran/81304
10685 * testsuite/libgomp.fortran/pr81304.f90: New test.
10686
10687 2017-11-23 Jakub Jelinek <jakub@redhat.com>
10688
10689 PR fortran/81841
10690 * libgomp.fortran/pr81841.f90: New test.
10691
10692 2017-11-22 Jakub Jelinek <jakub@redhat.com>
10693
10694 PR libgomp/83106
10695 * target.c (gomp_target_init): Compute lengths just once and
10696 use them in both malloc size and subsequent copying.
10697
10698 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
10699
10700 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
10701 * acinclude.m4: Add cet.m4.
10702 * configure: Regenerate.
10703 * Makefile.in: Likewise.
10704 * testsuite/Makefile.in: Likewise.
10705
10706 2017-11-15 Tom de Vries <tom@codesourcery.com>
10707
10708 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
10709 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
10710 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
10711 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
10712 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
10713 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
10714
10715 2017-11-14 Tom de Vries <tom@codesourcery.com>
10716
10717 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
10718 non-nvidia devices.
10719
10720 2017-11-07 Jakub Jelinek <jakub@redhat.com>
10721
10722 PR c++/82835
10723 * testsuite/libgomp.c++/pr82835.C: New test.
10724
10725 2017-11-06 Martin Liska <mliska@suse.cz>
10726
10727 * testsuite/libgomp.c++/loop-2.C: Return a value
10728 for functions with non-void return type, or change type to void,
10729 or add -Wno-return-type for test.
10730 * testsuite/libgomp.c++/loop-4.C: Likewise.
10731 * testsuite/libgomp.c++/parallel-1.C: Likewise.
10732 * testsuite/libgomp.c++/shared-1.C: Likewise.
10733 * testsuite/libgomp.c++/single-1.C: Likewise.
10734 * testsuite/libgomp.c++/single-2.C: Likewise.
10735
10736 2017-10-31 Tom de Vries <tom@codesourcery.com>
10737
10738 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
10739 "do {} while (false)".
10740 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
10741 after HSA_DEBUG call.
10742
10743 2017-10-28 Jakub Jelinek <jakub@redhat.com>
10744
10745 * target.c (struct gomp_coalesce_buf): New type.
10746 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
10747 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
10748 (gomp_copy_host2dev): Add CBUF argument, if copying into
10749 the cached ranges, memcpy into buffer instead of copying
10750 into device.
10751 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
10752 Add CBUF argument, pass it through to other calls.
10753 (gomp_map_vars): Aggregate copies from host to device if small enough
10754 and with small enough gaps in between into memcpy into a buffer and
10755 fewer host to device copies from the buffer.
10756 (gomp_update): Adjust gomp_copy_host2dev caller.
10757
10758 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
10759
10760 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
10761 run" directive.
10762 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
10763 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
10764 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
10765 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
10766
10767 2017-10-16 Tom de Vries <tom@codesourcery.com>
10768
10769 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
10770 openacc_nvidia_accel_selected.
10771 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
10772 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
10773 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
10774 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
10775 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
10776 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
10777 openacc_nvidia_accel_selected. Skip for shared memory device.
10778 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
10779 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
10780
10781 2017-10-09 Martin Jambor <mjambor@suse.cz>
10782
10783 PR hsa/82416
10784 * testsuite/libgomp.hsa.c/pr82416.c: New test.
10785
10786 2017-10-07 Tom de Vries <tom@codesourcery.com>
10787
10788 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
10789 Remove acc_device_nvidia references.
10790 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
10791 Same.
10792
10793 2017-10-05 Tom de Vries <tom@codesourcery.com>
10794
10795 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
10796 vector_length(32) clause from acc parallel directive.
10797 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
10798
10799 2017-10-04 Tom de Vries <tom@codesourcery.com>
10800
10801 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
10802 (main): Reduce sum of arr elements. Assert that hres is exactly
10803 representable in 32-bit floating point.
10804 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
10805 (main): Reduce sum of arr elements. Assert that hres and hmres are
10806 exactly representable in 32-bit floating point.
10807 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
10808
10809 2017-09-28 Tom de Vries <tom@codesourcery.com>
10810
10811 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
10812 setting.
10813 * testsuite/libgomp.c++/pr69393.C: Same.
10814 * testsuite/libgomp.c++/taskloop-1.C: Same.
10815 * testsuite/libgomp.c++/taskloop-3.C: Same.
10816 * testsuite/libgomp.c++/taskloop-4.C: Same.
10817 * testsuite/libgomp.c/for-4.c: Same.
10818 * testsuite/libgomp.c/pr66199-3.c: Same.
10819 * testsuite/libgomp.c/pr66199-4.c: Same.
10820 * testsuite/libgomp.c/pr66199-6.c: Same.
10821 * testsuite/libgomp.c/taskloop-1.c: Same.
10822 * testsuite/libgomp.c/taskloop-3.c: Same.
10823 * testsuite/libgomp.c/taskloop-4.c: Same.
10824 * testsuite/libgomp.fortran/aligned1.f03: Same.
10825 * testsuite/libgomp.fortran/condinc1.f: Same.
10826 * testsuite/libgomp.fortran/condinc3.f90: Same.
10827 * testsuite/libgomp.fortran/crayptr1.f90: Same.
10828 * testsuite/libgomp.fortran/crayptr2.f90: Same.
10829 * testsuite/libgomp.fortran/crayptr3.f90: Same.
10830 * testsuite/libgomp.fortran/omp_cond1.f: Same.
10831 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
10832 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
10833 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
10834 * testsuite/libgomp.fortran/recursion1.f90: Same.
10835 * testsuite/libgomp.fortran/target2.f90: Same.
10836 * testsuite/libgomp.fortran/target5.f90: Same.
10837 * testsuite/libgomp.fortran/task3.f90: Same.
10838
10839 2017-09-28 Tom de Vries <tom@codesourcery.com>
10840
10841 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
10842 vector_length(32) clause from acc parallel directive.
10843 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
10844
10845 2017-09-27 Tom de Vries <tom@codesourcery.com>
10846
10847 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
10848 Remove acc_device_nvidia references.
10849
10850 2017-09-16 Tom de Vries <tom@codesourcery.com>
10851
10852 PR c/81875
10853 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
10854
10855 2017-09-14 Tom de Vries <tom@codesourcery.com>
10856
10857 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
10858 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
10859 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
10860 * testsuite/libgomp.c/c.exp: Include test-cases from
10861 libgomp.c-c++-common.
10862 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
10863 files.
10864
10865 2017-09-14 Jakub Jelinek <jakub@redhat.com>
10866
10867 PR c++/81314
10868 * testsuite/libgomp.c++/pr81314.C: New test.
10869
10870 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
10871
10872 * libgomp.texi (Top): www.openacc.org now uses https.
10873 (Enabling OpenACC): Ditto.
10874 (acc_get_num_devices): Ditto.
10875 (acc_set_device_type): Ditto.
10876 (acc_get_device_type): Ditto.
10877 (acc_set_device_num): Ditto.
10878 (acc_get_device_num): Ditto.
10879 (acc_async_test): Ditto.
10880 (acc_async_test_all): Ditto.
10881 (acc_wait): Ditto.
10882 (acc_wait_all): Ditto.
10883 (acc_wait_all_async): Ditto.
10884 (acc_wait_async): Ditto.
10885 (acc_init): Ditto.
10886 (acc_shutdown): Ditto.
10887 (acc_on_device): Ditto.
10888 (acc_malloc): Ditto.
10889 (acc_free): Ditto.
10890 (acc_copyin): Ditto.
10891 (acc_present_or_copyin): Ditto.
10892 (acc_create): Ditto.
10893 (acc_present_or_create): Ditto.
10894 (acc_copyout): Ditto.
10895 (acc_delete): Ditto.
10896 (acc_update_device): Ditto.
10897 (acc_update_self): Ditto.
10898 (acc_map_data): Ditto.
10899 (acc_unmap_data): Ditto.
10900 (acc_deviceptr): Ditto.
10901 (acc_hostptr): Ditto.
10902 (acc_is_present): Ditto.
10903 (acc_memcpy_to_device): Ditto.
10904 (acc_memcpy_from_device): Ditto.
10905 (acc_get_current_cuda_device): Ditto.
10906 (acc_get_current_cuda_context): Ditto.
10907 (acc_get_cuda_stream): Ditto.
10908 (acc_set_cuda_stream): Ditto.
10909 (ACC_DEVICE_TYPE): Ditto.
10910 (ACC_DEVICE_NUM): Ditto.
10911 (OpenACC Library Interoperability): Ditto.
10912
10913 2017-08-09 Jakub Jelinek <jakub@redhat.com>
10914
10915 PR c/81687
10916 * testsuite/libgomp.c/pr81687-1.c: New test.
10917 * testsuite/libgomp.c/pr81687-2.c: New test.
10918
10919 2017-08-07 Jakub Jelinek <jakub@redhat.com>
10920
10921 PR c/69389
10922 * testsuite/libgomp.c/pr69389.c: New test.
10923 * testsuite/libgomp.c++/pr69389.C: New test.
10924
10925 2017-08-07 Tom de Vries <tom@codesourcery.com>
10926
10927 PR middle-end/78266
10928 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
10929 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
10930
10931 2017-07-27 Jakub Jelinek <jakub@redhat.com>
10932
10933 PR c/45784
10934 * testsuite/libgomp.c/pr45784.c: New test.
10935 * testsuite/libgomp.c++/pr45784.C: New test.
10936
10937 2017-07-19 Tom de Vries <tom@codesourcery.com>
10938
10939 * testsuite/libgomp.oacc-c/vec.c: New test.
10940
10941 2017-07-03 Tom de Vries <tom@codesourcery.com>
10942
10943 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
10944
10945 2017-06-27 Tom de Vries <tom@codesourcery.com>
10946
10947 * plugin/plugin-nvptx.c (notify_var): New function.
10948 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
10949
10950 2017-06-27 Tom de Vries <tom@codesourcery.com>
10951
10952 * env.c (parse_unsigned_long_1): Factor out of ...
10953 (parse_unsigned_long): ... here.
10954 (parse_int_1): Factor out of ...
10955 (parse_int): ... here.
10956 (parse_int_secure): New function.
10957 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
10958 * secure_getenv.h: Factor out of ...
10959 * plugin/plugin-hsa.c: ... here.
10960 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
10961
10962 2017-06-21 Jakub Jelinek <jakub@redhat.com>
10963
10964 PR c++/81130
10965 * testsuite/libgomp.c++/pr81130.C: New test.
10966
10967 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10968
10969 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
10970 default args.
10971 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
10972 dg-xfail-run-if default args.
10973
10974 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
10975
10976 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
10977 * testsuite/libgomp.c/pr39591-3.c: Likewise.
10978
10979 2017-05-30 Jakub Jelinek <jakub@redhat.com>
10980
10981 PR libgomp/80822
10982 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
10983 (gomp_affinity_init_level): Use it. Always analyze the core and thread
10984 sibling lists, depending on level just pick up what CPUs to put
10985 together into a place vs. whether add multiple ordered places.
10986
10987 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
10988
10989 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
10990 * libgomp.map (OACC_2.0.1): Add these.
10991 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
10992 for "acc_wait", and "acc_wait_all", respectively.
10993 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
10994 for "acc_wait", and "acc_wait_all", respectively.
10995 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
10996 * libgomp.texi (acc_wait, acc_wait_all): Update.
10997 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
10998 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
10999 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
11000
11001 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
11002 acc_present_or_copyin and acc_present_or_create procedures,
11003 respectively.
11004 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
11005 generally different variants of OpenACC Runtime Library functions.
11006 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11007
11008 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
11009 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11010
11011 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
11012 of preprocessor definitions.
11013 * libgomp.h (strong_alias): Guard by "#ifdef
11014 HAVE_ATTRIBUTE_ALIAS".
11015 * oacc-mem.c: Provide "acc_pcreate" as alias for
11016 "acc_present_or_create", and "acc_pcopyin" as alias for
11017 "acc_present_or_copyin".
11018 * libgomp.map: New version "OACC_2.0.1".
11019 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
11020 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
11021 its content into...
11022 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
11023 Extend testing.
11024
11025 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
11026 when disabling nvptx offloading.
11027
11028 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
11029
11030 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
11031 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
11032 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
11033
11034 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
11035 * testsuite/lib/libgomp.exp
11036 (check_effective_target_openacc_nvidia_accel_configured): New
11037 proc.
11038 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
11039 (check_effective_target_c++): New procs.
11040 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
11041 (check_effective_target_c++): Likewise.
11042
11043 2017-05-22 Jakub Jelinek <jakub@redhat.com>
11044
11045 PR middle-end/80809
11046 * testsuite/libgomp.c/pr80809-2.c: New test.
11047 * testsuite/libgomp.c/pr80809-3.c: New test.
11048
11049 PR middle-end/80809
11050 * testsuite/libgomp.c/pr80809-1.c: New test.
11051
11052 PR middle-end/80853
11053 * testsuite/libgomp.c/pr80853.c: New test.
11054
11055 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
11056
11057 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
11058 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
11059 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11060 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11061 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
11062
11063 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
11064 Debug output for failure.
11065
11066 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11067
11068 * testsuite/lib/libgomp.exp: Load scanlang.exp.
11069
11070 2017-04-27 Jakub Jelinek <jakub@redhat.com>
11071
11072 PR bootstrap/80531
11073 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
11074 bootstrap compare failures.
11075
11076 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
11077
11078 * testsuite/libgomp.c/target-36.c: New testcase.
11079
11080 2017-04-13 Jakub Jelinek <jakub@redhat.com>
11081
11082 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
11083 instead of char.
11084
11085 2017-04-11 Jakub Jelinek <jakub@redhat.com>
11086
11087 PR libgomp/80394
11088 * testsuite/libgomp.c/pr80394.c: New test.
11089
11090 2017-04-04 Jakub Jelinek <jakub@redhat.com>
11091
11092 PR libgomp/79876
11093 * config/posix/thread-stacksize.h: New file.
11094 * config/darwin/thread-stacksize.h: New file.
11095 * config/nvptx/thread-stacksize.h: New file.
11096 * env.c: Include thread-stacksize.h.
11097 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
11098 instead of 0. Call pthread_attr_setstacksize even if
11099 GOMP_DEFAULT_STACKSIZE is non-zero.
11100
11101 2017-03-30 Jakub Jelinek <jakub@redhat.com>
11102
11103 * env.c (initialize_env): Initialize stacksize to 0.
11104
11105 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
11106
11107 PR c++/80029
11108 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
11109
11110 2017-03-08 Jakub Jelinek <jakub@redhat.com>
11111
11112 PR c/79940
11113 * testsuite/libgomp.c/pr79940.c: New test.
11114
11115 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11116
11117 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
11118 targets.
11119 Add __float128 options.
11120
11121 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
11122
11123 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
11124 hppa*-*-* dg-skip-if directive.
11125
11126 2017-02-09 Jakub Jelinek <jakub@redhat.com>
11127
11128 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
11129 dg-skip-if directive into a comment.
11130
11131 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
11132 Chung-Lin Tang <cltang@codesourcery.com>
11133
11134 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
11135 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
11136 add additional case.
11137 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
11138 "openacc_nvidia_accel_selected".
11139 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
11140 Add num_workers(8) clause.
11141
11142 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
11143
11144 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
11145 hppa*-*-*.
11146 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
11147 include complex.h on hppa*-*-hpux*.
11148 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
11149
11150 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
11151
11152 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
11153
11154 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
11155 GOMP_OFFLOAD_openacc_exec. Adjust all users.
11156 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
11157 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
11158 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
11159 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
11160 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
11161 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
11162 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
11163 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
11164
11165 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
11166
11167 * libgomp-plugin.h: #include <stdbool.h>.
11168 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
11169 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
11170 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
11171 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
11172 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
11173 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
11174 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
11175 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
11176 (GOMP_OFFLOAD_openacc_register_async_cleanup)
11177 (GOMP_OFFLOAD_openacc_async_test)
11178 (GOMP_OFFLOAD_openacc_async_test_all)
11179 (GOMP_OFFLOAD_openacc_async_wait)
11180 (GOMP_OFFLOAD_openacc_async_wait_async)
11181 (GOMP_OFFLOAD_openacc_async_wait_all)
11182 (GOMP_OFFLOAD_openacc_async_wait_all_async)
11183 (GOMP_OFFLOAD_openacc_async_set_async)
11184 (GOMP_OFFLOAD_openacc_create_thread_data)
11185 (GOMP_OFFLOAD_openacc_destroy_thread_data)
11186 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
11187 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
11188 (GOMP_OFFLOAD_openacc_get_cuda_stream)
11189 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
11190 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
11191 these.
11192 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
11193 (GOMP_OFFLOAD_unload_image): Fix argument types.
11194
11195 2017-01-26 Jakub Jelinek <jakub@redhat.com>
11196
11197 * testsuite/lib/libgomp.exp
11198 (check_effective_target_hsa_offloading_selected_nocache): Fix up
11199 check_compile invocation. Fix up removal of executable. Drop
11200 bogus "2>&1" argument.
11201
11202 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
11203 directive.
11204
11205 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
11206 Martin Jambor <mjambor@suse.cz>
11207
11208 * plugin/hsa.h: Moved to top level include.
11209 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
11210
11211 2017-01-21 Jakub Jelinek <jakub@redhat.com>
11212
11213 PR other/79046
11214 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
11215 of cat to get version from BASE-VER file.
11216 * testsuite/Makefile.in: Regenerated.
11217
11218 2017-01-19 Jakub Jelinek <jakub@redhat.com>
11219
11220 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
11221 for _WIN64.
11222
11223 2017-01-17 Jakub Jelinek <jakub@redhat.com>
11224
11225 * plugin/hsa.h: Add GCC runtime library exception.
11226 * plugin/hsa_ext_finalize.h: Likewise.
11227
11228 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
11229 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
11230 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
11231 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
11232 plugin/include/cuda as include dir and -ldl instead of -lcuda as
11233 library to link ptx plugin against.
11234 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
11235 (CUDA_CALLS): Define.
11236 (cuda_lib, cuda_lib_inited): New variables.
11237 (init_cuda_lib): New function.
11238 (CUDA_CALL_PREFIX): Define.
11239 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
11240 (CUDA_CALL): Use FN instead of (FN).
11241 (CUDA_CALL_NOCHECK): Define.
11242 (cuda_error, fini_streams_for_device, select_stream_for_async,
11243 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
11244 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
11245 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
11246 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
11247 CUDA_CALL_NOCHECK.
11248 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
11249 CUDA_CALL_NOCHECK.
11250 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
11251 Use CUDA_CALL_NOCHECK.
11252 * plugin/cuda/cuda.h: New file.
11253 * config.h.in: Regenerated.
11254 * configure: Regenerated.
11255
11256 PR other/79046
11257 * configure.ac: Add GCC_BASE_VER.
11258 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
11259 get version from BASE-VER file.
11260 * testsuite/Makefile.in: Regenerated.
11261 * configure: Regenerated.
11262 * Makefile.in: Regenerated.
11263
11264 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11265
11266 PR libgomp/60670
11267 * Makefile.am: Make fincludedir multilib-aware.
11268 * Makefile.in: Regenerate.
11269
11270 2017-01-01 Jakub Jelinek <jakub@redhat.com>
11271
11272 Update copyright years.
11273
11274 * libgomp.texi: Bump @copying's copyright year.
11275
11276 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
11277
11278 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
11279 pthread_spinlock_t instead of gomp_mutex_t lock.
11280 (gomp_get_thread_pool): Likewise.
11281 (gomp_release_thread_pool): Likewise.
11282 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
11283 Likewise.
11284
11285 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
11286
11287 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
11288 thread pool in case nthreads == 1.
11289
11290 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
11291
11292 * config/nvptx/env.c: Delete.
11293 * icv.c: Move definitions of ICV variables back ...
11294 * env.c: ...here. Do not compile environment-related functionality if
11295 LIBGOMP_OFFLOADED_ONLY is set.
11296
11297 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
11298
11299 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
11300 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
11301 * configure: Regenerate.
11302 * config.h.in: Likewise.
11303
11304 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
11305
11306 * Makefile.in: Regenerate with automake-1.11.6.
11307 * aclocal.m4: Likewise.
11308 * configure: Likewise.
11309 * testsuite/Makefile.in: Likewise.
11310
11311 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
11312
11313 * config/nvptx/critical.c: Delete to use generic implementation.
11314
11315 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
11316
11317 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
11318 ../../affinity.c as fallback.
11319 * config/nvptx/affinity.c: Delete to use fallback implementation.
11320
11321 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
11322 Jakub Jelinek <jakub@redhat.com>
11323 Dmitry Melnik <dm@ispras.ru>
11324
11325 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
11326 * Makefile.in. Regenerate.
11327 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
11328 (LIBGOMP_USE_PTHREADS): ...here; new define.
11329 * configure: Regenerate.
11330 * config.h.in: Likewise.
11331 * config/posix/affinity.c: Move to...
11332 * affinity.c: ...here (new file). Guard use of Pthreads-specific
11333 interface by LIBGOMP_USE_PTHREADS.
11334 * critical.c: Split out GOMP_atomic_{start,end} into...
11335 * atomic.c: ...here (new file).
11336 * env.c: Split out ICV definitions into...
11337 * icv.c: ...here (new file) and...
11338 * icv-device.c: ...here. New file.
11339 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
11340 (gomp_destroy_lock_30): Ditto.
11341 (gomp_set_lock_30): Ditto.
11342 (gomp_unset_lock_30): Ditto.
11343 (gomp_test_lock_30): Ditto.
11344 (gomp_init_nest_lock_30): Ditto.
11345 (gomp_destroy_nest_lock_30): Ditto.
11346 (gomp_set_nest_lock_30): Ditto.
11347 (gomp_unset_nest_lock_30): Ditto.
11348 (gomp_test_nest_lock_30): Ditto.
11349 * lock.c: New.
11350 * config/nvptx/lock.c: New.
11351 * config/nvptx/bar.c: New.
11352 * config/nvptx/bar.h: New.
11353 * config/nvptx/doacross.h: New.
11354 * config/nvptx/error.c: New.
11355 * config/nvptx/icv-device.c: New.
11356 * config/nvptx/mutex.h: New.
11357 * config/nvptx/pool.h: New.
11358 * config/nvptx/proc.c: New.
11359 * config/nvptx/ptrlock.h: New.
11360 * config/nvptx/sem.h: New.
11361 * config/nvptx/simple-bar.h: New.
11362 * config/nvptx/target.c: New.
11363 * config/nvptx/task.c: New.
11364 * config/nvptx/team.c: New.
11365 * config/nvptx/time.c: New.
11366 * config/posix/simple-bar.h: New.
11367 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
11368 (gomp_num_teams_var): Declare.
11369 (struct gomp_thread_pool): Change threads_dock member to
11370 gomp_simple_barrier_t.
11371 [__nvptx__] (gomp_thread): New implementation.
11372 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
11373 (gomp_thread_destructor): Ditto.
11374 (gomp_init_thread_affinity): Ditto.
11375 * team.c: Guard uses of Pthreads-specific interfaces by
11376 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
11377 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
11378 * config/nvptx/alloc.c: Delete.
11379 * config/nvptx/barrier.c: Ditto.
11380 * config/nvptx/fortran.c: Ditto.
11381 * config/nvptx/iter.c: Ditto.
11382 * config/nvptx/iter_ull.c: Ditto.
11383 * config/nvptx/loop.c: Ditto.
11384 * config/nvptx/loop_ull.c: Ditto.
11385 * config/nvptx/ordered.c: Ditto.
11386 * config/nvptx/parallel.c: Ditto.
11387 * config/nvptx/priority_queue.c: Ditto.
11388 * config/nvptx/sections.c: Ditto.
11389 * config/nvptx/single.c: Ditto.
11390 * config/nvptx/splay-tree.c: Ditto.
11391 * config/nvptx/work.c: Ditto.
11392 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
11393 -foffload=-lgfortran in addition to -lgfortran.
11394 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
11395 * plugin/plugin-nvptx.c: Include <limits.h>.
11396 (struct targ_fn_descriptor): Add new fields.
11397 (struct ptx_device): Ditto. Set them...
11398 (nvptx_open_device): ...here.
11399 (nvptx_adjust_launch_bounds): New.
11400 (nvptx_host2dev): Allow NULL 'nvthd'.
11401 (nvptx_dev2host): Ditto.
11402 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
11403 (link_ptx): Adjust log sizes.
11404 (nvptx_host2dev): Allow NULL 'nvthd'.
11405 (nvptx_dev2host): Ditto.
11406 (nvptx_set_clocktick): New. Use it...
11407 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
11408 fields.
11409 (GOMP_OFFLOAD_dev2dev): New.
11410 (nvptx_adjust_launch_bounds): New.
11411 (nvptx_stacks_size): New.
11412 (nvptx_stacks_alloc): New.
11413 (nvptx_stacks_free): New.
11414 (GOMP_OFFLOAD_run): New.
11415 (GOMP_OFFLOAD_async_run): New (stub).
11416
11417 2016-11-23 Martin Jambor <mjambor@suse.cz>
11418
11419 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
11420 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
11421 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
11422
11423 2016-11-23 Martin Liska <mliska@suse.cz>
11424 Martin Jambor <mjambor@suse.cz>
11425
11426 * plugin/hsa.h: New file.
11427 * plugin/hsa_ext_finalize.h: New file.
11428 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
11429 header file unistd.h, and functions secure_getenv, __secure_getenv,
11430 getuid, geteuid, getgid and getegid.
11431 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
11432 -D_GNU_SOURCE.
11433 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
11434 Handle various cases of secure_getenv presence, add an implementation
11435 when we can test effective UID and GID.
11436 (struct hsa_runtime_fn_info): New structure.
11437 (hsa_runtime_fn_info hsa_fns): New variable.
11438 (hsa_runtime_lib): Likewise.
11439 (support_cpu_devices): Likewise.
11440 (init_enviroment_variables): Load newly introduced ENV
11441 variables.
11442 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
11443 (hsa_fatal): Likewise.
11444 (DLSYM_FN): New macro.
11445 (init_hsa_runtime_functions): New function.
11446 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
11447 structure. Depending on environment, also allow CPU devices.
11448 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
11449 (get_kernarg_memory_region): Likewise.
11450 (GOMP_OFFLOAD_init_device): Likewise.
11451 (destroy_hsa_program): Likewise.
11452 (init_basic_kernel_info): New function.
11453 (GOMP_OFFLOAD_load_image): Use it.
11454 (create_and_finalize_hsa_program): Call hsa run-time functions via
11455 hsa_fns structure.
11456 (create_single_kernel_dispatch): Likewise.
11457 (release_kernel_dispatch): Likewise.
11458 (init_single_kernel): Likewise.
11459 (parse_target_attributes): Allow up multiple HSA grid dimensions.
11460 (get_group_size): New function.
11461 (run_kernel): Likewise.
11462 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
11463 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
11464 structure.
11465 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
11466 * testsuite/libgomp-test-support.exp.in: Likewise.
11467 * Makefile.in: Regenerated.
11468 * aclocal.m4: Likewise.
11469 * config.h.in: Likewise.
11470 * configure: Likewise.
11471 * testsuite/Makefile.in: Likewise.
11472
11473 2016-11-15 Martin Jambor <mjambor@suse.cz>
11474 Alexander Monakov <amonakov@ispras.ru>
11475
11476 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
11477 mapping clauses to target constructs.
11478 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
11479
11480 2016-11-15 Matthias Klose <doko@ubuntu.com>
11481
11482 * configure: Regenerate.
11483
11484 2016-11-10 Jakub Jelinek <jakub@redhat.com>
11485
11486 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
11487 * omp_lib.h.in (openmp_version): Likewise.
11488 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
11489 of 201307.
11490 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
11491
11492 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
11493 (fib_wrapper): Add map(from: x) clause.
11494 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
11495 (e_53_2): Likewise.
11496 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
11497 (accum): Add map(tmp) clause.
11498 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
11499 (accum): Add map(tofrom: tmp) clause.
11500 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
11501 (gramSchmidt): Likewise.
11502 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
11503 map(tofrom: sum) clause.
11504 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
11505 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
11506 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
11507 only allowed on the loop iterator.
11508 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
11509 * testsuite/libgomp.fortran/taskloop2.f90: New test.
11510 * testsuite/libgomp.fortran/taskloop4.f90: New test.
11511 * testsuite/libgomp.fortran/doacross1.f90: New test.
11512 * testsuite/libgomp.fortran/doacross3.f90: New test.
11513 * testsuite/libgomp.fortran/taskloop1.f90: New test.
11514 * testsuite/libgomp.fortran/taskloop3.f90: New test.
11515 * testsuite/libgomp.fortran/doacross2.f90: New test.
11516 * testsuite/libgomp.c/doacross-1.c (main): Add missing
11517 #pragma omp atomic read.
11518 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
11519 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
11520
11521 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
11522 Nathan Sidwell <nathan@acm.org>
11523
11524 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
11525 to determine default geometry.
11526 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
11527 dimension.
11528
11529 2016-11-01 Jakub Jelinek <jakub@redhat.com>
11530
11531 * hashtab.h: Use standard GPLv3 with runtime exception
11532 boilerplate.
11533
11534 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
11535
11536 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
11537 size when allocating new thread.
11538
11539 2016-09-14 Marek Polacek <polacek@redhat.com>
11540
11541 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
11542
11543 2016-08-19 Jakub Jelinek <jakub@redhat.com>
11544
11545 PR fortran/71014
11546 * testsuite/libgomp.fortran/pr71014.f90: New test.
11547
11548 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
11549
11550 PR middle-end/70895
11551 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
11552 firstprivate clauses.
11553 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
11554 copy clauses.
11555 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
11556 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
11557 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
11558 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
11559 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
11560 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
11561 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
11562 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
11563 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
11564 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
11565 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
11566 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
11567
11568 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
11569
11570 PR fortran/70598
11571 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
11572
11573 2016-08-08 Jakub Jelinek <jakub@redhat.com>
11574
11575 PR c++/58706
11576 * testsuite/libgomp.c++/pr58706.C: New test.
11577
11578 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
11579
11580 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
11581 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
11582 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
11583 Likewise.
11584 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
11585 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
11586 Likewise.
11587 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
11588
11589 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
11590 test, and don't hardcode -O0.
11591
11592 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
11593
11594 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
11595
11596 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
11597
11598 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
11599 test.
11600
11601 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
11602
11603 PR middle-end/71734
11604 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
11605 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
11606
11607 2016-07-01 Jakub Jelinek <jakub@redhat.com>
11608
11609 PR fortran/71717
11610 * testsuite/libgomp.fortran/associate3.f90: New test.
11611
11612 2016-06-17 Jakub Jelinek <jakub@redhat.com>
11613
11614 * testsuite/libgomp.c++/target-21.C: New test.
11615
11616 2016-06-16 Jakub Jelinek <jakub@redhat.com>
11617
11618 * testsuite/libgomp.c++/target-20.C: New test.
11619
11620 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
11621 Cesar Philippidis <cesar@codesourcery.com>
11622
11623 PR middle-end/71373
11624 * libgomp.oacc-c/nested-function-1.c: New file.
11625 * libgomp.oacc-c/nested-function-2.c: Likewise.
11626 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
11627 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
11628 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
11629
11630 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
11631
11632 PR c/71381
11633 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
11634 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
11635 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
11636
11637 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
11638
11639 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
11640 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
11641
11642 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
11643
11644 PR c/70688
11645 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
11646
11647 2016-05-26 Jakub Jelinek <jakub@redhat.com>
11648
11649 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
11650 instead of invalid schedule(static, 0).
11651 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
11652
11653 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
11654
11655 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
11656 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
11657 parameter, use to set async stream around call to gomp_unmap_vars,
11658 call gomp_unmap_vars() with 'do_copyfrom' set to true.
11659 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
11660 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
11661 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
11662 (event_add): Add int parameter, initialize 'val' field when
11663 adding new ptx_event struct.
11664 (nvptx_evec): Adjust event_add() call arguments.
11665 (nvptx_host2dev): Likewise.
11666 (nvptx_dev2host): Likewise.
11667 (nvptx_wait_async): Likewise.
11668 (nvptx_wait_all_async): Likewise.
11669 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
11670 pass to event_add() call.
11671 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
11672 parameter.
11673 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
11674 call openacc.register_async_cleanup_func() hook.
11675 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
11676 * target.c (gomp_copy_from_async): Delete function.
11677 (gomp_map_vars): Remove async_refcount.
11678 (gomp_unmap_vars): Likewise.
11679 (gomp_load_image_to_device): Likewise.
11680 (omp_target_associate_ptr): Likewise.
11681 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
11682 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
11683 (gomp_copy_from_async): Remove.
11684
11685 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
11686
11687 * target.c (gomp_device_copy): New function.
11688 (gomp_copy_host2dev): Likewise.
11689 (gomp_copy_dev2host): Likewise.
11690 (gomp_free_device_memory): Likewise.
11691 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
11692 (gomp_map_pointer): Likewise.
11693 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
11694 NULL value from alloc_func plugin hook.
11695 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
11696 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
11697 (gomp_unmap_vars): Likewise.
11698 (gomp_update): Adjust to call gomp_copy_dev2host and
11699 gomp_copy_host2dev functions.
11700 (gomp_unload_image_from_device): Handle false value from
11701 unload_image_func plugin hook.
11702 (gomp_init_device): Handle false value from init_device_func
11703 plugin hook.
11704 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
11705 (omp_target_free): Adjust to call gomp_free_device_memory.
11706 (omp_target_memcpy): Handle return values from host2dev_func,
11707 dev2host_func, and dev2dev_func plugin hooks.
11708 (omp_target_memcpy_rect_worker): Likewise.
11709 (gomp_target_fini): Handle false value from fini_device_func
11710 plugin hook.
11711 * libgomp.h (struct gomp_device_descr): Adjust return type of
11712 init_device_func, fini_device_func, unload_image_func, free_func,
11713 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
11714 * oacc-init.c (acc_shutdown_1): Handle false value from
11715 fini_device_func plugin hook.
11716 * oacc-host.c (host_init_device): Change return type to bool.
11717 (host_fini_device): Likewise.
11718 (host_unload_image): Likewise.
11719 (host_free): Likewise.
11720 (host_dev2host): Likewise.
11721 (host_host2dev): Likewise.
11722 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
11723 (acc_memcpy_to_device): Likewise.
11724 (acc_memcpy_from_device): Likewise.
11725 (delete_copyout): Add libfnname parameter, handle free_func
11726 hook fatal error case.
11727 (acc_delete): Adjust delete_copyout call.
11728 (acc_copyout): Likewise.
11729 (update_dev_host): Move gomp_mutex_unlock to after
11730 host2dev/dev2host hook calls.
11731
11732 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
11733 to 'hsa_error_msg', for clarity.
11734 (hsa_fatal): Likewise.
11735 (hsa_error): New function.
11736 (init_hsa_context): Change return type to bool, adjust to return
11737 false on error.
11738 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
11739 return value.
11740 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
11741 return false on error.
11742 (get_agent_info): Adjust to return NULL on error.
11743 (destroy_hsa_program): Change return type to bool, adjust to
11744 return false on error.
11745 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
11746 (destroy_module): Change return type to bool, adjust to
11747 return false on error.
11748 (GOMP_OFFLOAD_unload_image): Likewise.
11749 (GOMP_OFFLOAD_fini_device): Likewise.
11750 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
11751 (GOMP_OFFLOAD_free): Change to return false when called.
11752 (GOMP_OFFLOAD_dev2host): Likewise.
11753 (GOMP_OFFLOAD_host2dev): Likewise.
11754 (GOMP_OFFLOAD_dev2dev): Likewise.
11755
11756 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
11757 (CUDA_CALL): Likewise.
11758 (CUDA_CALL_ASSERT): Likewise.
11759 (map_init): Change return type to bool, use CUDA_CALL* macros.
11760 (map_fini): Likewise.
11761 (init_streams_for_device): Change return type to bool, adjust
11762 call to map_init.
11763 (fini_streams_for_device): Change return type to bool, adjust
11764 call to map_fini.
11765 (select_stream_for_async): Release stream_lock before calls to
11766 GOMP_PLUGIN_fatal, adjust call to map_init.
11767 (nvptx_init): Use CUDA_CALL* macros.
11768 (nvptx_attach_host_thread_to_device): Change return type to bool,
11769 use CUDA_CALL* macros.
11770 (nvptx_open_device): Use CUDA_CALL* macros.
11771 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
11772 macros.
11773 (nvptx_get_num_devices): Use CUDA_CALL* macros.
11774 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
11775 (nvptx_exec): Use CUDA_CALL* macros.
11776 (nvptx_alloc): Use CUDA_CALL* macros.
11777 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
11778 (nvptx_host2dev): Likewise.
11779 (nvptx_dev2host): Likewise.
11780 (nvptx_wait): Use CUDA_CALL* macros.
11781 (nvptx_wait_async): Likewise.
11782 (nvptx_wait_all): Likewise.
11783 (nvptx_wait_all_async): Likewise.
11784 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
11785 use CUDA_CALL* macros, adjust call to map_fini.
11786 (GOMP_OFFLOAD_init_device): Change return type to bool,
11787 adjust code accordingly.
11788 (GOMP_OFFLOAD_fini_device): Likewise.
11789 (GOMP_OFFLOAD_load_image): Adjust calls to
11790 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
11791 use CUDA_CALL* macros.
11792 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
11793 return code.
11794 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
11795 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
11796 handle error return.
11797 (GOMP_OFFLOAD_dev2host): Likewise.
11798 (GOMP_OFFLOAD_host2dev): Likewise.
11799 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
11800 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
11801
11802 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
11803
11804 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
11805 (acc_free): Likewise.
11806 (acc_memcpy_to_device): Likewise.
11807 (acc_memcpy_from_device): Likewise.
11808 (acc_deviceptr): Likewise.
11809 (acc_hostptr): Likewise.
11810 (acc_is_present): Likewise.
11811 (acc_map_data): Likewise.
11812 (acc_unmap_data): Likewise.
11813 (present_create_copy): Likewise.
11814 (delete_copyout): Likewise.
11815 (update_dev_host): Likewise.
11816 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
11817 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
11818 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
11819 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
11820 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
11821 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
11822 it only runs on nvptx targets.
11823 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
11824 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
11825 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11826 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11827 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11828 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11829 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11830 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11831 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11832 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
11833 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11834 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11835 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11836 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11837 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11838 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11839 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11840 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11841 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11842 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11843 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11844 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11845 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11846
11847 2016-05-23 Martin Jambor <mjambor@suse.cz>
11848
11849 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
11850
11851 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
11852
11853 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
11854 to gomp_init_targets_once.
11855 (acc_set_device_type): Remove !cached_base_dev condition on call to
11856 gomp_init_targets_once, move call to before acc_device_lock acquire,
11857 to avoid deadlock.
11858 (acc_get_device_num): Remove !cached_base_dev condition on call to
11859 gomp_init_targets_once.
11860 (acc_set_device_num): Likewise.
11861
11862 2016-05-16 Martin Jambor <mjambor@suse.cz>
11863
11864 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
11865
11866 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
11867
11868 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
11869 expected partitioning.
11870
11871 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
11872
11873 PR middle-end/70626
11874 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
11875 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
11876 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
11877
11878 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
11879
11880 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
11881 non-fatal.
11882
11883 2016-04-19 Jakub Jelinek <jakub@redhat.com>
11884
11885 PR middle-end/70680
11886 * testsuite/libgomp.c/pr70680-1.c: New test.
11887 * testsuite/libgomp.c/pr70680-2.c: New test.
11888
11889 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
11890
11891 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
11892 pass parameter variables to subroutines.
11893
11894 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
11895
11896 PR middle-end/70643
11897 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
11898
11899 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
11900
11901 PR testsuite/68242
11902 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
11903 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
11904
11905 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
11906
11907 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
11908 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
11909 GOACC_declare prototype.
11910
11911 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
11912 Merge this file, and...
11913 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
11914 ... this file, and...
11915 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
11916 ... this file, and...
11917 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
11918 ... this file, and...
11919 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
11920 ... this file, and...
11921 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
11922 ... this file, and...
11923 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
11924 ... this file, and...
11925 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
11926 ... this file, and...
11927 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
11928 ... this file, and...
11929 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
11930 ... this file, and...
11931 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
11932 ... this file, and...
11933 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
11934 ... this file, and...
11935 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
11936 ... this file into...
11937 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
11938 file.
11939
11940 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
11941 Make failure observable.
11942
11943 2016-04-12 Jakub Jelinek <jakub@redhat.com>
11944
11945 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
11946 field.
11947 * target.c (gomp_target_fallback_firstprivate,
11948 gomp_target_unshare_firstprivate): Removed.
11949 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
11950 before waiting for dependencies.
11951 (gomp_target_task_fn): Don't copy firstprivate vars here.
11952 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
11953 firstprivate_copies here.
11954 (gomp_create_target_task): Don't initialize firstprivate_copies field.
11955 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
11956 explicit/implicit firstprivate.
11957
11958 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
11959
11960 PR lto/70289
11961 PR ipa/70348
11962 PR tree-optimization/70373
11963 PR middle-end/70533
11964 PR middle-end/70534
11965 PR middle-end/70535
11966 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
11967 test.
11968 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
11969 test.
11970 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
11971 test.
11972 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
11973 test.
11974 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
11975 test.
11976 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
11977 test.
11978 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
11979 test.
11980 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
11981 test.
11982 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
11983 test.
11984 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
11985 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
11986 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
11987 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
11988 test.
11989 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
11990 test.
11991 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
11992 test.
11993 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
11994 test.
11995 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
11996 coverage.
11997 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
11998 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
11999 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
12000 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
12001 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
12002 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
12003 coverage.
12004 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
12005 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
12006 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
12007 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
12008 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
12009 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
12010 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
12011 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
12012 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
12013 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
12014 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
12015 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
12016 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
12017 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
12018 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
12019
12020 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
12021 James Norris <jnorris@codesourcery.com>
12022 Nathan Sidwell <nathan@codesourcery.com>
12023 Julian Brown <julian@codesourcery.com>
12024 Cesar Philippidis <cesar@codesourcery.com>
12025 Chung-Lin Tang <cltang@codesourcery.com>
12026 Tom de Vries <tom@codesourcery.com>
12027
12028 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
12029 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
12030 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
12031 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
12032 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
12033 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
12034 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
12035 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
12036 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
12037 XFAIL.
12038 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
12039 Incorporate...
12040 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
12041 file.
12042 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
12043 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
12044 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
12045 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
12046 Likewise.
12047 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
12048 Likewise.
12049 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
12050 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
12051 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
12052 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
12053 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
12054 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
12055 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
12056 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
12057 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
12058 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
12059 Likewise.
12060 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
12061 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
12062 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
12063 file...
12064 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
12065 file into...
12066 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
12067 file. Update.
12068 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
12069 file.
12070 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
12071 Likewise.
12072 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
12073 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
12074 ... this new file. Update.
12075 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
12076 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
12077 ... this new file. Update.
12078 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
12079 file. Incorporate...
12080 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
12081 file, and...
12082 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
12083 file, and...
12084 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
12085 file.
12086 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
12087
12088 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
12089
12090 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
12091 set-torture-options.
12092
12093 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
12094
12095 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
12096 gcc-dg-runtest.
12097 * testsuite/libgomp.oacc-c/c.exp: Likewise.
12098 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
12099 -fno-builtin-acc_on_device instead of -O0.
12100 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
12101 -O0.
12102 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
12103 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
12104 Likewise.
12105 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
12106 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
12107 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
12108 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12109 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12110 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12111 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
12112 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12113 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
12114 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
12115 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
12116 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
12117 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
12118 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
12119 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
12120 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
12121 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
12122 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
12123 Don't specify -O2.
12124 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
12125 Likewise.
12126 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
12127 Likewise.
12128
12129 2016-03-24 Martin Liska <mliska@suse.cz>
12130
12131 * plugin/plugin-hsa.c (packet_store_release): New function
12132 that is taken from the HSA runtime manual.
12133 (GOMP_OFFLOAD_run): Use the function.
12134
12135 2016-03-23 Jakub Jelinek <jakub@redhat.com>
12136
12137 PR c++/70376
12138 * testsuite/libgomp.c++/pr70376.C: New test.
12139
12140 2016-03-23 Tom de Vries <tom@codesourcery.com>
12141
12142 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
12143 initialization of lresult and lvresult.
12144 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
12145
12146 2016-03-23 James Norris <jnorris@codesourcery.com>
12147 Daichi Fukuoka <dc-fukuoka@sgi.com>
12148
12149 PR libgomp/69414
12150 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
12151 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
12152 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
12153 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
12154
12155 2016-03-23 Martin Liska <mliska@suse.cz>
12156
12157 PR hsa/70337
12158 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
12159 argument just in case a dispatched kernel uses that argument.
12160
12161 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
12162
12163 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
12164 -ftree-parallelize-loops/-fopenacc changes.
12165 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
12166 Likewise.
12167 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
12168 Likewise.
12169 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
12170 Likewise.
12171 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
12172 Likewise.
12173 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
12174 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
12175
12176 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
12177
12178 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
12179 always_ld_library_path the path to libgcc_s.
12180
12181 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
12182
12183 PR testsuite/70009
12184 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
12185
12186 2016-03-09 Tom de Vries <tom@codesourcery.com>
12187
12188 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
12189 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
12190 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
12191 Same.
12192 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
12193 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
12194 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
12195 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
12196
12197 2016-03-07 Martin Jambor <mjambor@suse.cz>
12198
12199 * testsuite/lib/libgomp.exp
12200 (check_effective_target_hsa_offloading_selected_nocache): New.
12201 (check_effective_target_hsa_offloading_selected): Likewise.
12202 * testsuite/libgomp.hsa.c/c.exp: Likewise.
12203 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
12204 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
12205 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
12206 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
12207 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
12208 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
12209 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
12210 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
12211 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
12212 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
12213 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
12214 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
12215 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
12216 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
12217 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
12218 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
12219
12220 2016-03-07 Martin Jambor <mjambor@suse.cz>
12221
12222 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
12223 non-shared memory accelerators.
12224 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
12225 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
12226 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
12227 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
12228 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
12229 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
12230 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
12231 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
12232 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
12233
12234 2016-03-07 Martin Jambor <mjambor@suse.cz>
12235
12236 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
12237 ALWAYS_CFLAGS.
12238
12239 2016-03-02 Jakub Jelinek <jakub@redhat.com>
12240
12241 PR libgomp/69555
12242 * testsuite/libgomp.c++/pr69555-1.C: New test.
12243 * testsuite/libgomp.c++/pr69555-2.C: New test.
12244
12245 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
12246 Martin Jambor <mjambor@suse.cz>
12247
12248 * testsuite/lib/libgomp.exp
12249 (check_effective_target_offload_device_shared_as): New proc.
12250 * testsuite/libgomp.c++/declare_target-1.C: New test.
12251
12252 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
12253
12254 PR driver/68463
12255 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
12256
12257 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
12258
12259 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
12260 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
12261 dims.
12262 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
12263 -ftree-parallelize-loops/-fopenacc changes.
12264 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
12265 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
12266 Likewise.
12267 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
12268 Likewise.
12269 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
12270 Likewise.
12271 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
12272 Likewise.
12273 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
12274 Likewise.
12275 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
12276 Likewise.
12277 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
12278 Likewise.
12279 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
12280 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
12281 Likewise.
12282 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
12283 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
12284 Likewise.
12285 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
12286 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
12287 Likewise.
12288
12289 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
12290
12291 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
12292
12293 2016-02-19 Jakub Jelinek <jakub@redhat.com>
12294
12295 PR driver/69805
12296 * testsuite/libgomp.c/pr69805.c: New test.
12297
12298 2016-02-16 Tom de Vries <tom@codesourcery.com>
12299
12300 PR lto/67709
12301 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
12302
12303 2016-02-09 Tom de Vries <tom@codesourcery.com>
12304
12305 PR tree-optimization/69599
12306 * testsuite/libgomp.c/omp-nested-3.c: New test.
12307 * testsuite/libgomp.c/pr46032-2.c: New test.
12308 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
12309 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
12310
12311 2016-02-09 Tom de Vries <tom@codesourcery.com>
12312
12313 PR lto/69707
12314 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
12315
12316 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
12317
12318 * testsuite/libgomp.c/target-31.c: Fix testcase.
12319
12320 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
12321
12322 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
12323 clause.
12324 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
12325 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
12326 reduction and map clauses.
12327 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
12328
12329 2016-02-02 James Norris <jnorris@codesourcery.com>
12330
12331 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
12332
12333 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
12334
12335 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
12336 * oacc-parallel.c (GOACC_host_data): Remove function definition.
12337
12338 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
12339 cases.
12340
12341 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
12342 variables.
12343 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
12344 (hsa_kmt_lib): Set variables.
12345 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
12346 always_ld_library_path.
12347 * Makefile.in: Regenerate.
12348 * configure: Likewise.
12349 * testsuite/Makefile.in: Likewise.
12350
12351 * plugin/configfrag.ac (offload_additional_options)
12352 (offload_additional_lib_paths): Don't amend for hsa offloading.
12353 * configure: Regenerate.
12354
12355 * plugin/configfrag.ac: Don't configure for offloading target if
12356 we don't build the corresponding plugin.
12357 * configure: Regenerate.
12358
12359 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
12360
12361 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
12362 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
12363
12364 2016-01-26 Tom de Vries <tom@codesourcery.com>
12365
12366 PR tree-optimization/69110
12367 * testsuite/libgomp.c/pr69110.c: New test.
12368
12369 2016-01-25 Richard Biener <rguenther@suse.de>
12370
12371 PR lto/69393
12372 * testsuite/libgomp.c++/pr69393.C: New testcase.
12373
12374 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
12375
12376 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
12377 function wasn't mapped to the device with non-shared memory.
12378
12379 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
12380
12381 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
12382
12383 2016-01-19 Martin Jambor <mjambor@suse.cz>
12384 Martin Liska <mliska@suse.cz>
12385
12386 * plugin/Makefrag.am: Add HSA plugin requirements.
12387 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
12388 (HSA_RUNTIME_LIB): Likewise.
12389 (HSA_RUNTIME_CPPFLAGS): Likewise.
12390 (HSA_RUNTIME_INCLUDE): New substitution.
12391 (HSA_RUNTIME_LIB): Likewise.
12392 (HSA_RUNTIME_LDFLAGS): Likewise.
12393 (hsa-runtime): New configure option.
12394 (hsa-runtime-include): Likewise.
12395 (hsa-runtime-lib): Likewise.
12396 (PLUGIN_HSA): New substitution variable.
12397 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
12398 configure options.
12399 (PLUGIN_HSA_CPPFLAGS): Likewise.
12400 (PLUGIN_HSA_LDFLAGS): Likewise.
12401 (PLUGIN_HSA_LIBS): Likewise.
12402 Check that we have access to HSA run-time.
12403 * libgomp-plugin.h (offload_target_type): New element
12404 OFFLOAD_TARGET_TYPE_HSA.
12405 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
12406 args.
12407 (bool gomp_create_target_task): Updated.
12408 (gomp_device_descr): Extra parameter of run_func and async_run_func,
12409 new field can_run_func.
12410 * libgomp_g.h (GOMP_target_ext): Update prototype.
12411 * oacc-host.c (host_run): Added a new parameter args.
12412 * target.c (calculate_firstprivate_requirements): New function.
12413 (copy_firstprivate_data): Likewise.
12414 (gomp_target_fallback_firstprivate): Use them.
12415 (gomp_target_unshare_firstprivate): New function.
12416 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
12417 devices.
12418 (GOMP_target): Do host fallback for all shared memory devices. Do not
12419 pass any args to plugins.
12420 (GOMP_target_ext): Introduce device-specific argument parameter args.
12421 Allow host fallback if device shares memory. Do not remap data if
12422 device has shared memory.
12423 (gomp_target_task_fn): Likewise. Also treat shared memory devices
12424 like host fallback for mappings.
12425 (GOMP_target_data): Treat shared memory devices like host fallback.
12426 (GOMP_target_data_ext): Likewise.
12427 (GOMP_target_update): Likewise.
12428 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
12429 gomp_create_target_task.
12430 (GOMP_target_enter_exit_data): Likewise.
12431 (omp_target_alloc): Treat shared memory devices like host fallback.
12432 (omp_target_free): Likewise.
12433 (omp_target_is_present): Likewise.
12434 (omp_target_memcpy): Likewise.
12435 (omp_target_memcpy_rect): Likewise.
12436 (omp_target_associate_ptr): Likewise.
12437 (gomp_load_plugin_for_device): Also load can_run.
12438 * task.c (GOMP_PLUGIN_target_task_completion): Free
12439 firstprivate_copies.
12440 (gomp_create_target_task): Accept new argument args and store it to
12441 ttask.
12442 * plugin/plugin-hsa.c: New file.
12443
12444 2016-01-18 Tom de Vries <tom@codesourcery.com>
12445
12446 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
12447 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
12448 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
12449 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
12450 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
12451 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
12452 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
12453 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
12454 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
12455 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
12456 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
12457 Same.
12458 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
12459 Same.
12460 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
12461 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
12462 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
12463 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
12464 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
12465 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
12466 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
12467 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
12468 Same.
12469 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
12470
12471 2016-01-15 Jakub Jelinek <jakub@redhat.com>
12472
12473 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
12474
12475 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
12476
12477 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
12478
12479 2016-01-12 James Norris <jnorris@codesourcery.com>
12480
12481 * libgomp.texi: Updates for OpenACC.
12482
12483 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
12484
12485 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
12486
12487 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
12488
12489 PR fortran/66680
12490 * testsuite/libgomp.fortran/pr66680.f90: New test.
12491
12492 2016-01-07 Jakub Jelinek <jakub@redhat.com>
12493
12494 PR middle-end/68960
12495 * testsuite/libgomp.c/pr68960.c: New test.
12496
12497 2016-01-06 Nathan Sidwell <nathan@acm.org>
12498
12499 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
12500 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
12501
12502 2016-01-04 Jakub Jelinek <jakub@redhat.com>
12503
12504 Update copyright years.
12505
12506 * libgomp.texi: Bump @copying's copyright year.
12507
12508 2015-12-31 Nathan Sidwell <nathan@acm.org>
12509
12510 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
12511 dg-additional-options syntax.
12512 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
12513 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
12514 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
12515 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12516 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
12517 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
12518 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
12519 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
12520 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
12521 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
12522 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12523 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
12524 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
12525 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
12526 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
12527 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
12528 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12529 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12530
12531 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
12532
12533 * libgomp.h (REFCOUNT_LINK): Define.
12534 (struct splay_tree_key_s): Add link_key.
12535 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
12536 Replace target address of the pointer with target address of newly
12537 mapped object in the splay tree. Set link pointer on target to the
12538 device address of the mapped object.
12539 (gomp_unmap_vars): Restore target address of the pointer in the splay
12540 tree for REFCOUNT_LINK objects after unmapping.
12541 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
12542 declare target link" objects.
12543 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
12544 "omp declare target link" objects, which were mapped for the image.
12545 (gomp_exit_data): Restore target address of the pointer in the splay
12546 tree for REFCOUNT_LINK objects after unmapping.
12547 * testsuite/libgomp.c/target-link-1.c: New file.
12548
12549 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
12550
12551 * libgomp.h (gomp_device_state): New enum.
12552 (struct gomp_device_descr): Replace is_initialized with state.
12553 (gomp_fini_device): Remove declaration.
12554 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
12555 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
12556 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
12557 (acc_set_device_type): Use state instead of is_initialized.
12558 (acc_set_device_num): Likewise.
12559 * target.c (resolve_device): Use state instead of is_initialized.
12560 Do not initialize finalized device.
12561 (gomp_map_vars): Do nothing if device is finalized.
12562 (gomp_unmap_vars): Likewise.
12563 (gomp_update): Likewise.
12564 (GOMP_offload_register_ver): Use state instead of is_initialized.
12565 (GOMP_offload_unregister_ver): Likewise.
12566 (gomp_init_device): Likewise.
12567 (gomp_unload_device): Likewise.
12568 (gomp_fini_device): Remove.
12569 (gomp_get_target_fn_addr): Do nothing if device is finalized.
12570 (GOMP_target): Go to host fallback if device is finalized.
12571 (GOMP_target_ext): Likewise.
12572 (gomp_exit_data): Do nothing if device is finalized.
12573 (gomp_target_task_fn): Go to host fallback if device is finalized.
12574 (gomp_target_fini): New static function.
12575 (gomp_target_init): Use state instead of is_initialized.
12576 Call gomp_target_fini at exit.
12577
12578 2015-12-09 Tom de Vries <tom@codesourcery.com>
12579
12580 PR tree-optimization/68716
12581 * testsuite/libgomp.c/omp-nested-2.c: New test.
12582
12583 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
12584
12585 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
12586 target openacc_nvidia_accel_selected.
12587 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
12588 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
12589 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
12590 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
12591
12592 2015-12-01 Julian Brown <julian@codesourcery.com>
12593 James Norris <James_Norris@mentor.com>
12594
12595 * oacc-parallel.c (GOACC_host_data): New function.
12596 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
12597 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
12598 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
12599 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
12600 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
12601 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
12602 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
12603
12604 2015-11-30 James Norris <jnorris@codesourcery.com>
12605 Cesar Philippidis <cesar@codesourcery.com>
12606
12607 libgomp/
12608 * libgomp.oacc-fortran/routine-5.f90: New test.
12609 * libgomp.oacc-fortran/routine-7.f90: New test.
12610 * libgomp.oacc-fortran/routine-9.f90: New test.
12611
12612 2015-11-30 Tom de Vries <tom@codesourcery.com>
12613
12614 PR tree-optimization/46032
12615 * testsuite/libgomp.c/pr46032.c: New test.
12616
12617 2015-11-27 Jakub Jelinek <jakub@redhat.com>
12618
12619 PR libgomp/68579
12620 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
12621 (gomp_create_target_task): Call it before freeing
12622 GOMP_TARGET_TASK_DATA tasks.
12623
12624 PR c/63326
12625 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
12626 in between case label and OpenMP standalone directives.
12627 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
12628
12629 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
12630
12631 * configure: Regenerate.
12632
12633 2015-11-26 Jakub Jelinek <jakub@redhat.com>
12634
12635 * testsuite/libgomp.c/target-35.c: New test.
12636
12637 2015-11-22 James Norris <jnorris@codesourcery.com>
12638 Cesar Philippidis <cesar@codesourcery.com>
12639
12640 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
12641 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
12642 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
12643 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
12644 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
12645
12646 2015-11-20 Jakub Jelinek <jakub@redhat.com>
12647
12648 PR middle-end/68221
12649 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
12650 * testsuite/libgomp.c/reduction-12.c: Likewise.
12651 * testsuite/libgomp.c++/reduction-11.C: Likewise.
12652 * testsuite/libgomp.c++/reduction-12.C: Likewise.
12653
12654 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
12655
12656 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
12657 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
12658 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
12659 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
12660 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
12661 and fix.
12662 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
12663 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
12664
12665 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
12666
12667 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
12668 worker & gang cases.
12669 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
12670
12671 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
12672
12673 * config/nvptx/priority_queue.c: New file.
12674
12675 2015-11-14 Jakub Jelinek <jakub@redhat.com>
12676
12677 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
12678 sections.
12679
12680 2015-11-14 Jakub Jelinek <jakub@redhat.com>
12681 Aldy Hernandez <aldyh@redhat.com>
12682 Ilya Verbin <ilya.verbin@intel.com>
12683
12684 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
12685 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
12686 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
12687 iterators or IV by chunk size.
12688 * parallel.c (gomp_resolve_num_threads): Don't assume that
12689 if thr->ts.team is non-NULL, then pool must be non-NULL.
12690 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
12691 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
12692 GOMP_PLUGIN_target_task_completion.
12693 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
12694 * Makefile.in: Regenerate.
12695 * libgomp.h: Shuffle prototypes and forward definitions around so
12696 priority queues can be defined.
12697 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
12698 (enum gomp_target_task_state): New enum.
12699 (struct gomp_target_task): Add state, tgt, task and team fields.
12700 (gomp_create_target_task): Change return type to bool, add
12701 state argument.
12702 (gomp_target_task_fn): Change return type to bool.
12703 (struct gomp_device_descr): Add async_run_func.
12704 (struct gomp_task): Remove children, next_child, prev_child,
12705 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
12706 Add pnode field.
12707 (struct gomp_taskgroup): Remove children.
12708 Add taskgroup_queue.
12709 (struct gomp_team): Change task_queue type to a priority queue.
12710 (splay_compare): Define inline.
12711 (priority_queue_offset): New.
12712 (priority_node_to_task): New.
12713 (task_to_priority_node): New.
12714 * oacc-mem.c: Do not include splay-tree.h.
12715 * priority_queue.c: New file.
12716 * priority_queue.h: New file.
12717 * splay-tree.c: Do not include splay-tree.h.
12718 (splay_tree_foreach_internal): New.
12719 (splay_tree_foreach): New.
12720 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
12721 (splay_tree_callback): Define typedef.
12722 * target.c (splay_compare): Move to libgomp.h.
12723 (GOMP_target): Don't adjust *thr in any way around running offloaded
12724 task.
12725 (GOMP_target_ext): Likewise. Handle target nowait.
12726 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
12727 return value from gomp_create_target_task, if false, fallthrough
12728 as if no dependencies exist.
12729 (gomp_target_task_fn): Change return type to bool, return true
12730 if the task should have another part scheduled later. Handle
12731 target nowait.
12732 (gomp_load_plugin_for_device): Initialize async_run.
12733 * task.c (gomp_init_task): Initialize children_queue.
12734 (gomp_clear_parent_in_list): New.
12735 (gomp_clear_parent_in_tree): New.
12736 (gomp_clear_parent): Handle priorities.
12737 (GOMP_task): Likewise.
12738 (priority_queue_move_task_first,
12739 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
12740 New functions.
12741 (gomp_create_target_task): Use priority queues. Change return type
12742 to bool, add state argument, return false if for async
12743 {{enter,exit} data,update} constructs no dependencies need to be
12744 waited for, handle target nowait. Set task->fn to NULL instead of
12745 gomp_target_task_fn.
12746 (verify_children_queue): Remove.
12747 (priority_list_upgrade_task): New.
12748 (priority_queue_upgrade_task): New.
12749 (verify_task_queue): Remove.
12750 (priority_list_downgrade_task): New.
12751 (priority_queue_downgrade_task): New.
12752 (gomp_task_run_pre): Use priority queues.
12753 Abstract code out to priority_queue_downgrade_task.
12754 (gomp_task_run_post_handle_dependers): Use priority queues.
12755 (gomp_task_run_post_remove_parent): Likewise.
12756 (gomp_task_run_post_remove_taskgroup): Likewise.
12757 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
12758 tasks specially.
12759 (GOMP_taskwait): Likewise.
12760 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
12761 priority-queue_upgrade_task.
12762 (GOMP_taskgroup_start): Use priority queues.
12763 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
12764 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
12765 barrier.
12766 * taskloop.c (GOMP_taskloop): Handle priorities.
12767 * team.c (gomp_new_team): Call priority_queue_init.
12768 (free_team): Call priority_queue_free.
12769 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
12770 team created for target nowait in implicit parallel region.
12771 (gomp_team_start): For nested check, test thr->ts.level instead of
12772 thr->ts.team != NULL.
12773 * testsuite/libgomp.c/doacross-3.c: New test.
12774 * testsuite/libgomp.c/ordered-5.c: New test.
12775 * testsuite/libgomp.c/priority.c: New test.
12776 * testsuite/libgomp.c/target-31.c: New test.
12777 * testsuite/libgomp.c/target-32.c: New test.
12778 * testsuite/libgomp.c/target-33.c: New test.
12779 * testsuite/libgomp.c/target-34.c: New test.
12780
12781 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
12782
12783 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
12784
12785 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
12786 loop is sequential.
12787
12788 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
12789
12790 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
12791 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
12792
12793 2015-11-12 James Norris <jnorris@codesourcery.com>
12794 Joseph Myers <joseph@codesourcery.com>
12795
12796 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
12797 * oacc-parallel.c (GOACC_declare): New function.
12798 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
12799 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
12800 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
12801 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
12802 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
12803
12804 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
12805
12806 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
12807
12808 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
12809
12810 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
12811 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
12812
12813 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
12814
12815 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
12816 inadvertent commit.
12817
12818 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
12819
12820 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
12821 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
12822 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
12823 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
12824 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
12825
12826 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
12827
12828 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
12829 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
12830
12831 2015-11-05 Jakub Jelinek <jakub@redhat.com>
12832 Ilya Verbin <ilya.verbin@intel.com>
12833
12834 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
12835 GOMP_loop_nonmonotonic_dynamic_start,
12836 GOMP_loop_nonmonotonic_guided_next,
12837 GOMP_loop_nonmonotonic_guided_start,
12838 GOMP_loop_ull_nonmonotonic_dynamic_next,
12839 GOMP_loop_ull_nonmonotonic_dynamic_start,
12840 GOMP_loop_ull_nonmonotonic_guided_next,
12841 GOMP_loop_ull_nonmonotonic_guided_start,
12842 GOMP_parallel_loop_nonmonotonic_dynamic,
12843 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
12844 (GOMP_target_41): Renamed to ...
12845 (GOMP_target_ext): ... this. Add num_teams and thread_limit
12846 arguments.
12847 (GOMP_target_data_41): Renamed to ...
12848 (GOMP_target_data_ext): ... this.
12849 (GOMP_target_update_41): Renamed to ...
12850 (GOMP_target_update_ext): ... this.
12851 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
12852 GOMP_target_data_ext and GOMP_target_update_ext instead of
12853 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
12854 Export GOMP_loop_nonmonotonic_dynamic_next,
12855 GOMP_loop_nonmonotonic_dynamic_start,
12856 GOMP_loop_nonmonotonic_guided_next,
12857 GOMP_loop_nonmonotonic_guided_start,
12858 GOMP_loop_ull_nonmonotonic_dynamic_next,
12859 GOMP_loop_ull_nonmonotonic_dynamic_start,
12860 GOMP_loop_ull_nonmonotonic_guided_next,
12861 GOMP_loop_ull_nonmonotonic_guided_start,
12862 GOMP_parallel_loop_nonmonotonic_dynamic and
12863 GOMP_parallel_loop_nonmonotonic_guided.
12864 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
12865 GOMP_parallel_loop_nonmonotonic_guided,
12866 GOMP_loop_nonmonotonic_dynamic_start,
12867 GOMP_loop_nonmonotonic_guided_start,
12868 GOMP_loop_nonmonotonic_dynamic_next,
12869 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
12870 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
12871 GOMP_loop_ull_nonmonotonic_guided_start,
12872 GOMP_loop_ull_nonmonotonic_dynamic_next,
12873 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
12874 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
12875 functions.
12876 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
12877 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
12878 Use gomp_map_val function.
12879 (gomp_target_fallback_firstprivate): New static function.
12880 (GOMP_target_41): Renamed to ...
12881 (GOMP_target_ext): ... this. Add num_teams and thread_limit
12882 arguments. Move firstprivate fallback handling into a new
12883 function.
12884 (GOMP_target_data_41): Renamed to ...
12885 (GOMP_target_data_ext): ... this.
12886 (GOMP_target_update_41): Renamed to ...
12887 (GOMP_target_update_ext): ... this.
12888 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
12889 gomp_map_0len_lookup instead of gomp_map_lookup.
12890 (omp_target_is_present): Use gomp_map_0len_lookup instead of
12891 gomp_map_lookup.
12892 * testsuite/libgomp.c/target-28.c: Likewise.
12893 * testsuite/libgomp.c/monotonic-1.c: New test.
12894 * testsuite/libgomp.c/monotonic-2.c: New test.
12895 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
12896 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
12897 * testsuite/libgomp.c/pr66199-5.c: New test.
12898 * testsuite/libgomp.c/pr66199-6.c: New test.
12899 * testsuite/libgomp.c/pr66199-7.c: New test.
12900 * testsuite/libgomp.c/pr66199-8.c: New test.
12901 * testsuite/libgomp.c/pr66199-9.c: New test.
12902 * testsuite/libgomp.c/reduction-11.c: New test.
12903 * testsuite/libgomp.c/reduction-12.c: New test.
12904 * testsuite/libgomp.c/reduction-13.c: New test.
12905 * testsuite/libgomp.c/reduction-14.c: New test.
12906 * testsuite/libgomp.c/reduction-15.c: New test.
12907 * testsuite/libgomp.c/target-12.c (main): Adjust for
12908 omp_target_is_present change for one-past-last element.
12909 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
12910 the same var is both mapped and privatized.
12911 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
12912 handling of zero-length array sections.
12913 * testsuite/libgomp.c/target-28.c: New test.
12914 * testsuite/libgomp.c/target-29.c: New test.
12915 * testsuite/libgomp.c/target-30.c: New test.
12916 * testsuite/libgomp.c/target-teams-1.c: New test.
12917 * testsuite/libgomp.c++/member-6.C: New test.
12918 * testsuite/libgomp.c++/member-7.C: New test.
12919 * testsuite/libgomp.c++/monotonic-1.C: New test.
12920 * testsuite/libgomp.c++/monotonic-2.C: New test.
12921 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
12922 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
12923 * testsuite/libgomp.c++/pr66199-3.C: New test.
12924 * testsuite/libgomp.c++/pr66199-4.C: New test.
12925 * testsuite/libgomp.c++/pr66199-5.C: New test.
12926 * testsuite/libgomp.c++/pr66199-6.C: New test.
12927 * testsuite/libgomp.c++/pr66199-7.C: New test.
12928 * testsuite/libgomp.c++/pr66199-8.C: New test.
12929 * testsuite/libgomp.c++/pr66199-9.C: New test.
12930 * testsuite/libgomp.c++/reduction-11.C: New test.
12931 * testsuite/libgomp.c++/reduction-12.C: New test.
12932 * testsuite/libgomp.c++/target-13.C: New test.
12933 * testsuite/libgomp.c++/target-14.C: New test.
12934 * testsuite/libgomp.c++/target-15.C: New test.
12935 * testsuite/libgomp.c++/target-16.C: New test.
12936 * testsuite/libgomp.c++/target-17.C: New test.
12937 * testsuite/libgomp.c++/target-18.C: New test.
12938 * testsuite/libgomp.c++/target-19.C: New test.
12939
12940 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
12941
12942 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
12943 and reduction copy.
12944 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
12945 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
12946 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
12947 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
12948 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
12949 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
12950 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
12951 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
12952 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
12953 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
12954 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
12955 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
12956 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
12957 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
12958
12959 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
12960
12961 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
12962 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
12963 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
12964 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
12965 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
12966 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
12967 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
12968 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
12969
12970 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
12971
12972 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
12973 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
12974 (GOMP_OFFLOAD_openacc_parallel): Likewise.
12975 * oacc-host.c (host_openacc_exec): Likewise.
12976 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
12977
12978 2015-11-03 Julian Brown <julian@codesourcery.com>
12979 Thomas Schwinge <thomas@codesourcery.com>
12980
12981 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
12982 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
12983 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
12984 Likewise.
12985 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
12986 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
12987
12988 2015-11-03 James Norris <jnorris@codesourcery.com>
12989
12990 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
12991 file.
12992 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
12993 Likewise.
12994 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
12995 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
12996 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
12997 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
12998 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
12999
13000 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
13001
13002 * openacc.h (enum acc_device_t): Reformat. Ensure layout
13003 compatibility.
13004 (enum acc_async_t): Reformat.
13005 (acc_on_device): Declare compatible with builtin and provide C++
13006 wrapper.
13007 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
13008
13009 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
13010 Cesar Philippidis <cesar@codesourcery.com>
13011
13012 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
13013 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
13014 ... this. Add a description of the test at the top of the file.
13015 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
13016 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
13017 ... this. Add a description of the test at the top of the file.
13018
13019 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
13020
13021 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
13022 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
13023 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
13024 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
13025 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
13026 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
13027
13028 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
13029
13030 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
13031 dimensions.
13032
13033 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
13034
13035 PR testsuite/68063
13036 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
13037
13038 2015-10-27 James Norris <jnorris@codesourcery.com>
13039
13040 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
13041 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
13042
13043 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
13044
13045 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
13046 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
13047
13048 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
13049 acc_device_nvidia usage.
13050 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
13051 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
13052 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
13053
13054 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
13055 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
13056
13057 PR libgomp/66518
13058 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
13059
13060 PR libgomp/65437
13061 PR libgomp/66518
13062 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
13063 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
13064
13065 2015-10-23 Tom de Vries <tom@codesourcery.com>
13066
13067 PR testsuite/68063
13068 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
13069
13070 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
13071
13072 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
13073 vector_length.
13074 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13075
13076 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
13077 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
13078
13079 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
13080 to 0 when mapnum is 0.
13081
13082 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
13083
13084 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
13085 Cast to int from int32_t.
13086
13087 2015-10-13 Jakub Jelinek <jakub@redhat.com>
13088 Aldy Hernandez <aldyh@redhat.com>
13089 Ilya Verbin <ilya.verbin@intel.com>
13090
13091 * config/linux/affinity.c (omp_get_place_num_procs,
13092 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
13093 * config/linux/doacross.h: New file.
13094 * config/posix/affinity.c (omp_get_place_num_procs,
13095 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
13096 * config/posix/doacross.h: New file.
13097 * env.c: Include gomp-constants.h.
13098 (struct gomp_task_icv): Rename run_sched_modifier to
13099 run_sched_chunk_size.
13100 (gomp_max_task_priority_var): New variable.
13101 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
13102 (handle_omp_display_env): Change _OPENMP value from 201307 to
13103 201511. Print OMP_MAX_TASK_PRIORITY.
13104 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
13105 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
13106 chunk_size and run_sched_modifier to run_sched_chunk_size.
13107 (omp_get_max_task_priority, omp_get_initial_device,
13108 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
13109 omp_get_partition_place_nums): New functions.
13110 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
13111 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
13112 to chunk_size.
13113 (omp_get_num_places_, omp_get_place_num_procs_,
13114 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
13115 omp_get_place_proc_ids_8_, omp_get_place_num_,
13116 omp_get_partition_num_places_, omp_get_partition_place_nums_,
13117 omp_get_partition_place_nums_8_, omp_get_initial_device_,
13118 omp_get_max_task_priority_): New functions.
13119 * libgomp_g.h (GOMP_loop_doacross_static_start,
13120 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
13121 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
13122 GOMP_loop_ull_doacross_dynamic_start,
13123 GOMP_loop_ull_doacross_guided_start,
13124 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
13125 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
13126 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
13127 GOMP_target_data_41, GOMP_target_update_41,
13128 GOMP_target_enter_exit_data): New prototypes.
13129 (GOMP_task): Add prototype argument.
13130 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
13131 (struct gomp_doacross_work_share): New type.
13132 (struct gomp_work_share): Add doacross field.
13133 (struct gomp_task_icv): Rename run_sched_modifier to
13134 run_sched_chunk_size.
13135 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
13136 GOMP_TASK_UNDEFERRED. Add comments.
13137 (struct gomp_task_depend_entry): Add comments.
13138 (struct gomp_task): Likewise.
13139 (struct gomp_taskgroup): Likewise.
13140 (struct gomp_target_task): New type.
13141 (struct gomp_team): Add comment.
13142 (gomp_get_place_proc_ids_8, gomp_doacross_init,
13143 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
13144 gomp_create_target_task, gomp_target_task_fn): New prototypes.
13145 (struct target_var_desc): New type.
13146 (struct target_mem_desc): Adjust comment. Use struct
13147 target_var_desc instead of splay_tree_key for list.
13148 (REFCOUNT_INFINITY): Define.
13149 (struct splay_tree_key_s): Remove copy_from field.
13150 (struct gomp_device_descr): Add dev2dev_func field.
13151 (enum gomp_map_vars_kind): New enum.
13152 (gomp_map_vars): Add one argument.
13153 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
13154 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
13155 omp_get_place_num_procs, omp_get_place_num_procs_,
13156 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
13157 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
13158 omp_get_place_num_, omp_get_partition_num_places,
13159 omp_get_partition_num_places_, omp_get_partition_place_nums,
13160 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
13161 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
13162 omp_target_free, omp_target_is_present, omp_target_memcpy,
13163 omp_target_memcpy_rect, omp_target_associate_ptr and
13164 omp_target_disassociate_ptr.
13165 (GOMP_4.0.2): Renamed to ...
13166 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
13167 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
13168 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
13169 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
13170 GOMP_loop_doacross_static_start, GOMP_doacross_post,
13171 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
13172 GOMP_loop_ull_doacross_guided_start,
13173 GOMP_loop_ull_doacross_runtime_start,
13174 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
13175 GOMP_doacross_ull_wait.
13176 * libgomp.texi: Document omp_get_max_task_priority.
13177 Rename modifier argument to chunk_size for omp_set_schedule and
13178 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
13179 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
13180 to run_sched_chunk_size renaming.
13181 (GOMP_loop_ordered_runtime_start): Likewise.
13182 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
13183 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
13184 GOMP_parallel_loop_runtime_start): New functions.
13185 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
13186 to run_sched_chunk_size renaming.
13187 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
13188 GOMP_loop_doacross_guided_start): New functions or aliases.
13189 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
13190 run_sched_modifier to run_sched_chunk_size renaming.
13191 (GOMP_loop_ull_ordered_runtime_start): Likewise.
13192 (gomp_loop_ull_doacross_static_start,
13193 gomp_loop_ull_doacross_dynamic_start,
13194 gomp_loop_ull_doacross_guided_start,
13195 GOMP_loop_ull_doacross_runtime_start): New functions.
13196 (GOMP_loop_ull_doacross_static_start,
13197 GOMP_loop_ull_doacross_dynamic_start,
13198 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
13199 * oacc-mem.c (acc_map_data, present_create_copy,
13200 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
13201 to gomp_map_vars.
13202 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
13203 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
13204 instead of false to gomp_map_vars.
13205 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
13206 * omp.h.in (omp_lock_hint_t): New type.
13207 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
13208 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
13209 omp_get_place_num, omp_get_partition_num_places,
13210 omp_get_partition_place_nums, omp_get_initial_device,
13211 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
13212 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
13213 omp_target_associate_ptr, omp_target_disassociate_ptr): New
13214 prototypes.
13215 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
13216 (omp_lock_hint_none, omp_lock_hint_uncontended,
13217 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
13218 omp_lock_hint_speculative): New parameters.
13219 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
13220 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
13221 omp_get_place_num, omp_get_partition_num_places,
13222 omp_get_partition_place_nums, omp_get_initial_device,
13223 omp_get_max_task_priority): New interfaces.
13224 (omp_set_schedule, omp_get_schedule): Rename modifier argument
13225 to chunk_size.
13226 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
13227 (omp_lock_hint_none, omp_lock_hint_uncontended,
13228 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
13229 omp_lock_hint_speculative): New parameters.
13230 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
13231 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
13232 omp_get_place_num, omp_get_partition_num_places,
13233 omp_get_partition_place_nums, omp_get_initial_device,
13234 omp_get_max_task_priority): New functions and subroutines.
13235 * ordered.c: Include stdarg.h and string.h.
13236 (MAX_COLLAPSED_BITS): Define.
13237 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
13238 gomp_doacross_ull_init, GOMP_doacross_ull_post,
13239 GOMP_doacross_ull_wait): New functions.
13240 * target.c: Include errno.h.
13241 (resolve_device): If device is not initialized, call
13242 gomp_init_device on it.
13243 (gomp_map_lookup): New function.
13244 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
13245 Don't bump refcount if REFCOUNT_INFINITY. Handle
13246 GOMP_MAP_ALWAYS_TO_P.
13247 (get_kind): Rename is_openacc argument to short_mapkind.
13248 (gomp_map_pointer): Use gomp_map_lookup.
13249 (gomp_map_fields_existing): New function.
13250 (gomp_map_vars): Rename is_openacc argument to short_mapkind
13251 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
13252 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
13253 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
13254 Adjust for tgt->list changed type and copy_from living in there.
13255 (gomp_copy_from_async): Adjust for tgt->list changed type and
13256 copy_from living in there.
13257 (gomp_unmap_vars): Likewise.
13258 (gomp_update): Likewise. Rename is_openacc argument to
13259 short_mapkind. Don't fail if object is not mapped.
13260 (gomp_load_image_to_device): Initialize refcount to
13261 REFCOUNT_INFINITY.
13262 (gomp_target_fallback): New function.
13263 (gomp_get_target_fn_addr): Likewise.
13264 (GOMP_target): Adjust gomp_map_vars caller, use
13265 gomp_get_target_fn_addr and gomp_target_fallback.
13266 (GOMP_target_41): New function.
13267 (gomp_target_data_fallback): New function.
13268 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
13269 (GOMP_target_data_41): New function.
13270 (GOMP_target_update): Adjust gomp_update caller.
13271 (GOMP_target_update_41): New function.
13272 (gomp_exit_data, GOMP_target_enter_exit_data,
13273 gomp_target_task_fn, omp_target_alloc, omp_target_free,
13274 omp_target_is_present, omp_target_memcpy,
13275 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
13276 omp_target_associate_ptr, omp_target_disassociate_ptr,
13277 gomp_load_plugin_for_device): New functions.
13278 * task.c: Include gomp-constants.h. Include taskloop.c
13279 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
13280 (gomp_task_handle_depend): New function.
13281 (GOMP_task): Use it. Add priority argument. Use
13282 gomp-constant.h constants instead of hardcoded numbers.
13283 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
13284 (gomp_create_target_task): New function.
13285 (verify_children_queue, verify_taskgroup_queue,
13286 verify_task_queue): New functions.
13287 (gomp_task_run_pre): Call verify_*_queue functions.
13288 If an upcoming tied task is about to leave the sibling or
13289 taskgroup queues in an invalid state, adjust appropriately.
13290 Remove taskgroup argument. Add comments.
13291 (gomp_task_run_post_handle_dependers): Add comments.
13292 (gomp_task_run_post_remove_parent): Likewise.
13293 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
13294 (GOMP_taskwait): Likewise. Add comments.
13295 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
13296 problem such that the first non parent_depends_on task does not
13297 end up at the end of the children queue.
13298 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
13299 GOMP_TASK_UNDEFERRED.
13300 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
13301 * taskloop.c: New file.
13302 * testsuite/lib/libgomp.exp
13303 (check_effective_target_offload_device_nonshared_as): New proc.
13304 * testsuite/libgomp.c/affinity-2.c: New test.
13305 * testsuite/libgomp.c/doacross-1.c: New test.
13306 * testsuite/libgomp.c/doacross-2.c: New test.
13307 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
13308 Add map clause to target.
13309 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
13310 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
13311 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
13312 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
13313 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
13314 Likewise.
13315 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
13316 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
13317 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
13318 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
13319 not defined. Use those where needed.
13320 * testsuite/libgomp.c/for-4.c: New test.
13321 * testsuite/libgomp.c/for-5.c: New test.
13322 * testsuite/libgomp.c/for-6.c: New test.
13323 * testsuite/libgomp.c/linear-1.c: New test.
13324 * testsuite/libgomp.c/ordered-4.c: New test.
13325 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
13326 only allowed on the loop iterator.
13327 * testsuite/libgomp.c/pr66199-3.c: New test.
13328 * testsuite/libgomp.c/pr66199-4.c: New test.
13329 * testsuite/libgomp.c/reduction-7.c: New test.
13330 * testsuite/libgomp.c/reduction-8.c: New test.
13331 * testsuite/libgomp.c/reduction-9.c: New test.
13332 * testsuite/libgomp.c/reduction-10.c: New test.
13333 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
13334 map(tofrom:s).
13335 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
13336 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
13337 * testsuite/libgomp.c/target-11.c: New test.
13338 * testsuite/libgomp.c/target-12.c: New test.
13339 * testsuite/libgomp.c/target-13.c: New test.
13340 * testsuite/libgomp.c/target-14.c: New test.
13341 * testsuite/libgomp.c/target-15.c: New test.
13342 * testsuite/libgomp.c/target-16.c: New test.
13343 * testsuite/libgomp.c/target-17.c: New test.
13344 * testsuite/libgomp.c/target-18.c: New test.
13345 * testsuite/libgomp.c/target-19.c: New test.
13346 * testsuite/libgomp.c/target-20.c: New test.
13347 * testsuite/libgomp.c/target-21.c: New test.
13348 * testsuite/libgomp.c/target-22.c: New test.
13349 * testsuite/libgomp.c/target-23.c: New test.
13350 * testsuite/libgomp.c/target-24.c: New test.
13351 * testsuite/libgomp.c/target-25.c: New test.
13352 * testsuite/libgomp.c/target-26.c: New test.
13353 * testsuite/libgomp.c/target-27.c: New test.
13354 * testsuite/libgomp.c/taskloop-1.c: New test.
13355 * testsuite/libgomp.c/taskloop-2.c: New test.
13356 * testsuite/libgomp.c/taskloop-3.c: New test.
13357 * testsuite/libgomp.c/taskloop-4.c: New test.
13358 * testsuite/libgomp.c++/ctor-13.C: New test.
13359 * testsuite/libgomp.c++/doacross-1.C: New test.
13360 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
13361 Replace offload_device with offload_device_nonshared_as.
13362 * testsuite/libgomp.c++/for-12.C: New test.
13363 * testsuite/libgomp.c++/for-13.C: New test.
13364 * testsuite/libgomp.c++/for-14.C: New test.
13365 * testsuite/libgomp.c++/linear-1.C: New test.
13366 * testsuite/libgomp.c++/member-1.C: New test.
13367 * testsuite/libgomp.c++/member-2.C: New test.
13368 * testsuite/libgomp.c++/member-3.C: New test.
13369 * testsuite/libgomp.c++/member-4.C: New test.
13370 * testsuite/libgomp.c++/member-5.C: New test.
13371 * testsuite/libgomp.c++/ordered-1.C: New test.
13372 * testsuite/libgomp.c++/reduction-5.C: New test.
13373 * testsuite/libgomp.c++/reduction-6.C: New test.
13374 * testsuite/libgomp.c++/reduction-7.C: New test.
13375 * testsuite/libgomp.c++/reduction-8.C: New test.
13376 * testsuite/libgomp.c++/reduction-9.C: New test.
13377 * testsuite/libgomp.c++/reduction-10.C: New test.
13378 * testsuite/libgomp.c++/reference-1.C: New test.
13379 * testsuite/libgomp.c++/simd14.C: New test.
13380 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
13381 * testsuite/libgomp.c++/target-5.C: New test.
13382 * testsuite/libgomp.c++/target-6.C: New test.
13383 * testsuite/libgomp.c++/target-7.C: New test.
13384 * testsuite/libgomp.c++/target-8.C: New test.
13385 * testsuite/libgomp.c++/target-9.C: New test.
13386 * testsuite/libgomp.c++/target-10.C: New test.
13387 * testsuite/libgomp.c++/target-11.C: New test.
13388 * testsuite/libgomp.c++/target-12.C: New test.
13389 * testsuite/libgomp.c++/taskloop-1.C: New test.
13390 * testsuite/libgomp.c++/taskloop-2.C: New test.
13391 * testsuite/libgomp.c++/taskloop-3.C: New test.
13392 * testsuite/libgomp.c++/taskloop-4.C: New test.
13393 * testsuite/libgomp.c++/taskloop-5.C: New test.
13394 * testsuite/libgomp.c++/taskloop-6.C: New test.
13395 * testsuite/libgomp.c++/taskloop-7.C: New test.
13396 * testsuite/libgomp.c++/taskloop-8.C: New test.
13397 * testsuite/libgomp.c++/taskloop-9.C: New test.
13398 * testsuite/libgomp.fortran/affinity1.f90: New test.
13399 * testsuite/libgomp.fortran/affinity2.f90: New test.
13400
13401 2015-10-13 Tom de Vries <tom@codesourcery.com>
13402
13403 PR tree-optimization/67476
13404 * testsuite/libgomp.c/autopar-3.c: New test.
13405 * testsuite/libgomp.c/autopar-4.c: New test.
13406 * testsuite/libgomp.c/autopar-5.c: New test.
13407 * testsuite/libgomp.c/autopar-6.c: New test.
13408 * testsuite/libgomp.c/autopar-7.c: New test.
13409 * testsuite/libgomp.c/autopar-8.c: New test.
13410
13411 2015-10-12 James Norris <jnorris@codesourcery.com>
13412
13413 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
13414 initializer.
13415
13416 2015-10-09 David Malcolm <dmalcolm@redhat.com>
13417
13418 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
13419 using load_gcc_lib.
13420
13421 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
13422
13423 * oacc-ptx.h: Remove file, moving its content into...
13424 * config/nvptx/fortran.c: ... here...
13425 * config/nvptx/oacc-init.c: ..., here...
13426 * config/nvptx/oacc-parallel.c: ..., and here.
13427 * config/nvptx/openacc.f90: New file.
13428 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
13429 (link_ptx): Don't link in predefined bits of PTX code.
13430
13431 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
13432 Bernd Schmidt <bernds@codesourcery.com>
13433
13434 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
13435 (struct targ_ptx_obj): New.
13436 (nvptx_tdata): Move earlier, change data format.
13437 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
13438 objects.
13439 (GOMP_OFFLOAD_load_image): Adjust.
13440
13441 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
13442
13443 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
13444 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
13445 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
13446 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
13447 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
13448 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
13449 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
13450 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
13451 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
13452 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
13453 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
13454 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
13455 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
13456 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
13457 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
13458 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
13459 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
13460 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
13461 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
13462 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
13463 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
13464 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
13465 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
13466 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
13467 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
13468 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
13469 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
13470 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
13471 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
13472 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
13473 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
13474 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
13475 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
13476 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
13477 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
13478 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
13479 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
13480 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
13481 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
13482 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
13483 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
13484 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
13485 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
13486 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
13487 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
13488 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
13489 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
13490 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
13491 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
13492 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
13493 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
13494 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
13495 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
13496 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
13497 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
13498 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
13499 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
13500 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
13501 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
13502 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
13503 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
13504 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
13505 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
13506
13507 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
13508
13509 * oacc-init.c (acc_on_device): Force optimization level.
13510
13511 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
13512
13513 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
13514 (cuda_errlist): Delete.
13515 (cuda_error): Reimplement.
13516
13517 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
13518
13519 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
13520 array.
13521 * libgomp.map (GOACC_parallel_keyed): New.
13522 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
13523 all callers.
13524 (GOACC_parallel_keyed): New interface. Lose geometry arguments
13525 and take keyed varargs list. Adjust call to exec_func.
13526 (GOACC_parallel): Force host fallback.
13527 * libgomp_g.h (GOACC_parallel): Remove.
13528 (GOACC_parallel_keyed): Declare.
13529 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
13530 (struct targ_gn_descriptor): Replace name field with launch field.
13531 (nvptx_exec): Lose separate geometry args, take array. Process
13532 dynamic dimensions and adjust.
13533 (struct nvptx_tdata): Replace fn_names field with fn_descs.
13534 (GOMP_OFFLOAD_load_image): Adjust for change in function table
13535 data.
13536 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
13537 passing.
13538 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
13539 passing.
13540
13541 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
13542
13543 PR libgomp/67141
13544 * oacc-int.h (goacc_host_init): Add declaration.
13545 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
13546 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
13547
13548 2015-09-08 Aditya Kumar <hiraditya@msn.com>
13549 Sebastian Pop <s.pop@samsung.com>
13550
13551 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
13552 match o/p.
13553 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
13554 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
13555 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
13556 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
13557 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
13558
13559 2015-09-03 Jakub Jelinek <jakub@redhat.com>
13560
13561 * configure.tgt: Add missing ;; in between nvptx and rtems
13562 snippets.
13563
13564 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
13565
13566 * config/posix/pool.h (gomp_adjust_thread_attr): New.
13567 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
13568 (gomp_thread_pool_reservoir): Add priority member.
13569 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
13570 priority.
13571 (parse_thread_pools): Likewise.
13572 * team.c (gomp_team_start): Call configuration provided
13573 gomp_adjust_thread_attr(). Destroy thread attributes if
13574 necessary.
13575 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
13576
13577 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
13578
13579 * config/posix/pool.h: New.
13580 * config/rtems/pool.h: Likewise.
13581 * config/rtems/proc.c: Likewise.
13582 * libgomp.h (gomp_thread_destructor): Declare.
13583 * team.c: Include configuration provided "pool.h".
13584 (gomp_get_thread_pool): Define in configuration.
13585 (gomp_team_end): Call configuration defined
13586 gomp_release_thread_pool().
13587
13588 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
13589
13590 * config/rtems/bar.c: New.
13591 * config/rtems/bar.h: Likewise.
13592 * config/rtems/mutex.c: Likewise.
13593 * config/rtems/mutex.h: Likewise.
13594 * config/rtems/sem.c: Likewise.
13595 * config/rtems/sem.h: Likewise.
13596 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
13597 <sys/lock.h> header file.
13598 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
13599 supported by Newlib.
13600 * configure: Regenerate.
13601
13602 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
13603
13604 * team.c (gomp_new_thread_pool): Delete and move content to ...
13605 (gomp_get_thread_pool): ... new function. Allocate and
13606 initialize thread pool on demand.
13607 (get_last_team): Use gomp_get_thread_pool().
13608 (gomp_team_start): Delete thread pool initialization.
13609
13610 2015-09-03 Tom de Vries <tom@codesourcery.com>
13611
13612 PR tree-optimization/65637
13613 * testsuite/libgomp.c/autopar-2.c: New test.
13614
13615 2015-08-29 Tom de Vries <tom@codesourcery.com>
13616
13617 PR tree-optimization/46193
13618 * testsuite/libgomp.c/pr46193.c: New test.
13619
13620 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
13621
13622 libgomp/
13623 * libgomp.map: Add 4.0.2 version.
13624 * target.c (offload_image_descr): Add version field.
13625 (gomp_load_image_to_device): Add version argument. Adjust plugin
13626 call. Improve load mismatch diagnostic.
13627 (gomp_unload_image_from_device): Add version argument. Adjust plugin
13628 call.
13629 (GOMP_offload_regster): Make stub function, move bulk to ...
13630 (GOMP_offload_register_ver): ... here. Process version argument.
13631 (GOMP_offload_unregister): Make stub function, move bulk to ...
13632 (GOMP_offload_unregister_ver): ... here. Process version argument.
13633 (gomp_init_device): Process version field.
13634 (gomp_unload_device): Process version field.
13635 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
13636 macros. Check plugin version.
13637 * libgomp.h (gomp_device_descr): Add version function field. Adjust
13638 loader and unloader types.
13639 * oacc-host.c: Include gomp-constants.h.
13640 (host_version): New.
13641 (host_load_image, host_unload_image): Adjust.
13642 (host_dispatch): Add host_version.
13643 * plugin/plugin-nvptx.c: Include gomp-constants.h.
13644 (GOMP_OFFLOAD_version): New.
13645 (GOMP_OFFLOAD_load_image): Add version arg and check it.
13646 (GOMP_OFFLOAD_unload_image): Likewise.
13647 * plugin/plugin-host.c: Include gomp-constants.h.
13648 (GOMP_OFFLOAD_version): New.
13649 (GOMP_OFFLOAD_load_image): Add version arg.
13650 (GOMP_OFFLOAD_unload_image): Likewise.
13651
13652 2015-08-24 Tom de Vries <tom@codesourcery.com>
13653
13654 PR tree-optimization/65468
13655 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
13656
13657 2015-08-24 Tom de Vries <tom@codesourcery.com>
13658
13659 PR tree-optimization/65468
13660 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
13661
13662 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
13663
13664 PR libgomp/66761
13665 PR libgomp/67303
13666 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
13667 (gomp_iter_guided_next): Idem.
13668 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
13669 (gomp_iter_ull_guided_next): Idem.
13670 * config/linux/wait.h (do_spin): Idem.
13671
13672 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
13673
13674 * libgomp-plugin.h (enum offload_target_type): Remove
13675 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
13676 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
13677 * openacc.h (enum acc_device_t): Likewise.
13678 * openacc_lib.h: Likewise.
13679 * oacc-init.c (name_of_acc_device_t): Don't handle it.
13680 (acc_on_device): Just use __builtin_acc_on_device.
13681 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
13682 of acc_on_device builtin.
13683 * plugin/plugin-host.h: Remove file.
13684 * plugin/plugin-host.c: Likewise, but salvage some content into...
13685 * oacc-host.c: ... this file.
13686 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
13687 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
13688 * Makefile.in: Regenerate.
13689 * configure: Likewise.
13690 * testsuite/lib/libgomp.exp
13691 (check_effective_target_openacc_host_nonshm_selected): Remove.
13692 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
13693 ACC_DEVICE_TYPE=host_nonshm.
13694 * testsuite/libgomp.oacc-c/c.exp: Likewise.
13695 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
13696 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
13697 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
13698 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
13699 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
13700
13701 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
13702 Jakub Jelinek <jakub@redhat.com>
13703
13704 * config/nvptx/affinity.c: New file.
13705 * config/nvptx/alloc.c: Likewise.
13706 * config/nvptx/bar.c: Likewise.
13707 * config/nvptx/barrier.c: Likewise.
13708 * config/nvptx/critical.c: Likewise.
13709 * config/nvptx/env.c: Likewise.
13710 * config/nvptx/error.c: Likewise.
13711 * config/nvptx/fortran.c: Likewise.
13712 * config/nvptx/iter.c: Likewise.
13713 * config/nvptx/iter_ull.c: Likewise.
13714 * config/nvptx/libgomp-plugin.c: Likewise.
13715 * config/nvptx/lock.c: Likewise.
13716 * config/nvptx/loop.c: Likewise.
13717 * config/nvptx/loop_ull.c: Likewise.
13718 * config/nvptx/mutex.c: Likewise.
13719 * config/nvptx/oacc-async.c: Likewise.
13720 * config/nvptx/oacc-cuda.c: Likewise.
13721 * config/nvptx/oacc-host.c: Likewise.
13722 * config/nvptx/oacc-init.c: Likewise.
13723 * config/nvptx/oacc-mem.c: Likewise.
13724 * config/nvptx/oacc-parallel.c: Likewise.
13725 * config/nvptx/oacc-plugin.c: Likewise.
13726 * config/nvptx/omp-lock.h: Likewise.
13727 * config/nvptx/ordered.c: Likewise.
13728 * config/nvptx/parallel.c: Likewise.
13729 * config/nvptx/proc.c: Likewise.
13730 * config/nvptx/ptrlock.c: Likewise.
13731 * config/nvptx/sections.c: Likewise.
13732 * config/nvptx/sem.c: Likewise.
13733 * config/nvptx/single.c: Likewise.
13734 * config/nvptx/splay-tree.c: Likewise.
13735 * config/nvptx/target.c: Likewise.
13736 * config/nvptx/task.c: Likewise.
13737 * config/nvptx/team.c: Likewise.
13738 * config/nvptx/time.c: Likewise.
13739 * config/nvptx/work.c: Likewise.
13740 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
13741 * configure: Regenerate.
13742 * configure.tgt (config_path): Set to "nvptx" for target
13743 nvptx*-*-*.
13744
13745 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
13746
13747 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
13748
13749 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
13750
13751 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
13752 (cuda_errlist): Constify.
13753 (errmsg): Move into ...
13754 (cuda_error): ... here. Make smaller.
13755 (_XSTR, _STR): Delete.
13756 (cuda_synames): Delete.
13757 (verify_device_library): Delete.
13758 (nvptx_init): Don't call it.
13759
13760 2015-07-28 Tom de Vries <tom@codesourcery.com>
13761
13762 * testsuite/libgomp.c/uns-outer-4.c: New test.
13763
13764 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
13765
13766 * testsuite/libgomp.c/pr66714.c: New test.
13767
13768 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
13769
13770 PR libgomp/66950
13771 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
13772 (fib_ref): New function.
13773 (fib): Correct corner cases in the recursion.
13774 (main): Replace the non-simd loop with fib_ref call.
13775 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
13776 subroutine.
13777 (fibonacci): Lower the parameter N to 30. Correct accordingly check
13778 for the last array element value. Replace the non-simd loop with
13779 fib_ref call. Remove redundant b_ref array. Remove the comparison
13780 of the last array element with according Fibonacci sequence element.
13781 (fib): Correct corner cases in the recursion.
13782
13783 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
13784
13785 * target.c (gomp_offload_image_to_device): Rename to ...
13786 (gomp_load_image_to_device): ... here.
13787 (GOMP_offload_register): Adjust call.
13788 (gomp_init_device): Likewise.
13789 (gomp_unload_image_from_device): New. Broken out of ...
13790 (GOMP_offload_unregister): ... here. Call it.
13791 (gomp_unload_device): New.
13792 * libgomp.h (gomp_unload_device): Declare.
13793 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
13794 mem maps.
13795
13796 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
13797
13798 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
13799 wait=-specific if.
13800 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
13801 !=0 condition.
13802 (goacc_waits): Move !num_waits handling to ...
13803 (GOACC_wait): ... here, the only caller that might have zero waits.
13804
13805 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
13806 (struct ptx_image_data): Move earlier, add fns field.
13807 (struct ptx_device): Add images and image_lock fields.
13808 (ptx_images, ptx_image_lock): Delete.
13809 (nvptx_open_device): Initialize images and image_lock fields.
13810 (nvptx_close_device): Destroy image_lock.
13811 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
13812 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
13813 fields.
13814
13815 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
13816
13817 * target.c (GOMP_offload_register): Use int for device type arg.
13818 (GOMP_offload_unregister): Likewise.
13819
13820 * target.c (struct_offload_image_descr): Constify host_table.
13821 (gomp_offload_image_to_device): Likewise.
13822 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
13823
13824 * libgomp.h (gomp_device_descr): Constify target data arguments.
13825 * target.c (struct offload_image_descr): Constify target_data.
13826 (gomp_offload_image_to_device): Likewise.
13827 (GOMP_offload_register): Likewise.
13828 (GOMP_offload_unregister): Likewise.
13829 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
13830 GOMP_OFFLOAD_unload_image): Constify target data.
13831 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
13832 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
13833
13834 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
13835
13836 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
13837 Workaround driver library const error.
13838 (struct nvptx_tdata, nvptx_tdata_t): New.
13839 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
13840 type.
13841
13842 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
13843
13844 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
13845 of EPS parameter from integer to real.
13846 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
13847 type of EPS parameter from integer to real.
13848
13849 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
13850
13851 * team.c (get_last_team): New.
13852 (gomp_new_team): Recycle last non-nested team if possible.
13853 (gomp_team_end): Move team work share list free lock destruction
13854 to ...
13855 (free_team): ... here.
13856
13857 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
13858
13859 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
13860 and ref from int to double. Replaced their comparison with
13861 an inequality of their difference and EPS.
13862 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
13863 comparison of pri and a reference number with an inequality of their
13864 difference and EPS.
13865 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
13866 the comparison of sum and sum_ref with an inequality of their
13867 difference and EPS.
13868 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
13869 the comparison of pri and a reference number with an inequality of
13870 their difference and EPS.
13871
13872 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
13873
13874 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
13875 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
13876 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
13877 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
13878 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
13879 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
13880 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
13881 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
13882 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
13883 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
13884 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
13885 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
13886 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
13887 variables.
13888 (vec_mult): Likewise. Add #pragma omp taskwait.
13889 (main): Adjust caller.
13890 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
13891 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
13892 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
13893 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
13894 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
13895 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
13896 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
13897 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
13898 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
13899 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
13900 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
13901 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
13902 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
13903 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
13904 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
13905 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
13906 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
13907 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
13908 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
13909 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
13910 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
13911 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
13912 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
13913 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
13914 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
13915 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
13916 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
13917 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
13918 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
13919 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
13920 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
13921 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
13922 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
13923 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
13924 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
13925 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
13926 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
13927 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
13928 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
13929 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
13930 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
13931 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
13932 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
13933 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
13934 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
13935 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
13936 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
13937 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
13938 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
13939 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
13940 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
13941 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
13942 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
13943 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
13944 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
13945 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
13946 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
13947 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
13948 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
13949 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
13950 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
13951 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
13952 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
13953 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
13954 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
13955 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
13956 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
13957 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
13958 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
13959 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
13960 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
13961 (vec_mult): Add !$omp taskwait.
13962 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
13963 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
13964 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
13965 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
13966 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
13967 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
13968 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
13969 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
13970 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
13971 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
13972 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
13973 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
13974 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
13975 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
13976 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
13977 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
13978 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
13979 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
13980 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
13981 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
13982 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
13983 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
13984 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
13985 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
13986 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
13987 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
13988 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
13989 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
13990 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
13991 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
13992 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
13993 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
13994 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
13995 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
13996 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
13997 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
13998 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
13999 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
14000 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
14001 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
14002 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
14003 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
14004 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
14005 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
14006 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
14007 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
14008 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
14009 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
14010 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
14011 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
14012 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
14013 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
14014 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
14015 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
14016 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
14017 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
14018 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
14019 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
14020 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
14021 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
14022 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
14023 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
14024 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
14025 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
14026 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
14027 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
14028 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
14029
14030 2015-07-10 Tom de Vries <tom@codesourcery.com>
14031
14032 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
14033 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
14034
14035 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
14036
14037 PR libgomp/65099
14038 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
14039 in a 64-bit configuration.
14040 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
14041 offloading testing if no such device is available.
14042 * testsuite/libgomp.oacc-c/c.exp: Likewise.
14043 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14044
14045 2015-07-08 Tom de Vries <tom@codesourcery.com>
14046
14047 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
14048 second call to f.
14049 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14050
14051 2015-07-07 Tom de Vries <tom@codesourcery.com>
14052
14053 PR tree-optimization/66642
14054 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
14055 iteration count case.
14056 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
14057 function, factor out of ...
14058 (main): ... here. Test low iteration count case.
14059
14060 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
14061
14062 * libgomp.h (gomp_thread_pool): Comment last_team field.
14063
14064 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
14065
14066 * testsuite/libgomp.c++/pr66702-1.C: Require
14067 vect_simd_clones effective target.
14068 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
14069
14070 2015-06-30 Tom de Vries <tom@codesourcery.com>
14071
14072 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
14073 already set. Use DEFAULT_CFLAGS in dg-runtest.
14074 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
14075 "-O2".
14076
14077 2015-06-30 Tom de Vries <tom@codesourcery.com>
14078
14079 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
14080 already set. Use DEFAULT_CFLAGS in dg-runtest.
14081 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
14082 * testsuite/libgomp.c++/pr64824.C: Same.
14083 * testsuite/libgomp.c++/pr64868.C: Same.
14084 * testsuite/libgomp.c++/pr66199-1.C: Same.
14085 * testsuite/libgomp.c++/pr66199-2.C: Same.
14086 * testsuite/libgomp.c++/target-2.C: Same.
14087 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
14088 -std=<standard> option.
14089 * testsuite/libgomp.c++/udr-11.C: Same.
14090 * testsuite/libgomp.c++/udr-12.C: Same.
14091 * testsuite/libgomp.c++/udr-13.C: Same.
14092 * testsuite/libgomp.c++/udr-14.C: Same.
14093 * testsuite/libgomp.c++/udr-15.C: Same.
14094 * testsuite/libgomp.c++/udr-16.C: Same.
14095 * testsuite/libgomp.c++/udr-17.C: Same.
14096 * testsuite/libgomp.c++/udr-18.C: Same.
14097 * testsuite/libgomp.c++/udr-19.C: Same.
14098 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
14099 * testsuite/libgomp.c++/simd-1.C: Same.
14100 * testsuite/libgomp.c++/simd-2.C: Same.
14101 * testsuite/libgomp.c++/simd-3.C: Same.
14102 * testsuite/libgomp.c++/simd-4.C: Same.
14103 * testsuite/libgomp.c++/simd-5.C: Same.
14104 * testsuite/libgomp.c++/simd-6.C: Same.
14105 * testsuite/libgomp.c++/simd-7.C: Same.
14106 * testsuite/libgomp.c++/simd-8.C: Same.
14107 * testsuite/libgomp.c++/simd-9.C: Same.
14108 * testsuite/libgomp.c++/simd10.C: Same.
14109 * testsuite/libgomp.c++/simd11.C: Same.
14110 * testsuite/libgomp.c++/simd12.C: Same.
14111 * testsuite/libgomp.c++/simd13.C: Same.
14112
14113 2015-06-30 Jakub Jelinek <jakub@redhat.com>
14114
14115 PR middle-end/66702
14116 * testsuite/libgomp.c++/pr66702-1.C: New test.
14117 * testsuite/libgomp.c++/pr66702-2.C: New test.
14118
14119 2015-06-30 Tom de Vries <tom@codesourcery.com>
14120
14121 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
14122 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
14123 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
14124 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
14125
14126 2015-06-30 Tom de Vries <tom@codesourcery.com>
14127
14128 PR tree-optimization/66652
14129 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
14130 using restrict pointers.
14131 (main): Add arguments to calls to f.
14132 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14133
14134 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
14135
14136 * configure.ac: Fix check for header <sys/sysctl.h>.
14137 * configure: Regenerate.
14138 * config.h.in: Likewise.
14139
14140 2015-06-23 Tom de Vries <tom@codesourcery.com>
14141
14142 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
14143 abort.
14144 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
14145
14146 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
14147
14148 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
14149 acc_device_nvidia.
14150
14151 PR libgomp/66518
14152 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
14153 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14154
14155 2015-06-15 Tom de Vries <tom@codesourcery.com>
14156
14157 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
14158 dg-additional-options for any remaining options.
14159 * testsuite/libgomp.c/atomic-2.c: Same.
14160 * testsuite/libgomp.c/atomic-4.c: Same.
14161 * testsuite/libgomp.c/atomic-5.c: Same.
14162 * testsuite/libgomp.c/atomic-6.c: Same.
14163 * testsuite/libgomp.c/autopar-1.c: Same.
14164 * testsuite/libgomp.c/copyin-1.c: Same.
14165 * testsuite/libgomp.c/copyin-2.c: Same.
14166 * testsuite/libgomp.c/copyin-3.c: Same.
14167 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
14168 * testsuite/libgomp.c/nestedfn-5.c: Same.
14169 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
14170 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
14171 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
14172 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14173 * testsuite/libgomp.c/pr32362-1.c: Same.
14174 * testsuite/libgomp.c/pr32362-2.c: Same.
14175 * testsuite/libgomp.c/pr32362-3.c: Same.
14176 * testsuite/libgomp.c/pr39591-1.c: Same.
14177 * testsuite/libgomp.c/pr39591-2.c: Same.
14178 * testsuite/libgomp.c/pr39591-3.c: Same.
14179 * testsuite/libgomp.c/pr58392.c: Same.
14180 * testsuite/libgomp.c/pr58756.c: Same.
14181 * testsuite/libgomp.c/simd-1.c: Same.
14182 * testsuite/libgomp.c/simd-10.c: Same.
14183 * testsuite/libgomp.c/simd-11.c: Same.
14184 * testsuite/libgomp.c/simd-12.c: Same.
14185 * testsuite/libgomp.c/simd-13.c: Same.
14186 * testsuite/libgomp.c/simd-14.c: Same.
14187 * testsuite/libgomp.c/simd-15.c: Same.
14188 * testsuite/libgomp.c/simd-2.c: Same.
14189 * testsuite/libgomp.c/simd-3.c: Same.
14190 * testsuite/libgomp.c/simd-4.c: Same.
14191 * testsuite/libgomp.c/simd-5.c: Same.
14192 * testsuite/libgomp.c/simd-6.c: Same.
14193 * testsuite/libgomp.c/simd-7.c: Same.
14194 * testsuite/libgomp.c/simd-8.c: Same.
14195 * testsuite/libgomp.c/simd-9.c: Same.
14196
14197 2015-06-15 Tom de Vries <tom@codesourcery.com>
14198
14199 * testsuite/libgomp.c/pr35625.c: Fix typo.
14200
14201 2015-06-15 Tom de Vries <tom@codesourcery.com>
14202
14203 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
14204 in dg-options.
14205 * testsuite/libgomp.c/atomic-3.c: Same.
14206 * testsuite/libgomp.c/debug-1.c: Same.
14207 * testsuite/libgomp.c/nqueens-1.c: Same.
14208 * testsuite/libgomp.c/pr26171.c: Same.
14209 * testsuite/libgomp.c/pr48591.c: Same.
14210 * testsuite/libgomp.c/pr64824.c: Same.
14211 * testsuite/libgomp.c/pr64868.c: Same.
14212 * testsuite/libgomp.c/pr66133.c: Same.
14213 * testsuite/libgomp.c/pr66199-1.c: Same.
14214 * testsuite/libgomp.c/pr66199-2.c: Same.
14215 * testsuite/libgomp.c/target-8.c: Same.
14216
14217 2015-06-15 Tom de Vries <tom@codesourcery.com>
14218
14219 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
14220 -std={gnu99,c99}.
14221 * testsuite/libgomp.c/for-1.c: Same.
14222 * testsuite/libgomp.c/for-2.c: Same.
14223 * testsuite/libgomp.c/for-3.c: Same.
14224 * testsuite/libgomp.c/pr35625.c: Same.
14225 * testsuite/libgomp.c/pr39154.c: Same.
14226 * testsuite/libgomp.c/simd-16.c: Same.
14227 * testsuite/libgomp.c/simd-17.c: Same.
14228
14229 2015-06-13 Tom de Vries <tom@codesourcery.com>
14230
14231 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
14232
14233 2015-06-13 Tom de Vries <tom@codesourcery.com>
14234
14235 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
14236 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14237 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
14238 (N): Define.
14239 (main): Use N instead of hardcoded constants.
14240
14241 2015-06-05 Tom de Vries <tom@codesourcery.com>
14242
14243 merge from gomp4 branch:
14244 2015-05-28 Tom de Vries <tom@codesourcery.com>
14245
14246 PR tree-optimization/65443
14247 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
14248 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
14249 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
14250
14251 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14252
14253 * testsuite/libgomp.graphite/bounds.c: Adjust for
14254 cleanup-tree-dump removal.
14255 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
14256 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
14257 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
14258 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
14259 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
14260 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
14261 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
14262 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
14263 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
14264 * testsuite/libgomp.graphite/pr41118.c: Likewise.
14265
14266 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
14267
14268 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
14269 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
14270 (futex_wake) [!__x86_64__]: Ditto.
14271
14272 2015-05-28 Julian Brown <julian@codesourcery.com>
14273
14274 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
14275 function comment. Only call gomp_fatal if new argument is true.
14276 (acc_dev_num_out_of_range): New function.
14277 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
14278 acc_dev_num_out_of_range as appropriate.
14279 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
14280 (acc_get_device_num, acc_set_device_num): Update calls to
14281 resolve_device.
14282 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
14283 output.
14284
14285 2015-05-28 Julian Brown <julian@codesourcery.com>
14286
14287 PR libgomp/65742
14288 * oacc-init.c (plugin/plugin-host.h): Include.
14289 (acc_on_device): Check whether we're in an offloaded region for
14290 host_nonshm
14291 plugin. Don't use __builtin_acc_on_device.
14292 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
14293 nonshm_exec flag in thread-local data.
14294 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
14295 data for host_nonshm plugin.
14296 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
14297 for host_nonshm plugin.
14298 * plugin/plugin-host.h: New.
14299
14300 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
14301
14302 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
14303
14304 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
14305
14306 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
14307 Declare as int.
14308 (FUTEX_PRIVATE_FLAG): Remove L suffix.
14309 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
14310 Declare as int.
14311
14312 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
14313
14314 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
14315
14316 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
14317
14318 * target.c (gomp_map_pointer): New function abstracting out
14319 GOMP_MAP_POINTER handling.
14320 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
14321 gomp_map_pointer().
14322
14323 2015-05-19 Jakub Jelinek <jakub@redhat.com>
14324
14325 PR middle-end/66199
14326 * testsuite/libgomp.c/pr66199-1.c: New test.
14327 * testsuite/libgomp.c/pr66199-2.c: New test.
14328 * testsuite/libgomp.c++/pr66199-1.C: New test.
14329 * testsuite/libgomp.c++/pr66199-2.C: New test.
14330 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
14331 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
14332
14333 2015-05-19 Julian Brown <julian@codesourcery.com>
14334
14335 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
14336 on cuInit failure.
14337
14338 2015-05-13 Jakub Jelinek <jakub@redhat.com>
14339
14340 PR middle-end/66133
14341 * testsuite/libgomp.c/pr66133.c: New test.
14342
14343 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
14344
14345 * Makefile.in: Regenerated with automake-1.11.6.
14346 * aclocal.m4: Likewise.
14347 * config.h.in: Likewise.
14348 * configure: Likewise.
14349 * testsuite/Makefile.in: Likewise.
14350
14351 2015-05-08 Jason Merrill <jason@redhat.com>
14352
14353 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
14354 _Complex.
14355
14356 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
14357
14358 2015-05-06 Julian Brown <julian@codesourcery.com>
14359
14360 * oacc-init.c (acc_device_lock): Add explanatory comment.
14361 (resolve_device): Add comment about locking requirement.
14362 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
14363 gomp_init_device and gomp_fini_device calls.
14364 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
14365 (acc_get_device_num, acc_set_device_num): Add locking around
14366 resolve_device and gomp_init_device calls.
14367
14368 2015-05-06 Julian Brown <julian@codesourcery.com>
14369
14370 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
14371 goacc_thread_lock on error paths.
14372 * oacc-mem.c (lookup_host): Remove locking from function. Note
14373 locking requirement for caller in function comment.
14374 (lookup_dev): Likewise.
14375 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
14376 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
14377 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
14378 Add locking.
14379
14380 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
14381
14382 PR testsuite/65205
14383 PR libgomp/65993
14384 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
14385 don't expect "0x" prefix for "%p" format specifier, don't expect
14386 "(nil)" for NULL pointer.
14387 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14388 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14389 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14390 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14391 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14392 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14393 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14394 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14395 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14396 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14397 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14398 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14399 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14400 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14401 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14402 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14403 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14404 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14405 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14406 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14407 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14408 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14409 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14410 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14411 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14412 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14413 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14414 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14415 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
14416 accurately specify what we're looking for.
14417 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14418 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14419 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
14420 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
14421 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
14422
14423 2015-04-30 James Norris <jnorris@codesourcery.com>
14424
14425 PR testsuite/65205
14426 * testsuite/lib/libgomp.exp
14427 (check_effective_target_openacc_host_selected)
14428 (check_effective_target_openacc_host_nonshm_selected): New
14429 procedures.
14430 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
14431 dg-shouldfail.
14432 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14433 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14434 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14435 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14436 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14437 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14438 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14439 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14440 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14441 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14442 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14443 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14444 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14445 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14446 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14447 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
14448 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14449 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14450 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14451 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14452 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14453 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
14454 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14455 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14456 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14457 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14458 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14459 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14460 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14461 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14462 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14463 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14464 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14465 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
14466 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
14467 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
14468 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
14469 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
14470 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
14471 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
14472 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
14473 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
14474 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
14475
14476 2015-04-08 Julian Brown <julian@codesourcery.com>
14477
14478 * libgomp.h (target_mem_desc: Remove mem_map field.
14479 (acc_dispatch_t): Remove open_device_func, close_device_func,
14480 get_device_num_func, set_device_num_func, target_data members.
14481 Change create_thread_data_func argument to device number instead of
14482 generic pointer.
14483 * oacc-async.c (assert.h): Include.
14484 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
14485 (acc_wait_all, acc_wait_all_async): Use current host thread's
14486 active device, not base_dev.
14487 * oacc-cuda.c (acc_get_current_cuda_device)
14488 (acc_get_current_cuda_context, acc_get_cuda_stream)
14489 (acc_set_cuda_stream): Likewise.
14490 * oacc-host.c (host_dispatch): Don't set open_device_func,
14491 close_device_func, get_device_num_func or set_device_num_func.
14492 * oacc-init.c (base_dev, init_key): Remove.
14493 (cached_base_dev): New.
14494 (name_of_acc_device_t): New.
14495 (acc_init_1): Initialise default-numbered device, not zeroth.
14496 (acc_shutdown_1): Close all devices of a given type.
14497 (goacc_destroy_thread): Don't use base_dev.
14498 (lazy_open, lazy_init, lazy_init_and_open): Remove.
14499 (goacc_attach_host_thread_to_device): New.
14500 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
14501 (acc_get_num_devices): Don't use base_dev.
14502 (acc_set_device_type): Reimplement.
14503 (acc_get_device_type): Don't use base_dev.
14504 (acc_get_device_num): Tweak logic.
14505 (acc_set_device_num): Likewise.
14506 (acc_on_device): Use acc_get_device_type.
14507 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
14508 (goacc_lazy_initialize): Reimplement with acc_init and
14509 goacc_attach_host_thread_to_device.
14510 * oacc-int.h (goacc_thread): Add base_dev field.
14511 (base_dev): Remove extern declaration.
14512 (goacc_attach_host_thread_to_device): Add prototype.
14513 * oacc-mem.c (acc_malloc): Use current thread's device instead of
14514 base_dev.
14515 (acc_free): Likewise.
14516 (acc_memcpy_to_device): Likewise.
14517 (acc_memcpy_from_device): Likewise.
14518 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
14519 goacc_lazy_initialize (throughout).
14520 (GOACC_parallel): Use tgt_offset to locate target functions.
14521 * target.c (gomp_map_vars): Don't set tgt->mem_map.
14522 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
14523 (gomp_load_plugin_for_device): Remove open_device, close_device,
14524 get_device_num, set_device_num openacc hook initialisation. Don't set
14525 openacc.target_data.
14526 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
14527 (GOMP_OFFLOAD_openacc_close_device)
14528 (GOMP_OFFLOAD_openacc_get_device_num)
14529 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
14530 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
14531 to int.
14532 * plugin/plugin-nvptx.c (ptx_inited): Remove.
14533 (instantiated_devices, ptx_dev_lock): New.
14534 (struct ptx_image_data): New.
14535 (ptx_devices, ptx_images, ptx_image_lock): New.
14536 (fini_streams_for_device): Reorder cuStreamDestroy call.
14537 (nvptx_get_num_devices): Remove forward declaration.
14538 (nvptx_init): Change return type to bool.
14539 (nvptx_fini): Remove.
14540 (nvptx_attach_host_thread_to_device): New.
14541 (nvptx_open_device): Return struct ptx_device* instead of void*.
14542 (nvptx_close_device): Change argument type to struct ptx_device*,
14543 return type to void.
14544 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
14545 (kernel_target_data, kernel_host_table): Remove static globals.
14546 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
14547 (GOMP_OFFLOAD_init_device): Reimplement.
14548 (GOMP_OFFLOAD_fini_device): Likewise.
14549 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
14550 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
14551 (GOMP_OFFLOAD_host2dev): Use ORD argument.
14552 (GOMP_OFFLOAD_openacc_open_device)
14553 (GOMP_OFFLOAD_openacc_close_device)
14554 (GOMP_OFFLOAD_openacc_set_device_num)
14555 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
14556 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
14557 (device number).
14558
14559 testsuite/
14560 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
14561
14562 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
14563
14564 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
14565 * libgomp.h (struct gomp_memory_mapping): Remove.
14566 (struct target_mem_desc): Change type of mem_map from
14567 gomp_memory_mapping * to splay_tree_s *.
14568 (struct gomp_device_descr): Remove register_image_func, get_table_func.
14569 Add load_image_func, unload_image_func.
14570 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
14571 Remove offload_regions_registered.
14572 (gomp_init_tables): Remove.
14573 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
14574 to splay_tree_s *.
14575 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
14576 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
14577 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
14578 offload_regions_registered.
14579 Initialize load_image_func, unload_image_func, mem_map.root.
14580 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
14581 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
14582 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
14583 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
14584 gomp_memory_mapping *. Use dev's lock and splay_tree.
14585 (lookup_dev): Use dev's lock.
14586 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
14587 (acc_is_present): Likewise.
14588 (acc_map_data): Likewise.
14589 (acc_unmap_data): Likewise. Use dev's lock.
14590 (present_create_copy): Likewise.
14591 (delete_copyout): Pass dev to lookup_host instead of mem_map.
14592 (update_dev_host): Likewise.
14593 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
14594 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
14595 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
14596 (GOMP_OFFLOAD_get_table): Remove
14597 (GOMP_OFFLOAD_load_image): New function.
14598 (GOMP_OFFLOAD_unload_image): New function.
14599 * target.c (register_lock): New mutex for offload image registration.
14600 (num_devices): Do not guard with PLUGIN_SUPPORT.
14601 (gomp_realloc_unlock): New static function.
14602 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
14603 before gomp_fatal.
14604 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
14605 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
14606 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
14607 mem_map's.
14608 (gomp_unmap_vars): Likewise.
14609 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
14610 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
14611 (gomp_offload_image_to_device): New static function.
14612 (GOMP_offload_register): Add mutex lock.
14613 Call gomp_offload_image_to_device for all initialized devices.
14614 Replace gomp_realloc with gomp_realloc_unlock.
14615 (GOMP_offload_unregister): New function.
14616 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
14617 get_table_func from the plugin with calls to init_device_func and
14618 gomp_offload_image_to_device.
14619 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
14620 to splay_tree_s *.
14621 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
14622 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
14623 (GOMP_target_data): Do not call gomp_init_tables.
14624 (GOMP_target_update): Likewise. Remove argument from gomp_update.
14625 (gomp_load_plugin_for_device): Replace register_image and get_table
14626 with load_image and unload_image in DLSYM ().
14627 (gomp_register_images_for_device): Remove function.
14628 (gomp_target_init): Do not initialize current_device.mem_map.*,
14629 current_device.offload_regions_registered.
14630 Remove call to gomp_register_images_for_device.
14631 Do not free offload_images and num_offload_images.
14632
14633 2015-03-30 Jakub Jelinek <jakub@redhat.com>
14634
14635 PR fortran/65597
14636 * testsuite/libgomp.fortran/pr65597.f90: New test.
14637
14638 2015-03-27 Tom de Vries <tom@codesourcery.com>
14639
14640 PR testsuite/65594
14641 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
14642 (init, check): New function.
14643 (foo): Change return type to void.
14644 (main): Call init and check.
14645
14646 2015-03-27 Tom de Vries <tom@codesourcery.com>
14647
14648 PR testsuite/65594
14649 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
14650 (foo): Use M for non-inner loops to scale down test-case.
14651
14652 2015-03-25 Kai Tietz <ktietz@redhat.com>
14653
14654 PR libgomp/64972
14655 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
14656 (GOACC_data_start): Likewise.
14657 * target.c (gomp_map_vars): Likewise.
14658
14659 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
14660
14661 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
14662 hppa*-*-hpux*.
14663
14664 2015-03-19 Jakub Jelinek <jakub@redhat.com>
14665
14666 * testsuite/libgomp.c/target-10.c: New test.
14667 * testsuite/libgomp.c++/target-4.C: New test.
14668
14669 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
14670
14671 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
14672 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
14673
14674 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
14675
14676 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
14677 * configure.ac (*-*-rtems*): Assume Pthread is supported.
14678 (pthread.h): Check for this header file.
14679 * configure: Regenerate.
14680
14681 2015-02-25 Tom de Vries <tom@codesourcery.com>
14682
14683 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
14684 (check_reduction_op, check_reduction_macro, max, min):
14685 Declare.
14686 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
14687 function.
14688 (main): Use new functions.
14689
14690 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
14691
14692 * target.c (gomp_load_plugin_for_device): Use const char * instead of
14693 char * for variables holding dlerror return values.
14694 (DLSYM_OPT): Ditto.
14695
14696 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
14697
14698 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
14699
14700 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
14701 Cesar Philippidis <cesar@codesourcery.com>
14702
14703 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
14704 GOACC_ctaid, and GOACC_nctaid routines.
14705
14706 2015-02-11 Jakub Jelinek <jakub@redhat.com>
14707
14708 PR c/64824
14709 * testsuite/libgomp.c/atomic-18.c: New test.
14710 * testsuite/libgomp.c++/atomic-16.C: New test.
14711
14712 2015-02-04 Jakub Jelinek <jakub@redhat.com>
14713
14714 PR c/64824
14715 PR c/64868
14716 * testsuite/libgomp.c/pr64824.c: New test.
14717 * testsuite/libgomp.c/pr64868.c: New test.
14718 * testsuite/libgomp.c++/pr64824.C: New test.
14719 * testsuite/libgomp.c++/pr64868.C: New test.
14720
14721 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
14722
14723 PR libgomp/64635
14724 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
14725 Link with -lpthread.
14726 * config/aix/plugin-suffix.h: Delete.
14727
14728 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
14729
14730 PR libgomp/64635
14731 * configure.tgt (*-*-aix*): Use config_path "aix posix".
14732 (*-*-darwin*): Use config_path "bsd darwin posix".
14733 (*-*-hpux*): Use config_path "hpux posix".
14734 * target.c: Add include of plugin-suffix.h and use
14735 SONAME_SUFFIX macro.
14736 * config/aix/plugin-suffix.h: New file.
14737 * config/darwin/plugin-suffix.h: New file.
14738 * config/hpux/plugin-suffix.h: New file.
14739 * config/posix/plugin-suffix.h: New file.
14740
14741 2015-01-23 Jakub Jelinek <jakub@redhat.com>
14742
14743 PR middle-end/64734
14744 * libgomp.c/pr64734.c: New test.
14745
14746 2015-01-23 Tom de Vries <tom@codesourcery.com>
14747
14748 PR libgomp/64672
14749 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
14750
14751 2015-01-23 Tom de Vries <tom@codesourcery.com>
14752
14753 PR libgomp/64707
14754 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
14755 dg-options.
14756
14757 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
14758
14759 PR libgomp/64625
14760 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
14761 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
14762 formal parameter. Update all users.
14763 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
14764 Document unused formal parameter.
14765
14766 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
14767
14768 * oacc-parallel.c: Don't include <alloca.h>.
14769 (GOACC_parallel): Use gomp_alloca instead of alloca.
14770
14771 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
14772
14773 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
14774
14775 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
14776 James Norris <jnorris@codesourcery.com>
14777 Tom de Vries <tom@codesourcery.com>
14778 Julian Brown <julian@codesourcery.com>
14779 Cesar Philippidis <cesar@codesourcery.com>
14780 Nathan Sidwell <nathan@codesourcery.com>
14781 Tobias Burnus <burnus@net-b.de>
14782
14783 * Makefile.am (search_path): Add $(top_srcdir)/../include.
14784 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
14785 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
14786 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
14787 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
14788 Include $(top_srcdir)/plugin/Makefrag.am.
14789 (nodist_libsubinclude_HEADERS): Add openacc.h.
14790 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
14791 openacc.f90, openacc.mod, openacc_kinds.mod.
14792 (omp_lib.mod): Generalize into...
14793 (%.mod): ... this new rule.
14794 (openacc_kinds.mod, openacc.mod): New rules.
14795 * plugin/configfrag.ac: New file.
14796 * configure.ac: Move plugin/offloading support into it. Include
14797 it. Instantiate testsuite/libgomp-test-support.pt.exp.
14798 * plugin/Makefrag.am: New file.
14799 * testsuite/Makefile.am (OFFLOAD_TARGETS)
14800 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
14801 export.
14802 (libgomp-test-support.exp): New rule.
14803 (all-local): Depend on it.
14804 * Makefile.in: Regenerate.
14805 * testsuite/Makefile.in: Regenerate.
14806 * config.h.in: Likewise.
14807 * configure: Likewise.
14808 * configure.tgt: Harden shell syntax.
14809 * env.c: Include "oacc-int.h".
14810 (parse_acc_device_type): New function.
14811 (gomp_debug_var, goacc_device_type, goacc_device_num): New
14812 variables.
14813 (initialize_env): Initialize those. Call
14814 goacc_runtime_initialize.
14815 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
14816 (gomp_fatal): Call gomp_vfatal.
14817 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
14818 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
14819 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
14820 (splay_tree_node, splay_tree, splay_tree_key)
14821 (struct target_mem_desc, struct splay_tree_key_s)
14822 (struct gomp_memory_mapping, struct acc_dispatch_t)
14823 (struct gomp_device_descr, gomp_acc_insert_pointer)
14824 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
14825 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
14826 (gomp_free_memmap, gomp_fini_device): New declarations.
14827 (gomp_vdebug, gomp_debug): New macros.
14828 Include "splay-tree.h".
14829 * libgomp.map (OACC_2.0): New symbol version. Use for
14830 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
14831 acc_set_device_type_h_, acc_get_device_type,
14832 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
14833 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
14834 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
14835 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
14836 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
14837 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
14838 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
14839 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
14840 acc_copyin_array_h_, acc_present_or_copyin,
14841 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
14842 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
14843 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
14844 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
14845 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
14846 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
14847 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
14848 acc_update_device, acc_update_device_32_h_,
14849 acc_update_device_64_h_, acc_update_device_array_h_,
14850 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
14851 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
14852 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
14853 acc_is_present_64_h_, acc_is_present_array_h_,
14854 acc_memcpy_to_device, acc_memcpy_from_device,
14855 acc_get_current_cuda_device, acc_get_current_cuda_context,
14856 acc_get_cuda_stream, acc_set_cuda_stream.
14857 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
14858 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
14859 GOACC_update, GOACC_wait, GOACC_get_thread_num,
14860 GOACC_get_num_threads.
14861 (GOMP_PLUGIN_1.0): New symbol version. Use for
14862 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
14863 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
14864 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
14865 GOMP_PLUGIN_acc_thread.
14866 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
14867 environment variable.
14868 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
14869 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
14870 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
14871 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
14872 (splay_tree_remove): New declarations.
14873 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
14874 (splay_tree_remove, splay_tree_lookup): Move into...
14875 * splay-tree.c: ... this new file.
14876 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
14877 (splay_tree_node, splay_tree, splay_tree_key)
14878 (struct target_mem_desc, struct splay_tree_key_s)
14879 (struct gomp_device_descr): Don't declare.
14880 (num_devices_openmp): New variable.
14881 (gomp_get_num_devices ): Use it.
14882 (gomp_init_targets_once): New function.
14883 (gomp_get_num_devices ): Use it.
14884 (get_kind, gomp_copy_from_async, gomp_free_memmap)
14885 (gomp_fini_device, gomp_register_image_for_device): New functions.
14886 (gomp_map_vars): Add devaddrs parameter.
14887 (gomp_update): Add mm parameter.
14888 (gomp_init_device): Move most of it into...
14889 (gomp_init_tables): ... this new function.
14890 (gomp_register_images_for_device): Remove function.
14891 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
14892 Make them hidden instead of static.
14893 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
14894 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
14895 (GOMP_target_end_data, GOMP_target_update)
14896 (gomp_load_plugin_for_device, gomp_target_init): Update for
14897 OpenACC changes.
14898 * oacc-async.c: New file.
14899 * oacc-cuda.c: Likewise.
14900 * oacc-host.c: Likewise.
14901 * oacc-init.c: Likewise.
14902 * oacc-int.h: Likewise.
14903 * oacc-mem.c: Likewise.
14904 * oacc-parallel.c: Likewise.
14905 * oacc-plugin.c: Likewise.
14906 * oacc-plugin.h: Likewise.
14907 * oacc-ptx.h: Likewise.
14908 * openacc.f90: Likewise.
14909 * openacc.h: Likewise.
14910 * openacc_lib.h: Likewise.
14911 * plugin/plugin-host.c: Likewise.
14912 * plugin/plugin-nvptx.c: Likewise.
14913 * libgomp-plugin.c: Likewise.
14914 * libgomp-plugin.h: Likewise.
14915 * libgomp_target.h: Remove file after merging content into the
14916 former file. Update all users.
14917 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
14918 (offload_targets_s, offload_targets_s_openacc): New variables.
14919 (check_effective_target_openacc_nvidia_accel_present)
14920 (check_effective_target_openacc_nvidia_accel_selected): New
14921 procedures.
14922 (libgomp_init): Update for OpenACC changes.
14923 * testsuite/libgomp-test-support.exp.in: New file.
14924 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
14925 * testsuite/libgomp.oacc-c/c.exp: Likewise.
14926 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14927 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
14928 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
14929 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14930 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
14931 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
14932 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
14933 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
14934 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
14935 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
14936 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
14937 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
14938 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
14939 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
14940 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
14941 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
14942 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
14943 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
14944 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
14945 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
14946 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
14947 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
14948 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14949 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
14950 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
14951 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
14952 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
14953 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
14954 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14955 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
14956 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
14957 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
14958 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
14959 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14960 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
14961 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14962 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
14963 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
14964 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
14965 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
14966 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14967 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14968 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14969 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
14970 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14971 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14972 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14973 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14974 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14975 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
14976 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14977 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14978 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14979 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14980 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14981 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
14982 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14983 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
14984 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
14985 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
14986 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14987 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14988 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14989 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
14990 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
14991 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14992 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
14993 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14994 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
14995 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14996 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14997 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14998 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
14999 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
15000 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15001 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15002 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
15003 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
15004 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
15005 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
15006 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15007 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15008 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15009 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
15010 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
15011 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15012 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15013 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
15014 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
15015 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
15016 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
15017 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15018 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15019 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15020 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15021 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
15022 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15023 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15024 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
15025 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
15026 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
15027 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15028 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
15029 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
15030 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
15031 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
15032 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
15033 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15034 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
15035 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
15036 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15037 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
15038 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
15039 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
15040 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
15041 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
15042 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
15043 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
15044 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
15045 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
15046 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
15047 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
15048 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
15049 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
15050 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
15051 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
15052 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
15053 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
15054 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
15055 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
15056 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15057 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
15058 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
15059 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
15060 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
15061 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
15062 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
15063 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
15064 Likewise.
15065 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
15066 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
15067 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
15068 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
15069 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
15070 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
15071 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
15072 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
15073 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
15074 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
15075 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
15076 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
15077 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
15078 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
15079 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
15080 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
15081 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
15082 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
15083 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
15084 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
15085 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
15086 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
15087 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
15088 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
15089 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
15090 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
15091 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
15092 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
15093 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
15094 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
15095 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
15096 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
15097 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
15098 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
15099 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
15100 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
15101 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
15102 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
15103 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
15104 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
15105 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
15106 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
15107 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
15108 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
15109 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
15110 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
15111 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
15112 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
15113 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
15114 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
15115 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
15116 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
15117 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
15118 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
15119 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
15120 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
15121 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
15122 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
15123 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
15124 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
15125
15126 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
15127 Julian Brown <julian@codesourcery.com>
15128 David Malcolm <dmalcolm@redhat.com>
15129
15130 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
15131 to "GNU Offloading and Multi Processing Runtime Library". Change
15132 all users.
15133 * configure: Regenerate.
15134 * libgomp.texi: Update.
15135
15136 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
15137
15138 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
15139 "$tgt_dir/lib32".
15140 * configure: Regenerate.
15141
15142 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
15143 "intelmic" in $offload_targets.
15144
15145 2015-01-05 Jakub Jelinek <jakub@redhat.com>
15146
15147 Update copyright years.
15148
15149 * libgomp.texi: Bump @copying's copyright year.
15150
15151 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15152
15153 * testsuite/lib/libgomp.exp: Load target-utils.exp.
15154 Move load of target-supports.exp earlier.
15155
15156 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
15157
15158 * testsuite/libgomp.c/target-9.c: New test.
15159
15160 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
15161
15162 * config.h.in: Regenerate.
15163 * configure: Regenerate.
15164 * configure.ac: Add GCC_CHECK_EMUTLS.
15165 * libgomp.h: Add check for USE_EMUTLS: this case
15166 is equal to HAVE_TLS.
15167 * team.c: Likewise.
15168
15169 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
15170
15171 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
15172
15173 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
15174 Ilya Verbin <ilya.verbin@intel.com>
15175
15176 * testsuite/libgomp.c/target-critical-1.c: New test.
15177
15178 2014-11-26 Jakub Jelinek <jakub@redhat.com>
15179
15180 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
15181 to dg-options unless expensive testing is on.
15182 (TESTITERS): Define to N if not defined.
15183 (main): Use TESTITERS instead of N.
15184 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
15185 dg-additional-options depending on whether expensive testing is on.
15186 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
15187 Decrease N to 100000 and CHUNKSZ to 10000.
15188
15189 2014-11-24 Jakub Jelinek <jakub@redhat.com>
15190
15191 PR fortran/63938
15192 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
15193 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
15194
15195 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
15196
15197 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
15198
15199 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
15200
15201 PR bootstrap/63784
15202 * configure: Regenerated.
15203
15204 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
15205
15206 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
15207 vect_simd_clones effective target.
15208 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
15209
15210 2014-11-14 Jakub Jelinek <jakub@redhat.com>
15211
15212 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
15213 of 32 as block_size.
15214 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
15215 instead of 32 as block_size.
15216
15217 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
15218 Ilya Verbin <ilya.verbin@intel.com>
15219
15220 * Makefile.in: Regenerate.
15221 * configure: Regenerate.
15222 * configure.ac: Set up offload_additional_options,
15223 offload_additional_lib_paths and offload_targets.
15224 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
15225 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
15226 * testsuite/Makefile.in: Regenerate.
15227 * testsuite/lib/libgomp.exp (libgomp_init): Append
15228 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
15229 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
15230 build directory to LD_LIBRARY_PATH for intelmic offload targets.
15231
15232 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
15233 Ilya Verbin <ilya.verbin@intel.com>
15234 Kirill Yukhin <kirill.yukhin@intel.com>
15235 Ilya Tocar <ilya.tocar@intel.com>
15236
15237 * testsuite/lib/libgomp.exp
15238 (check_effective_target_offload_device): New.
15239 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
15240 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
15241 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
15242 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
15243 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
15244 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
15245 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
15246 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
15247 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
15248 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
15249 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
15250 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
15251 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
15252 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
15253 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
15254 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
15255 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
15256 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
15257 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
15258 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
15259 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
15260 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
15261 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
15262 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
15263 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
15264 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
15265 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
15266 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
15267 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
15268 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
15269 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
15270 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
15271 * testsuite/libgomp.c/target-7.c: Fix test.
15272 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
15273 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
15274 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
15275 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
15276 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
15277 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
15278 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
15279 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
15280 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
15281 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
15282 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
15283 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
15284 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
15285 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
15286 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
15287 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
15288 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
15289 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
15290 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
15291 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
15292 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
15293 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
15294 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
15295 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
15296 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
15297 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
15298 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
15299 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
15300 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
15301 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
15302 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
15303
15304 2014-11-13 Jakub Jelinek <jakub@redhat.com>
15305 Ilya Verbin <ilya.verbin@intel.com>
15306 Thomas Schwinge <thomas@codesourcery.com>
15307 Andrey Turetskiy <andrey.turetskiy@intel.com>
15308
15309 * libgomp.map (GOMP_4.0.1): New symbol version.
15310 Add GOMP_offload_register.
15311 * libgomp_target.h: New file.
15312 * splay-tree.h: New file.
15313 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
15314 (gomp_target_init): New forward declaration.
15315 (gomp_is_initialized): New static variable.
15316 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
15317 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
15318 New structures.
15319 (offload_images, num_offload_images, devices, num_devices): New static
15320 variables.
15321 (splay_compare): New static function.
15322 (struct gomp_device_descr): New structure.
15323 (gomp_get_num_devices): Call gomp_target_init.
15324 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
15325 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
15326 (GOMP_offload_register): New function.
15327 (GOMP_target): Arrange for host callback to be performed in a separate
15328 initial thread and contention group, inheriting ICVs from
15329 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
15330 Add device initialization and lookup for target function in splay tree.
15331 (GOMP_target_data): Add device initialization and call gomp_map_vars.
15332 (GOMP_target_end_data): Call gomp_unmap_vars.
15333 (GOMP_target_update): Add device initialization and call gomp_update.
15334 (gomp_load_plugin_for_device, gomp_register_images_for_device)
15335 (gomp_target_init): New static functions.
15336
15337 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
15338 Thomas Schwinge <thomas@codesourcery.com>
15339 Ilya Verbin <ilya.verbin@intel.com>
15340 Andrey Turetskiy <andrey.turetskiy@intel.com>
15341
15342 * config.h.in: Regenerate.
15343 * configure: Regenerate.
15344 * configure.ac: Check for libdl, required for plugin support.
15345 (PLUGIN_SUPPORT): Define if plugins are supported.
15346 (enable_offload_targets): Support Intel MIC targets.
15347 (OFFLOAD_TARGETS): List of target names suitable for offloading.
15348
15349 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15350
15351 PR target/63610
15352 * configure: Regenerate.
15353
15354 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15355
15356 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
15357
15358 2014-10-06 Marek Polacek <polacek@redhat.com>
15359
15360 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
15361 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
15362 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
15363 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
15364
15365 2014-10-06 Marek Polacek <polacek@redhat.com>
15366
15367 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
15368 * testsuite/libgomp.c/nqueens-1.c: Likewise.
15369 * testsuite/libgomp.c/pr26943-3.c: Likewise.
15370 * testsuite/libgomp.c/pr26943-4.c: Likewise.
15371 * testsuite/libgomp.c/pr36802-2.c: Likewise.
15372 * testsuite/libgomp.c/pr36802-3.c: Likewise.
15373 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
15374 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
15375 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
15376 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
15377 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
15378 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
15379 * testsuite/libgomp.c/omp-single-1.c: Likewise.
15380 * testsuite/libgomp.c/omp-single-2.c: Likewise.
15381 * testsuite/libgomp.c/omp_matvec.c: Likewise.
15382 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
15383 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
15384 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
15385 declarations.
15386
15387 2014-10-03 Jakub Jelinek <jakub@redhat.com>
15388
15389 PR libgomp/61200
15390 * testsuite/libgomp.c/pr61200.c: New test.
15391
15392 2014-09-18 Jakub Jelinek <jakub@redhat.com>
15393
15394 PR c++/63248
15395 * testsuite/libgomp.c++/pr63248.C: New test.
15396
15397 2014-08-04 Jakub Jelinek <jakub@redhat.com>
15398
15399 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
15400 is not zero, but taskgroup->children is NULL and there are
15401 any task->children, schedule those instead of waiting.
15402 * testsuite/libgomp.c/depend-6.c: New test.
15403 * testsuite/libgomp.c/depend-7.c: New test.
15404 * testsuite/libgomp.c/depend-8.c: New test.
15405 * testsuite/libgomp.c/depend-9.c: New test.
15406 * testsuite/libgomp.c/depend-10.c: New test.
15407
15408 2014-08-01 Jakub Jelinek <jakub@redhat.com>
15409
15410 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
15411 (struct gomp_taskwait): New type.
15412 (struct gomp_task): Add taskwait and parent_depends_on, remove
15413 in_taskwait and taskwait_sem fields.
15414 (gomp_finish_task): Don't destroy taskwait_sem.
15415 * task.c (gomp_init_task): Don't init in_taskwait, instead init
15416 taskwait and parent_depends_on.
15417 (GOMP_task): For if (0) tasks with depend clause that depend on
15418 earlier tasks don't defer them, instead call
15419 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
15420 Initialize redundant_out field, for redundant out entries just
15421 move them at the end of linked list instead of removing them
15422 completely, and set redundant_out flag instead of redundant.
15423 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
15424 that task.
15425 (gomp_task_run_post_handle_dependers): If parent is in
15426 gomp_task_maybe_wait_for_dependencies and newly runnable task
15427 is not parent_depends_on, queue it in parent->children linked
15428 list after all runnable tasks with parent_depends_on set.
15429 Adjust for addition of taskwait indirection.
15430 (gomp_task_run_post_remove_parent): If parent is in
15431 gomp_task_maybe_wait_for_dependencies and task to be removed
15432 is parent_depends_on, decrement n_depend and if needed awake
15433 parent. Adjust for addition of taskwait indirection.
15434 (GOMP_taskwait): Adjust for addition of taskwait indirection.
15435 (gomp_task_maybe_wait_for_dependencies): New function.
15436 * testsuite/libgomp.c/depend-5.c: New test.
15437
15438 2014-07-13 Tobias Burnus <burnus@net-b.de>
15439
15440 * testsuite/libgomp.fortran/pr34020.f90: Make compile
15441 with TS 18508/Fortran 2015.
15442
15443 2014-07-06 Marek Polacek <polacek@redhat.com>
15444
15445 PR c/6940
15446 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
15447
15448 2014-07-03 Jakub Jelinek <jakub@redhat.com>
15449
15450 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
15451 matches regex $lang_source_re, add $lang_include_flags to options.
15452 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
15453 * testsuite/libgomp.c++/c++.exp: Likewise.
15454 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
15455 and lang_include_flags instead of adding -fintrinsic-modules-path= to
15456 ALWAYS_CFLAGS.
15457 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
15458
15459 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
15460
15461 * testsuite/libgomp.fortran/fortran.exp: Explain
15462 gfortran-dg-runtest usage.
15463
15464 2014-06-25 Jakub Jelinek <jakub@redhat.com>
15465
15466 * testsuite/libgomp.fortran/simd5.f90: New test.
15467 * testsuite/libgomp.fortran/simd6.f90: New test.
15468 * testsuite/libgomp.fortran/simd7.f90: New test.
15469
15470 2014-06-24 Jakub Jelinek <jakub@redhat.com>
15471
15472 * testsuite/libgomp.c/for-2.c: Define SC to static for
15473 #pragma omp for simd testing.
15474 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
15475 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
15476 SC macro.
15477 * testsuite/libgomp.c/simd-14.c: New test.
15478 * testsuite/libgomp.c/simd-15.c: New test.
15479 * testsuite/libgomp.c/simd-16.c: New test.
15480 * testsuite/libgomp.c/simd-17.c: New test.
15481 * testsuite/libgomp.c++/for-10.C: Define SC to static for
15482 #pragma omp for simd testing.
15483 * testsuite/libgomp.c++/simd10.C: New test.
15484 * testsuite/libgomp.c++/simd11.C: New test.
15485 * testsuite/libgomp.c++/simd12.C: New test.
15486 * testsuite/libgomp.c++/simd13.C: New test.
15487
15488 * testsuite/libgomp.fortran/aligned1.f03: New test.
15489 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
15490 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
15491 tasks with !$omp parallel !$omp single.
15492 * testsuite/libgomp.fortran/target8.f90: New test.
15493 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
15494 not to use trim in the combiner, instead call elemental function.
15495 (fn): New elemental function.
15496 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
15497 Make elemental.
15498 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
15499 omp_in): Likewise.
15500 * testsuite/libgomp.fortran/udr12.f90: New test.
15501 * testsuite/libgomp.fortran/udr13.f90: New test.
15502 * testsuite/libgomp.fortran/udr14.f90: New test.
15503 * testsuite/libgomp.fortran/udr15.f90: New test.
15504
15505 2014-06-18 Jakub Jelinek <jakub@redhat.com>
15506
15507 * omp_lib.f90.in (openmp_version): Set to 201307.
15508 * omp_lib.h.in (openmp_version): Likewise.
15509 * testsuite/libgomp.c/target-8.c: New test.
15510 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
15511 and inbranch clauses.
15512 * testsuite/libgomp.fortran/depend-3.f90: New test.
15513 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
15514 openmp_version.
15515 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
15516 * testsuite/libgomp.fortran/target1.f90: New test.
15517 * testsuite/libgomp.fortran/target2.f90: New test.
15518 * testsuite/libgomp.fortran/target3.f90: New test.
15519 * testsuite/libgomp.fortran/target4.f90: New test.
15520 * testsuite/libgomp.fortran/target5.f90: New test.
15521 * testsuite/libgomp.fortran/target6.f90: New test.
15522 * testsuite/libgomp.fortran/target7.f90: New test.
15523
15524 2014-06-10 Jakub Jelinek <jakub@redhat.com>
15525
15526 PR fortran/60928
15527 * testsuite/libgomp.fortran/allocatable9.f90: New test.
15528 * testsuite/libgomp.fortran/allocatable10.f90: New test.
15529 * testsuite/libgomp.fortran/allocatable11.f90: New test.
15530 * testsuite/libgomp.fortran/allocatable12.f90: New test.
15531 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
15532 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
15533 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
15534 * testsuite/libgomp.fortran/associate1.f90: New test.
15535 * testsuite/libgomp.fortran/associate2.f90: New test.
15536 * testsuite/libgomp.fortran/procptr1.f90: New test.
15537
15538 2014-06-06 Jakub Jelinek <jakub@redhat.com>
15539
15540 * testsuite/libgomp.fortran/simd1.f90: New test.
15541 * testsuite/libgomp.fortran/udr1.f90: New test.
15542 * testsuite/libgomp.fortran/udr2.f90: New test.
15543 * testsuite/libgomp.fortran/udr3.f90: New test.
15544 * testsuite/libgomp.fortran/udr4.f90: New test.
15545 * testsuite/libgomp.fortran/udr5.f90: New test.
15546 * testsuite/libgomp.fortran/udr6.f90: New test.
15547 * testsuite/libgomp.fortran/udr7.f90: New test.
15548 * testsuite/libgomp.fortran/udr8.f90: New test.
15549 * testsuite/libgomp.fortran/udr9.f90: New test.
15550 * testsuite/libgomp.fortran/udr10.f90: New test.
15551 * testsuite/libgomp.fortran/udr11.f90: New test.
15552
15553 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
15554
15555 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
15556 vect_simd_clones effective target.
15557 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
15558
15559 2014-05-21 Jakub Jelinek <jakub@redhat.com>
15560
15561 PR middle-end/61252
15562 * testsuite/libgomp.c++/simd-9.C: New test.
15563
15564 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
15565
15566 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
15567 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
15568 texts according to their @menu entry positions.
15569
15570 2014-05-11 Jakub Jelinek <jakub@redhat.com>
15571
15572 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
15573 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
15574 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
15575 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
15576 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
15577 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
15578 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
15579 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
15580 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
15581 * testsuite/libgomp.fortran/depend-1.f90: New test.
15582 * testsuite/libgomp.fortran/depend-2.f90: New test.
15583 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
15584 * testsuite/libgomp.fortran/simd1.f90: New test.
15585 * testsuite/libgomp.fortran/simd2.f90: New test.
15586 * testsuite/libgomp.fortran/simd3.f90: New test.
15587 * testsuite/libgomp.fortran/simd4.f90: New test.
15588 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
15589
15590 2014-05-02 Jakub Jelinek <jakub@redhat.com>
15591
15592 * testsuite/libgomp.c/simd-10.c: New test.
15593 * testsuite/libgomp.c/simd-11.c: New test.
15594 * testsuite/libgomp.c/simd-12.c: New test.
15595 * testsuite/libgomp.c/simd-13.c: New test.
15596
15597 2014-04-24 Jakub Jelinek <jakub@redhat.com>
15598
15599 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
15600 atomic type clauses in any order and optional comma in between.
15601 * testsuite/libgomp.c++/atomic-15.C: Likewise.
15602 * testsuite/libgomp.c/atomic-17.c: Likewise.
15603
15604 * testsuite/libgomp.c/simd-7.c: New test.
15605 * testsuite/libgomp.c/simd-8.c: New test.
15606 * testsuite/libgomp.c/simd-9.c: New test.
15607 * testsuite/libgomp.c/loop-16.c: New test.
15608
15609 2014-04-02 Richard Henderson <rth@redhat.com>
15610
15611 * config/linux/futex.h (futex_wait): Get error value from errno.
15612 (futex_wake): Likewise.
15613
15614 2014-03-25 Jakub Jelinek <jakub@redhat.com>
15615
15616 PR c++/60331
15617 * testsuite/libgomp.c++/udr-11.C: New test.
15618 * testsuite/libgomp.c++/udr-12.C: New test.
15619 * testsuite/libgomp.c++/udr-13.C: New test.
15620 * testsuite/libgomp.c++/udr-14.C: New test.
15621 * testsuite/libgomp.c++/udr-15.C: New test.
15622 * testsuite/libgomp.c++/udr-16.C: New test.
15623 * testsuite/libgomp.c++/udr-17.C: New test.
15624 * testsuite/libgomp.c++/udr-18.C: New test.
15625 * testsuite/libgomp.c++/udr-19.C: New test.
15626
15627 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
15628
15629 Update copyright years
15630
15631 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
15632
15633 * hashtab.h: Use the standard form for the copyright notice.
15634
15635 2014-01-02 Tobias Burnus <burnus@net-b.de>
15636
15637 * libgomp.texi: Bump @copying's copyright year.
15638
15639 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
15640
15641 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
15642 alloca () with __builtin_alloca ().
15643 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
15644 * testsuite/libgomp.c/lock-3.c: Likewise.
15645 * testsuite/libgomp.c/pr48591.c: Likewise.
15646
15647 2013-12-17 Jakub Jelinek <jakub@redhat.com>
15648
15649 PR testsuite/59534
15650 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
15651 comparisons.
15652
15653 2013-12-16 Jakub Jelinek <jakub@redhat.com>
15654
15655 PR libgomp/58756
15656 * testsuite/libgomp.c/pr58756.c: New test.
15657
15658 2013-12-12 Jakub Jelinek <jakub@redhat.com>
15659
15660 PR libgomp/59467
15661 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
15662 !$omp parallel.
15663
15664 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
15665
15666 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
15667 ALWAYS_CFLAGS.
15668 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
15669 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
15670 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
15671 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
15672 Likewise.
15673
15674 * libgomp_g.h: Include <stddef.h> for size_t.
15675
15676 * libgomp.spec.in: Update comment about libgomp's dependencies.
15677 * configure.ac: Likewise.
15678 * configure: Regenerate.
15679
15680 2013-10-16 Tobias Burnus <burnus@net-b.de>
15681
15682 * libgomp.texi: (Runtime Library Routines): Update references for
15683 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
15684 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
15685 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
15686 (Environment Variables): Update references for OpenMP 4.0. Add
15687 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
15688 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
15689 order.
15690
15691 2013-10-14 Jakub Jelinek <jakub@redhat.com>
15692
15693 * env.c (parse_bind_var): Initialize value to avoid
15694 (false positive) warning.
15695
15696 2013-10-12 Jakub Jelinek <jakub@redhat.com>
15697
15698 PR libgomp/58691
15699 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
15700 to check variable.
15701 (gomp_init_num_threads): Move i variable declaration into
15702 #ifdef CPU_ALLOC_SIZE block.
15703 * config/linux/affinity.c (gomp_affinity_init_level): Test
15704 gomp_places_list_len == 0 rather than gomp_places_list == 0
15705 when checking for topology reading error.
15706 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
15707 * env.c (parse_affinity): Add ignore argument, if true, don't populate
15708 gomp_places_list, only parse env var and always return false.
15709 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
15710 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
15711 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
15712 and either of these variables were parsed correctly into a places
15713 list.
15714
15715 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
15716 Jakub Jelinek <jakub@redhat.com>
15717
15718 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
15719 of 5 loopfn matches.
15720 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
15721 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
15722 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
15723 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
15724 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
15725 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
15726 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
15727 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
15728
15729 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
15730
15731 * Makefile.am (omp_lib.mod): Streamline rule.
15732 * Makefile.in: Regenerate.
15733
15734 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
15735 exceptions.
15736
15737 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
15738 * testsuite/libgomp.fortran/lib1.f90: Likewise.
15739 * testsuite/libgomp.fortran/lib2.f: Likewise.
15740 * testsuite/libgomp.fortran/lib3.f: Likewise.
15741
15742 * configure.ac: Typo fix.
15743 * configure: Regenerate.
15744
15745 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
15746 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
15747
15748 * omp.h.in: Don't touch the user's namespace.
15749
15750 2013-10-11 Jakub Jelinek <jakub@redhat.com>
15751 Tobias Burnus <burnus@net-b.de>
15752 Richard Henderson <rth@redhat.com>
15753
15754 * target.c: New file.
15755 * Makefile.am (libgomp_la_SOURCES): Add target.c.
15756 * Makefile.in: Regenerated.
15757 * libgomp_g.h (GOMP_task): Add depend argument.
15758 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
15759 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
15760 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
15761 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
15762 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
15763 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
15764 GOMP_taskgroup_start, GOMP_taskgroup_end,
15765 GOMP_parallel_sections): New prototypes.
15766 * fortran.c (omp_is_initial_device): Add ialias_redirect.
15767 (omp_is_initial_device_): New function.
15768 (ULP, STR1, STR2, ialias_redirect): Removed.
15769 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
15770 omp_set_default_device_8_, omp_get_default_device_,
15771 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
15772 functions.
15773 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
15774 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
15775 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
15776 @@GOMP_4.0.
15777 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
15778 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
15779 omp_set_default_device, omp_set_default_device_,
15780 omp_set_default_device_8_, omp_get_default_device,
15781 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
15782 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
15783 omp_get_team_num_): Export @@OMP_4.0.
15784 * team.c (struct gomp_thread_start_data): Add place field.
15785 (gomp_thread_start): Clear thr->thread_pool and
15786 thr->task before returning. Use gomp_team_barrier_wait_final
15787 instead of gomp_team_barrier_wait. Initialize thr->place.
15788 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
15789 team_cancelled and task_queued_count fields.
15790 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
15791 before calling pthread_exit.
15792 (gomp_free_thread): No longer static. Use
15793 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
15794 (gomp_team_start): Add flags argument. Set
15795 thr->thread_pool->threads_busy to nthreads immediately after creating
15796 new pool. Use gomp_managed_threads_lock instead of
15797 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
15798 (gomp_team_end): Use gomp_managed_threads_lock instead of
15799 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
15800 of gomp_team_barrier_wait. If team->team_cancelled, call
15801 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
15802 rather than thr->ts.work_share.
15803 (initialize_team): Don't call gomp_sem_init here.
15804 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
15805 caller.
15806 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
15807 * env.c (gomp_global_icv): Add default_device_var, target_data and
15808 bind_var initializers.
15809 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
15810 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
15811 gomp_places_list_len): New variables.
15812 (parse_bind_var, parse_one_place, parse_places_var): New functions.
15813 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
15814 sized places.
15815 (gomp_cancel_var): New global variable.
15816 (parse_int): New function.
15817 (handle_omp_display_env): New function.
15818 (initialize_env): Use it. Initialize default_device_var.
15819 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
15820 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
15821 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
15822 been successfully parsed (and call gomp_init_affinity in that case).
15823 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
15824 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
15825 omp_get_team_num, omp_is_initial_device): New functions.
15826 * libgomp.h: Include stdlib.h.
15827 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
15828 Define.
15829 (struct target_mem_desc): Forward declare.
15830 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
15831 and thread_limit_var fields.
15832 (gomp_get_num_devices): New prototype.
15833 (gomp_cancel_var): New extern decl.
15834 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
15835 team_cancelled and task_queued_count fields. Add comments about
15836 task_{,queued_,running_}count.
15837 (gomp_cancel_kind): New enum.
15838 (gomp_work_share_end_cancel): New prototype.
15839 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
15840 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
15841 and depend fields.
15842 (struct gomp_taskgroup): New type.
15843 (struct gomp_task_depend_entry,
15844 struct gomp_dependers_vec): New types.
15845 (gomp_finish_task): Free depend_hash if non-NULL.
15846 (struct gomp_team_state): Add place_partition_off
15847 and place_partition_len fields.
15848 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
15849 gomp_places_list_len): New extern decls.
15850 (struct gomp_thread): Add place field.
15851 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
15852 (gomp_init_thread_affinity): Add place argument.
15853 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
15854 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
15855 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
15856 gomp_affinity_init_level, gomp_affinity_print_place): New
15857 prototypes.
15858 (gomp_team_start): Add flags argument.
15859 (gomp_thread_limit_var, gomp_remaining_threads_count,
15860 gomp_remaining_threads_lock): Remove.
15861 (gomp_managed_threads_lock): New variable.
15862 (struct gomp_thread_pool): Add threads_busy field.
15863 (gomp_free_thread): New prototype.
15864 * task.c: Include hashtab.h.
15865 (hash_entry_type): New typedef.
15866 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
15867 (gomp_init_task): Clear dependers, depend_hash, depend_count,
15868 copy_ctors_done and taskgroup fields.
15869 (GOMP_task): Add depend argument, handle depend clauses. If
15870 gomp_team_barrier_cancelled or if it's taskgroup has been
15871 cancelled, don't queue or start new tasks. Set copy_ctors_done
15872 field if needed. Initialize taskgroup field. If copy_ctors_done
15873 and already cancelled, don't discard the task. If taskgroup is
15874 non-NULL, enqueue the task into taskgroup queue. Increment
15875 num_children field in taskgroup. Increment task_queued_count.
15876 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
15877 gomp_task_run_post_remove_taskgroup): New inline functions.
15878 (gomp_task_run_post_handle_depend_hash,
15879 gomp_task_run_post_handle_dependers,
15880 gomp_task_run_post_handle_depend): New functions.
15881 (GOMP_taskwait): Use them. If more than one new tasks
15882 have been queued, wake other threads if needed.
15883 (gomp_barrier_handle_tasks): Likewise. If
15884 gomp_team_barrier_cancelled, don't start any new tasks, just free
15885 all tasks.
15886 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
15887 * omp_lib.f90.in
15888 (omp_proc_bind_kind, omp_proc_bind_false,
15889 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
15890 omp_proc_bind_spread): New params.
15891 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
15892 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
15893 omp_get_team_num, omp_is_initial_device): New interfaces.
15894 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
15895 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
15896 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
15897 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
15898 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
15899 useless use omp_lib_kinds.
15900 * omp.h.in (omp_proc_bind_t): New typedef.
15901 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
15902 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
15903 omp_get_team_num, omp_is_initial_device): New prototypes.
15904 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
15905 through to gomp_team_start.
15906 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
15907 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
15908 Adjust gomp_parallel_loop_start callers.
15909 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
15910 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
15911 GOMP_loop_end_cancel): New functions.
15912 (GOMP_parallel_end): Add ialias_redirect.
15913 * hashtab.h: New file.
15914 * libgomp.texi (Environment Variables): Minor cleanup,
15915 update section refs to OpenMP 4.0rc2.
15916 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
15917 environment variables.
15918 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
15919 team->work_shares_to_free to thr->ts.work_share before calling
15920 free_work_share.
15921 (gomp_work_share_end_cancel): New function.
15922 * config/linux/proc.c: Include errno.h.
15923 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
15924 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
15925 sizeof (cpu_set_t) to determine number of iterations. Fix up check
15926 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
15927 gomp_cpuset_size is sizeof (cpu_set_t).
15928 (gomp_init_num_threads): Initialize gomp_cpuset_size,
15929 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
15930 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
15931 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
15932 contain any logical CPUs.
15933 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
15934 is NULL. Use gomp_cpusetp instead of &cpuset and pass
15935 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
15936 pthread_getaffinity_np. Check gomp_places_list instead of
15937 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
15938 * config/linux/bar.c (gomp_barrier_wait_end,
15939 gomp_barrier_wait_last): Use BAR_* defines.
15940 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
15941 from state where needed. Set work_share_cancelled to 0 on last
15942 thread.
15943 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
15944 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
15945 functions.
15946 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
15947 Add cpusetsize argument.
15948 (gomp_cpuset_size, gomp_cpusetp): Declare.
15949 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
15950 (affinity_counter): Remove.
15951 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
15952 if CPU_ALLOC_SIZE isn't defined.
15953 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
15954 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
15955 bind current thread to the first place.
15956 (gomp_init_thread_affinity): Rewritten. Add place argument, just
15957 pthread_setaffinity_np to gomp_places_list[place].
15958 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
15959 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
15960 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
15961 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
15962 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
15963 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
15964 (gomp_barrier_t): Add awaited_final field.
15965 (gomp_barrier_init): Initialize awaited_final field.
15966 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
15967 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
15968 prototypes.
15969 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
15970 defines.
15971 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
15972 gomp_team_barrier_cancelled): New inline functions.
15973 (gomp_barrier_last_thread,
15974 gomp_team_barrier_set_task_pending,
15975 gomp_team_barrier_clear_task_pending,
15976 gomp_team_barrier_set_waiting_for_tasks,
15977 gomp_team_barrier_waiting_for_tasks,
15978 gomp_team_barrier_done): Use BAR_* defines.
15979 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
15980 (gomp_barrier_wait_end): Use BAR_* defines.
15981 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
15982 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
15983 Use BAR_* defines.
15984 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
15985 gomp_team_barrier_cancel): New functions.
15986 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
15987 argument.
15988 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
15989 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
15990 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
15991 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
15992 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
15993 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
15994 (gomp_barrier_t): Add cancellable field.
15995 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
15996 gomp_team_barrier_cancel): New prototypes.
15997 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
15998 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
15999 gomp_team_barrier_cancelled): New inline functions.
16000 (gomp_barrier_wait_start, gomp_barrier_last_thread,
16001 gomp_team_barrier_set_task_pending,
16002 gomp_team_barrier_clear_task_pending,
16003 gomp_team_barrier_set_waiting_for_tasks,
16004 gomp_team_barrier_waiting_for_tasks,
16005 gomp_team_barrier_done): Use BAR_* defines.
16006 * barrier.c (GOMP_barrier_cancel): New function.
16007 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
16008 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
16009 omp_proc_bind_spread): New params.
16010 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16011 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16012 omp_get_team_num, omp_is_initial_device): New externals.
16013 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
16014 New functions.
16015 (gomp_resolve_num_threads): Adjust for thread_limit now being in
16016 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
16017 infinity. If not nested, just return minimum of max_num_threads
16018 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
16019 to the returned value. Otherwise, don't update atomically
16020 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
16021 (GOMP_parallel_end): Adjust for thread_limit now being in
16022 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
16023 infinity. Adjust threads_busy in the pool rather than
16024 gomp_remaining_threads_count. Remember team->nthreads and call
16025 gomp_team_end before adjusting threads_busy, if not nested
16026 afterwards, just set it to 1 non-atomically. Add ialias.
16027 (GOMP_parallel_start): Adjust gomp_team_start caller.
16028 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
16029 * testsuite/libgomp.c/affinity-1.c: New test.
16030 * testsuite/libgomp.c/atomic-15.c: New test.
16031 * testsuite/libgomp.c/atomic-16.c: New test.
16032 * testsuite/libgomp.c/atomic-17.c: New test.
16033 * testsuite/libgomp.c/cancel-for-1.c: New test.
16034 * testsuite/libgomp.c/cancel-for-2.c: New test.
16035 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
16036 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
16037 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
16038 * testsuite/libgomp.c/cancel-sections-1.c: New test.
16039 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
16040 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
16041 * testsuite/libgomp.c/depend-1.c: New test.
16042 * testsuite/libgomp.c/depend-2.c: New test.
16043 * testsuite/libgomp.c/depend-3.c: New test.
16044 * testsuite/libgomp.c/depend-4.c: New test.
16045 * testsuite/libgomp.c/for-1.c: New test.
16046 * testsuite/libgomp.c/for-1.h: New file.
16047 * testsuite/libgomp.c/for-2.c: New test.
16048 * testsuite/libgomp.c/for-2.h: New file.
16049 * testsuite/libgomp.c/for-3.c: New test.
16050 * testsuite/libgomp.c/pr58392.c: New test.
16051 * testsuite/libgomp.c/simd-1.c: New test.
16052 * testsuite/libgomp.c/simd-2.c: New test.
16053 * testsuite/libgomp.c/simd-3.c: New test.
16054 * testsuite/libgomp.c/simd-4.c: New test.
16055 * testsuite/libgomp.c/simd-5.c: New test.
16056 * testsuite/libgomp.c/simd-6.c: New test.
16057 * testsuite/libgomp.c/target-1.c: New test.
16058 * testsuite/libgomp.c/target-2.c: New test.
16059 * testsuite/libgomp.c/target-3.c: New test.
16060 * testsuite/libgomp.c/target-4.c: New test.
16061 * testsuite/libgomp.c/target-5.c: New test.
16062 * testsuite/libgomp.c/target-6.c: New test.
16063 * testsuite/libgomp.c/target-7.c: New test.
16064 * testsuite/libgomp.c/taskgroup-1.c: New test.
16065 * testsuite/libgomp.c/thread-limit-1.c: New test.
16066 * testsuite/libgomp.c/thread-limit-2.c: New test.
16067 * testsuite/libgomp.c/thread-limit-3.c: New test.
16068 * testsuite/libgomp.c/udr-1.c: New test.
16069 * testsuite/libgomp.c/udr-2.c: New test.
16070 * testsuite/libgomp.c/udr-3.c: New test.
16071 * testsuite/libgomp.c++/affinity-1.C: New test.
16072 * testsuite/libgomp.c++/atomic-10.C: New test.
16073 * testsuite/libgomp.c++/atomic-11.C: New test.
16074 * testsuite/libgomp.c++/atomic-12.C: New test.
16075 * testsuite/libgomp.c++/atomic-13.C: New test.
16076 * testsuite/libgomp.c++/atomic-14.C: New test.
16077 * testsuite/libgomp.c++/atomic-15.C: New test.
16078 * testsuite/libgomp.c++/cancel-for-1.C: New test.
16079 * testsuite/libgomp.c++/cancel-for-2.C: New test.
16080 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
16081 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
16082 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
16083 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
16084 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
16085 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
16086 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
16087 * testsuite/libgomp.c++/cancel-test.h: New file.
16088 * testsuite/libgomp.c++/for-9.C: New test.
16089 * testsuite/libgomp.c++/for-10.C: New test.
16090 * testsuite/libgomp.c++/for-11.C: New test.
16091 * testsuite/libgomp.c++/simd-1.C: New test.
16092 * testsuite/libgomp.c++/simd-2.C: New test.
16093 * testsuite/libgomp.c++/simd-3.C: New test.
16094 * testsuite/libgomp.c++/simd-4.C: New test.
16095 * testsuite/libgomp.c++/simd-5.C: New test.
16096 * testsuite/libgomp.c++/simd-6.C: New test.
16097 * testsuite/libgomp.c++/simd-7.C: New test.
16098 * testsuite/libgomp.c++/simd-8.C: New test.
16099 * testsuite/libgomp.c++/target-1.C: New test.
16100 * testsuite/libgomp.c++/target-2.C: New test.
16101 * testsuite/libgomp.c++/target-2-aux.cc: New file.
16102 * testsuite/libgomp.c++/target-3.C: New test.
16103 * testsuite/libgomp.c++/taskgroup-1.C: New test.
16104 * testsuite/libgomp.c++/udr-1.C: New test.
16105 * testsuite/libgomp.c++/udr-2.C: New test.
16106 * testsuite/libgomp.c++/udr-3.C: New test.
16107 * testsuite/libgomp.c++/udr-4.C: New test.
16108 * testsuite/libgomp.c++/udr-5.C: New test.
16109 * testsuite/libgomp.c++/udr-6.C: New test.
16110 * testsuite/libgomp.c++/udr-7.C: New test.
16111 * testsuite/libgomp.c++/udr-8.C: New test.
16112 * testsuite/libgomp.c++/udr-9.C: New test.
16113
16114 2013-09-20 Jakub Jelinek <jakub@redhat.com>
16115
16116 PR testsuite/57605
16117 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
16118 ALWAYS_CFLAGS.
16119
16120 2013-09-20 Alan Modra <amodra@gmail.com>
16121
16122 * configure: Regenerate.
16123
16124 2013-09-19 Jakub Jelinek <jakub@redhat.com>
16125
16126 * testsuite/libgomp.c/sections-2.c: New test.
16127
16128 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
16129
16130 * testsuite/libgomp.fortran/strassen.f90:
16131 Add dg-skip-if aarch64_tiny.
16132
16133 2013-06-20 Iain Sandoe <iain@codesourcery.com>
16134 Cesar Philippidis <cesar@codesourcery.com>
16135
16136 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
16137 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
16138 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
16139 * testsuite/libgomp.fortran/fortran.exp: Likewise.
16140 * testsuite/libgomp.graphite/graphite.exp: Likewise.
16141 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
16142 Use dg-runtest rather than gfortran-dg-runtest.
16143
16144 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
16145
16146 * testsuite/libgomp.c/icv-2.c: Extend current handling of
16147 Linux-based x86 systems to cover all GNU systems.
16148 * testsuite/libgomp.c/lock-3.c: Likewise.
16149 * testsuite/libgomp.c/pr48591.c: Likewise.
16150
16151 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
16152
16153 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
16154 GNU/Hurd, as done for Linux-based systems.
16155
16156 * config/posix/ptrlock.h: Fix comment.
16157
16158 2013-05-27 Tobias Burnus <burnus@net-b.de>
16159
16160 PR fortran/57423
16161 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
16162 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
16163 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
16164 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
16165 omp_destroy_nest_lock): Correct arguments to match the one in
16166 the OpenMP spec.
16167 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
16168 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
16169 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
16170 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
16171
16172 2013-05-16 Jakub Jelinek <jakub@redhat.com>
16173
16174 * testsuite/libgomp.c/loop-13.c: New test.
16175 * testsuite/libgomp.c/loop-14.c: New test.
16176 * testsuite/libgomp.c/loop-15.c: New test.
16177 * testsuite/libgomp.c++/loop-13.C: New test.
16178 * testsuite/libgomp.c++/loop-14.C: New test.
16179 * testsuite/libgomp.c++/loop-15.C: New test.
16180
16181 2013-02-06 Jakub Jelinek <jakub@redhat.com>
16182
16183 PR middle-end/56217
16184 * testsuite/libgomp.c++/pr56217.C: New test.
16185
16186 2013-02-01 Alan Modra <amodra@gmail.com>
16187
16188 * task.c (GOMP_task, GOMP_taskwait): Comment.
16189
16190 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
16191 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
16192
16193 PR libgomp/55561
16194 * config/linux/wait.h (do_spin): Use atomic load for addr.
16195 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
16196 for intptr and ptrlock.
16197 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
16198 for ptrlock.
16199
16200 2013-01-22 Alan Modra <amodra@gmail.com>
16201
16202 PR libgomp/51376
16203 PR libgomp/56073
16204 * task.c (GOMP_task): Revert 2011-12-09 change.
16205 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
16206 barrier to read task->children..
16207 (gomp_barrier_handle_tasks): ..and matching atomic store with
16208 release barrier here when setting parent->children to NULL.
16209
16210 2013-01-16 Jakub Jelinek <jakub@redhat.com>
16211 Tobias Burnus <burnus@net-b.de>
16212
16213 PR driver/55884
16214 * testsuite/libgomp.fortran/fortran.exp: Use
16215 -fintrinsic-modules-path= instead of
16216 -fintrinsic-modules-path.
16217
16218 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
16219
16220 Update copyright years.
16221
16222 2012-12-19 Tobias Burnus <burnus@net-b.de>
16223
16224 * testsuite/libgomp.fortran/fortran.exp: Set
16225 -fintrinsic-modules-path.
16226
16227 2012-12-19 Tobias Burnus <burnus@net-b.de>
16228
16229 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
16230 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
16231
16232 2012-11-21 Jakub Jelinek <jakub@redhat.com>
16233
16234 PR libgomp/55411
16235 * team.c (gomp_free_thread): Decrease gomp_managed_threads
16236 if pool had any threads_used.
16237
16238 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
16239
16240 * testsuite/libgomp.c++/pr24455.C: Use
16241 -Wl,-undefined,dynamic_lookup on darwin.
16242
16243 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
16244
16245 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
16246
16247 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
16248
16249 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
16250
16251 2012-10-23 Ian Bolton <ian.bolton@arm.com>
16252 Jim MacArthur <jim.macarthur@arm.com>
16253 Marcus Shawcroft <marcus.shawcroft@arm.com>
16254 Nigel Stephens <nigel.stephens@arm.com>
16255 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16256 Richard Earnshaw <rearnsha@arm.com>
16257 Sofiane Naci <sofiane.naci@arm.com>
16258 Stephen Thomas <stephen.thomas@arm.com>
16259 Tejas Belagod <tejas.belagod@arm.com>
16260 Yufeng Zhang <yufeng.zhang@arm.com>
16261
16262 * configure.tgt: Add AArch64.
16263
16264 2012-10-04 Jason Merrill <jason@redhat.com>
16265
16266 * testsuite/libgomp.c++/tls-init1.C: New.
16267
16268 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
16269
16270 * configure: Regenerated.
16271
16272 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
16273
16274 * config/linux/mips/futex.h (sys_futex0): Change to static
16275 function with noinline, nomips16 attributes under MIPS16. Adjust
16276 asm statement to place 'li v0,SYS_futex' immediately before
16277 syscall insn.
16278
16279 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
16280
16281 * libgomp.texi (Library Index): Renamed from "Index" to prevent
16282 conflict with index.html on case-insensitive file systems.
16283
16284 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
16285
16286 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
16287 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
16288
16289 2012-07-02 Richard Guenther <rguenther@suse.de>
16290 Michael Matz <matz@suse.de>
16291 Tobias Grosser <tobias@grosser.es>
16292 Sebastian Pop <sebpop@gmail.com>
16293
16294 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
16295 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
16296 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16297 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16298
16299 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
16300
16301 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
16302
16303 2012-06-22 Richard Guenther <rguenther@suse.de>
16304
16305 Merge from graphite branch
16306 2012-01-13 Tobias Grosser <tobias@grosser.es>
16307
16308 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
16309 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
16310
16311 2012-06-07 Jakub Jelinek <jakub@redhat.com>
16312
16313 PR middle-end/53580
16314 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
16315 use GOMP_barrier () call instead.
16316 * testsuite/libgomp.c/pr26943-3.c: Likewise.
16317 * testsuite/libgomp.c/pr26943-4.c: Likewise.
16318 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
16319 call GOMP_barrier instead.
16320 * testsuite/libgomp.fortran/vla5.f90: Likewise.
16321
16322 2012-06-06 Jakub Jelinek <jakub@redhat.com>
16323
16324 PR libgomp/52993
16325 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
16326 argument to memset call.
16327
16328 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
16329
16330 * configure: Regenerated.
16331
16332 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
16333
16334 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
16335
16336 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
16337
16338 PR bootstrap/52812
16339 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
16340
16341 2012-03-22 Jakub Jelinek <jakub@redhat.com>
16342
16343 PR middle-end/52547
16344 * testsuite/libgomp.c/pr52547.c: New test.
16345
16346 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16347
16348 * testsuite/lib/libgomp.exp: load fortran-modules.exp
16349
16350 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16351
16352 * configure.tgt (mips-sgi-irix6*): Remove.
16353
16354 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16355
16356 * configure.tgt (alpha*-dec-osf*): Remove.
16357
16358 * config/osf/sem.h: Remove.
16359 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
16360
16361 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
16362
16363 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
16364
16365 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16366
16367 PR libstdc++/52188
16368 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
16369 Remove ENABLE_SYMVERS_SOL2.
16370 * configure: Regenerate.
16371 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
16372 (PREPROCESS): New variable.
16373 (libgomp.ver): New target.
16374 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
16375 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
16376 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
16377 Use libgomp.ver.
16378 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
16379 * Makefile.in: Regenerate.
16380
16381 2012-02-14 Walter Lee <walt@tilera.com>
16382
16383 * configure.tgt: Handle tilegx and tilepro.
16384 * config/linux/tile/futex.h: New file.
16385
16386 2012-02-08 Richard Guenther <rguenther@suse.de>
16387
16388 PR tree-optimization/46886
16389 * testsuite/libgomp.c/pr46886.c: New testcase.
16390
16391 2012-01-25 Matthias Klose <doko@ubuntu.com>
16392
16393 * config/linux/arm: Remove empty directory.
16394 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
16395
16396 2011-12-09 Alan Modra <amodra@gmail.com>
16397
16398 PR libgomp/51376
16399 * task.c (GOMP_taskwait): Don't access task->children outside of
16400 task_lock mutex region.
16401 (GOMP_task): Likewise.
16402
16403 2011-12-06 Jakub Jelinek <jakub@redhat.com>
16404
16405 PR libgomp/51132
16406 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
16407 to file scope.
16408 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
16409 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
16410 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16411 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16412 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
16413
16414 2011-12-02 Alan Modra <amodra@gmail.com>
16415
16416 * config/linux/affinity.c: Use atomic rather than sync builtin.
16417 * config/linux/lock.c: Likewise.
16418 * config/linux/ptrlock.h: Likewise.
16419 * config/linux/ptrlock.c: Likewise.
16420 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
16421 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
16422 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
16423 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
16424 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
16425 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
16426 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
16427 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
16428 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
16429 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
16430
16431 2011-11-30 Alan Modra <amodra@gmail.com>
16432
16433 PR libgomp/51298
16434 * config/linux/bar.h: Use atomic rather than sync builtins.
16435 * config/linux/bar.c: Likewise. Add missing acquire
16436 synchronisation on generation field.
16437 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
16438 double unlock.
16439
16440 2011-11-30 Alan Modra <amodra@gmail.com>
16441
16442 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
16443 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
16444 * config/linux/mutex.h: Use atomic rather than sync builtins.
16445 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
16446 * config/linux/omp-lock.h: Comment fix.
16447 * config/linux/arm/mutex.h: Delete.
16448 * config/linux/powerpc/mutex.h: Delete.
16449 * config/linux/ia64/mutex.h: Delete.
16450 * config/linux/mips/mutex.h: Delete.
16451
16452 2011-11-30 Alan Modra <amodra@gmail.com>
16453
16454 PR libgomp/51249
16455 * config/linux/sem.h: Rewrite.
16456 * config/linux/sem.c: Rewrite.
16457
16458 2011-11-28 Richard Henderson <rth@redhat.com>
16459
16460 * libgomp.h (enum memmodel): New.
16461
16462 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
16463
16464 * configure: Regenerate.
16465
16466 2011-10-10 Matthias Klose <doko@ubuntu.com>
16467
16468 * config/posix95: Remove empty directory.
16469
16470 2011-08-26 Jakub Jelinek <jakub@redhat.com>
16471
16472 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
16473
16474 2011-08-19 Jakub Jelinek <jakub@redhat.com>
16475
16476 PR fortran/49792
16477 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
16478 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
16479
16480 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16481
16482 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
16483
16484 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16485
16486 PR libgomp/49965
16487 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
16488
16489 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
16490
16491 * config/linux/proc.h: New.
16492 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
16493 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
16494 (gomp_init_num_threads): Update call to cpuset_popcount.
16495 (get_num_procs): Ditto.
16496 * config/linux/affinity.c (gomp_init_affinity): Call
16497 gomp_cpuset_popcount.
16498
16499 2011-08-02 Jakub Jelinek <jakub@redhat.com>
16500
16501 PR fortran/42041
16502 PR fortran/46752
16503 * omp.h.in (omp_in_final): New prototype.
16504 * omp_lib.f90.in (omp_in_final): New interface.
16505 (omp_integer_kind, omp_logical_kind): Remove
16506 and replace all its uses in the module with 4.
16507 (openmp_version): Change to 201107.
16508 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
16509 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
16510 kind for the parameters.
16511 (omp_in_final): New external.
16512 (openmp_version): Change to 201107.
16513 * task.c (omp_in_final): New function.
16514 (gomp_init_task): Initialize final_task.
16515 (GOMP_task): Remove unused attribute from flags. Handle final
16516 tasks.
16517 (GOMP_taskyield): New function.
16518 (omp_in_final): Return true if if (false) or final (true) task
16519 or descendant of final (true).
16520 * fortran.c (omp_in_final_): New function.
16521 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
16522 (GOMP_3.0): Export GOMP_taskyield.
16523 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
16524 variables.
16525 (parse_unsigned_long_list): New function.
16526 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
16527 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
16528 even if parse_affinity returned false.
16529 * config/linux/affinity.c (gomp_init_affinity): Handle
16530 gomp_cpu_affinity_len == 0.
16531 * libgomp_g.h (GOMP_taskyield): New prototype.
16532 * libgomp.h (struct gomp_task): Add final_task field.
16533 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
16534 * team.c (gomp_team_start): Override new task's nthreads_var icv
16535 if list form OMP_NUM_THREADS has been used and it has value for
16536 the new nesting level.
16537
16538 * testsuite/libgomp.c/atomic-11.c: New test.
16539 * testsuite/libgomp.c/atomic-12.c: New test.
16540 * testsuite/libgomp.c/atomic-13.c: New test.
16541 * testsuite/libgomp.c/atomic-14.c: New test.
16542 * testsuite/libgomp.c/reduction-6.c: New test.
16543 * testsuite/libgomp.c/task-5.c: New test.
16544 * testsuite/libgomp.c++/atomic-2.C: New test.
16545 * testsuite/libgomp.c++/atomic-3.C: New test.
16546 * testsuite/libgomp.c++/atomic-4.C: New test.
16547 * testsuite/libgomp.c++/atomic-5.C: New test.
16548 * testsuite/libgomp.c++/atomic-6.C: New test.
16549 * testsuite/libgomp.c++/atomic-7.C: New test.
16550 * testsuite/libgomp.c++/atomic-8.C: New test.
16551 * testsuite/libgomp.c++/atomic-9.C: New test.
16552 * testsuite/libgomp.c++/task-8.C: New test.
16553 * testsuite/libgomp.c++/reduction-4.C: New test.
16554 * testsuite/libgomp.fortran/allocatable7.f90: New test.
16555 * testsuite/libgomp.fortran/allocatable8.f90: New test.
16556 * testsuite/libgomp.fortran/crayptr3.f90: New test.
16557 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
16558 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
16559 * testsuite/libgomp.fortran/pointer1.f90: New test.
16560 * testsuite/libgomp.fortran/pointer2.f90: New test.
16561 * testsuite/libgomp.fortran/task4.f90: New test.
16562
16563 2011-08-02 Tobias Burnus <burnus@net-b.de>
16564
16565 * libgomp.texi: Update OpenMP spec references to 3.1.
16566 (omp_in_final,OMP_PROC_BIND): New sections.
16567 (OMP_NUM_THREADS): Document that the value can be now a list.
16568 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
16569
16570 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
16571
16572 * config/linux/x86/futex.h: Check __x86_64__ instead of
16573 __LP64__.
16574
16575 2011-07-29 Jakub Jelinek <jakub@redhat.com>
16576
16577 PR middle-end/49897
16578 PR middle-end/49898
16579 * testsuite/libgomp.c/pr49897-1.c: New test.
16580 * testsuite/libgomp.c/pr49897-2.c: New test.
16581 * testsuite/libgomp.c/pr49898-1.c: New test.
16582 * testsuite/libgomp.c/pr49898-2.c: New test.
16583
16584 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
16585
16586 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
16587 for ia32 instead of ilp32.
16588
16589 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
16590 * testsuite/libgomp.c/atomic-6.c: Likewise.
16591
16592 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
16593
16594 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
16595 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
16596
16597 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16598
16599 PR libgomp/45351
16600 * config/osf/sem.h: New file.
16601 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
16602
16603 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16604
16605 PR target/49541
16606 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
16607 ldflags.
16608
16609 2011-07-15 Jakub Jelinek <jakub@redhat.com>
16610
16611 * config/linux/wait.h (do_spin): New inline, largely copied
16612 from do_wait, just don't do futex_wait here, instead return true if
16613 it should be done.
16614 (do_wait): Implement using do_spin.
16615 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
16616 to prototype.
16617 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
16618 __sync_bool_compare_and_swap, pass the oldval to
16619 gomp_mutex_lock_slow.
16620 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
16621 If all mutex contenders are just spinning and not sleeping, don't
16622 change state to 2 unnecessarily. Optimize the loop when state has
16623 already become 2 to use just one atomic operation per loop instead
16624 of two.
16625 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
16626 to prototype.
16627 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
16628 __sync_bool_compare_and_swap, pass the oldval to
16629 gomp_mutex_lock_slow.
16630
16631 2011-06-22 Jakub Jelinek <jakub@redhat.com>
16632
16633 PR libgomp/49490
16634 * iter.c (gomp_iter_static_next): For chunk size 0
16635 only use n ceil/ nthreads size for the first
16636 n % nthreads threads in the team instead of
16637 all threads except for the last few ones which
16638 get less work or none at all.
16639 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
16640 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
16641 chunk argument, set run_sched_modifier to 0 for static
16642 resp. 1 for other kinds. If chunk argument is 0
16643 and not static, set value to 1.
16644
16645 2011-05-19 Jakub Jelinek <jakub@redhat.com>
16646
16647 PR c++/49043
16648 * testsuite/libgomp.c++/pr49043.C: New test.
16649
16650 PR c++/48869
16651 * testsuite/libgomp.c++/pr48869.C: New test.
16652
16653 2011-05-06 Jakub Jelinek <jakub@redhat.com>
16654
16655 PR fortran/48894
16656 * fortran.c: Include limits.h.
16657 (TO_INT): Define.
16658 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
16659 *set.
16660 (omp_set_num_threads_8_, omp_set_schedule_8_,
16661 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
16662 omp_get_team_size_8_): Use TO_INT macro.
16663 * testsuite/libgomp.fortran/pr48894.f90: New test.
16664
16665 2011-04-13 Jakub Jelinek <jakub@redhat.com>
16666
16667 PR middle-end/48591
16668 * testsuite/libgomp.c/pr48591.c: New test.
16669
16670 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16671
16672 PR bootstrap/48135
16673 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
16674 * configure: Regenerate.
16675
16676 2011-02-27 Jakub Jelinek <jakub@redhat.com>
16677
16678 PR fortran/47886
16679 * testsuite/libgomp.fortran/task3.f90: New test.
16680
16681 2011-02-24 Tobias Burnus <burnus@net-b.de>
16682
16683 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
16684
16685 2011-02-23 Jakub Jelinek <jakub@redhat.com>
16686
16687 PR libgomp/47854
16688 * libgomp.texi (omp_get_wtime): Don't say time in the past
16689 must be Unix Epoch.
16690
16691 2011-02-18 Jakub Jelinek <jakub@redhat.com>
16692
16693 PR libgomp/47804
16694 * testsuite/libgomp.fortran/fortran.exp: Check for both
16695 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
16696 but $blddir != "", still append ${blddir}/${lang_library_path}
16697 to ld_library_path.
16698
16699 2011-02-16 Tobias Burnus <burnus@net-b.de>
16700
16701 PR libgomp/47758
16702 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
16703 of libquadmath.a before adding its libpath to ldflags.
16704
16705 2011-02-14 Jakub Jelinek <jakub@redhat.com>
16706
16707 PR libgomp/47731
16708 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
16709 to FUTEX_WAIT futex syscall.
16710 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
16711
16712 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16713
16714 * configure: Regenerate.
16715
16716 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
16717
16718 PR libstdc++/36104
16719 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
16720
16721 2011-01-16 Gerald Pfeifer
16722
16723 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
16724
16725 2010-12-14 Jakub Jelinek <jakub@redhat.com>
16726
16727 PR fortran/46874
16728 * libgomp.fortran/allocatable6.f90: New test.
16729
16730 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16731
16732 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
16733 * configure: Regenerate.
16734
16735 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
16736
16737 PR target/40125
16738 PR lto/46695
16739 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
16740 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
16741 * aclocal.m4: Regenerate.
16742 * configure: Regenerate.
16743 * Makefile.in: Regenerate.
16744 * testsuite/Makefile.in: Regenerate.
16745
16746 2010-12-02 Jakub Jelinek <jakub@redhat.com>
16747
16748 PR fortran/46753
16749 * libgomp.fortran/pr46753.f90: New test.
16750
16751 PR libgomp/43706
16752 * env.c (initialize_env): Default to spin count 300000
16753 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
16754 is specified.
16755
16756 PR libgomp/45240
16757 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
16758 at the end if sync builtins aren't supported.
16759
16760 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16761
16762 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
16763
16764 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16765
16766 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
16767
16768 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
16769
16770 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
16771
16772 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16773 Tobias Burnus <burnus@net-b.de>
16774
16775 PR fortran/32049
16776 * configure.ac:
16777 * configure: Regenerate.
16778
16779 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
16780
16781 * config/linux/futex.h: New.
16782 * config/linux/arm/mutex.h: New.
16783 * configure.tgt (arm*-*-linux*): Add config path.
16784
16785 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
16786
16787 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
16788
16789 2010-09-23 Tobias Burnus <burnus@net-b.de>
16790
16791 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
16792 Change Fortran datatype to LOGICAL.
16793 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
16794 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
16795
16796 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16797
16798 * configure: Regenerate.
16799
16800 2010-07-26 Jakub Jelinek <jakub@redhat.com>
16801
16802 * libgomp.texi: Add function keyword to a couple of Fortran
16803 interfaces, use integer instead of int for Fortran.
16804
16805 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
16806
16807 * libgomp.texi: Fix spelling and pasto problems throughout.
16808 Adjust prototypes to match code.
16809
16810 2010-07-24 Tobias Burnus <burnus@net-b.de>
16811
16812 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
16813 silence -fwhole-file warning.
16814
16815 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16816
16817 * configure.tgt (*-*-solaris2.[56]*): Removed.
16818
16819 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16820
16821 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
16822 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
16823 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
16824 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
16825 targetting solaris2*.
16826 * configure: Regenerate.
16827 * config.h.in: Regenerate.
16828
16829 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
16830 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
16831 Add libgomp_version_dep.
16832 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
16833 versioning.
16834 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
16835 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
16836 * Makefile.in: Regenerate.
16837
16838 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
16839 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
16840 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
16841 to common block, protected by
16842 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
16843
16844 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
16845
16846 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
16847
16848 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
16849
16850 PR bootstrap/43170
16851 * configure: Regenerate.
16852
16853 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16854
16855 PR other/43620
16856 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
16857 * configure: Regenerate.
16858 * Makefile.in: Regenerate.
16859 * testsuite/Makefile.in: Regenerate.
16860
16861 2010-04-26 Jakub Jelinek <jakub@redhat.com>
16862
16863 PR c/43893
16864 * testsuite/libgomp.c/pr43893.c: New test.
16865 * testsuite/libgomp.c++/pr43893.C: New test.
16866
16867 2010-04-21 Jakub Jelinek <jakub@redhat.com>
16868
16869 PR middle-end/43570
16870 * testsuite/libgomp.fortran/vla8.f90: New test.
16871
16872 2010-04-20 Jakub Jelinek <jakub@redhat.com>
16873
16874 PR libgomp/43706
16875 * config/linux/affinity.c (gomp_init_affinity): Decrease
16876 gomp_available_cpus if affinity mask confines the process to fewer
16877 CPUs.
16878 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
16879 non-NULL, just return gomp_available_cpus.
16880
16881 PR libgomp/43569
16882 * sections.c (gomp_sections_init): Initialize ws->mode.
16883
16884 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
16885
16886 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
16887 not unused bar variable.
16888 * configure: Regenerate.
16889
16890 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16891
16892 * Makefile.in: Regenerate.
16893 * aclocal.m4: Regenerate.
16894 * testsuite/Makefile.in: Regenerate.
16895
16896 2010-03-22 Jakub Jelinek <jakub@redhat.com>
16897
16898 PR libgomp/42942
16899 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
16900 (initialize_env): Adjust callers.
16901 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
16902 when the argument is 0.
16903
16904 * testsuite/libgomp.c/pr42942.c: New test.
16905
16906 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
16907
16908 PR middle-end/42644
16909 PR middle-end/42130
16910 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
16911 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
16912
16913 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16914
16915 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
16916 * testsuite/libgomp.c++/task-6.C: Likewise.
16917
16918 2010-01-28 Steve Ellcey <sje@cup.hp.com>
16919
16920 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
16921
16922 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
16923
16924 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
16925 * configure: Regenerate.
16926
16927 2010-01-26 Jakub Jelinek <jakub@redhat.com>
16928
16929 PR fortran/42866
16930 * testsuite/libgomp.fortran/allocatable5.f90: New test.
16931
16932 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
16933
16934 * configure.ac: Test for executability of GFORTRAN.
16935 * configure: Regenerate.
16936
16937 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16938
16939 * configure: Regenerate.
16940
16941 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
16942
16943 PR libgomp/42602
16944 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
16945
16946 2010-01-03 Richard Guenther <rguenther@suse.de>
16947
16948 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
16949
16950 2009-12-23 Sebastian Pop <sebpop@gmail.com>
16951
16952 * testsuite/libgomp.graphite/pr4118.c: New.
16953
16954 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
16955
16956 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
16957 for darwin, protect the test with require-effective-target tls_runtime.
16958 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
16959
16960 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
16961
16962 PR target/41605
16963 * testsuite/lib/libgomp.exp: Provide -B options to allow for
16964 link spec %s substitutions for static libraries.
16965
16966 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
16967
16968 PR testsuite/42135
16969 * libgomp.graphite/force-parallel-2.c: Reduce array size.
16970
16971 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16972
16973 * Makefile.in: Regenerate.
16974 * configure: Regenerate.
16975 * testsuite/Makefile.in: Regenerate.
16976
16977 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
16978
16979 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
16980 settings for LC_ALL and LANG.
16981
16982 2009-11-25 Jakub Jelinek <jakub@redhat.com>
16983
16984 PR fortran/42162
16985 * testsuite/libgomp.fortran/pr42162.f90: New test.
16986
16987 2009-11-13 Jakub Jelinek <jakub@redhat.com>
16988
16989 PR middle-end/42029
16990 * testsuite/libgomp.c/pr42029.c: New test.
16991
16992 2009-10-26 Jakub Jelinek <jakub@redhat.com>
16993
16994 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
16995 *s. Accept ld version without text in ()s.
16996 * configure: Regenerated.
16997
16998 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
16999
17000 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
17001
17002 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17003
17004 PR libgomp/41418
17005 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
17006 or a hyphen (happens with fortran language disabled).
17007 * configure: Regenerate.
17008
17009 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17010
17011 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
17012 use sed script portable to Solaris /bin/sed for extracting ld
17013 version.
17014 * configure: Regenerate.
17015
17016 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
17017
17018 * testsuite/libgomp.graphite/bounds.c: New test.
17019
17020 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17021
17022 * Makefile.am (libgomp_la_LINK): New.
17023 * Makefile.in: Regenerate.
17024
17025 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17026
17027 * configure.ac (AC_PREREQ): Bump to 2.64.
17028
17029 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17030
17031 * Makefile.am (install-html, install-pdf): Remove.
17032 * Makefile.in: Regenerate.
17033
17034 * Makefile.in: Regenerate.
17035 * aclocal.m4: Regenerate.
17036 * config.h.in: Regenerate.
17037 * configure: Regenerate.
17038 * testsuite/Makefile.in: Regenerate.
17039
17040 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17041
17042 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
17043 * Makefile.in: Regenerate.
17044
17045 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
17046
17047 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
17048 * Makefile.in: Regenerate.
17049
17050 2009-08-19 Tobias Burnus <burnus@net-b.de>
17051
17052 PR fortran/41102
17053 omp_lib.h.in: Fix -std=f95 errors.
17054
17055 2009-08-14 David Edelsohn <edelsohn@gnu.org>
17056
17057 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
17058 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
17059 * testsuite/libgomp.graphite/graphite.exp: New.
17060
17061 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
17062
17063 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
17064 only build.
17065
17066 2009-08-04 David Daney <ddaney@caviumnetworks.com>
17067
17068 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
17069 needed memory barrier semantics.
17070 * config/linux/mips/mutex.h: New file.
17071
17072 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17073
17074 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
17075
17076 2009-07-16 Joseph Myers <joseph@codesourcery.com>
17077
17078 * configure: Regenerate.
17079
17080 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
17081
17082 PR testsuite/40699
17083 PR testsuite/40707
17084 PR testsuite/40709
17085 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
17086 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
17087 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
17088
17089 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
17090
17091 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
17092 options when choosing a multilib.
17093
17094 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
17095
17096 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
17097 ld_library_path. Use add_path. Add just find_libgcc_s to
17098 ld_library_path, not every libgcc multilib directory.
17099 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
17100 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
17101 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
17102 Use add_path.
17103 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
17104
17105 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
17106
17107 * Makefile.am (LTLDFLAGS): Define.
17108 (LINK): Define.
17109 * Makefile.in: Regenerate.
17110
17111 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
17112
17113 PR fortran/39718
17114 * testsuite/libgomp.fortran/fortran.exp: Don't link with
17115 libgfortranbegin, check existence of libgfortran.a instead of
17116 libgfortranbegin.a.
17117
17118 2009-05-20 Jakub Jelinek <jakub@redhat.com>
17119
17120 PR libgomp/40174
17121 * team.c (gomp_thread_start): Destroy thr->release semaphore.
17122 (gomp_free_pool_helper): Likewise.
17123
17124 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
17125 Jakub Jelinek <jakub@redhat.com>
17126
17127 PR fortran/35423
17128 * testsuite/libgomp.fortran/workshare2.f90: New test.
17129
17130 2009-04-09 Nick Clifton <nickc@redhat.com>
17131
17132 * iter.c: Change copyright header to refer to version 3 of the
17133 GNU General Public License with version 3.1 of the GCC Runtime
17134 Library Exception and to point readers at the COPYING3 and
17135 COPYING3.RUNTIME files and the FSF's license web page.
17136 * alloc.c: Likewise.
17137 * barrier.c: Likewise.
17138 * config/bsd/proc.c: Likewise.
17139 * config/linux/affinity.c: Likewise.
17140 * config/linux/alpha/futex.h: Likewise.
17141 * config/linux/bar.c: Likewise.
17142 * config/linux/bar.h: Likewise.
17143 * config/linux/ia64/futex.h: Likewise.
17144 * config/linux/ia64/mutex.h: Likewise.
17145 * config/linux/lock.c: Likewise.
17146 * config/linux/mips/futex.h: Likewise.
17147 * config/linux/mutex.c: Likewise.
17148 * config/linux/mutex.h: Likewise.
17149 * config/linux/powerpc/futex.h: Likewise.
17150 * config/linux/proc.c: Likewise.
17151 * config/linux/ptrlock.c: Likewise.
17152 * config/linux/ptrlock.h: Likewise.
17153 * config/linux/s390/futex.h: Likewise.
17154 * config/linux/sem.c: Likewise.
17155 * config/linux/sem.h: Likewise.
17156 * config/linux/sparc/futex.h: Likewise.
17157 * config/linux/wait.h: Likewise.
17158 * config/linux/x86/futex.h: Likewise.
17159 * config/mingw32/proc.c: Likewise.
17160 * config/mingw32/time.c: Likewise.
17161 * config/posix/affinity.c: Likewise.
17162 * config/posix/bar.c: Likewise.
17163 * config/posix/bar.h: Likewise.
17164 * config/posix/lock.c: Likewise.
17165 * config/posix/mutex.h: Likewise.
17166 * config/posix/proc.c: Likewise.
17167 * config/posix/ptrlock.h: Likewise.
17168 * config/posix/sem.c: Likewise.
17169 * config/posix/sem.h: Likewise.
17170 * config/posix/time.c: Likewise.
17171 * config/posix95/lock.c: Likewise.
17172 * critical.c: Likewise.
17173 * env.c: Likewise.
17174 * error.c: Likewise.
17175 * fortran.c: Likewise.
17176 * iter_ull.c: Likewise.
17177 * libgomp.h: Likewise.
17178 * libgomp_f.h.in: Likewise.
17179 * libgomp_g.h: Likewise.
17180 * loop.c: Likewise.
17181 * loop_ull.c: Likewise.
17182 * omp.h.in: Likewise.
17183 * omp_lib.f90.in: Likewise.
17184 * omp_lib.h.in: Likewise.
17185 * ordered.c: Likewise.
17186 * parallel.c: Likewise.
17187 * sections.c: Likewise.
17188 * single.c: Likewise.
17189 * task.c: Likewise.
17190 * team.c: Likewise.
17191 * work.c: Likewise.
17192
17193 2009-04-09 Jakub Jelinek <jakub@redhat.com>
17194
17195 * testsuite/config/default.exp: Change copyright header to refer to
17196 version 3 of the GNU General Public License and to point readers
17197 at the COPYING3 file and the FSF's license web page.
17198
17199 2009-04-08 Jakub Jelinek <jakub@redhat.com>
17200
17201 PR middle-end/39573
17202 * libgomp.c++/pr39573.C: New test.
17203
17204 2009-04-01 Jakub Jelinek <jakub@redhat.com>
17205
17206 PR other/39591
17207 * testsuite/libgomp.c/pr39591-1.c: New test.
17208 * testsuite/libgomp.c/pr39591-2.c: New test.
17209 * testsuite/libgomp.c/pr39591-3.c: New test.
17210
17211 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
17212
17213 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
17214 * testsuite/libgomp.c/atomic-6.c: Ditto.
17215
17216 2009-03-23 Jakub Jelinek <jakub@redhat.com>
17217
17218 PR c/39495
17219 * testsuite/libgomp.c/loop-12.c: New test.
17220 * testsuite/libgomp.c/loop-11.c: New test.
17221 * testsuite/libgomp.c++/loop-11.C: New test.
17222 * testsuite/libgomp.c++/loop-12.C: New test.
17223 * testsuite/libgomp.c++/for-8.C: New test.
17224
17225 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17226
17227 * configure: Regenerate.
17228
17229 2009-02-11 Jakub Jelinek <jakub@redhat.com>
17230
17231 PR middle-end/39154
17232 * testsuite/libgomp.c/pr39154.c: New test.
17233
17234 2009-01-30 Ian Lance Taylor <iant@google.com>
17235
17236 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
17237 libgomp_ld_is_gold. Get gold version number.
17238 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
17239 * configure: Rebuild.
17240
17241 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
17242
17243 * testsuite/lib/libgomp.exp: Add -B option for targets that
17244 use libgfortran.a%s in their specs.
17245
17246 2009-01-07 Jakub Jelinek <jakub@redhat.com>
17247
17248 PR libgomp/38086
17249 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
17250 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
17251 HAVE_AS_SYMVER_DIRECTIVE is not defined.
17252 * configure: Regenerated.
17253 * config.h.in: Likewise.
17254
17255 2008-12-28 Jakub Jelinek <jakub@redhat.com>
17256
17257 PR c++/38650
17258 * testsuite/libgomp.c/pr38650.c: New test.
17259 * testsuite/libgomp.c++/pr38650.C: New test.
17260
17261 2008-12-27 Jakub Jelinek <jakub@redhat.com>
17262
17263 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
17264
17265 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
17266
17267 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
17268
17269 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17270
17271 * configure: Regenerate.
17272
17273 2008-12-08 Jakub Jelinek <jakub@redhat.com>
17274
17275 PR middle-end/36802
17276 * testsuite/libgomp.c/pr36802-1.c: New test.
17277 * testsuite/libgomp.c/pr36802-2.c: New test.
17278 * testsuite/libgomp.c/pr36802-3.c: New test.
17279
17280 2008-12-01 Janis Johnson <janis187@us.ibm.com>
17281
17282 PR libgomp/38270
17283 * config/linux/powerpc/mutex.h: New.
17284
17285 2008-12-01 Jakub Jelinek <jakub@redhat.com>
17286
17287 PR c++/38257
17288 * testsuite/libgomp.c++/for-7.C: New test.
17289
17290 PR c++/38348
17291 * testsuite/libgomp.c++/for-6.C: New test.
17292
17293 2008-11-26 Janis Johnson <janis187@us.ibm.com>
17294
17295 PR testsuite/28870
17296 * testsuite/lib/libgomp.exp: Include new timeout library files.
17297 (libgomp_target_compile): Set timeout value from new proc.
17298
17299 2008-11-13 Steve Ellcey <sje@cup.hp.com>
17300
17301 PR libgomp/37938
17302 * config/linux/ia64/mutex.h: New.
17303
17304 2008-11-04 Tobias Burnus <burnus@net-b.de>
17305
17306 PR libgomp/37935
17307 * libgomp.texi (Runtime library routines, environment variables):
17308 Update for OpenMP version 3.0.
17309
17310 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
17311 Steve Ellcey <sje@cup.hp.com>
17312
17313 * configure: Regenerate for new libtool.
17314 * Makefile.in: Ditto.
17315 * testsuite/Makefile.in: Ditto.
17316
17317 2008-09-19 Jakub Jelinek <jakub@redhat.com>
17318 Andreas Tobler <a.tobler@schweiz.org>
17319
17320 * config/bsd/proc.c: New file.
17321 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
17322 * configure.ac: Check for header <sys/sysctl.h>
17323 * configure: Regenerate.
17324 * config.h.in: Likewise.
17325
17326 2008-09-05 Janis Johnson <janis187@us.ibm.com>
17327
17328 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
17329
17330 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
17331
17332 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
17333 * Makefile.in: Regenerated.
17334 * testsuite/Makefile.in: Regenerated.
17335
17336 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
17337
17338 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
17339 depend on blddir if blddir exists.
17340 (libgomp_target_compile): Likewise.
17341 * testsuite/libgomp.c++/c++.exp: Likewise.
17342 * testsuite/libgomp.fortran/fortran.exp: Likewise.
17343
17344 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17345
17346 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
17347 Do not list GPL as Invariant Section.
17348
17349 2008-07-28 Ilie Garbacea <ilie@mips.com>
17350 Chao-ying Fu <fu@mips.com>
17351
17352 * configure.tgt: Enable futex for MIPS.
17353 * config/linux/mips/futex.h: New file.
17354
17355 2008-07-16 Jakub Jelinek <jakub@redhat.com>
17356
17357 * team.c (gomp_team_end): Free team immediately if it has
17358 just one thread.
17359
17360 2008-07-08 David Edelsohn <edelsohn@gnu.org>
17361
17362 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
17363 * testsuite/libgomp.fortran/fortran.exp: Same.
17364 * testsuite/libgomp.c/c.exp: Same.
17365 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
17366 directory to library path first.
17367
17368 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
17369
17370 * env.c (parse_stacksize): Add cast to avoid warning.
17371 (parse_spincount): Likewise.
17372
17373 2008-06-27 Jakub Jelinek <jakub@redhat.com>
17374
17375 * testsuite/libgomp.c/loop-10.c: New test.
17376 * libgomp.c/loop-3.c (main): Add lastprivate clause.
17377 * libgomp.c++/loop-6.C (main): Likewise.
17378
17379 PR debug/36617
17380 * testsuite/libgomp.c/debug-1.c: New test.
17381
17382 2008-06-19 Jakub Jelinek <jakub@redhat.com>
17383
17384 * testsuite/libgomp.c/nqueens-1.c: New test.
17385
17386 PR c++/36523
17387 * testsuite/libgomp.c++/task-7.C: New function.
17388
17389 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17390
17391 * configure: Regenerate.
17392
17393 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17394
17395 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
17396 mutex when HAVE_SYNC_BUILTINS isn't defined.
17397
17398 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17399
17400 * libgomp.texi (omp_test_lock): Fix typo.
17401
17402 2008-06-12 Tobias Burnus <burnus@net-b.de>
17403
17404 * omp_lib.f90.in: Add "implicit none".
17405
17406 2008-06-12 Jakub Jelinek <jakub@redhat.com>
17407
17408 PR middle-end/36506
17409 * testsuite/libgomp.c/reduction-5.c: New test.
17410
17411 2008-06-11 Jakub Jelinek <jakub@redhat.com>
17412
17413 * libgomp.h (struct gomp_task): Add in_tied_task field.
17414 * task.c (gomp_init_task): Initialize it.
17415 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
17416 unconditionally. Don't call gomp_team_barrier_wake if
17417 current task is implicit or if(0) from implicit and number of
17418 running tasks is equal to nthreads - 1.
17419
17420 PR libgomp/36471
17421 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
17422 omp_get_team_size_8): Fix pastos.
17423
17424 PR libgomp/36469
17425 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
17426 * configure: Regenerated.
17427 * config.h.in: Regenerated.
17428 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
17429 defined.
17430
17431 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
17432
17433 PR bootstrap/36452
17434 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
17435 (GOMP_loop_ull_dynamic_start): Likewise.
17436 (GOMP_loop_ull_guided_start): Likewise.
17437 (GOMP_loop_ull_ordered_static_start): Likewise.
17438 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
17439 (GOMP_loop_ull_ordered_guided_start): Likewise.
17440
17441 2008-06-06 Jakub Jelinek <jakub@redhat.com>
17442 Richard Henderson <rth@redhat.com>
17443 Ulrich Drepper <drepper@redhat.com>
17444 Jakob Blomer <jakob.blomer@ira.uka.de>
17445
17446 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
17447 Substitute also OMP_*LOCK_25*.
17448 * configure: Regenerated.
17449 * config.h.in: Regenerated.
17450 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
17451 ptrlock.c and task.c.
17452 * Makefile.in: Regenerated.
17453 * testsuite/Makefile.in: Regenerated.
17454 * task.c: New file.
17455 * loop_ull.c: New file.
17456 * iter_ull.c: New file.
17457 * libgomp.h: Include ptrlock.h.
17458 (enum gomp_task_kind): New type.
17459 (struct gomp_team): Add task_lock, task_queue, task_count,
17460 task_running_count, single_count fields. Add
17461 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
17462 Remove work_share_lock, generation_mask,
17463 oldest_live_gen, num_live_gen and init_work_shares fields, add
17464 work work_share_list_alloc, work_share_list_free and work_share_chunk
17465 fields. Change work_shares from pointer to pointers into an array.
17466 Change ordered_release field into gomp_sem_t ** from flexible array
17467 member. Add implicit_task and initial_work_shares fields.
17468 Move close to the end of the struct.
17469 (struct gomp_team_state): Add single_count, last_work_share,
17470 active_level and level fields, remove work_share_generation.
17471 (gomp_barrier_handle_tasks): New prototype.
17472 (gomp_finish_task): New inline function.
17473 (struct gomp_work_share): Move chunk_size, end, incr into
17474 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
17475 next_ll fields. Reshuffle fields. Add next_alloc,
17476 next_ws, next_free and inline_ordered_team_ids fields, change
17477 ordered_team_ids into pointer from flexible array member.
17478 Add mode field. Put lock and next into a different cache line
17479 from most of the write-once fields.
17480 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
17481 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
17482 gomp_iter_ull_guided_next): New prototypes.
17483 (gomp_new_icv): New prototype.
17484 (struct gomp_thread): Add thread_pool and task fields.
17485 (struct gomp_thread_pool): New type.
17486 (gomp_new_team): New prototype.
17487 (gomp_team_start): Change type of last argument.
17488 (gomp_new_work_share): Removed.
17489 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
17490 (gomp_work_share_init_done): New static inline.
17491 (gomp_throttled_spin_count_var, gomp_available_cpus,
17492 gomp_managed_threads): New extern decls.
17493 (gomp_init_task): New prototype.
17494 (gomp_spin_count_var): New extern var decl.
17495 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
17496 or no alias support, or if not PIC.
17497 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
17498 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
17499 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
17500 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
17501 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
17502 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
17503 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
17504 gomp_test_nest_lock_25): New prototypes.
17505 (omp_lock_symver, strong_alias): Define.
17506 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
17507 decls.
17508 (gomp_end_task): New.
17509 (struct gomp_task_icv, gomp_global_icv): New.
17510 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
17511 (struct gomp_task): New.
17512 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
17513 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
17514 (gomp_icv): New.
17515 (gomp_schedule_type): Reorder enum to match
17516 omp_sched_t.
17517 * team.c (struct gomp_thread_start_data): Add thread_pool and task
17518 fields.
17519 (gomp_thread_start): Add gomp_team_barrier_wait call.
17520 For non-nested case remove clearing of docked thread thr fields.
17521 Use pool fields instead of global gomp_* variables. Use
17522 gomp_barrier_wait_last when needed. Initialize ts.active_level.
17523 Create tasks for each member thread.
17524 (free_team): Only destroy team barrier, task_lock here and free it.
17525 (gomp_free_thread): Free last_team if non-NULL.
17526 (gomp_team_end): Call gomp_team_barrier_wait instead of
17527 gomp_barrier_wait. For nested case call one extra
17528 gomp_barrier_wait. Move here some destruction from free_team.
17529 Call free_team on pool->last_team if any, rather than freeing
17530 current team. Destroy work_share_list_free_lock ifndef
17531 HAVE_SYNC_BUILTINS.
17532 (gomp_new_icv): New function.
17533 (gomp_threads, gomp_threads_size, gomp_threads_used,
17534 gomp_threads_dock): Removed.
17535 (gomp_thread_destructor): New variable.
17536 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
17537 functions.
17538 (gomp_team_start): Create new pool if current thread doesn't have
17539 one. Use pool fields instead of global gomp_* variables.
17540 Initialize thread_pool field for new threads. Clear single_count.
17541 Change last argument from ws to team, don't create
17542 new team, set ts.work_share to &team->work_shares[0] and clear
17543 ts.last_work_share. Don't clear ts.work_share_generation.
17544 If number of threads changed, adjust atomically gomp_managed_threads.
17545 Use gomp_init_task instead of gomp_new_task,
17546 set thr->task to the corresponding implicit_task array entry.
17547 Create tasks for each member thread. Initialize ts.level.
17548 (initialize_team): Call pthread_key_create on
17549 gomp_thread_destructor.
17550 (team_destructor): New function.
17551 (new_team): Removed.
17552 (gomp_new_team): New function.
17553 (free_team): Free gomp_work_share blocks chained through next_alloc,
17554 instead of freeing work_shares and destroying work_share_lock.
17555 (gomp_team_end): Call gomp_fini_work_share. If number of threads
17556 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
17557 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
17558 of gomp_barrier_wait.
17559 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
17560 instead of gomp_barrier_wait. Call gomp_work_share_init_done
17561 if gomp_work_share_start returned true. Don't unlock ws->lock.
17562 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
17563 of gomp_barrier_wait.
17564 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
17565 gomp_work_share_init_done if gomp_work_share_start returned true.
17566 Don't unlock ws->lock.
17567 * work.c: Include stddef.h.
17568 (free_work_share): Use work_share_list_free_lock instead
17569 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
17570 Call gomp_fini_work_share and then either free ws if orphaned, or
17571 put it into work_share_list_free list of the current team.
17572 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
17573 functions.
17574 (gomp_work_share_start, gomp_work_share_end,
17575 gomp_work_share_end_nowait): Rewritten.
17576 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
17577 (openmp_version): Set to 200805.
17578 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
17579 omp_sched_guided, omp_sched_auto): New parameters.
17580 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
17581 omp_set_max_active_levels, omp_get_max_active_levels,
17582 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
17583 omp_get_active_level): New interfaces.
17584 * omp_lib.h.in (openmp_version): Set to 200805.
17585 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
17586 omp_sched_guided, omp_sched_auto): New parameters.
17587 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
17588 omp_set_max_active_levels, omp_get_max_active_levels,
17589 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
17590 omp_get_active_level): New externals.
17591 * loop.c: Include limits.h.
17592 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
17593 GFS_AUTO.
17594 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
17595 Likewise. Use gomp_icv.
17596 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
17597 ts.static_trip here.
17598 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
17599 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
17600 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
17601 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
17602 don't unlock ws->lock, otherwise lock it.
17603 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
17604 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
17605 (gomp_parallel_loop_start): Call gomp_new_team instead of
17606 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
17607 Adjust gomp_team_start caller. Pass 0 as second argument to
17608 gomp_resolve_num_threads.
17609 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
17610 If adding ws->chunk_size nthreads + 1 times after end won't
17611 overflow, set ws->mode to 1.
17612 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
17613 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
17614 GOMP_loop_ull_ordered_static_start,
17615 GOMP_loop_ull_ordered_dynamic_start,
17616 GOMP_loop_ull_ordered_guided_start,
17617 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
17618 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
17619 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
17620 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
17621 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
17622 prototypes.
17623 * libgomp.map: Export lock routines also @@OMP_2.0.
17624 (GOMP_loop_ordered_dynamic_first,
17625 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
17626 GOMP_loop_ordered_static_first): Remove.
17627 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
17628 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
17629 GOMP_loop_ull_ordered_dynamic_next,
17630 GOMP_loop_ull_ordered_dynamic_start,
17631 GOMP_loop_ull_ordered_guided_next,
17632 GOMP_loop_ull_ordered_guided_start,
17633 GOMP_loop_ull_ordered_runtime_next,
17634 GOMP_loop_ull_ordered_runtime_start,
17635 GOMP_loop_ull_ordered_static_next,
17636 GOMP_loop_ull_ordered_static_start,
17637 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
17638 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
17639 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
17640 (omp_set_schedule, omp_get_schedule,
17641 omp_get_thread_limit, omp_set_max_active_levels,
17642 omp_get_max_active_levels, omp_get_level,
17643 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
17644 omp_set_schedule_, omp_set_schedule_8_,
17645 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
17646 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
17647 omp_get_max_active_levels_, omp_get_level_,
17648 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
17649 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
17650 New exports @@OMP_3.0.
17651 * omp.h.in (omp_sched_t): New type.
17652 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
17653 omp_set_max_active_levels, omp_get_max_active_levels,
17654 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
17655 omp_get_active_level): New prototypes.
17656 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
17657 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
17658 gomp_thread_limit_var, gomp_remaining_threads_count,
17659 gomp_remaining_threads_lock): New variables.
17660 (parse_spincount): New function.
17661 (initialize_env): Call gomp_init_num_threads unconditionally.
17662 Initialize gomp_available_cpus. Call parse_spincount,
17663 initialize gomp_{,throttled_}spin_count_var
17664 depending on presence and value of OMP_WAIT_POLICY and
17665 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
17666 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
17667 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
17668 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
17669 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
17670 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
17671 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
17672 (gomp_global_icv): New.
17673 (parse_schedule): Use it. Parse "auto".
17674 (omp_set_num_threads): Use gomp_icv.
17675 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
17676 Likewise.
17677 (omp_get_max_threads): Move from parallel.c.
17678 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
17679 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
17680 add ialias.
17681 (parse_stacksize, parse_wait_policy): New functions.
17682 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
17683 both wrappers for compatibility and new locks.
17684 (omp_set_schedule, omp_get_schedule,
17685 omp_get_thread_limit, omp_set_max_active_levels,
17686 omp_get_max_active_levels, omp_get_level,
17687 omp_get_ancestor_thread_num, omp_get_team_size,
17688 omp_get_active_level): New ialias_redirect.
17689 (omp_set_schedule_, omp_set_schedule_8_,
17690 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
17691 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
17692 omp_get_max_active_levels_, omp_get_level_,
17693 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
17694 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
17695 New functions.
17696 * parallel.c: Include limits.h.
17697 (gomp_resolve_num_threads): Add count argument. Rewritten.
17698 (GOMP_parallel_start): Call gomp_new_team and pass that as last
17699 argument to gomp_team_start. Pass 0 as second argument to
17700 gomp_resolve_num_threads.
17701 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
17702 if gomp_thread_limit_var != ULONG_MAX.
17703 (omp_in_parallel): Implement using ts.active_level.
17704 (omp_get_max_threads): Move to env.c.
17705 (omp_get_level, omp_get_ancestor_thread_num,
17706 omp_get_team_size, omp_get_active_level): New functions,
17707 add ialias.
17708 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
17709 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
17710 gomp_iter_dynamic_next instead of the _locked variant and don't take
17711 lock around it, otherwise acquire it before calling
17712 gomp_iter_dynamic_next_locked.
17713 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
17714 gomp_iter_dynamic_next instead of the _locked variant and don't take
17715 lock around it.
17716 (GOMP_parallel_sections_start): Call gomp_new_team instead of
17717 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
17718 Adjust gomp_team_start caller. Pass count as second argument to
17719 gomp_resolve_num_threads, don't adjust num_threads after the call.
17720 Use gomp_icv.
17721 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
17722 ws->chunk_size by incr.
17723 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
17724 code.
17725 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
17726 types.
17727 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
17728 (omp_check_defines): Check even the compat defines.
17729 * config/linux/ptrlock.c: New file.
17730 * config/linux/ptrlock.h: New file.
17731 * config/linux/wait.h: New file.
17732 * config/posix/ptrlock.c: New file.
17733 * config/posix/ptrlock.h: New file.
17734 * config/linux/bar.h (gomp_team_barrier_wait,
17735 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
17736 (gomp_team_barrier_set_task_pending,
17737 gomp_team_barrier_clear_task_pending,
17738 gomp_team_barrier_set_waiting_for_tasks,
17739 gomp_team_barrier_waiting_for_tasks,
17740 gomp_team_barrier_done): New inlines.
17741 (gomp_barrier_t): Rewritten.
17742 (gomp_barrier_state_t): New typedef.
17743 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
17744 gomp_barrier_wait_start): Rewritten.
17745 (gomp_barrier_wait_end): Change second argument to
17746 gomp_barrier_state_t.
17747 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
17748 inlines.
17749 * config/linux/bar.c: Include wait.h instead of libgomp.h and
17750 futex.h.
17751 (gomp_barrier_wait_end): Rewritten.
17752 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
17753 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
17754 * config/posix/bar.h (gomp_barrier_t): Add generation field.
17755 (gomp_barrier_state_t): New typedef.
17756 (gomp_team_barrier_wait,
17757 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
17758 (gomp_barrier_wait_start): Or all but low 2 bits from generation
17759 into the return value. Return gomp_barrier_state_t.
17760 (gomp_team_barrier_set_task_pending,
17761 gomp_team_barrier_clear_task_pending,
17762 gomp_team_barrier_set_waiting_for_tasks,
17763 gomp_team_barrier_waiting_for_tasks,
17764 gomp_team_barrier_done): New inlines.
17765 (gomp_barrier_wait_end): Change second argument to
17766 gomp_barrier_state_t.
17767 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
17768 inlines.
17769 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
17770 (gomp_barrier_wait_end): Change second argument to
17771 gomp_barrier_state_t.
17772 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
17773 gomp_team_barrier_wake): New functions.
17774 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
17775 futex.h.
17776 (gomp_futex_wake, gomp_futex_wait): New variables.
17777 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
17778 * config/linux/lock.c: Rewrite to make locks task owned,
17779 for backwards compatibility provide the old entrypoints
17780 if symbol versioning. Include wait.h instead of libgomp.h and
17781 futex.h.
17782 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
17783 * config/posix95/lock.c: Rewrite to make locks task owned,
17784 for backwards compatibility provide the old entrypoints
17785 if symbol versioning.
17786 * config/posix/lock.c: Rewrite to make locks task owned,
17787 for backwards compatibility provide the old entrypoints
17788 if symbol versioning.
17789 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
17790 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
17791 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
17792 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
17793 (sys_futex0): Return error code.
17794 (futex_wake, futex_wait): If ENOSYS was returned, clear
17795 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
17796 (cpu_relax, atomic_write_barrier): New static inlines.
17797 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
17798 (futex_wake, futex_wait): If ENOSYS was returned, clear
17799 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
17800 (cpu_relax, atomic_write_barrier): New static inlines.
17801 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
17802 (sys_futex0): Return error code.
17803 (futex_wake, futex_wait): If ENOSYS was returned, clear
17804 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
17805 (cpu_relax, atomic_write_barrier): New static inlines.
17806 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
17807 (sys_futex0): Return error code.
17808 (futex_wake, futex_wait): If ENOSYS was returned, clear
17809 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
17810 (cpu_relax, atomic_write_barrier): New static inlines.
17811 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
17812 (sys_futex0): Return error code.
17813 (futex_wake, futex_wait): If ENOSYS was returned, clear
17814 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
17815 (cpu_relax, atomic_write_barrier): New static inlines.
17816 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
17817 (sys_futex0): Return error code.
17818 (futex_wake, futex_wait): If ENOSYS was returned, clear
17819 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
17820 (cpu_relax, atomic_write_barrier): New static inlines.
17821 * config/linux/sem.c: Include wait.h instead of libgomp.h and
17822 futex.h.
17823 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
17824 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
17825 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
17826 types.
17827 (omp_nest_lock_t): Change owner into void *, add lock field.
17828 * config/posix95/omp-lock.h: Include semaphore.h.
17829 (omp_lock_25_t, omp_nest_lock_25_t): New types.
17830 (omp_lock_t): Use sem_t instead of mutex if semaphores
17831 aren't broken.
17832 (omp_nest_lock_t): Likewise. Change owner to void *.
17833 * config/posix/omp-lock.h: Include semaphore.h.
17834 (omp_lock_25_t, omp_nest_lock_25_t): New types.
17835 (omp_lock_t): Use sem_t instead of mutex if semaphores
17836 aren't broken.
17837 (omp_nest_lock_t): Likewise. Add owner field.
17838
17839 2008-06-06 Jakub Jelinek <jakub@redhat.com>
17840
17841 * testsuite/libgomp.c/collapse-1.c: New test.
17842 * testsuite/libgomp.c/collapse-2.c: New test.
17843 * testsuite/libgomp.c/collapse-3.c: New test.
17844 * testsuite/libgomp.c/icv-1.c: New test.
17845 * testsuite/libgomp.c/icv-2.c: New test.
17846 * testsuite/libgomp.c/lib-2.c: New test.
17847 * testsuite/libgomp.c/lock-1.c: New test.
17848 * testsuite/libgomp.c/lock-2.c: New test.
17849 * testsuite/libgomp.c/lock-3.c: New test.
17850 * testsuite/libgomp.c/loop-4.c: New test.
17851 * testsuite/libgomp.c/loop-5.c: New test.
17852 * testsuite/libgomp.c/loop-6.c: New test.
17853 * testsuite/libgomp.c/loop-7.c: New test.
17854 * testsuite/libgomp.c/loop-8.c: New test.
17855 * testsuite/libgomp.c/loop-9.c: New test.
17856 * testsuite/libgomp.c/nested-3.c: New test.
17857 * testsuite/libgomp.c/nestedfn-6.c: New test.
17858 * testsuite/libgomp.c/sort-1.c: New test.
17859 * testsuite/libgomp.c/task-1.c: New test.
17860 * testsuite/libgomp.c/task-2.c: New test.
17861 * testsuite/libgomp.c/task-3.c: New test.
17862 * testsuite/libgomp.c/task-4.c: New test.
17863 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
17864 to C++ testsuite default compiler options.
17865 * testsuite/libgomp.c++/collapse-1.C: New test.
17866 * testsuite/libgomp.c++/collapse-2.C: New test.
17867 * testsuite/libgomp.c++/ctor-10.C: New test.
17868 * testsuite/libgomp.c++/for-1.C: New test.
17869 * testsuite/libgomp.c++/for-2.C: New test.
17870 * testsuite/libgomp.c++/for-3.C: New test.
17871 * testsuite/libgomp.c++/for-4.C: New test.
17872 * testsuite/libgomp.c++/for-5.C: New test.
17873 * testsuite/libgomp.c++/loop-8.C: New test.
17874 * testsuite/libgomp.c++/loop-9.C: New test.
17875 * testsuite/libgomp.c++/loop-10.C: New test.
17876 * testsuite/libgomp.c++/task-1.C: New test.
17877 * testsuite/libgomp.c++/task-2.C: New test.
17878 * testsuite/libgomp.c++/task-3.C: New test.
17879 * testsuite/libgomp.c++/task-4.C: New test.
17880 * testsuite/libgomp.c++/task-5.C: New test.
17881 * testsuite/libgomp.c++/task-6.C: New test.
17882 * testsuite/libgomp.fortran/allocatable1.f90: New test.
17883 * testsuite/libgomp.fortran/allocatable2.f90: New test.
17884 * testsuite/libgomp.fortran/allocatable3.f90: New test.
17885 * testsuite/libgomp.fortran/allocatable4.f90: New test.
17886 * testsuite/libgomp.fortran/collapse1.f90: New test.
17887 * testsuite/libgomp.fortran/collapse2.f90: New test.
17888 * testsuite/libgomp.fortran/collapse3.f90: New test.
17889 * testsuite/libgomp.fortran/collapse4.f90: New test.
17890 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
17891 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
17892 * testsuite/libgomp.fortran/lib4.f90: New test.
17893 * testsuite/libgomp.fortran/lock-1.f90: New test.
17894 * testsuite/libgomp.fortran/lock-2.f90: New test.
17895 * testsuite/libgomp.fortran/nested1.f90: New test.
17896 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
17897 * testsuite/libgomp.fortran/strassen.f90: New test.
17898 * testsuite/libgomp.fortran/tabs1.f90: New test.
17899 * testsuite/libgomp.fortran/tabs2.f: New test.
17900 * testsuite/libgomp.fortran/task1.f90: New test.
17901 * testsuite/libgomp.fortran/task2.f90: New test.
17902 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
17903 * testsuite/libgomp.fortran/vla5.f90: Likewise.
17904 * testsuite/libgomp.c/pr26943-2.c: Likewise.
17905 * testsuite/libgomp.c/pr26943-3.c: Likewise.
17906 * testsuite/libgomp.c/pr26943-4.c: Likewise.
17907
17908 2008-05-23 Jakub Jelinek <jakub@redhat.com>
17909
17910 PR c++/36308
17911 * testsuite/libgomp.c++/ctor-11.C: New test.
17912 * testsuite/libgomp.c++/ctor-12.C: New test.
17913
17914 2008-05-15 Janis Johnson <janis187@us.ibm.com>
17915
17916 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
17917
17918 2008-05-07 Jakub Jelinek <jakub@redhat.com>
17919
17920 PR middle-end/36106
17921 * testsuite/libgomp.c/atomic-5.c: New test.
17922 * testsuite/libgomp.c/atomic-6.c: New test.
17923 * testsuite/libgomp.c/autopar-1.c: New test.
17924
17925 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17926
17927 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
17928 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
17929 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
17930 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
17931 * configure: Regenerate.
17932 * Makefile.in, testsuite/Makefile.in: Likewise.
17933
17934 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
17935
17936 PR bootstrap/35457
17937 * aclocal.m4: Regenerate.
17938 * configure: Regenerate.
17939
17940 2008-03-18 Jakub Jelinek <jakub@redhat.com>
17941
17942 PR middle-end/35611
17943 * testsuite/libgomp.c/atomic-4.c: New test.
17944
17945 PR libgomp/35625
17946 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
17947 (gomp_iter_guided_next): Likewise.
17948 * testsuite/libgomp.c/pr35625.c: New test.
17949
17950 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17951
17952 * aclocal.m4: Regenerate.
17953 * configure: Likewise.
17954 * Makefile.in: Likewise.
17955 * testsuite/Makefile.in: Likewise.
17956
17957 2008-03-13 Jakub Jelinek <jakub@redhat.com>
17958
17959 PR middle-end/35185
17960 * testsuite/libgomp.c++/pr35185.C: New test.
17961
17962 2008-03-12 Jakub Jelinek <jakub@redhat.com>
17963
17964 PR middle-end/35549
17965 * testsuite/libgomp.c/pr35549.c: New test.
17966
17967 2008-03-06 Jakub Jelinek <jakub@redhat.com>
17968
17969 * testsuite/libgomp.c/atomic-3.c: New test.
17970
17971 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17972
17973 PR fortran/33197
17974 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
17975 .F08 file suffixes.
17976
17977 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
17978
17979 PR libgomp/33131
17980 * configure.ac: Add ACX_HEADER_STRING.
17981 * env.c: Include strings.h.
17982 * aclocal.m4: Regenerate.
17983 * config.h.in: Regenerate.
17984 * configure: Regenerate.
17985 * Makefile.in: Regenerate.
17986 * testsuite/Makefile.in: Regenerate.
17987
17988 2008-02-15 Jakub Jelinek <jakub@redhat.com>
17989
17990 PR middle-end/35196
17991 * testsuite/libgomp.c/pr35196.c: New test.
17992
17993 PR middle-end/35130
17994 * testsuite/libgomp.fortran/pr35130.f90: New test.
17995 * testsuite/libgomp.c/pr35130.c: New test.
17996
17997 2008-01-25 Jakub Jelinek <jakub@redhat.com>
17998
17999 PR middle-end/33880
18000 * testsuite/libgomp.c/pr33880.c: New test.
18001 * testsuite/libgomp.fortran/pr33880.f90: New test.
18002
18003 2008-01-24 David Edelsohn <edelsohn@gnu.org>
18004
18005 * configure: Regenerate.
18006
18007 2008-01-08 Jakub Jelinek <jakub@redhat.com>
18008
18009 * configure.ac: Move futex checking into ../config/futex.m4.
18010 * configure: Rebuilt.
18011 * aclocal.m4: Rebuilt.
18012 * Makefile.in: Rebuilt.
18013
18014 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
18015 2007-10-15 ../config/tls.m4 change.
18016
18017 2007-12-19 Jakub Jelinek <jakub@redhat.com>
18018
18019 PR c++/34513
18020 * testsuite/libgomp.c/pr34513.c: New test.
18021 * testsuite/libgomp.c++/pr34513.C: New test.
18022
18023 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
18024
18025 PR target/32765
18026 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
18027
18028 2007-12-04 Jakub Jelinek <jakub@redhat.com>
18029
18030 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
18031
18032 2007-12-03 Jakub Jelinek <jakub@redhat.com>
18033
18034 * testsuite/libgomp.c/private-1.c: New test.
18035
18036 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
18037 Paolo Bonzini <bonzini@gnu.org>
18038
18039 * Makefile.am: Use space as vpath separator. Use 'vpath %'
18040 instead of 'VPATH ='.
18041 * Makefile.in: Regenerate.
18042
18043 2007-11-23 Matthias Klose <doko@ubuntu.com>
18044
18045 * configure.ac: Adjust makeinfo version check.
18046 * configure: Regenerate.
18047
18048 2007-11-10 Jakub Jelinek <jakub@redhat.com>
18049
18050 PR fortran/34020
18051 * testsuite/libgomp.fortran/pr34020.f90: New test.
18052
18053 2007-11-06 Jakub Jelinek <jakub@redhat.com>
18054
18055 PR c++/33894
18056 * testsuite/libgomp.c++/atomic-1.C: New test.
18057
18058 2007-10-25 Jakub Jelinek <jakub@redhat.com>
18059
18060 PR libgomp/33275
18061 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
18062 Make x and y integers rather than (implicit) reals. Add private (j)
18063 clause to the last omp parallel.
18064
18065 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
18066
18067 * configure: Regenerate following changes to ../config/tls.m4.
18068
18069 2007-09-28 Jakub Jelinek <jakub@redhat.com>
18070
18071 * testsuite/libgomp.fortran/stack.f90: New test.
18072
18073 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
18074
18075 * config/mingw32/proc.c: New file.
18076
18077 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
18078
18079 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
18080 (main): Use __get_cpuid to get i386 target fetaures.
18081 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
18082 (main): Use __get_cpuid to get x86_64 target fetaures.
18083
18084 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
18085
18086 PR target/32765
18087 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
18088 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
18089
18090 2007-07-12 Jakub Jelinek <jakub@redhat.com>
18091
18092 PR fortran/32550
18093 * testsuite/libgomp.fortran/pr32550.f90: New test.
18094 * testsuite/libgomp.fortran/crayptr2.f90: New test.
18095
18096 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
18097
18098 * aclocal.m4: Regenerated.
18099
18100 2007-07-05 Tobias Burnus <burnus@net-b.de>
18101
18102 PR fortran/32359
18103 * testsuite/libgomp.fortran/pr32359.f90: New.
18104
18105 2007-07-02 Jakub Jelinek <jakub@redhat.com>
18106
18107 PR libgomp/32468
18108 * sections.c (GOMP_parallel_sections_start): Only decrease
18109 number of threads to COUNT if dyn_var is true.
18110 * testsuite/libgomp.c/pr32468.c: New test.
18111
18112 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18113
18114 PR libgomp/26308
18115 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
18116
18117 2007-06-21 Jakub Jelinek <jakub@redhat.com>
18118
18119 PR middle-end/32362
18120 * testsuite/libgomp.c/pr32362-1.c: New test.
18121 * testsuite/libgomp.c/pr32362-2.c: New test.
18122 * testsuite/libgomp.c/pr32362-3.c: New test.
18123
18124 2007-06-07 Jakub Jelinek <jakub@redhat.com>
18125
18126 * team.c (gomp_team_start): Fix setting up thread_attr
18127 stack size.
18128
18129 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
18130
18131 * configure: Regenerate.
18132
18133 2007-05-23 Steve Ellcey <sje@cup.hp.com>
18134
18135 * Makefile.in: Regenerate.
18136 * configure: Regenerate.
18137 * aclocal.m4: Regenerate.
18138 * testsuite/Makefile.in: Regenerate.
18139
18140 2007-05-04 Jakub Jelinek <jakub@redhat.com>
18141
18142 * config/linux/proc.c: New file.
18143
18144 PR libgomp/28482
18145 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
18146
18147 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
18148
18149 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
18150
18151 2007-04-16 Matthias Klose <doko@debian.org>
18152
18153 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
18154 flags if not building with -m64.
18155 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
18156 flag for i?86-*-* targets, if current target matches -m64.
18157
18158 2007-04-14 Steve Ellcey <sje@cup.hp.com>
18159
18160 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
18161 * Makefile.in: Regenerate.
18162
18163 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18164
18165 PR testsuite/31369
18166 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
18167 ld_library_path.
18168 * testsuite/libgomp.fortran/fortran.exp: Likewise.
18169
18170 2007-04-04 Jakub Jelinek <jakub@redhat.com>
18171
18172 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
18173 decls.
18174 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
18175 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
18176 (parse_affinity): New function.
18177 (initialize_env): Call it and gomp_init_affinity.
18178 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
18179 create new pthread_attr_t and call gomp_init_thread_affinity
18180 on it for each thread before passing the attribute to pthread_create.
18181 * config/linux/affinity.c: New file.
18182 * config/posix/affinity.c: New file.
18183 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
18184 * configure: Rebuilt.
18185 * config.h.in: Rebuilt.
18186 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
18187 * Makefile.in: Rebuilt.
18188
18189 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
18190
18191 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
18192 *-*-darwin*.
18193 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
18194 and use it if found.
18195
18196 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
18197
18198 * testsuite/config/default.exp: New file.
18199 * testsuite/lib/libgomp.exp: New file.
18200 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
18201 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
18202 load_lib *, load_gcc_lib *): Move to libgomp.exp.
18203 (libgomp_load): Remove.
18204 * testsuite/lib/libgomp.exp (libgomp_init): Compute
18205 always_ld_library_path, not ld_library_path. Set additional_flags
18206 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
18207 (target_compile): Do not call libgomp_init. Append lang_library_path
18208 and lang_link_flags to options.
18209 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
18210 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
18211 here.
18212 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
18213 always_ld_library_path. Set LD_LIBRARY_PATH here.
18214 * testsuite/libgomp.fortran/fortran.exp: Ditto.
18215 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
18216 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
18217 CX8 flag.
18218 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
18219 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
18220 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
18221 * testsuite/libgomp.c/pr29947-1.c: Ditto.
18222 * testsuite/libgomp.c/atomic-10.c: Ditto.
18223
18224 2007-03-21 Jakub Jelinek <jakub@redhat.com>
18225
18226 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
18227 dg-final cleanup-modules line.
18228 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
18229 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
18230 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
18231 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
18232 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
18233 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
18234 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
18235
18236 2007-03-18 Andreas Schwab <schwab@suse.de>
18237
18238 * acinclude.m4: Adjust regular expression for ld version
18239 extraction.
18240 * configure: Regenerate.
18241
18242 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
18243
18244 * Makefile.am: Add install-pdf target as copied from
18245 automake v1.10 rules.
18246 * Makefile.in: Regenerate
18247
18248 2007-02-07 Jakub Jelinek <jakub@redhat.com>
18249
18250 PR libgomp/28486
18251 * configure: Regenerate.
18252
18253 PR c++/30703
18254 * testsuite/libgomp.c++/pr30703.C: New test.
18255
18256 2007-02-02 Jakub Jelinek <jakub@redhat.com>
18257
18258 Revert:
18259 2006-07-05 Eric Christopher <echristo@apple.com>
18260 * configure.ac: Depend addition of -pthread on host OS.
18261 * configure: Regenerate.
18262
18263 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18264
18265 * libgomp.texi: Fix spacing after abbreviations.
18266
18267 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
18268
18269 PR libgomp/30546
18270 * configure.ac: Add check for makeinfo
18271 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
18272 if an appropriate version of makeinfo is found.
18273 * aclocal.m4: Regenerated.
18274 * configure: Regenerated.
18275 * Makefile.in: Regenerated.
18276 * testsuite/Makefile.in: Regenerated.
18277
18278 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
18279
18280 PR libgomp/30540
18281 * libgomp.texi: More about implementation-dependent settings.
18282
18283 2007-01-26 Tobias Burnus <burnus@net-b.de>
18284
18285 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
18286
18287 2007-01-24 Jakub Jelinek <jakub@redhat.com>
18288
18289 PR middle-end/30494
18290 * testsuite/libgomp.c/pr30494.c: New test.
18291
18292 2007-01-15 Tom Tromey <tromey@redhat.com>
18293
18294 * configure: Rebuilt.
18295 * configure.ac: Fixed comment.
18296
18297 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
18298
18299 * libgomp.texi: Document implementation specific default values of
18300 environment variables.
18301
18302 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
18303
18304 PR libgomp/28209
18305 * libgomp.texi: New file.
18306 * configure.ac: Add --enable-generated-files-in-srcdir option.
18307 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
18308 files to srcdir.
18309 * Makefile.in: Regenerated.
18310 * config.h.in: Regenerated.
18311 * testsuite/Makefile.in: Regenerated.
18312 * NOTES: Removed.
18313
18314 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
18315
18316 PR libgomp/29949
18317 * env.c (omp_set_num_threads): Set illegal thread count to 1.
18318
18319 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
18320
18321 * configure: Regenerate.
18322
18323 2006-12-04 Jakub Jelinek <jakub@redhat.com>
18324
18325 PR libgomp/29947
18326 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
18327 start if there shouldn't be any loop iterations.
18328 (gomp_loop_ordered_static_start): Remove start == end test.
18329 * testsuite/libgomp.c/pr29947-1.c: New test.
18330 * testsuite/libgomp.c/pr29947-2.c: New test.
18331
18332 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
18333
18334 * configure.tgt: Force initial-exec TLS model on Linux only.
18335
18336 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
18337
18338 * configure: Regenerated.
18339
18340 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
18341
18342 * env.c (parse_schedule): Reject out of range values.
18343 (parse_unsigned_long): Reject out of range, negative or zero values.
18344
18345 2006-10-29 Jakub Jelinek <jakub@redhat.com>
18346
18347 PR fortran/29629
18348 * testsuite/libgomp.fortran/pr29629.f90: New test.
18349
18350 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
18351
18352 PR libgomp/29494
18353 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
18354 * config/posix95: New directory.
18355 * config/posix95/omp-lock.h: New file.
18356 * config/posix95/lock.c: Likewise.
18357
18358 2006-10-14 Geoffrey Keating <geoffk@apple.com>
18359
18360 * aclocal.m4: Regenerate.
18361 * configure: Regenerate.
18362
18363 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
18364
18365 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
18366 '<' to '<='.
18367
18368 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
18369
18370 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
18371 test.
18372 * configure: Regenerate.
18373 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
18374
18375 2006-09-26 Jakub Jelinek <jakub@redhat.com>
18376
18377 PR middle-end/25261
18378 PR middle-end/28790
18379 * testsuite/libgomp.c/nestedfn-4.c: New test.
18380 * testsuite/libgomp.c/nestedfn-5.c: New test.
18381 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
18382
18383 PR fortran/29097
18384 * testsuite/libgomp.fortran/condinc1.f: New test.
18385 * testsuite/libgomp.fortran/condinc2.f: New test.
18386 * testsuite/libgomp.fortran/condinc3.f90: New test.
18387 * testsuite/libgomp.fortran/condinc4.f90: New test.
18388 * testsuite/libgomp.fortran/condinc1.inc: New file.
18389
18390 2006-09-18 Tom Tromey <tromey@redhat.com>
18391
18392 * configure: Rebuilt.
18393
18394 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
18395
18396 PR c/28768
18397 PR preprocessor/14634
18398 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
18399 to AC_DEFINE.
18400 * configure: Regenerate.
18401
18402 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
18403
18404 * testsuite/libgomp.fortran/reduction3.f90: Change
18405 -2147483648 to -huge(i)-1 to avoid overflow.
18406 * testsuite/libgomp.fortran/reduction4.f90: Change
18407 Z'ffffffff' to not(0) to avoid overflow.
18408
18409 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
18410
18411 PR libgomp/25938
18412 * Makefile.am (libsubincludedir): New.
18413 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
18414 * Makefile.in: Regenerate.
18415
18416 2006-08-17 Jakub Jelinek <jakub@redhat.com>
18417
18418 PR libgomp/28725
18419 * env.c: Include ctype.h.
18420 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
18421 leading and/or trailing whitespace and compare strings case
18422 insensitively.
18423
18424 2006-07-16 Jakub Jelinek <jakub@redhat.com>
18425
18426 PR fortran/28390
18427 * testsuite/libgomp.fortran/pr28390.f: New test.
18428
18429 2006-07-05 Eric Christopher <echristo@apple.com>
18430
18431 * configure.ac: Depend addition of -pthread on host OS.
18432 * configure: Regenerate.
18433
18434 2006-06-21 Jakub Jelinek <jakub@redhat.com>
18435
18436 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
18437 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
18438 defined.
18439
18440 2006-06-20 Jakub Jelinek <jakub@redhat.com>
18441
18442 PR libgomp/26175
18443 PR libgomp/26477
18444 * configure.ac: If neither --enable-linux-futex nor
18445 --disable-linux-futex is passed, determine the default by checking
18446 for compiling and/or running against NPTL. With --enable-linux-futex,
18447 check if SYS_gettid and SYS_futex are defined.
18448 * configure: Rebuilt.
18449
18450 2006-06-14 Richard Henderson <rth@redhat.com>
18451
18452 PR libgomp/28008
18453 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
18454 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
18455
18456 2006-06-09 Richard Henderson <rth@redhat.com>
18457
18458 * env.c (gomp_nthreads_var): Change to unsigned long.
18459 (gomp_run_sched_chunk): Likewise.
18460 (parse_unsigned_long): Rename from parse_num_threads and generalize.
18461 (initialize_env): Initialize gomp_thread_attr.
18462 * libgomp.h (gomp_nthreads_var): Update decl.
18463 (gomp_run_sched_chunk): Likewise.
18464 (gomp_thread_attr): Declare.
18465 * team.c (gomp_thread_attr): Export.
18466 (initialize_team): Don't initialize it.
18467
18468 2006-06-09 Jakub Jelinek <jakub@redhat.com>
18469
18470 PR fortran/27916
18471 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
18472 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
18473
18474 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
18475
18476 * config/mingw32/time.c: New file.
18477 * configure.tgt: Use it.
18478
18479 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
18480
18481 * Makefile.am: Add install-html target. Add install-html to .PHONY
18482 * Makefile.in: Regenerate.
18483
18484 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18485
18486 PR libgomp/27612
18487 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
18488 * testsuite/libgomp.c/critical-1.c: Likewise.
18489 * testsuite/libgomp.c/loop-1.c: Likewise.
18490 * testsuite/libgomp.c/loop-2.c: Likewise.
18491 * testsuite/libgomp.c/single-1.c: Likewise.
18492 * testsuite/libgomp.c/ordered-1.c: Likewise.
18493 * testsuite/libgomp.c/ordered-2.c: Likewise.
18494
18495 2006-05-15 Jakub Jelinek <jakub@redhat.com>
18496
18497 PR middle-end/27416
18498 * libgomp.fortran/pr27416-1.f90: New test.
18499
18500 2006-05-03 Jakub Jelinek <jakub@redhat.com>
18501
18502 PR fortran/27395
18503 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
18504 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
18505
18506 2006-05-02 Jakub Jelinek <jakub@redhat.com>
18507
18508 PR c++/26943
18509 * testsuite/libgomp.c/pr26943-1.c: New test.
18510 * testsuite/libgomp.c/pr26943-2.c: New test.
18511 * testsuite/libgomp.c/pr26943-3.c: New test.
18512 * testsuite/libgomp.c/pr26943-4.c: New test.
18513 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
18514 * testsuite/libgomp.c++/pr26943.C: New test.
18515
18516 2006-05-02 Jakub Jelinek <jakub@redhat.com>
18517
18518 PR middle-end/27337
18519 * testsuite/libgomp.c++/pr27337.C: New test.
18520
18521 2006-04-26 Jakub Jelinek <jakub@redhat.com>
18522
18523 PR c/26171
18524 * testsuite/libgomp.c/pr26171.c: New test.
18525
18526 2006-04-25 Richard Henderson <rth@redhat.com>
18527
18528 PR libgomp/25865
18529 * configure.ac: Use GCC_CHECK_TLS.
18530 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
18531 * Makefile.in, aclocal.m4, configure: Regenerate.
18532
18533 2006-04-10 Matthias Klose <doko@debian.org>
18534
18535 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
18536 directory names containing underscores.
18537
18538 2006-03-21 Jakub Jelinek <jakub@redhat.com>
18539
18540 PR c++/26691
18541 * testsuite/libgomp.c++/pr26691.C: New test.
18542
18543 2006-03-13 Jakub Jelinek <jakub@redhat.com>
18544
18545 * testsuite/libgomp.fortran/retval2.f90: New test.
18546
18547 2006-03-09 Diego Novillo <dnovillo@redhat.com>
18548
18549 * testsuite/libgomp.c++: New directory.
18550
18551 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
18552
18553 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
18554 * config/posix/sem.c: Implement the above.
18555
18556 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
18557
18558 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
18559 define HAVE_BROKEN_POSIX_SEMAPHORES.
18560 * configure: Rebuilt.
18561 * config.h.in: Rebuilt.
18562
18563 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
18564
18565 PR bootstrap/26161
18566 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
18567 for the other pthread check.
18568 * configure: Regenerate.
18569 * config.h.in: Regenerate.
18570
18571 2006-02-15 Jakub Jelinek <jakub@redhat.com>
18572
18573 PR libgomp/25938
18574 PR libgomp/25984
18575 * Makefile.am (fincludedir): New variable.
18576 (nodist_include_HEADERS): Remove Fortran files.
18577 (nodist_finclude_HEADERS): New variable.
18578 * Makefile.in: Regenerated.
18579
18580 2006-02-13 Jakub Jelinek <jakub@redhat.com>
18581
18582 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
18583 Remove tests for returning assumed character length arrays.
18584
18585 2006-02-12 Roger Sayle <roger@eyesopen.com>
18586 John David Anglin <dave@hiauly1.hia.nrc.ca>
18587
18588 PR libgomp/25936
18589 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
18590
18591 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
18592
18593 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
18594
18595 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
18596
18597 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
18598 part of LD_LIBRARY_PATH manually.
18599
18600 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
18601
18602 PR libgomp/25852
18603 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
18604 libgomp_init.
18605
18606 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
18607
18608 PR libgomp/25884
18609 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
18610 * configure.ac (PERL): Don't set.
18611 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
18612 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
18613 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
18614 * omp.h.in: Wrap the new configure substitutions with @ characters.
18615 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
18616 * aclocal.m4, configure, Makefile.in: Regenerate.
18617 * mkomp_h.pl: Delete.
18618
18619 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
18620
18621 PR libgomp/25259
18622 * configure.ac: Use GCC_HEADER_STDINT.
18623 * libgomp.h: Include gstdint.h.
18624 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
18625 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
18626
18627 2006-01-24 Richard Henderson <rth@redhat.com>
18628
18629 PR libgomp/25942
18630 * configure.ac: Add AM_MAINTAINER_MODE.
18631 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
18632
18633 2006-01-24 Diego Novillo <dnovillo@redhat.com>
18634
18635 * Makefile.in: Regenerate.
18636 * testsuite/Makefile.in: Regenerate.
18637 * aclocal.m4: Regenerate.
18638
18639 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
18640
18641 * config/posix/proc.c: Conditional include of sys/loadavg.h for
18642 Solaris.
18643 * configure.ac: Add check for loadavg.h.
18644 (link_gomp): Adjust comment.
18645 * configure: Regenerate.
18646 * config.h.in: Regenerate.
18647
18648 2006-01-21 Steve Ellcey <sje@cup.hp.com>
18649
18650 PR libgomp/25877
18651 * configure.ac: Remove check for alloca.h.
18652 * configure: Regenerate.
18653 * config.h.in: Regenerate.
18654 * libgomp.h: define gomp_alloca to be __builtin_alloca.
18655 * team.c: Remove use of alloca.h.
18656 Call gomp_alloca instead of alloca.
18657
18658 2006-01-20 Steve Ellcey <sje@cup.hp.com>
18659
18660 PR libgomp/25877
18661 * team.c: Add include of alloca.h.
18662 * configure.ac: Add check for alloca.h.
18663 * configure: Regenerate.
18664 * config.h.in: Regenerate.
18665
18666 2006-01-17 Jakub Jelinek <jakub@redhat.com>
18667
18668 PR fortran/25219
18669 * testsuite/libgomp.fortran/pr25219.f90: New test.
18670
18671 2005-12-05 Uros Bizjak <uros@kss-loka.si>
18672
18673 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
18674 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
18675 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
18676 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
18677 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
18678 testsuite/libgomp.fortran/threadprivate1.f90,
18679 testsuite/libgomp.fortran/threadprivate2.f90,
18680 testsuite/libgomp.fortran/threadprivate3.f90,
18681 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
18682 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
18683 testsuite/libgomp.fortran/omp_parse3.f90: Change required
18684 effective-target to TLS runtime.
18685
18686 * testsuite/libgomp.fortran/pr25162.f: Require
18687 effective-target TLS runtime.
18688
18689 2005-12-01 Jakub Jelinek <jakub@redhat.com>
18690
18691 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
18692 * testsuite/libgomp.c/nestedfn-3.c: New test.
18693
18694 2005-11-30 Jakub Jelinek <jakub@redhat.com>
18695
18696 PR fortran/25162
18697 * testsuite/libgomp.fortran/pr25162.f: New test.
18698
18699 2005-11-28 Jakub Jelinek <jakub@redhat.com>
18700
18701 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
18702 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
18703
18704 2005-11-25 Jakub Jelinek <jakub@redhat.com>
18705
18706 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
18707 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
18708 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
18709 single.c, team.c, work.c, config/linux/alpha/futex.h,
18710 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
18711 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
18712 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
18713 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
18714 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
18715 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
18716 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
18717 FSF address.
18718
18719 2005-11-18 Jakub Jelinek <jakub@redhat.com>
18720
18721 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
18722 to nodist_noinst_HEADERS.
18723 * Makefile.in: Rebuilt.
18724
18725 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
18726 add integer count field.
18727 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
18728 omp_nest_lock_t type change.
18729 (omp_init_nest_lock): Likewise. Initialize count to 0.
18730 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
18731 Increment count.
18732 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
18733 Decrement count.
18734 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
18735 Increment count if successful and return the new nesting level.
18736 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
18737 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
18738 * testsuite/libgomp.c/lib-1.c: New test.
18739 * testsuite/libgomp.fortran/lib1.f90: New test.
18740 * testsuite/libgomp.fortran/lib2.f: New test.
18741 * testsuite/libgomp.fortran/lib3.f: New test.
18742
18743 2005-11-17 Richard Henderson <rth@redhat.com>
18744
18745 PR 24845
18746 * Makefile.am (nodist_toolexeclib_HEADERS): New.
18747 * configure.ac (link_gomp): New. Substitute it.
18748 (AC_CONFIG_FILES): Add libgomp.spec.
18749 * libgomp.spec.in: New file.
18750 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
18751 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
18752
18753 2005-11-18 Jakub Jelinek <jakub@redhat.com>
18754
18755 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
18756 reduction(-:var) behaving the same as reduction(+:var).
18757 * testsuite/libgomp.c/reduction-4.c: New test.
18758
18759 2005-11-15 Uros Bizjak <uros@kss-loka.si>
18760
18761 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
18762 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
18763 testsuite/libgomp.c/copyin-3.c,
18764 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
18765 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
18766 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
18767 testsuite/libgomp.c++/pr24455.C,
18768 testsuite/libgomp.fortran/threadprivate1.f90,
18769 testsuite/libgomp.fortran/threadprivate2.f90,
18770 testsuite/libgomp.fortran/threadprivate3.f90,
18771 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
18772 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
18773 testsuite/libgomp.fortran/omp_parse3.f90: Require
18774 effective-target TLS.
18775
18776 2005-11-14 Diego Novillo <dnovillo@redhat.com>
18777
18778 * HEADER: Remove.
18779
18780 2005-11-13 Jakub Jelinek <jakub@redhat.com>
18781
18782 PR libgomp/24797
18783 * team.c (initialize_team): Pass NULL rather than free as
18784 pthread_key_create destructor. Initialize thread specific data
18785 pointer in initial thread to a static local variable rather than
18786 malloced memory.
18787
18788 2005-11-11 Uros Bizjak <uros@kss-loka.si>
18789
18790 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
18791 its location to ld_library_path.
18792
18793 2005-11-10 Diego Novillo <dnovillo@redhat.com>
18794
18795 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
18796
18797 2005-11-10 Diego Novillo <dnovillo@redhat.com>
18798
18799 * testsuite/libgomp.c: Rename from libgomp.dg.
18800
18801 2005-11-09 Diego Novillo <dnovillo@redhat.com>
18802
18803 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
18804 threadprivate variable 'i'.
18805
18806 2005-11-09 Jakub Jelinek <jakub@redhat.com>
18807
18808 * config/linux/s390/futex.h: New file.
18809 * configure.tgt: Use it.
18810
18811 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
18812 before the parallel.
18813
18814 2005-11-08 Jakub Jelinek <jakub@redhat.com>
18815
18816 PR c++/24734
18817 * testsuite/libgomp.c++/master-1.C: New test.
18818
18819 2005-11-07 Jakub Jelinek <jakub@redhat.com>
18820
18821 * testsuite/libgomp.dg/copyin-3.c: New test.
18822
18823 2005-11-07 Jakub Jelinek <jakub@redhat.com>
18824
18825 * testsuite/libgomp.fortran/retval1.f90: New test.
18826 * testsuite/libgomp.fortran/vla7.f90: New test.
18827
18828 2005-11-06 Jakub Jelinek <jakub@redhat.com>
18829
18830 * testsuite/libgomp.fortran/vla2.f90: New test.
18831 * testsuite/libgomp.fortran/vla3.f90: New test.
18832 * testsuite/libgomp.fortran/vla4.f90: New test.
18833 * testsuite/libgomp.fortran/vla5.f90: New test.
18834 * testsuite/libgomp.fortran/vla6.f90: New test.
18835
18836 2005-11-01 Jakub Jelinek <jakub@redhat.com>
18837
18838 * config/linux/sparc/futex.h: New file.
18839 * configure.tgt: Use it.
18840 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
18841
18842 * critical.c: Include stdlib.h.
18843 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
18844 ignoring return value.
18845 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
18846 LIBGOMP_CHECK_SYNC_BUILTINS check.
18847 * configure: Rebuilt.
18848
18849 2005-10-31 Jakub Jelinek <jakub@redhat.com>
18850
18851 * testsuite/libgomp.fortran/vla1.f90: New test.
18852
18853 2005-10-31 Richard Henderson <rth@redhat.com>
18854
18855 * testsuite/libgomp.fortran/character2.f90: Fix race condition
18856 setting 's' in different threads.
18857
18858 2005-10-31 Jakub Jelinek <jakub@redhat.com>
18859
18860 * libgomp.h (attribute_hidden, ialias): Define.
18861 * config/posix/proc.c (omp_get_num_procs): Add ialias.
18862 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
18863 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
18864 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
18865 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
18866 omp_test_lock, omp_test_nest_lock): Likewise.
18867 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
18868 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
18869 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
18870 omp_test_lock, omp_test_nest_lock): Likewise.
18871 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
18872 omp_get_dynamic, omp_get_nested): Likewise.
18873 * parallel.c (omp_get_num_threads, omp_get_max_threads,
18874 omp_get_thread_num, omp_in_parallel): Likewise.
18875 * fortran.c (ialias_redirect): Define.
18876 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
18877 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
18878 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
18879 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
18880 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
18881 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
18882 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
18883 omp_get_wtime): Add ialias_redirect.
18884
18885 2005-10-30 Jakub Jelinek <jakub@redhat.com>
18886
18887 * fortran.c: Include stdlib.h.
18888
18889 2005-10-29 Jakub Jelinek <jakub@redhat.com>
18890
18891 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
18892 * Makefile.in: Regenerated.
18893
18894 2005-10-28 Jakub Jelinek <jakub@redhat.com>
18895
18896 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
18897 * libgomp_f.h.in (omp_check_defines): New function.
18898 * env.c: Include libgomp_f.h.
18899 (initialize_env): Call omp_check_defines.
18900
18901 * testsuite/libgomp.dg/copyin-2.c: New test.
18902 * testsuite/libgomp.c++/copyin-2.C: New test.
18903 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
18904
18905 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
18906 * testsuite/libgomp.fortran/sharing2.f90: New test.
18907
18908 * testsuite/libgomp.dg/copyin-1.c: New test.
18909 * testsuite/libgomp.c++/copyin-1.C: New test.
18910
18911 2005-10-26 Jakub Jelinek <jakub@redhat.com>
18912
18913 * testsuite/libgomp.fortran/crayptr1.f90: New test.
18914
18915 * testsuite/libgomp.fortran/workshare1.f90: New test.
18916
18917 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
18918 only test.
18919 * libgomp.fortran/sharing1.f90: New test.
18920
18921 2005-10-24 Jakub Jelinek <jakub@redhat.com>
18922
18923 PR c++/24502
18924 * testsuite/libgomp.c++/loop-7.C: New test.
18925
18926 * testsuite/libgomp.dg/nestedfn-2.c: New test.
18927
18928 * testsuite/libgomp.dg/nestedfn-1.c: New test.
18929 * testsuite/libgomp.fortran/reduction6.f90: New test.
18930 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
18931
18932 2005-10-23 Richard Henderson <rth@redhat.com>
18933
18934 * testsuite/libgomp.c++/ctor-1.C: New.
18935 * testsuite/libgomp.c++/ctor-2.C: New.
18936 * testsuite/libgomp.c++/ctor-3.C: New.
18937 * testsuite/libgomp.c++/ctor-4.C: New.
18938 * testsuite/libgomp.c++/ctor-5.C: New.
18939 * testsuite/libgomp.c++/ctor-6.C: New.
18940 * testsuite/libgomp.c++/ctor-7.C: New.
18941 * testsuite/libgomp.c++/ctor-8.C: New.
18942 * testsuite/libgomp.c++/ctor-9.C: New.
18943
18944 2005-10-21 Diego Novillo <dnovillo@redhat.com>
18945
18946 PR 24455
18947 * testsuite/libgomp.c++/pr24455-1.C: New test.
18948 * testsuite/libgomp.c++/pr24455.C: New test.
18949 * testsuite/libgomp.dg/pr24455-1.c: New test.
18950 * testsuite/libgomp.dg/pr24455.c: New test.
18951
18952 2005-10-20 Richard Henderson <rth@redhat.com>
18953
18954 * testsuite/libgomp.c++/loop-6.C: New.
18955 * testsuite/libgomp.dg/loop-3.c: New.
18956
18957 2005-10-20 Jakub Jelinek <jakub@redhat.com>
18958
18959 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
18960 explicitly private.
18961 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
18962 explicitly shared.
18963
18964 2005-10-19 Diego Novillo <dnovillo@redhat.com>
18965
18966 * testsuite/libgomp.fortran/jacobi.f: New test.
18967
18968 2005-10-19 Richard Henderson <rth@redhat.com>
18969
18970 * configure.tgt (i?86-linux): Default to with_arch instead of
18971 CFLAGS. Add -mtune to match target_cpu.
18972 (x86_64-linux): Tune to i686.
18973
18974 * fortran.c (omp_test_nest_lock_): Fix typo.
18975
18976 2005-10-19 Jakub Jelinek <jakub@redhat.com>
18977
18978 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
18979 gomp_ordered_sync): Do nothing if team->nthreads == 1.
18980 * testsuite/libgomp.dg/ordered-3.c: New test.
18981
18982 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
18983 Remove volatile keyword.
18984
18985 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
18986 in COMMON block to avoid warnings on 64-bit targets.
18987
18988 2005-10-18 Diego Novillo <dnovillo@redhat.com>
18989
18990 * testsuite/libgomp.dg/shared-3.c: New test.
18991
18992 2005-10-18 Jakub Jelinek <jakub@redhat.com>
18993
18994 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
18995 * testsuite/libgomp.fortran/reduction5.f90: New test.
18996
18997 2005-10-18 Jakub Jelinek <jakub@redhat.com>
18998
18999 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
19000 dg-options.
19001 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
19002 flush loop now that __sync_synchronize has proper memory barrier.
19003 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
19004 Add -ffixed-form to dg-options.
19005
19006 2005-10-17 Diego Novillo <dnovillo@redhat.com>
19007
19008 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
19009 from subdirectories.
19010 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
19011 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
19012 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
19013 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
19014 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
19015 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
19016 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
19017 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
19018 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
19019 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
19020 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
19021 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
19022 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
19023 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
19024 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
19025 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
19026 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
19027 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
19028 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
19029 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
19030 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
19031 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
19032 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
19033 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
19034 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
19035
19036 2005-10-17 Jakub Jelinek <jakub@redhat.com>
19037
19038 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
19039 lang_library_path exists. Use find instead of glob to gather tests.
19040 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
19041
19042 2005-10-17 Diego Novillo <dnovillo@redhat.com>
19043
19044 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
19045 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
19046 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
19047 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
19048 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
19049 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
19050 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
19051 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
19052 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
19053 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
19054 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
19055 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
19056 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
19057
19058 2005-10-15 Jakub Jelinek <jakub@redhat.com>
19059
19060 * testsuite/libgomp.dg/vla-1.c: New test.
19061
19062 * testsuite/libgomp.fortran/reference2.f90: New test.
19063
19064 * testsuite/libgomp.fortran/character2.f90: Remove explicit
19065 declaration of omp_get_thread_num.
19066 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
19067 use omp_lib.
19068
19069 * testsuite/libgomp.fortran/reduction1.f90: New test.
19070 * testsuite/libgomp.fortran/reduction2.f90: New test.
19071 * testsuite/libgomp.fortran/reduction3.f90: New test.
19072 * testsuite/libgomp.fortran/reduction4.f90: New test.
19073
19074 2005-10-13 Richard Henderson <rth@redhat.com>
19075
19076 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
19077 * Makefile.in: Regenerate.
19078 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
19079 * libgomp.h: Include bar.h.
19080 (struct gomp_barrier): Remove.
19081 (struct gomp_team): Add barrier. Replace master_barrier with
19082 master_release. Replace threads with ordered_release.
19083 (struct gomp_thread): Replace barrier with release.
19084 * ordered.c (gomp_ordered_first): Update for ordered_release change.
19085 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
19086 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
19087 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
19088 (GOMP_single_copy_end): Likewise.
19089 * team.c (gomp_threads_dock): New.
19090 (gomp_barrier_init, gomp_barrier_destroy): Remove.
19091 (gomp_thread_start): Use gomp_barrier_wait.
19092 (new_team, free_team): Update for gomp_team changes.
19093 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
19094 (gomp_team_end): Use gomp_barrier_wait.
19095 (initialize_team): Update for gomp_thread changes.
19096 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
19097 (gomp_work_share_end_nowait): Use atomic ops when available.
19098 * config/linux/bar.c, config/linux/bar.h: New files.
19099 * config/posix/bar.c, config/posix/bar.h: New files.
19100
19101 2005-10-13 Jakub Jelinek <jakub@redhat.com>
19102
19103 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
19104 * testsuite/libgomp.dg/single-2.c: New test.
19105
19106 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
19107 lang_link_flags): Unset, so that they aren't inherited from previously
19108 sourced *.exp.
19109
19110 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
19111
19112 2005-10-12 Richard Henderson <rth@redhat.com>
19113
19114 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
19115 (libgomp_init): Use lang_test_file, lang_library_path, and
19116 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
19117
19118 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
19119 (lang_test_file, lang_link_flags): New.
19120 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
19121
19122 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
19123 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
19124 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
19125 testsuite/libgomp.c++/parallel-1.C,
19126 testsuite/libgomp.c++/reduction-1.C,
19127 testsuite/libgomp.c++/reduction-2.C,
19128 testsuite/libgomp.c++/reduction-3.C,
19129 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
19130 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
19131 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
19132 New files, largely cribbed from the C testsuite.
19133
19134 2005-10-12 Jakub Jelinek <jakub@redhat.com>
19135
19136 * testsuite/libgomp.fortran/character1.f90: New test.
19137 * testsuite/libgomp.fortran/character2.f90: New test.
19138
19139 * testsuite/libgomp.dg/nested-1.c: New test.
19140 * testsuite/libgomp.dg/nested-2.c: New test.
19141 * testsuite/libgomp.fortran/do1.f90: New test.
19142 * testsuite/libgomp.fortran/do2.f90: New test.
19143
19144 * testsuite/libgomp.fortran/reference1.f90: New test.
19145
19146 2005-10-11 Jakub Jelinek <jakub@redhat.com>
19147
19148 * testsuite/libgomp.dg/reduction-1.c: New test.
19149 * testsuite/libgomp.dg/reduction-2.c: New test.
19150 * testsuite/libgomp.dg/reduction-3.c: New test.
19151
19152 2005-10-10 Jakub Jelinek <jakub@redhat.com>
19153
19154 * testsuite/libgomp.dg/atomic-1.c: New test.
19155 * testsuite/libgomp.dg/atomic-2.c: New test.
19156
19157 2005-10-09 Richard Henderson <rth@redhat.com>
19158
19159 * critical.c (atomic_lock): New.
19160 (initialize_critical): Initialize it.
19161 (GOMP_atomic_start, GOMP_atomic_end): New.
19162 * libgomp.map: Export them.
19163 * libgomp_g.h: Declare them.
19164
19165 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
19166
19167 2005-10-02 Richard Henderson <rth@redhat.com>
19168
19169 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
19170 to XCFLAGS instead of CFLAGS.
19171
19172 2005-09-30 Richard Henderson <rth@redhat.com>
19173
19174 * configure.ac: Determine whether -pthread or -lpthread is needed.
19175 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
19176 * Makefile.in, configure: Rebuild.
19177
19178 2005-09-28 Richard Henderson <rth@redhat.com>
19179
19180 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
19181 * testsuite/libgomp.dg/omp-single-3.c: New test.
19182
19183 2005-09-28 Diego Novillo <dnovillo@redhat.com>
19184
19185 * testsuite/libgomp.dg/omp-single-2.c: New test.
19186 * testsuite/libgomp.dg/shared-2.c: Fix return code.
19187
19188 2005-09-27 Richard Henderson <rth@redhat.com>
19189
19190 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
19191 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
19192
19193 2005-09-27 Jakub Jelinek <jakub@redhat.com>
19194
19195 * testsuite/libgomp.dg/omp-loop03.c: New test.
19196
19197 2005-09-27 Diego Novillo <dnovillo@redhat.com>
19198
19199 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
19200
19201 2005-09-27 Diego Novillo <dnovillo@redhat.com>
19202
19203 * testsuite/libgomp.dg/omp-single-1.c: New test.
19204 * testsuite/libgomp.dg/shared-1.c: Return 0.
19205 Add prototype for abort.
19206 * testsuite/libgomp.dg/shared-2.c: Likewise.
19207
19208 2005-09-26 Jakub Jelinek <jakub@redhat.com>
19209
19210 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
19211 constructs.
19212
19213 2005-09-26 Diego Novillo <dnovillo@redhat.com>
19214
19215 * testsuite/libgomp.dg/shared-1.c: New test.
19216 * testsuite/libgomp.dg/shared-2.c: New test.
19217
19218 2005-09-24 Richard Henderson <rth@redhat.com>
19219
19220 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
19221
19222 2005-09-24 Richard Henderson <rth@redhat.com>
19223
19224 * iter.c (gomp_iter_static_next): Round up when computing number
19225 of iterations. Don't bother distributing a remainder equally.
19226
19227 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
19228 Don't call srand. Zero b before testing.
19229 (main): New.
19230
19231 2005-09-24 Jakub Jelinek <jakub@redhat.com>
19232
19233 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
19234 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
19235
19236 2005-09-23 Jakub Jelinek <jakub@redhat.com>
19237
19238 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
19239 without !$omp end do, followed immediately by subroutine end.
19240
19241 2005-09-23 Diego Novillo <dnovillo@redhat.com>
19242
19243 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
19244
19245 2005-09-22 Richard Henderson <rth@redhat.com>
19246
19247 * critical.c (GOMP_critical_name_start): Change argument to void**.
19248 Reuse the pointer space if the mutex fits.
19249 (GOMP_critical_name_end): Likewise.
19250 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
19251 * libgomp_g.h (GOMP_critical_name_start): Update decl.
19252 (GOMP_critical_name_end): Likewise.
19253 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
19254 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
19255
19256 2005-09-20 Richard Henderson <rth@redhat.com>
19257
19258 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
19259 (create_lock_lock): New.
19260 (initialize_critical): Initialize it.
19261 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
19262 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
19263
19264 2005-09-20 Diego Novillo <dnovillo@redhat.com>
19265
19266 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
19267
19268 2005-09-20 Diego Novillo <dnovillo@redhat.com>
19269
19270 * testsuite/libgomp.dg/omp-loop01.c: New test.
19271 * testsuite/libgomp.dg/omp-loop02.c: New test.
19272
19273 2005-09-20 Jakub Jelinek <jakub@redhat.com>
19274
19275 * configure.ac (AC_PROG_FC): Add.
19276 (USE_FORTRAN): New automake conditional.
19277 * configure: Rebuilt.
19278 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
19279 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
19280 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
19281 Add rules to build them.
19282 * Makefile.in: Rebuilt.
19283 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
19284 OMP_NEST_LOCK_KIND.
19285 * libgomp.map: Add Fortran wrappers.
19286 * libgomp_f.h.in: New file.
19287 * omp_lib.h.in: New file.
19288 * omp_lib.f90.in: New file.
19289 * fortran.c: New file.
19290 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
19291 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
19292 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
19293 libgfortran has been built.
19294 * testsuite/libgomp.fortran/fortran.exp: New file.
19295 * testsuite/libgomp.fortran/omp_cond1.f: New test.
19296 * testsuite/libgomp.fortran/omp_cond2.f: New test.
19297 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
19298 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
19299 * testsuite/libgomp.fortran/omp_hello.f: New test.
19300 * testsuite/libgomp.fortran/omp_orphan.f: New test.
19301 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
19302 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
19303 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
19304 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
19305 * testsuite/libgomp.fortran/omp_reduction.f: New test.
19306 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
19307 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
19308
19309 2005-08-30 Richard Henderson <rth@redhat.com>
19310
19311 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
19312 function for when aliases are not usable.
19313 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
19314 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
19315 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
19316 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
19317 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
19318 GOMP_loop_ordered_guided_next): Likewise.
19319 * ordered.c (GOMP_ordered_start): Likewise.
19320
19321 2005-08-01 Diego Novillo <dnovillo@redhat.com>
19322
19323 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
19324 * testsuite/libgomp.dg/omp_hello.c: Fix return code
19325 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
19326 * testsuite/libgomp.dg/omp_orphan.c: Likewise
19327 * testsuite/libgomp.dg/omp_reduction.c: Likewise
19328 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
19329 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
19330 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
19331 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
19332
19333 2005-07-07 Eric Christopher <echristo@redhat.com>
19334 Diego Novillo <dnovillo@redhat.com>
19335
19336 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
19337 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
19338 up code.
19339 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
19340 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
19341 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
19342 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
19343 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
19344 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
19345 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
19346
19347 2005-06-13 Diego Novillo <dnovillo@redhat.com>
19348
19349 * TOPLEVEL.patch: Remove.
19350
19351 2005-05-16 Richard Henderson <rth@redhat.com>
19352
19353 * configure.ac: Test for clock_gettime.
19354 * config.h.in, configure: Rebuild.
19355 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
19356 (omp_get_wtime): Use clock_gettime if available.
19357 (omp_get_wtick): Use clock_getres if available.
19358
19359 2005-05-11 Richard Henderson <rth@redhat.com>
19360
19361 * config/linux/ia64/futex.h: New file.
19362 * configure.tgt: Use it.
19363
19364 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
19365
19366 2005-05-07 Richard Henderson <rth@redhat.com>
19367
19368 * config/linux/powerpc/futex.h: New file.
19369 * configure.tgt: Use it.
19370
19371 * config/linux/i486/futex.h: Merge ...
19372 * config/linux/x86_64/futex.h: ... into ...
19373 * config/linux/x86/futex.h: ... here.
19374 * configure.tgt: Update to match.
19375
19376 2005-05-06 Richard Henderson <rth@redhat.com>
19377
19378 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
19379 * config/linux/i486/futex.h: Likewise.
19380 * config/linux/x86_64/futex.h: Likewise.
19381
19382 * config/linux/lock.c: New file.
19383 * config/linux/omp-lock.h: New file.
19384
19385 * critical.c, env.h: Don't include omp.h
19386 * config/posix/lock.c: Include libgomp.h instead of omp.h.
19387 * config/posix/time.c: Likewise.
19388 * config/posix/omp-lock.h: New file.
19389 * libgomp.h: Include omp-lock.h and omp.h.
19390 * Makefile.am (nodist_include_HEADERS): New.
19391 (omp.h): New rule.
19392 * configure.ac (PERL): New.
19393 * mkomp_h.pl: New file.
19394 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
19395 with templates.
19396 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
19397
19398 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
19399 build directory. Re-add -march=i486 hack.
19400
19401 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
19402 (libgomp_link_flags): Remove.
19403 (libgomp_initialized): Remove.
19404 (libgomp_init): Don't protect from reinitialization. Copy code
19405 from libstdc++ for getting the multilib set correctly.
19406
19407 2005-05-05 Richard Henderson <rth@redhat.com>
19408
19409 * config/linux/alpha/futex.h: New file.
19410 * configure.tgt (alpha*-*-linux*): Use it.
19411
19412 * config/posix/mutex.c: New file.
19413 * config/posix/sem.c: Use libgomp.h.
19414
19415 * configure.tgt (x86_64-linux): Also test CC for -m32.
19416 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
19417
19418 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
19419 after $gccpath.
19420
19421 * Makefile.am (SUBDIRS): New.
19422 (libgomp_la_LDFLAGS): Add -lpthread.
19423 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
19424 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
19425
19426 * libgomp_g.h: New file.
19427 * libgomp.h: Split out all public declarations to libgomp_g.h.
19428 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
19429 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
19430 * config/linux/sem.h: Likewise.
19431 * config/posix/sem.h: Likewise.
19432
19433 * Makefile.am (AM_LDFLAGS): New.
19434 (libgomp_version_script): Split out from ...
19435 (libgomp_la_LDFLAGS): ... here.
19436 (libgomp_version_info): New.
19437 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
19438 (LIBGOMP_ENABLE): New.
19439 (LIBGOMP_CHECK_LINKER_FEATURES): New.
19440 (LIBGOMP_ENABLE_SYMVERS): New.
19441 * configure.ac (AC_INIT): Version 1.0.
19442 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
19443 (enable-linux-futex): Likewise. Rename from enable-futex.
19444 (libtool_VERSION): New.
19445 (LIBGOMP_ENABLE_SYMVERS): Use it.
19446 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
19447 * Makefile.in, aclocal.m4, configure: Rebuild.
19448
19449 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
19450 (gomp_mutex_unlock_slow): Fix typo.
19451 * config/linux/sem.c: Similarly.
19452 (gomp_sem_post_slow): Fix typo.
19453 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
19454 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
19455 [__PIC__] (sys_futex0): Don't use tmp output in asm.
19456
19457 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
19458 (libgomp_la_LDFLAGS): Add top_srcdir to path.
19459 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
19460 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
19461 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
19462 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
19463 LDFLAGS. Pull enable_futex check to top-level.
19464 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
19465 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
19466
19467 First attempt at real configury.
19468 * Makefile, config.h: Remove file.
19469 * Makefile.am, Makefile.in: New file.
19470 * acinclude.m4 aclocal.m4: New file.
19471 * configure.ac, configure.tgt, configure: New file.
19472
19473 * config/posix/lock.c: Rename from sys-lock.c.
19474 * config/posix/mutex.h: Rename from sys-mutex.h.
19475 * config/posix/sem.c: Rename from sys-sem.c.
19476 * config/posix/sem.h: Rename from sys-sem.h.
19477 * config/posix/proc.c: Rename from sys-proc.c.
19478 * config/posix/time.c: Rename from sys-proc.c.
19479
19480 * config/linux/mutex.c: New file.
19481 * config/linux/mutex.h: New file.
19482 * config/linux/sem.c: New file.
19483 * config/linux/sem.h: New file.
19484 * config/linux/i486/futex.h: New file.
19485 * config/linux/x86_64/futex.h: New file.
19486
19487 2005-05-04 Richard Henderson <rth@redhat.com>
19488
19489 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
19490 * libgomp.h: Declare them.
19491 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
19492 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
19493
19494 2005-05-04 Richard Henderson <rth@redhat.com>
19495
19496 * libgomp-1 code drop
19497
19498 2005-05-04 Richard Henderson <rth@redhat.com>
19499
19500 * iter.c (gomp_iter_static_next): Return tri-state on 0.
19501 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
19502 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
19503 (gomp_iter_static_next): Update.
19504 (gomp_ordered_static_next): Update.
19505 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
19506 (gomp_loop_ordered_static_start): Likewise. Exit early for a
19507 totally empty range.
19508 (gomp_loop_ordered_static_next): Refine test for calling
19509 gomp_ordered_static_next.
19510 * testsuite/ordered-1.c: Add case for more threads than iterations.
19511
19512 * iter.c (gomp_iter_runtime_next_locked): Remove.
19513 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
19514 gomp_loop_guided_start, gomp_loop_ordered_static_start,
19515 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
19516 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
19517 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
19518 gomp_loop_ordered_guided_next): Downcase name, make static, add
19519 an external alias with the old name.
19520 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
19521 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
19522 switch and call one of the above static functions.
19523 * libgomp.h: Update.
19524
19525 * work.c (gomp_work_share_start): Lock the mutex for !first too.
19526 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
19527 GOMP_loop_guided_start, GOMP_loop_runtime_start,
19528 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
19529 GOMP_loop_ordered_guided_start): Update to match.
19530 * sections.c (GOMP_sections_start): Likewise.
19531 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
19532
19533 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
19534 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
19535 Use bounds check instead of modulus.
19536 (gomp_ordered_sync): Split out of GOMP_ordered_start.
19537 (gomp_ordered_last): Don't sync with ordered_owner here.
19538 (gomp_ordered_next): Likewise.
19539 (gomp_ordered_static_loop_next): Likewise.
19540 * loop.c, libgomp.h: Update to match.
19541
19542 * libgomp.h (GOMP_barrier): Declare.
19543
19544 * testsuite/barrier-1.c: New file.
19545 * testsuite/critical-1.c: New file.
19546 * testsuite/ordered-2.c: New file.
19547 * testsuite/ordered-1.c: New file.
19548 * testsuite/sections-1.c: New file.
19549 * testsuite/single-1.c: New file.
19550 * testsuite/Makefile (TESTS): Add them.
19551
19552 2005-05-04 Richard Henderson <rth@redhat.com>
19553
19554 * libgomp.h (struct gomp_work_share): Add ordered_owner.
19555 * loop.c (GOMP_loop_static_start): If not the startup thread,
19556 acquire the mutex to wait for initialization complete.
19557 (GOMP_loop_ordered_static_start): Likewise.
19558 (GOMP_loop_ordered_runtime_start): Likewise.
19559 (GOMP_loop_ordered_static_first): Remove.
19560 (GOMP_loop_ordered_dynamic_first): Remove.
19561 (GOMP_loop_ordered_guided_first): Remove.
19562 (GOMP_loop_ordered_runtime_first): Remove.
19563 * ordered.c (gomp_ordered_loop_first): Post to own release when
19564 we're the first thread.
19565 (gomp_ordered_loop_last): Wait on release if not owner.
19566 (gomp_ordered_loop_next): Likewise.
19567 (gomp_ordered_static_loop_init): New.
19568 (gomp_ordered_static_loop_next): Use ordered_owner.
19569 (GOMP_ordered_start): Likewise.
19570 * work.c (gomp_new_work_share): Initialize ordered_owner.
19571
19572 2005-05-03 Richard Henderson <rth@redhat.com>
19573
19574 * Makefile (OPT): New.
19575 (CFLAGS): Use it.
19576
19577 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
19578 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
19579 * libgomp.h, libgomp.map, NOTES: Update to match.
19580
19581 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
19582 Add initialized and thr members.
19583 (gomp_thread_start): Pause when initially spawned to wait for
19584 the whole team to be created.
19585 (gomp_team_start): Release team members at the end.
19586
19587 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
19588 (f_foo_1): Use GOMP_loop_end.
19589 (f_foo_2): Use GOMP_loop_end_nowait.
19590
19591 * testsuite/loop-2.c: New file.
19592 * testsuite/Makefile (TESTS): Add it.
19593
19594 2005-05-03 Richard Henderson <rth@redhat.com>
19595
19596 * iter.c (gomp_iter_static_next): Fix overflow check typo.
19597 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
19598 * team.c (new_team): Initialize oldest_live_gen to 1 if no
19599 initial work_share.
19600
19601 * testsuite/Makefile: New file.
19602 * testsuite/loop-1.c: New file.
19603
19604 2005-05-03 Richard Henderson <rth@redhat.com>
19605
19606 Initial implementation and checkin.
19607 \f
19608 Copyright (C) 2005-2023 Free Software Foundation, Inc.
19609
19610 Copying and distribution of this file, with or without modification,
19611 are permitted in any medium without royalty provided the copyright
19612 notice and this notice are preserved.