]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgomp/ChangeLog
libgomp: Update documentation for indirect calls in target regions
[thirdparty/gcc.git] / libgomp / ChangeLog
CommitLineData
bf074ee4
GA
12024-02-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2
3 PR testsuite/113448
4 * testsuite/libgomp.c/alloc-pinned-1.c [!__linux__] (CHECK_SIZE):
5 Call abort.
6 * testsuite/libgomp.c/alloc-pinned-2.c [!__linux__] (CHECK_SIZE):
7 Likewise.
8
cc136a0b
GA
92024-02-11 John David Anglin <danglin@gcc.gnu.org>
10
11 PR libgomp/113843
12 * configure.tgt (hppa*-*-linux*): Define config_path.
13
e2554540
GA
142024-02-01 John David Anglin <danglin@gcc.gnu.org>
15
16 * testsuite/libgomp.c++/loop-3.C: Set num_threads to 50
17 on 32-bit hppa.
18 * testsuite/libgomp.c/omp-loop03.c: Likewise.
19
f0706819
GA
202024-01-29 Tobias Burnus <tburnus@baylibre.com>
21
22 * testsuite/libgomp.c/declare-variant-4.h: Use gfx1100/gfx1030
23 function not gfx90a for gfx1100/gfx1030 context selector.
24
ce9dae56
GA
252024-01-26 Richard Biener <rguenther@suse.de>
26
27 * plugin/plugin-gcn.c (suitable_hsa_agent_p): Filter out
28 agents with unsupported ISA.
29
302024-01-26 Richard Biener <rguenther@suse.de>
31
32 * plugin/plugin-gcn.c
33 (EF_AMDGPU_MACH::EF_AMDGPU_MACH_UNSUPPORTED): Add.
34 (isa_code): Return that instead of -1.
35 (GOMP_OFFLOAD_init_device): Adjust.
36
372024-01-26 Tobias Burnus <tburnus@baylibre.com>
38
39 * testsuite/libgomp.c/declare-variant-4.h: Add variant functions
40 for gfx1030 and gfx1100.
41 * testsuite/libgomp.c/declare-variant-4-gfx1030.c: New test.
42 * testsuite/libgomp.c/declare-variant-4-gfx1100.c: New test.
43
442024-01-26 Andrew Stubbs <ams@baylibre.com>
45
46 * config/gcn/time.c (RTC_TICKS): Configure RDNA3.
47 (omp_get_wtime): Add RDNA3-compatible variant.
48 * plugin/plugin-gcn.c (max_isa_vgprs): Tune for gfx1030 and gfx1100.
49
2a9637b2
GA
502024-01-24 Tobias Burnus <tburnus@baylibre.com>
51 Sandra Loosemore <sandra@codesourcery.com>
52
53 * libgomp.texi (Runtime Library Routines): Document
54 omp_pause_resource, omp_pause_resource_all and
55 omp_target_memcpy{,_rect}{,_async}.
56
e2d1f858
GA
572024-01-22 Tobias Burnus <tburnus@baylibre.com>
58
59 * testsuite/libgomp.c/declare-variant-4-fiji.c: Xfail as fiji
60 support is no longer enabled by default.
61 * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
62
11a5f26c
GA
632024-01-20 John David Anglin <danglin@gcc.gnu.org>
64
65 * testsuite/libgomp.fortran/alloc-comp-3.f90: Increase
66 timeout by 2 on hppa*-*-*.
67
682024-01-20 John David Anglin <danglin@gcc.gnu.org>
69
70 * testsuite/libgomp.c/simd-math-1.c: Don't run on
71 hppa*-*-hpux*.
72
2c213ac9
GA
732024-01-17 Jakub Jelinek <jakub@redhat.com>
74
75 PR middle-end/113409
76 * testsuite/libgomp.c/bitint-1.c: New test.
77
1a80e955
GA
782024-01-11 Julian Brown <julian@codesourcery.com>
79
80 * libgomp.texi: C/C++ lvalues are supported now for map/to/from.
81 * testsuite/libgomp.c-c++-common/ind-base-4.c: New test.
82 * testsuite/libgomp.c-c++-common/unary-ptr-1.c: New test.
83
45af8962
GA
842024-01-10 Jakub Jelinek <jakub@redhat.com>
85
86 PR libgomp/113192
87 * configure.ac (FLOCK): Use $libgomp_abs_srcdir/testsuite/flock
88 instead of \$(abs_top_srcdir)/testsuite/flock.
89 * configure: Regenerated.
90
73ce73fc
GA
912024-01-09 Julian Brown <julian@codesourcery.com>
92
93 * testsuite/libgomp.c++/baseptrs-4.C: Remove commented-out cases that
94 now work.
95 * testsuite/libgomp.c++/baseptrs-6.C: New test.
96 * testsuite/libgomp.c++/ind-base-1.C: New test.
97 * testsuite/libgomp.c++/ind-base-2.C: New test.
98 * testsuite/libgomp.c++/lvalue-tofrom-1.C: New test.
99 * testsuite/libgomp.c++/lvalue-tofrom-2.C: New test.
100 * testsuite/libgomp.c++/map-comma-1.C: New test.
101 * testsuite/libgomp.c++/map-rvalue-ref-1.C: New test.
102 * testsuite/libgomp.c++/struct-ref-1.C: New test.
103 * testsuite/libgomp.c-c++-common/array-field-1.c: New test.
104 * testsuite/libgomp.c-c++-common/array-of-struct-1.c: New test.
105 * testsuite/libgomp.c-c++-common/array-of-struct-2.c: New test.
106
1072024-01-09 Jakub Jelinek <jakub@redhat.com>
108
109 PR libgomp/113192
110 * configure.ac (FLOCK): Use \$(abs_top_srcdir)/testsuite/flock
111 rather than $srcdir/testsuite/flock.
112 * configure: Regenerated.
113
6b1d6a2d
GA
1142024-01-08 Thomas Schwinge <thomas@codesourcery.com>
115
116 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
117 'EF_AMDGPU_MACH_AMDGCN_GFX1100'.
118
1192024-01-08 Julian Brown <julian@codesourcery.com>
120
121 * plugin/plugin-gcn.c (hsa_runtime_fn_info): Add
122 hsa_amd_memory_lock_fn, hsa_amd_memory_unlock_fn,
123 hsa_amd_memory_async_copy_rect_fn function pointers.
124 (init_hsa_runtime_functions): Add above functions, with
125 DLSYM_OPT_FN.
126 (GOMP_OFFLOAD_memcpy2d, GOMP_OFFLOAD_memcpy3d): New functions.
127
1282024-01-08 Tobias Burnus <tobias@codesourcery.com>
129
130 * plugin/plugin-gcn.c (gcn_gfx1100_s): New const string.
131 (gcn_isa_name_len): Fix length.
132 (isa_hsa_name, isa_code, max_isa_vgprs): Handle gfx1100.
133
b368d799
GA
1342024-01-06 Tobias Burnus <tobias@codesourcery.com>
135
136 * libgomp.texi (OpenMP Technical Report 12): Fix a typo.
137 (Device Memory Routines): Fix OpenMP 5.1 spec refs; add
138 omp_target_is_accessible.
139 (Environment Display Routine): Uncomment and add
140 omp_display_env description.
141 (OMP_DISPLAY_ENV): Update wording, add 'see also'.
142
1432024-01-06 Mark Wielaard <mark@klomp.org>
144
145 * configure: Regenerate.
146
eb84e8d3
GA
1472024-01-03 Jakub Jelinek <jakub@redhat.com>
148
149 * libgomp.texi: Bump @copying's copyright year.
150
cdfaa4aa
GA
1512023-12-21 Julian Brown <julian@codesourcery.com>
152
153 * testsuite/libgomp.fortran/target-enter-data-6.f90: Remove XFAIL.
154
7ad9058c
GA
1552023-12-20 Julian Brown <julian@codesourcery.com>
156
157 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d): Adjust parameters to
158 avoid out-of-bounds array checks in CUDA runtime.
159 (GOMP_OFFLOAD_memcpy3d): Likewise.
160 * testsuite/libgomp.c-c++-common/memcpyxd-bias-1.c: New test.
161
08c5d26a
GA
1622023-12-18 Jakub Jelinek <jakub@redhat.com>
163
164 * testsuite/libgomp.c/declare-variant-1.c: Restrict the test to x86,
165 drop because of that unneeded target selector from other directives
166 and remove the aarch64 specific ones.
167
ea54b390
GA
1682023-12-15 Andre Vieira <andre.simoesdiasvieira@arm.com>
169
170 * testsuite/libgomp.c/declare-variant-1.c: Fixed test.
171 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
172
1732023-12-15 Thomas Schwinge <thomas@codesourcery.com>
174
175 * testsuite/libgomp.fortran/map-subarray-5.f90: Restrict
176 'dg-output's to 'target offload_device_nonshared_as'.
177
1782023-12-15 Julian Brown <julian@codesourcery.com>
179
180 * oacc-mem.c (find_group_last, goacc_enter_data_internal,
181 goacc_exit_data_internal, GOACC_enter_exit_data): Add
182 GOMP_MAP_STRUCT_UNORD support.
183 * target.c (gomp_map_vars_internal): Add GOMP_MAP_STRUCT_UNORD support.
184 Detect incorrect use of variable indexing of arrays of structs.
185 (GOMP_target_enter_exit_data, gomp_target_task_fn): Add
186 GOMP_MAP_STRUCT_UNORD support.
187 * testsuite/libgomp.c-c++-common/map-arrayofstruct-1.c: New test.
188 * testsuite/libgomp.c-c++-common/map-arrayofstruct-2.c: New test.
189 * testsuite/libgomp.c-c++-common/map-arrayofstruct-3.c: New test.
190 * testsuite/libgomp.fortran/map-subarray-5.f90: New test.
191
e8018ccf
GA
1922023-12-13 Julian Brown <julian@codesourcery.com>
193
194 * testsuite/libgomp.fortran/map-subarray.f90: New test.
195 * testsuite/libgomp.fortran/map-subarray-2.f90: New test.
196 * testsuite/libgomp.fortran/map-subarray-3.f90: New test.
197 * testsuite/libgomp.fortran/map-subarray-4.f90: New test.
198 * testsuite/libgomp.fortran/map-subarray-6.f90: New test.
199 * testsuite/libgomp.fortran/map-subarray-7.f90: New test.
200 * testsuite/libgomp.fortran/map-subarray-8.f90: New test.
201 * testsuite/libgomp.fortran/map-subcomponents.f90: New test.
202 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Adjust for
203 descriptor-mapping changes. Remove XFAIL.
204
2052023-12-13 Julian Brown <julian@codesourcery.com>
206
207 * target.c (gomp_map_pointer): Modify zero-length array section
208 pointer handling.
209 (gomp_attach_pointer): Likewise.
210 (gomp_map_fields_existing): Use gomp_map_0len_lookup.
211 (gomp_attach_pointer): Allow attaching null pointers (or Fortran
212 "unassociated" pointers).
213 (gomp_map_vars_internal): Handle zero-sized struct members. Add
214 diagnostic for unmapped struct pointer members.
215 * testsuite/libgomp.c-c++-common/baseptrs-1.c: New test.
216 * testsuite/libgomp.c-c++-common/baseptrs-2.c: New test.
217 * testsuite/libgomp.c-c++-common/baseptrs-6.c: New test.
218 * testsuite/libgomp.c-c++-common/baseptrs-7.c: New test.
219 * testsuite/libgomp.c-c++-common/ptr-attach-2.c: New test.
220 * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: Fix missing
221 "free".
222 * testsuite/libgomp.c-c++-common/target-implicit-map-5.c: New test.
223 * testsuite/libgomp.c-c++-common/target-map-zlas-1.c: New test.
224 * testsuite/libgomp.c++/class-array-1.C: New test.
225 * testsuite/libgomp.c++/baseptrs-3.C: New test.
226 * testsuite/libgomp.c++/baseptrs-4.C: New test.
227 * testsuite/libgomp.c++/baseptrs-5.C: New test.
228 * testsuite/libgomp.c++/baseptrs-8.C: New test.
229 * testsuite/libgomp.c++/baseptrs-9.C: New test.
230 * testsuite/libgomp.c++/ref-mapping-1.C: New test.
231 * testsuite/libgomp.c++/target-48.C: New test.
232 * testsuite/libgomp.c++/target-49.C: New test.
233 * testsuite/libgomp.c++/target-exit-data-reftoptr-1.C: New test.
234 * testsuite/libgomp.c++/target-lambda-1.C: Update for OpenMP 5.2
235 semantics.
236 * testsuite/libgomp.c++/target-this-3.C: Likewise.
237 * testsuite/libgomp.c++/target-this-4.C: Likewise.
238 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Add temporary XFAIL.
239 * testsuite/libgomp.fortran/target-enter-data-6.f90: Likewise.
240
2412023-12-13 Thomas Schwinge <thomas@codesourcery.com>
242
243 * config/linux/allocator.c (linux_memspace_alloc): Fix 'size_t'
244 vs. '%ld' format string mismatch.
245
2462023-12-13 Andrew Stubbs <ams@codesourcery.com>
247 Thomas Schwinge <thomas@codesourcery.com>
248
249 * allocator.c (MEMSPACE_ALLOC): Add PIN.
250 (MEMSPACE_CALLOC): Add PIN.
251 (MEMSPACE_REALLOC): Add PIN.
252 (MEMSPACE_FREE): Add PIN.
253 (MEMSPACE_VALIDATE): Add PIN.
254 (omp_init_allocator): Use MEMSPACE_VALIDATE to check pinning.
255 (omp_aligned_alloc): Add pinning to all MEMSPACE_* calls.
256 (omp_aligned_calloc): Likewise.
257 (omp_realloc): Likewise.
258 (omp_free): Likewise.
259 * config/linux/allocator.c: New file.
260 * config/nvptx/allocator.c (MEMSPACE_ALLOC): Add PIN.
261 (MEMSPACE_CALLOC): Add PIN.
262 (MEMSPACE_REALLOC): Add PIN.
263 (MEMSPACE_FREE): Add PIN.
264 (MEMSPACE_VALIDATE): Add PIN.
265 * config/gcn/allocator.c (MEMSPACE_ALLOC): Add PIN.
266 (MEMSPACE_CALLOC): Add PIN.
267 (MEMSPACE_REALLOC): Add PIN.
268 (MEMSPACE_FREE): Add PIN.
269 * libgomp.texi: Switch pinned trait to supported.
270 (MEMSPACE_VALIDATE): Add PIN.
271 * testsuite/libgomp.c/alloc-pinned-1.c: New test.
272 * testsuite/libgomp.c/alloc-pinned-2.c: New test.
273 * testsuite/libgomp.c/alloc-pinned-3.c: New test.
274 * testsuite/libgomp.c/alloc-pinned-4.c: New test.
275
d5c96225
GA
2762023-12-11 Lipeng Zhu <lipeng.zhu@intel.com>
277
278 * testsuite/libgomp.fortran/rwlock_1.f90: New file.
279 * testsuite/libgomp.fortran/rwlock_2.f90: New file.
280 * testsuite/libgomp.fortran/rwlock_3.f90: New file.
281
2822023-12-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
283
284 * testsuite/libgomp.c/declare-variant-1.c: Adapt test for aarch64.
285 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
286
2872023-12-11 Tobias Burnus <tobias@codesourcery.com>
288
289 * libgomp_g.h (GOMP_add_alloc, GOMP_is_alloc): Add.
290
dd3b75d8
GA
2912023-12-08 Tobias Burnus <tobias@codesourcery.com>
292
293 * allocator.c (struct fort_alloc_splay_tree_key_s,
294 fort_alloc_splay_compare, GOMP_add_alloc, GOMP_is_alloc): New.
295 * libgomp.h: Define splay_tree_static for 'reverse' splay tree.
296 * libgomp.map (GOMP_5.1.2): New; add GOMP_add_alloc and
297 GOMP_is_alloc; move GOMP_target_map_indirect_ptr from ...
298 (GOMP_5.1.1): ... here.
299 * libgomp.texi (Impl. Status, Memory management): Update for
300 allocators/allocate directives.
301 * splay-tree.c: Handle splay_tree_static define to declare all
302 functions as static.
303 (splay_tree_lookup_node): New.
304 * splay-tree.h: Handle splay_tree_decl_only define.
305 (splay_tree_lookup_node): New prototype.
306 * target.c: Define splay_tree_static for 'reverse'.
307 * testsuite/libgomp.fortran/allocators-1.f90: New test.
308 * testsuite/libgomp.fortran/allocators-2.f90: New test.
309 * testsuite/libgomp.fortran/allocators-3.f90: New test.
310 * testsuite/libgomp.fortran/allocators-4.f90: New test.
311 * testsuite/libgomp.fortran/allocators-5.f90: New test.
312
ae9e48e5
GA
3132023-12-06 Andrew Stubbs <ams@codesourcery.com>
314
315 * config/gcn/libgomp-gcn.h (TEAM_ARENA_START): Move to here.
316 (TEAM_ARENA_FREE): Likewise.
317 (TEAM_ARENA_END): Likewise.
318 (GCN_LOWLAT_HEAP): New.
319 * config/gcn/team.c (LITTLEENDIAN_CPU): New, and import hsa.h.
320 (__gcn_lowlat_init): New prototype.
321 (gomp_gcn_enter_kernel): Initialize the low-latency heap.
322 * libgomp.h (TEAM_ARENA_START): Move to libgomp.h.
323 (TEAM_ARENA_FREE): Likewise.
324 (TEAM_ARENA_END): Likewise.
325 * plugin/plugin-gcn.c (lowlat_size): New variable.
326 (print_kernel_dispatch): Label the group_segment_size purpose.
327 (init_environment_variables): Read GOMP_GCN_LOWLAT_POOL.
328 (create_kernel_dispatch): Pass low-latency head allocation to kernel.
329 (run_kernel): Use shadow; don't assume values.
330 * testsuite/libgomp.c/omp_alloc-traits.c: Enable for amdgcn.
331 * config/gcn/allocator.c: New file.
332 * libgomp.texi: Document low-latency implementation details.
333
3342023-12-06 Andrew Stubbs <ams@codesourcery.com>
335
336 * allocator.c (MEMSPACE_VALIDATE): New macro.
337 (omp_init_allocator): Use MEMSPACE_VALIDATE.
338 (omp_aligned_alloc): Use OMP_LOW_LAT_MEM_ALLOC_INVALID.
339 (omp_aligned_calloc): Likewise.
340 (omp_realloc): Likewise.
341 * config/nvptx/allocator.c (nvptx_memspace_validate): New function.
342 (MEMSPACE_VALIDATE): New macro.
343 (OMP_LOW_LAT_MEM_ALLOC_INVALID): New define.
344 * libgomp.texi: Document low-latency implementation details.
345 * testsuite/libgomp.c/omp_alloc-1.c (main): Add gnu_lowlat.
346 * testsuite/libgomp.c/omp_alloc-2.c (main): Add gnu_lowlat.
347 * testsuite/libgomp.c/omp_alloc-3.c (main): Add gnu_lowlat.
348 * testsuite/libgomp.c/omp_alloc-4.c (main): Add access trait.
349 * testsuite/libgomp.c/omp_alloc-5.c (main): Add gnu_lowlat.
350 * testsuite/libgomp.c/omp_alloc-6.c (main): Add access trait.
351 * testsuite/libgomp.c/omp_alloc-traits.c: New test.
352
3532023-12-06 Andrew Stubbs <ams@codesourcery.com>
354 Kwok Cheung Yeung <kcy@codesourcery.com>
355 Thomas Schwinge <thomas@codesourcery.com>
356
357 * allocator.c (MEMSPACE_ALLOC): New macro.
358 (MEMSPACE_CALLOC): New macro.
359 (MEMSPACE_REALLOC): New macro.
360 (MEMSPACE_FREE): New macro.
361 (predefined_alloc_mapping): New array. Add _Static_assert to match.
362 (ARRAY_SIZE): New macro.
363 (omp_aligned_alloc): Use MEMSPACE_ALLOC.
364 Implement fall-backs for predefined allocators. Simplify existing
365 fall-backs.
366 (omp_free): Use MEMSPACE_FREE.
367 (omp_calloc): Use MEMSPACE_CALLOC. Implement fall-backs for
368 predefined allocators. Simplify existing fall-backs.
369 (omp_realloc): Use MEMSPACE_REALLOC, MEMSPACE_ALLOC, and MEMSPACE_FREE.
370 Implement fall-backs for predefined allocators. Simplify existing
371 fall-backs.
372 * config/nvptx/team.c (__nvptx_lowlat_pool): New asm variable.
373 (__nvptx_lowlat_init): New prototype.
374 (gomp_nvptx_main): Call __nvptx_lowlat_init.
375 * libgomp.texi: Update memory space table.
376 * plugin/plugin-nvptx.c (lowlat_pool_size): New variable.
377 (GOMP_OFFLOAD_init_device): Read the GOMP_NVPTX_LOWLAT_POOL envvar.
378 (GOMP_OFFLOAD_run): Apply lowlat_pool_size.
379 * basic-allocator.c: New file.
380 * config/nvptx/allocator.c: New file.
381 * testsuite/libgomp.c/omp_alloc-1.c: New test.
382 * testsuite/libgomp.c/omp_alloc-2.c: New test.
383 * testsuite/libgomp.c/omp_alloc-3.c: New test.
384 * testsuite/libgomp.c/omp_alloc-4.c: New test.
385 * testsuite/libgomp.c/omp_alloc-5.c: New test.
386 * testsuite/libgomp.c/omp_alloc-6.c: New test.
387
8428bcd7
GA
3882023-11-30 Thomas Schwinge <thomas@codesourcery.com>
389
390 * testsuite/libgomp.c/declare-variant-4-fiji.c: Adjust.
391 * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
392 * testsuite/libgomp.c/declare-variant-4-gfx900.c: Likewise.
393 * testsuite/libgomp.c/declare-variant-4-gfx906.c: Likewise.
394 * testsuite/libgomp.c/declare-variant-4-gfx908.c: Likewise.
395 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: Likewise.
396 * testsuite/libgomp.c/declare-variant-4.h: Likewise.
397 * testsuite/libgomp.c/declare-variant-4.c: New.
398
3992023-11-30 Thomas Schwinge <thomas@codesourcery.com>
400
401 * testsuite/libgomp.c/declare-variant-3-sm30.c: Turn 'dg-do run'
402 into 'dg-do link'.
403 * testsuite/libgomp.c/declare-variant-3.c: New.
404 * testsuite/libgomp.c/declare-variant-3.h: Extend.
405
4062023-11-30 Thomas Schwinge <thomas@codesourcery.com>
407
408 * testsuite/libgomp.c/declare-variant-3-sm30.c: Restrict
409 'scan-offload-tree-dump' to 'only_for_offload_target nvptx-none'.
410 * testsuite/libgomp.c/declare-variant-3-sm35.c: Likewise.
411 * testsuite/libgomp.c/declare-variant-3-sm53.c: Likewise.
412 * testsuite/libgomp.c/declare-variant-3-sm70.c: Likewise.
413 * testsuite/libgomp.c/declare-variant-3-sm75.c: Likewise.
414 * testsuite/libgomp.c/declare-variant-3-sm80.c: Likewise.
415 * testsuite/libgomp.c/declare-variant-4-fiji.c: Restrict
416 'scan-offload-tree-dump' to
417 'only_for_offload_target amdgcn-amdhsa'.
418 * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
419 * testsuite/libgomp.c/declare-variant-4-gfx900.c: Likewise.
420 * testsuite/libgomp.c/declare-variant-4-gfx906.c: Likewise.
421 * testsuite/libgomp.c/declare-variant-4-gfx908.c: Likewise.
422 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: Likewise.
423
4242023-11-30 Thomas Schwinge <thomas@codesourcery.com>
425
426 * testsuite/libgomp.c/declare-variant-3-sm30.c:
427 'dg-additional-options -foffload=nvptx-none'.
428 * testsuite/libgomp.c/declare-variant-3-sm35.c: Likewise.
429 * testsuite/libgomp.c/declare-variant-3-sm53.c: Likewise.
430 * testsuite/libgomp.c/declare-variant-3-sm70.c: Likewise.
431 * testsuite/libgomp.c/declare-variant-3-sm75.c: Likewise.
432 * testsuite/libgomp.c/declare-variant-3-sm80.c: Likewise.
433
31d8cf17
GA
4342023-11-29 Thomas Schwinge <thomas@codesourcery.com>
435
436 * testsuite/libgomp.c/target-simd-clone-1.c: Restrict
437 'scan-offload-ipa-dump's to
438 'only_for_offload_target amdgcn-amdhsa'.
439 * testsuite/libgomp.c/target-simd-clone-2.c: Likewise.
440 * testsuite/libgomp.c/target-simd-clone-3.c: Likewise.
441
77cf1dba
GA
4422023-11-24 Tobias Burnus <tobias@codesourcery.com>
443
444 * libgomp.texi (5.2 Impl. Status): An argument to the destroy clause
445 is now supported.
446
26a7e775
GA
4472023-11-22 Thomas Schwinge <thomas@codesourcery.com>
448
449 * testsuite/libgomp.c/declare-variant-3.h (f30, f35, f53, f70)
450 (f75, f80, f): Add '__attribute__ ((noipa))'.
451 * testsuite/libgomp.c/declare-variant-4.h (gfx803, gfx900, gfx906)
452 (gfx908, gfx90a, f): Likewise.
453
17cc2e57
GA
4542023-11-15 Andrew Stubbs <ams@codesourcery.com>
455 Andrew Jenner <andrew@codesourcery.com>
456
457 * plugin/plugin-gcn.c (max_isa_vgprs): New.
458 (run_kernel): CDNA2 devices have more VGPRs.
459
b9fd8399
GA
4602023-11-10 Tobias Burnus <tobias@codesourcery.com>
461
462 * libgomp.texi (OpenMP Impl. Status): Update for OpenMP TR12;
463 renamed section from TR11.
464
c48f1056
GA
4652023-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
466
467 * config/linux/target-indirect.c: Move to...
468 * target-indirect.c: ...here.
469
4702023-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
471
472 * Makefile.am (libgomp_la_SOURCES): Add target-indirect.c.
473 * Makefile.in: Regenerate.
474 * libgomp-plugin.h (GOMP_INDIRECT_ADDR_MAP): New define.
475 (GOMP_OFFLOAD_load_image): Add extra argument.
476 * libgomp.h (struct indirect_splay_tree_key_s): New.
477 (indirect_splay_tree_node, indirect_splay_tree,
478 indirect_splay_tree_key): New.
479 (indirect_splay_compare): New.
480 * libgomp.map (GOMP_5.1.1): Add GOMP_target_map_indirect_ptr.
481 * libgomp.texi (OpenMP 5.1): Update documentation on indirect
482 calls in target region and on indirect clause.
483 (Other new OpenMP 5.2 features): Add entry for virtual function calls.
484 * libgomp_g.h (GOMP_target_map_indirect_ptr): Add prototype.
485 * oacc-host.c (host_load_image): Add extra argument.
486 * target.c (gomp_load_image_to_device): If the GOMP_VERSION is high
487 enough, read host indirect functions table and pass to
488 load_image_func.
489 * config/accel/target-indirect.c: New.
490 * config/linux/target-indirect.c: New.
491 * config/gcn/team.c (build_indirect_map): Add prototype.
492 (gomp_gcn_enter_kernel): Initialize support for indirect
493 function calls on GCN target.
494 * config/nvptx/team.c (build_indirect_map): Add prototype.
495 (gomp_nvptx_main): Initialize support for indirect function
496 calls on NVPTX target.
497 * plugin/plugin-gcn.c (struct gcn_image_desc): Add field for
498 indirect functions count.
499 (GOMP_OFFLOAD_load_image): Add extra argument. If the GOMP_VERSION
500 is high enough, build address translation table and copy it to target
501 memory.
502 * plugin/plugin-nvptx.c (nvptx_tdata): Add field for indirect
503 functions count.
504 (GOMP_OFFLOAD_load_image): Add extra argument. If the GOMP_VERSION
505 is high enough, Build address translation table and copy it to target
506 memory.
507 * testsuite/libgomp.c-c++-common/declare-target-indirect-1.c: New.
508 * testsuite/libgomp.c-c++-common/declare-target-indirect-2.c: New.
509 * testsuite/libgomp.c++/declare-target-indirect-1.C: New.
510
459866ea
GA
5112023-11-05 Jakub Jelinek <jakub@redhat.com>
512
513 * libgomp.texi (Enabling OpenMP): Adjust wording for attribute syntax
514 supported also in C.
515
eac0917b
GA
5162023-10-31 Thomas Schwinge <thomas@codesourcery.com>
517
518 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Add OpenACC
519 'acc_map_data' variant.
520
f75fc1f0
GA
5212023-10-25 Thomas Schwinge <thomas@codesourcery.com>
522
523 * oacc-parallel.c (GOACC_data_start): Handle
524 'GOACC_FLAG_LOCAL_DEVICE'.
525 (GOACC_parallel_keyed): Simplify accordingly.
526 * testsuite/libgomp.oacc-fortran/self-1.f90: Adjust.
527
5282023-10-25 Thomas Schwinge <thomas@codesourcery.com>
529
530 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Enhance.
531 * testsuite/libgomp.oacc-c-c++-common/self-1.c: Likewise.
532 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
533 * testsuite/libgomp.oacc-c-c++-common/if-self-1.c: New.
534 * testsuite/libgomp.oacc-fortran/self-1.f90: Likewise.
535
5362023-10-25 Chung-Lin Tang <cltang@codesourcery.com>
537
538 * oacc-parallel.c (GOACC_parallel_keyed): Add code to handle
539 GOACC_FLAG_LOCAL_DEVICE case.
540 * testsuite/libgomp.oacc-c-c++-common/self-1.c: New test.
541
3b632746
GA
5422023-10-22 Iain Sandoe <iain@sandoe.co.uk>
543
544 * Makefile.am: Handle Darwin rpaths.
545 * Makefile.in: Regenerate.
546 * configure: Regenerate.
547 * configure.ac: Handle Darwin rpaths
548
6f684dd2
GA
5492023-10-20 Andrew Stubbs <ams@codesourcery.com>
550
551 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX1030): New.
552 (isa_hsa_name): Recognise gfx1030.
553 (isa_code): Likewise.
554 * team.c (defined): Remove s_endpgm.
555
5562023-10-20 Tobias Burnus <tobias@codesourcery.com>
557
558 * omp_lib.f90.in: Tag omp_lock_hint_* as being deprecated when
559 _OPENMP >= 201811.
560
d5cfabc6
GA
5612023-10-15 Tobias Burnus <tobias@codesourcery.com>
562
563 * libgomp.texi (Enabling OpenMP): Update for C/C++ attributes;
564 improve wording especially for Fortran; mention -fopenmp-simd.
565 (Enabling OpenACC): Minor cleanup; remove conditional compilation
566 sentinel.
567
5682023-10-15 Tobias Burnus <tobias@codesourcery.com>
569
570 * libgomp.texi (ACC_DEVICE_TYPE, ACC_DEVICE_NUM, ACC_PROFLIB):
571 Actually document what the function does.
572 (GCC_ACC_NOTIFY): Remove unused env var.
573
5742023-10-15 Tobias Burnus <tobias@codesourcery.com>
575
576 * libgomp.texi: Replace most future tense by present tense.
577
b3cb98d7
GA
5782023-10-14 Tobias Burnus <tobias@codesourcery.com>
579
580 * testsuite/libgomp.fortran/allocate-6.f90: Add missing
581 dg-additional-options "-fdump-tree-gimple"; fix scan.
582
5832023-10-14 Tobias Burnus <tobias@codesourcery.com>
584
585 * libgomp.texi: Fix some typos.
586 (Memory Management Routines): Document remaining 5.x routines.
587 (Memory allocation): Make clear when the section applies.
588
5892023-10-14 Tobias Burnus <tobias@codesourcery.com>
590
591 * libgomp.texi (OpenMP Impl. Status): Mention that Fortran now
592 supports the allocate directive for stack variables.
593 * testsuite/libgomp.fortran/allocate-5.f90: New test.
594 * testsuite/libgomp.fortran/allocate-6.f90: New test.
595 * testsuite/libgomp.fortran/allocate-7.f90: New test.
596 * testsuite/libgomp.fortran/allocate-8.f90: New test.
597
f9ef2e6d
GA
5982023-10-12 Tobias Burnus <tobias@codesourcery.com>
599
600 * libgomp.texi (OMP_DEFAULT_DEVICE): Update spec ref; add @ref to
601 OMP_TARGET_OFFLOAD.
602 (OMP_TARGET_OFFLOAD): Update spec ref; add @ref to OMP_DEFAULT_DEVICE;
603 clarify MANDATORY behavior.
604
6052023-10-12 Zhang, Jun <jun.zhang@intel.com>
606
607 * env.c (initialize_env): Use do_adjust_default_spincount.
608 * config/linux/x86/spincount.h: New file.
609
00c67d62
GA
6102023-10-08 Tobias Burnus <tobias@codesourcery.com>
611
612 * testsuite/libgomp.fortran/strictly-structured-block-1.f90: New test.
613
0defa2a0
GA
6142023-10-06 Tobias Burnus <tobias@codesourcery.com>
615
616 * libgomp.texi (Device Memory Routines): New.
617
bf2e66e3
GA
6182023-10-04 Tobias Burnus <tobias@codesourcery.com>
619
620 * libgomp.texi (OpenMP Context Selectors): Clarify 'kind' trait
621 and that other target archs have no 'arch'/'isa' traits implemented.
622
4907d220
GA
6232023-09-20 Tobias Burnus <tobias@codesourcery.com>
624
625 * libgomp.texi (OpenMP 5.1 Impl.): Mark 'omp allocate' as
626 implemented for C only.
627 * testsuite/libgomp.c/allocate-4.c: New test.
628 * testsuite/libgomp.c/allocate-5.c: New test.
629 * testsuite/libgomp.c/allocate-6.c: New test.
630
6312023-09-20 Jakub Jelinek <jakub@redhat.com>
632
633 PR c++/111392
634 * libgomp.texi: Mark decl attribute was added to the C++ attribute
635 syntax as implemented.
636
590a8bec
GA
6372023-09-19 Jakub Jelinek <jakub@redhat.com>
638
639 PR libgomp/111413
640 * env.c (initialize_env): Don't dereference environ if it is NULL.
641 Reindent.
642
6b78e9a5
GA
6432023-09-18 Richard Biener <rguenther@suse.de>
644
645 PR tree-optimization/111294
646 * team.c (gomp_team_start): Assert alloca size to avoid false
647 positive alloc-size diagnostic.
648
a1c20158
GA
6492023-09-12 Thomas Schwinge <thomas@codesourcery.com>
650 Chung-Lin Tang <cltang@codesourcery.com>
651
652 PR testsuite/91884
653 PR testsuite/109951
654 * configure.ac: Revert earlier changes, instead
655 'AC_SUBST(SYSROOT_CFLAGS_FOR_TARGET)'.
656 * Makefile.in: Regenerate.
657 * configure: Likewise.
658 * testsuite/Makefile.in: Likewise.
659 * testsuite/lib/libgomp.exp (libgomp_init): Remove
660 "Fix up '-funconfigured-libstdc++-v3' in 'GXX_UNDER_TEST'" code.
661 If '--with-build-sysroot=[...]' was specified, use it for
662 build-tree testing.
663 * testsuite/libgomp-site-extra.exp.in (GCC_UNDER_TEST)
664 (GXX_UNDER_TEST, GFORTRAN_UNDER_TEST): Don't set.
665 (SYSROOT_CFLAGS_FOR_TARGET): Set.
666 * testsuite/libgomp.c++/c++.exp (lang_source_re)
667 (lang_include_flags): Set for build-tree testing.
668 * testsuite/libgomp.oacc-c++/c++.exp (lang_source_re)
669 (lang_include_flags): Likewise.
670
109c11f6
GA
6712023-09-07 Tobias Burnus <tobias@codesourcery.com>
672
673 * libgomp.texi (Memory Management Routines): New; add documentation for
674 omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
675 omp_get_default_allocator.
676 (OMP_ALLOCATOR): Fix ICV var name; add see-also references.
677
478c37e7
TB
6782023-09-07 Tobias Burnus <tobias@codesourcery.com>
679
680 * target.c (gomp_unload_device): Remove tailing whitespace.
681
d820cd78
GA
6822023-09-04 Tobias Burnus <tobias@codesourcery.com>
683 Thomas Schwinge <thomas@codesourcery.com>
684
685 * testsuite/libgomp.c-c++-common/pr100059-1.c: New.
686
b8863640
GA
6872023-08-25 Sandra Loosemore <sandra@codesourcery.com>
688
689 * libgomp.texi (OpenMP 5.0): Imperfectly-nested loops are done.
690
6912023-08-25 Sandra Loosemore <sandra@codesourcery.com>
692
693 * testsuite/libgomp.fortran/imperfect-destructor.f90: New.
694 * testsuite/libgomp.fortran/imperfect1.f90: New.
695 * testsuite/libgomp.fortran/imperfect2.f90: New.
696 * testsuite/libgomp.fortran/imperfect3.f90: New.
697 * testsuite/libgomp.fortran/imperfect4.f90: New.
698 * testsuite/libgomp.fortran/target-imperfect1.f90: New.
699 * testsuite/libgomp.fortran/target-imperfect2.f90: New.
700 * testsuite/libgomp.fortran/target-imperfect3.f90: New.
701 * testsuite/libgomp.fortran/target-imperfect4.f90: New.
702
7032023-08-25 Sandra Loosemore <sandra@codesourcery.com>
704
705 * testsuite/libgomp.c-c++-common/imperfect1.c: New.
706 * testsuite/libgomp.c-c++-common/imperfect2.c: New.
707 * testsuite/libgomp.c-c++-common/imperfect3.c: New.
708 * testsuite/libgomp.c-c++-common/imperfect4.c: New.
709 * testsuite/libgomp.c-c++-common/imperfect5.c: New.
710 * testsuite/libgomp.c-c++-common/imperfect6.c: New.
711 * testsuite/libgomp.c-c++-common/target-imperfect1.c: New.
712 * testsuite/libgomp.c-c++-common/target-imperfect2.c: New.
713 * testsuite/libgomp.c-c++-common/target-imperfect3.c: New.
714 * testsuite/libgomp.c-c++-common/target-imperfect4.c: New.
715
7162023-08-25 Sandra Loosemore <sandra@codesourcery.com>
717
718 * testsuite/libgomp.c++/attrs-imperfect1.C: New test.
719 * testsuite/libgomp.c++/attrs-imperfect2.C: New test.
720 * testsuite/libgomp.c++/attrs-imperfect3.C: New test.
721 * testsuite/libgomp.c++/attrs-imperfect4.C: New test.
722 * testsuite/libgomp.c++/attrs-imperfect5.C: New test.
723 * testsuite/libgomp.c++/attrs-imperfect6.C: New test.
724 * testsuite/libgomp.c++/imperfect-class-1.C: New test.
725 * testsuite/libgomp.c++/imperfect-class-2.C: New test.
726 * testsuite/libgomp.c++/imperfect-class-3.C: New test.
727 * testsuite/libgomp.c++/imperfect-destructor.C: New test.
728 * testsuite/libgomp.c++/imperfect-template-1.C: New test.
729 * testsuite/libgomp.c++/imperfect-template-2.C: New test.
730 * testsuite/libgomp.c++/imperfect-template-3.C: New test.
731
6cd85273
GA
7322023-08-22 Francois-Xavier Coudert <fxcoudert@gmail.com>
733
734 * testsuite/lib/libgomp.exp: Add effective target.
735 * testsuite/libgomp.c/simd-math-1.c: Avoid calling nonstandard
736 functions.
737
7382023-08-22 Tobias Burnus <tobias@codesourcery.com>
739
740 * libgomp.texi (OpenMP 5.2 status): Add depobj with
741 destroy-var argument as 'N'. Mark defaultmap with
742 'all' category as 'Y'.
743
1ba33636
GA
7442023-08-19 Tobias Burnus <tobias@codesourcery.com>
745
746 PR middle-end/111017
747 * testsuite/libgomp.c-c++-common/non-rect-loop-1.c: New test.
748
1eb2433f
GA
7492023-08-17 Tobias Burnus <tobias@codesourcery.com>
750
751 PR libgomp/111024
752 * allocator.c (gomp_init_libnuma): Call numa_available; if
753 not available or not returning 0, disable libnuma usage.
754
4b92dba7
GA
7552023-08-07 Nick Alcock <nick.alcock@oracle.com>
756
757 * configure: Regenerate.
758
7592023-08-07 Alexander von Gluck IV <kallisti5@unixzen.com>
760
761 * configure: Regenerate.
762
7632023-08-07 Nick Alcock <nick.alcock@oracle.com>
764
765 * configure: Regenerate.
766
7672023-08-07 Nick Alcock <nick.alcock@oracle.com>
768
769 * configure: Regenerate.
770
7712023-08-07 H.J. Lu <hjl.tools@gmail.com>
772
773 * configure: Regenerate.
774
7752023-08-07 H.J. Lu <hjl.tools@gmail.com>
776
777 * configure: Regenerate.
778
861962ee
GA
7792023-07-29 Tobias Burnus <tobias@codesourcery.com>
780
781 * target.c (omp_target_memcpy_rect_worker): Undo dim=1 change for
782 GOMP_OFFLOAD_CAP_SHARED_MEM.
783 (omp_target_memcpy_rect_copy): Likewise for lock condition.
784 (gomp_load_plugin_for_device): Use DLSYM_OPT not DLSYM for
785 memcpy3d/memcpy2d.
786 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
787 GOMP_OFFLOAD_memcpy3d): Use memset 0 to nullify reserved and
788 unused src/dst fields for that mem type; remove '{src,dst}LOD = 0'.
789
5278cd6a
GA
7902023-07-26 Tobias Burnus <tobias@codesourcery.com>
791
792 * libgomp-plugin.h (GOMP_OFFLOAD_memcpy2d,
793 GOMP_OFFLOAD_memcpy3d): New prototypes.
794 * libgomp.h (struct gomp_device_descr): Add memcpy2d_func
795 and memcpy3d_func.
796 * libgomp.texi (nvtpx): Document when cuMemcpy2D/cuMemcpy3D is used.
797 * oacc-host.c (memcpy2d_func, .memcpy3d_func): Init with NULL.
798 * plugin/cuda-lib.def (cuMemcpy2D, cuMemcpy2DUnaligned,
799 cuMemcpy3D): Invoke via CUDA_ONE_CALL.
800 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
801 GOMP_OFFLOAD_memcpy3d): New.
802 * target.c (omp_target_memcpy_rect_worker):
803 (omp_target_memcpy_rect_check, omp_target_memcpy_rect_copy):
804 Permit all device-to-device copyies; invoke new plugins for
805 2D and 3D copying when available.
806 (gomp_load_plugin_for_device): DLSYM the new plugin functions.
807 * testsuite/libgomp.c/target-12.c: Fix dimension bug.
808 * testsuite/libgomp.fortran/target-12.f90: Likewise.
809 * testsuite/libgomp.fortran/target-memcpy-rect-1.f90: New test.
810
8112023-07-26 Tobias Burnus <tobias@codesourcery.com>
812
813 * libgomp.texi (OpenMP 5.2 features): Add 'all' for 'defaultmap' as 'N'.
814 (Tasking Routines): Document omp_in_explicit_task.
815 (Implementation-defined ICV Initialization): Use @ref not @code.
816
e2bf82d5
GA
8172023-07-20 Tobias Burnus <tobias@codesourcery.com>
818
819 * libgomp.texi (OpenMP Runtime Library Routines):
820 Split long list by adding sections and moving routines there.
821 (OMP_ALLOCATORS): Fix typo.
822
49bed11d
GA
8232023-07-19 Tobias Burnus <tobias@codesourcery.com>
824
825 PR fortran/107424
826 * libgomp.texi (Impl. Status 5.0): Add link to new PR110735.
827 * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: Enable
828 commented tests.
829 * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: Remove
830 test file; tests are in non-rectangular-loop-1.f90.
831 * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: Change
832 testcase to use a non-constant step to retain the 'sorry' test.
833 * testsuite/libgomp.fortran/non-rectangular-loop-6.f90: New test.
834
473c1b58
GA
8352023-07-17 Tobias Burnus <tobias@codesoucery.com>
836 Chung-Lin Tang <cltang@codesourcery.com>
837
838 * testsuite/libgomp.fortran/uses_allocators_1.f90: New test.
839 * testsuite/libgomp.fortran/uses_allocators_2.f90: New test.
840
18dac101
GA
8412023-07-14 Tobias Burnus <tobias@codesourcery.com>
842
843 * libgomp.texi (OMP_ALLOCATOR): Document the default values for
844 the traits. Add crossref to 'Memory allocation'.
845 (Memory allocation): Refer to OMP_ALLOCATOR for the available
846 traits and allocators/mem spaces; document the default value
847 for the pool_size trait.
848
8492023-07-14 Tobias Burnus <tobias@codesourcery.com>
850
851 * allocator.c (omp_init_allocator): Check whether symbol from
852 dlopened libnuma is available before using libnuma for
853 allocations.
854
3d0ca8b5
GA
8552023-07-13 David Edelsohn <dje.gcc@gmail.com>
856
857 * testsuite/libgomp.c++/target-map-class-2.C: Require LTO.
858 * testsuite/libgomp.c-c++-common/requires-4.c: Require LTO.
859 * testsuite/libgomp.c-c++-common/requires-4a.c: Require LTO.
860
15939bae
GA
8612023-07-12 Tobias Burnus <tobias@codesourcery.com>
862
863 * libgomp.texi (OpenMP 5.0): Replace '... stub' by @ref to
864 'Memory allocation' section which contains the full status.
865 (TR11): Remove differently worded duplicated entry.
866
8672023-07-12 Tobias Burnus <tobias@codesourcery.com>
868
869 * allocator.c: Add ifdef for LIBGOMP_USE_LIBNUMA.
870 (enum gomp_numa_memkind_kind): Renamed from gomp_memkind_kind;
871 add GOMP_MEMKIND_LIBNUMA.
872 (struct gomp_libnuma_data, gomp_init_libnuma, gomp_get_libnuma): New.
873 (omp_init_allocator): Handle partition=nearest with libnuma if avail.
874 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
875 numa_alloc_local (+ memset), numa_free, and numa_realloc calls as
876 needed.
877 * config/linux/allocator.c (LIBGOMP_USE_LIBNUMA): Define
878 * libgomp.texi: Fix a typo; use 'fi' instead of its ligature char.
879 (Memory allocation): Renamed from 'Memory allocation with libmemkind';
880 updated for libnuma usage.
881 * testsuite/libgomp.c-c++-common/alloc-11.c: New test.
882 * testsuite/libgomp.c-c++-common/alloc-12.c: New test.
883
af3d3ce3
GA
8842023-07-11 Tobias Burnus <tobias@codesourcery.com>
885
886 * allocator.c (omp_init_allocator): Use malloc for
887 omp_high_bw_mem_space when the memkind lib is unavailable
888 instead of returning omp_null_allocator.
889 * libgomp.texi (OpenMP 5.0): Fix typo.
890 (Memory allocation with libmemkind): Document implementation
891 in more detail.
892
270742ce
GA
8932023-06-22 Tobias Burnus <tobias@codesourcery.com>
894
895 * libgomp.texi: Use @var for ICV vars.
896 (OpenMP Environment Variables): Mention _ALL/_DEV/_DEV_<no> variants,
897 document which ICV is set and which scope the ICV has; extend/cleanup
898 some @ref.
899 (Implementation-defined ICV Initialization): New.
900 (nvptx): Document the implementation-defined used per-warp stack size.
901
e517d3f5
GA
9022023-06-19 Thomas Schwinge <thomas@codesourcery.com>
903
904 * testsuite/libgomp.c/target-51.c: Fix DejaGnu directive syntax
905 error.
906
9072023-06-19 Tobias Burnus <tobias@codesourcery.com>
908
909 * testsuite/libgomp.c/target-51.c: Accept more error msg variants
910 as expected dg-output.
911
9122023-06-19 Tobias Burnus <tobias@codesourcery.com>
913
914 PR middle-end/110270
915 * target.c (gomp_map_vars_internal): Copy host value instead of NULL
916 for GOMP_MAP_ZERO_LEN_ARRAY_SECTION if not mapped.
917 * libgomp.texi (OpenMP 5.2 Impl.): Mark as 'Y'.
918 * testsuite/libgomp.c/target-19.c: Update expected value.
919 * testsuite/libgomp.c++/target-18.C: Likewise.
920 * testsuite/libgomp.c++/target-19.C: Likewise.
921 * testsuite/libgomp.c-c++-common/requires-unified-addr-2.c: New test.
922 * testsuite/libgomp.c-c++-common/target-implicit-map-3.c: New test.
923 * testsuite/libgomp.c-c++-common/target-implicit-map-4.c: New test.
924
f10a4ce0
GA
9252023-06-16 Tobias Burnus <tobias@codesourcery.com>
926
927 * target.c (resolve_device): Call gomp_get_num_devices early to ensure
928 gomp_init_targets_once was called before using default-device-var.
929 * testsuite/libgomp.c/target-55.c: New test.
930 * testsuite/libgomp.c/target-55a.c: New test.
931
7ff79341
GA
9322023-06-15 Tobias Burnus <tobias@codesourcery.com>
933
934 * env.c (gomp_def_allocator_envvar): New var.
935 (parse_allocator): Handle OpenMP 5.1 syntax.
936 (cleanup_env): New.
937 (omp_display_env): Output gomp_def_allocator_envvar
938 for an allocator with traits.
939 * libgomp.texi (OMP_ALLOCATOR, OMP_AFFINITY_FORMAT,
940 OMP_DISPLAY_AFFINITY): New.
941 * testsuite/libgomp.c/allocator-1.c: New test.
942 * testsuite/libgomp.c/allocator-2.c: New test.
943 * testsuite/libgomp.c/allocator-3.c: New test.
944 * testsuite/libgomp.c/allocator-4.c: New test.
945 * testsuite/libgomp.c/allocator-5.c: New test.
946 * testsuite/libgomp.c/allocator-6.c: New test.
947
c1c5edef
GA
9482023-06-14 Thomas Schwinge <thomas@codesourcery.com>
949
950 * target.c (resolve_device): Align a
951 'OMP_TARGET_OFFLOAD=mandatory' diagnostic with others.
952 * testsuite/libgomp.c/target-51.c: Adjust.
953
9542023-06-14 Thomas Schwinge <thomas@codesourcery.com>
955
956 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Don't
957 set.
958 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags):
959 Likewise.
960 * testsuite/libgomp.c/simd-math-1.c: Remove
961 '-foffload-options=-lm'.
962 * testsuite/libgomp.fortran/fortran-torture_execute_math.f90:
963 Likewise.
964 * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
965 Likewise.
966
9672023-06-14 Thomas Schwinge <thomas@codesourcery.com>
968
969 * testsuite/libgomp.fortran/fortran-torture_execute_math.f90: New.
970 * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
971 Likewise.
972
9732023-06-14 Thomas Schwinge <thomas@codesourcery.com>
974
975 * testsuite/libgomp.c/target-51.c: Fix typo.
976
9772023-06-14 Tobias Burnus <tobias@codesourcery.com>
978
979 * env.c (gomp_default_icv_values): Init default_device_var to
980 an nonconforming value - INT_MIN.
981 (initialize_env): After env-var parsing, set default_device_var to
982 device 0 unless OMP_TARGET_OFFLOAD=mandatory.
983 (omp_display_env): If default_device_var is INT_MIN, call
984 gomp_init_targets_once.
985 * icv-device.c (omp_get_default_device): Likewise.
986 * libgomp.texi (OMP_DEFAULT_DEVICE): Update init description.
987 (OpenMP 5.2 Impl. Status): Mark OMP_TARGET_OFFLOAD=mandatory as 'Y'.
988 * target.c (resolve_device): Improve error message device-num < 0
989 with 'mandatory' and no no-host devices available.
990 (gomp_target_init): Set default-device-var if INT_MIN.
991 * testsuite/libgomp.c/target-48.c: New test.
992 * testsuite/libgomp.c/target-49.c: New test.
993 * testsuite/libgomp.c/target-50.c: New test.
994 * testsuite/libgomp.c/target-50a.c: New test.
995 * testsuite/libgomp.c/target-51.c: New test.
996 * testsuite/libgomp.c/target-52.c: New test.
997 * testsuite/libgomp.c/target-53.c: New test.
998 * testsuite/libgomp.c/target-54.c: New test.
999
532fb120
GA
10002023-06-13 Tobias Burnus <tobias@codesourcery.com>
1001
1002 PR libgomp/109837
1003 * testsuite/libgomp.c-c++-common/requires-unified-addr-1.c: New test.
1004 * testsuite/libgomp.fortran/requires-unified-addr-1.f90: New test.
1005
9d250bdb
GA
10062023-06-12 Tobias Burnus <tobias@codesourcery.com>
1007
1008 * target.c (gomp_to_device_kind_p, gomp_map_vars_internal): Replace
1009 GOMP_MAP_PRESENT_{FROM,TO,TOFROM,ACLLOC} by GOMP_MAP_FORCE_PRESENT.
1010 (gomp_map_vars_internal, gomp_update): Likewise; unify and improve
1011 error message.
1012 * testsuite/libgomp.c-c++-common/target-present-2.c: Update for
1013 changed error message.
1014 * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
1015 * testsuite/libgomp.fortran/target-present-2.f90: Likewise.
1016 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
1017 * testsuite/libgomp.c-c++-common/target-present-1.c: Likewise and
1018 extend testcase to check that data is copied when needed.
1019 * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
1020 * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
1021
8c5b1365
GA
10222023-06-07 Thomas Schwinge <thomas@codesourcery.com>
1023 Tobias Burnus <tobias@codesourcery.com>
1024
1025 * testsuite/libgomp.c-c++-common/target-present-1.c: Run code
1026 also for non-offload_device targets; check that it runs
1027 successfully for those and for all until a checkpoint for all
1028 * testsuite/libgomp.c-c++-common/target-present-2.c: Likewise.
1029 * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
1030 * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
1031 * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
1032 * testsuite/libgomp.fortran/target-present-2.f90: Likewise;
1033 add missing vars to map clause.
1034
4f0d4825
GA
10352023-06-06 Tobias Burnus <tobias@codesourcery.com>
1036
1037 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Regard
1038 unified_address requirement as supported.
1039 * libgomp.texi (OpenMP 5.0, AMD Radeon, nvptx): Remove
1040 'unified_address' from the not-supported requirements.
1041
10422023-06-06 Kwok Cheung Yeung <kcy@codesourcery.com>
1043 Tobias Burnus <tobias@codesourcery.com>
1044
1045 * libgomp.texi (OpenMP 5.1 Impl. status): Set 'present' support for
1046 defaultmap to 'Y', add 'Y' entry for 'present' on to/from/map clauses.
1047 * target.c (gomp_to_device_kind_p): Add map kinds with 'present'
1048 modifier.
1049 (gomp_map_vars_existing): Use new GOMP_MAP_FORCE_P macro.
1050 (gomp_map_vars_internal, gomp_update, gomp_target_rev):
1051 Emit runtime error if memory region not present.
1052 * testsuite/libgomp.c-c++-common/target-present-1.c: New test.
1053 * testsuite/libgomp.c-c++-common/target-present-2.c: New test.
1054 * testsuite/libgomp.c-c++-common/target-present-3.c: New test.
1055 * testsuite/libgomp.fortran/target-present-1.f90: New test.
1056 * testsuite/libgomp.fortran/target-present-2.f90: New test.
1057 * testsuite/libgomp.fortran/target-present-3.f90: New test.
1058
829d5975
GA
10592023-06-02 Thomas Schwinge <thomas@codesourcery.com>
1060
1061 PR testsuite/66005
1062 * testsuite/lib/libgomp.exp: 'flock' through stdout.
1063 * testsuite/flock: New.
1064 * configure.ac (FLOCK): Point to that if no 'flock' available, but
1065 'perl' is.
1066 * configure: Regenerate.
1067
10682023-06-02 Thomas Schwinge <thomas@codesourcery.com>
1069
1070 * configure.ac (PERL): Remove.
1071 * configure: Regenerate.
1072 * Makefile.in: Likewise.
1073 * testsuite/Makefile.in: Likewise.
1074
84749914
GA
10752023-06-01 Tobias Burnus <tobias@codesourcery.com>
1076
1077 * libgomp.texi (OpenMP 5.2): Mark pure-directive handling as 'Y'.
1078
6e6bb373
GA
10792023-05-26 Tobias Burnus <tobias@codesourcery.com>
1080
1081 * testsuite/libgomp.fortran/allocate-4.f90: Update dg-error.
1082
4579954f
GA
10832023-05-21 Tobias Burnus <tobias@codesourcery.com>
1084
1085 PR libgomp/109875
1086 * config/gcn/target.c (GOMP_teams4): Honor nteams-var ICV.
1087 * config/nvptx/target.c (GOMP_teams4): Likewise.
1088 * testsuite/libgomp.c-c++-common/teams-nteams-icv-1.c: New test.
1089 * testsuite/libgomp.c-c++-common/teams-nteams-icv-2.c: New test.
1090 * testsuite/libgomp.c-c++-common/teams-nteams-icv-3.c: New test.
1091 * testsuite/libgomp.c-c++-common/teams-nteams-icv-4.c: New test.
1092
5df01f89
GA
10932023-05-19 Jakub Jelinek <jakub@redhat.com>
1094
1095 PR libgomp/109904
1096 * configure.ac (link_gomp): Include also $DL_LIBS.
1097 * configure: Regenerated.
1098
ff2dcddf
GA
10992023-05-17 Tobias Burnus <tobias@codesourcery.com>
1100
1101 * testsuite/libgomp.fortran/target-enter-data-3.f90: Uncomment
1102 'target exit data'.
1103 * testsuite/libgomp.fortran/target-enter-data-4.f90: New test.
1104 * testsuite/libgomp.fortran/target-enter-data-5.f90: New test.
1105 * testsuite/libgomp.fortran/target-enter-data-6.f90: New test.
1106 * testsuite/libgomp.fortran/target-enter-data-7.f90: New test.
1107
3427b51b
GA
11082023-05-15 Thomas Schwinge <thomas@codesourcery.com>
1109
1110 PR testsuite/66005
1111 * configure.ac: Look for 'flock'.
1112 * testsuite/Makefile.am (gcc_test_parallel_slots): Enable parallel testing.
1113 * testsuite/config/default.exp: Don't 'load_lib "standard.exp"' here...
1114 * testsuite/lib/libgomp.exp: ... but here, instead.
1115 (libgomp_load): Override for parallel testing.
1116 * testsuite/libgomp-site-extra.exp.in (FLOCK): Set.
1117 * configure: Regenerate.
1118 * Makefile.in: Regenerate.
1119 * testsuite/Makefile.in: Regenerate.
1120
11212023-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1122 Thomas Schwinge <thomas@codesourcery.com>
1123
1124 PR testsuite/66005
1125 * testsuite/Makefile.am (PWD_COMMAND): New variable.
1126 (%/site.exp): New target.
1127 (check_p_numbers0, check_p_numbers1, check_p_numbers2)
1128 (check_p_numbers3, check_p_numbers4, check_p_numbers5)
1129 (check_p_numbers6, check_p_numbers, gcc_test_parallel_slots)
1130 (check_p_subdirs)
1131 (check_DEJAGNU_libgomp_targets): New variables.
1132 ($(check_DEJAGNU_libgomp_targets)): New target.
1133 ($(check_DEJAGNU_libgomp_targets)): New dependency.
1134 (check-DEJAGNU $(check_DEJAGNU_libgomp_targets)): New targets.
1135 * testsuite/Makefile.in: Regenerate.
1136 * testsuite/lib/libgomp.exp: For parallel testing,
1137 'load_file ../libgomp-test-support.exp'.
1138
11392023-05-15 Thomas Schwinge <thomas@codesourcery.com>
1140
1141 PR testsuite/91884
1142 * configure.ac: 'AC_SUBST(CXX)'.
1143 * configure: Regenerate.
1144 * Makefile.in: Likewise.
1145 * testsuite/Makefile.in: Likewise.
1146 * testsuite/libgomp-site-extra.exp.in (GXX_UNDER_TEST)
1147 (GFORTRAN_UNDER_TEST): Set.
1148 * testsuite/lib/libgomp.exp (libgomp_init): Adjust.
1149 * testsuite/libgomp.c++/c++.exp: Use 'GXX_UNDER_TEST'.
1150 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1151 * testsuite/libgomp.fortran/fortran.exp: Use
1152 'GFORTRAN_UNDER_TEST'.
1153 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1154
11552023-05-15 Thomas Schwinge <thomas@codesourcery.com>
1156
1157 PR testsuite/91884
1158 * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't
1159 specify compiler.
1160 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Specify compiler.
1161 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
1162 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
1163 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
1164 Likewise.
1165 * testsuite/libgomp.oacc-c++/c++.exp (ALWAYS_CFLAGS): Likewise.
1166 * testsuite/libgomp.oacc-c/c.exp (ALWAYS_CFLAGS): Likewise.
1167 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS):
1168 Likewise.
1169
20ca33db
GA
11702023-05-12 Tobias Burnus <tobias@codesourcery.com>
1171
1172 PR libstdc++/109816
1173 * testsuite/libgomp.c++/target-map-class-1.C: New test.
1174 * testsuite/libgomp.c++/target-map-class-2.C: New test.
1175
11762023-05-12 Thomas Schwinge <thomas@codesourcery.com>
1177
1178 * testsuite/lib/libgomp.exp (libgomp_target_compile): Generalize
1179 'lang_library_path' into a list of 'lang_library_paths'.
1180 * testsuite/libgomp.c++/c++.exp: Adjust.
1181 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1182 * testsuite/libgomp.fortran/fortran.exp: Adjust. Use that for
1183 libquadmath, too.
1184 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1185
11862023-05-12 Thomas Schwinge <thomas@codesourcery.com>
1187
1188 * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't look
1189 at 'lang_test_file_found'.
1190 * testsuite/libgomp.c++/c++.exp: Don't set and use it, and instead
1191 'return' early if not able to test. Simplify 'ld_library_path' setup.
1192 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1193 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1194 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1195
11962023-05-12 Thomas Schwinge <thomas@codesourcery.com>
1197
1198 * testsuite/libgomp.c++/c++.exp: Resolve 'lang_test_file_found'
1199 first.
1200 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1201 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1202 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1203
12042023-05-12 Thomas Schwinge <thomas@codesourcery.com>
1205
1206 * testsuite/libgomp.c++/c++.exp: Localize 'lang_[...]' etc.
1207 * testsuite/libgomp.c/c.exp: Likewise.
1208 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1209 * testsuite/libgomp.graphite/graphite.exp: Likewise.
1210 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1211 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1212 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1213
35e324da
GA
12142023-05-09 Thomas Schwinge <thomas@codesourcery.com>
1215
1216 * testsuite/libgomp.c++/c++.exp: Don't set 'lang_test_file'.
1217 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1218 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1219 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1220 * testsuite/libgomp.c/c.exp: Unset 'lang_test_file_found' instead of
1221 'lang_test_file'.
1222 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1223 * testsuite/libgomp.graphite/graphite.exp: Likewise.
1224 * testsuite/lib/libgomp.exp (libgomp_target_compile): Look for
1225 'lang_test_file_found' instead of 'lang_test_file'.
1226
12272023-05-09 Thomas Schwinge <thomas@codesourcery.com>
1228
1229 * testsuite/lib/libgomp.exp (libgomp_init): Only use 'blddir' if
1230 set.
1231 * testsuite/libgomp.c++/c++.exp: Likewise.
1232 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1233
12342023-05-09 Thomas Schwinge <thomas@codesourcery.com>
1235
1236 * testsuite/libgomp.c++/c++.exp (blddir): Don't set.
1237 * testsuite/libgomp.oacc-c++/c++.exp (blddir): Likewise.
1238
212905a4
GA
12392023-05-08 Thomas Schwinge <thomas@codesourcery.com>
1240
1241 * testsuite/libgomp.c++/c++.exp: Use 'lang_include_flags' instead
1242 of 'libstdcxx_includes'.
1243 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1244
12452023-05-08 Thomas Schwinge <thomas@codesourcery.com>
1246
1247 * target.c (gomp_target_rev): Instead of 'dev_to_host_cpy',
1248 'host_to_dev_cpy', 'token', take a single 'goacc_asyncqueue'.
1249 * libgomp.h (gomp_target_rev): Adjust.
1250 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): Adjust.
1251 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): Adjust.
1252 * plugin/plugin-gcn.c (process_reverse_offload): Adjust.
1253 * plugin/plugin-nvptx.c (rev_off_dev_to_host_cpy)
1254 (rev_off_host_to_dev_cpy): Remove.
1255 (GOMP_OFFLOAD_run): Adjust.
1256
fde093b7
GA
12572023-05-04 Julian Brown <julian@codesourcery.com>
1258
1259 PR fortran/109622
1260 * testsuite/libgomp.fortran/pr109622.f90: Move test...
1261 * testsuite/libgomp.oacc-fortran/pr109622.f90: ...to here. Ignore
1262 vector length warning.
1263 * testsuite/libgomp.fortran/pr109622-2.f90: Move test...
1264 * testsuite/libgomp.oacc-fortran/pr109622-2.f90: ...to here. Add
1265 missing copyin/copyout variable. Ignore vector length warnings.
1266 * testsuite/libgomp.fortran/pr109622-3.f90: Move test...
1267 * testsuite/libgomp.oacc-fortran/pr109622-3.f90: ...to here. Ignore
1268 vector length warnings.
1269 * testsuite/libgomp.oacc-fortran/pr109622-4.f90: New test.
1270
50205195
GA
12712023-04-28 Julian Brown <julian@codesourcery.com>
1272
1273 PR fortran/109622
1274 * testsuite/libgomp.fortran/pr109622.f90: New test.
1275 * testsuite/libgomp.fortran/pr109622-2.f90: New test.
1276 * testsuite/libgomp.fortran/pr109622-3.f90: New test.
1277
49cea02d
GA
12782023-04-25 Tobias Burnus <tobias@codesourcery.com>
1279
1280 * testsuite/libgomp.c-c++-common/scan-1.c: New test.
1281 * testsuite/libgomp.c/scan-23.c: New test.
1282 * testsuite/libgomp.fortran/scan-2.f90: New test.
1283
579cdc1e
GA
12842023-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1285
1286 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Add
1287 weak_undefined options.
1288
13ec81eb
GA
12892023-03-24 Tobias Burnus <tobias@codesourcery.com>
1290
1291 * libgomp.texi (Offload-Target Specifics): Grammar fix.
1292
12932023-03-24 Thomas Schwinge <thomas@codesourcery.com>
1294
1295 PR fortran/104949
1296 * target.c (gomp_map_vars_internal) <GOMP_MAP_FIRSTPRIVATE>: Add
1297 caveat/safeguard.
1298
c8065441
GA
12992023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1300
1301 PR libgomp/90596
1302 * target.c (gomp_map_vars_internal): Allow for
1303 'param_kind == GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_TARGET'.
1304 * oacc-parallel.c (GOACC_parallel_keyed): Pass
1305 'GOMP_MAP_VARS_TARGET' to 'goacc_map_vars'.
1306 * plugin/plugin-gcn.c (alloc_by_agent, gcn_exec)
1307 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
1308 Adjust, simplify.
1309 (gomp_offload_free): Remove.
1310 * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
1311 (GOMP_OFFLOAD_openacc_async_exec): Adjust, simplify.
1312 (cuda_free_argmem): Remove.
1313 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1314 Adjust.
1315
13162023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1317
1318 * target.c (gomp_copy_host2dev, gomp_map_vars_internal): Allow
1319 libgomp 'cbuf' buffering with OpenACC 'async' for 'ephemeral'
1320 data.
1321
13222023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1323
1324 * target.c (gomp_map_vars_internal): Use 'OFFSET_INLINED' for
1325 'GOMP_MAP_IF_PRESENT'.
1326 * plugin/plugin-gcn.c (gcn_exec, GOMP_OFFLOAD_openacc_exec)
1327 (GOMP_OFFLOAD_openacc_async_exec): Adjust.
1328 * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
1329 (GOMP_OFFLOAD_openacc_async_exec): Likewise.
1330 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: Add 'async'
1331 testing.
1332 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: Likewise.
1333
13342023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1335
1336 * oacc-async.c (goacc_wait): Remove 'acc_async_test' -> skip
1337 shortcut.
1338
13392023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1340
1341 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Document/verify
1342 another aspect of OpenACC 'async' semantics.
1343
13442023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1345
1346 * plugin/plugin-gcn.c (gcn_exec): Fix 'acc_ev_enqueue_launch_end'
1347 position.
1348 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1349 Verify 'acc_ev_alloc', 'acc_ev_free'.
1350
da2b9c6e
GA
13512023-03-09 Hongyu Wang <hongyu.wang@intel.com>
1352
1353 PR libgomp/109062
1354 * env.c (wait_policy): Initialize to -1.
1355 (initialize_icvs): Initialize icvs->wait_policy to -1.
1356 * testsuite/libgomp.c-c++-common/pr109062.c: New test.
1357
6a87fdd3
GA
13582023-03-08 Tobias Burnus <tobias@codesourcery.com>
1359
1360 * libgomp.texi (Offload-Target Specifics): Mention GCN_STACK_SIZE.
1361
14db9ed5
GA
13622023-03-02 Kwok Cheung Yeung <kcy@codesourcery.com>
1363 Paul-Antoine Arras <pa@codesourcery.com>
1364
1365 * testsuite/libgomp.c/simd-math-1.c: New testcase.
1366
c88a7c63
GA
13672023-03-01 Tobias Burnus <tobias@codesourcery.com>
1368
1369 PR middle-end/108546
1370 * testsuite/libgomp.fortran/is_device_ptr-3.f90: New test.
1371 * testsuite/libgomp.fortran/use_device_ptr-optional-4.f90: New test.
1372
b6f98991
GA
13732023-02-22 Thomas Schwinge <thomas@codesourcery.com>
1374
1375 * testsuite/libgomp.fortran/alloc-10.f90: Use
1376 '-Wno-complain-wrong-lang'.
1377 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
1378 * testsuite/libgomp.fortran/alloc-7.f90: Likewise.
1379 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
1380 * testsuite/libgomp.fortran/allocate-1.f90: Likewise.
1381 * testsuite/libgomp.fortran/depend-4.f90: Likewise.
1382 * testsuite/libgomp.fortran/depend-5.f90: Likewise.
1383 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
1384 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
1385 * testsuite/libgomp.fortran/depend-inoutset-1.f90: Likewise.
1386 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90:
1387 Likewise.
1388 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90:
1389 Likewise.
1390 * testsuite/libgomp.fortran/order-reproducible-1.f90: Likewise.
1391 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
1392 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1393 * testsuite/libgomp.fortran/task-detach-6.f90: Remove left-over
1394 'dg-prune-output'.
1395
88cc4495
GA
13962023-02-16 Jakub Jelinek <jakub@redhat.com>
1397
1398 * libgomp.texi: Fix typos - theads -> threads.
1399
14002023-02-16 Jakub Jelinek <jakub@redhat.com>
1401
1402 * testsuite/libgomp.fortran/target-nowait-array-section.f90: Fix
1403 comment typo and improve its wording.
1404
29a35391
GA
14052023-02-15 Tobias Burnus <tobias@codesourcery.com>
1406
1407 * target.c (gomp_target_rev): Dereference ptr
1408 to get device address.
1409 * testsuite/libgomp.fortran/reverse-offload-5.f90: Add test
1410 for unallocated allocatable.
1411
14122023-02-15 Tobias Burnus <tobias@codesourcery.com>
1413
1414 * target.c (gomp_map_vars_internal): Add 'i > 0' before doing a
1415 kind check.
1416 (GOMP_target_enter_exit_data): If the next map item is
1417 GOMP_MAP_ALWAYS_POINTER map it together with the current item.
1418 * testsuite/libgomp.fortran/target-enter-data-3.f90: New test.
1419
e92e2c96
GA
14202023-02-09 Tobias Burnus <tobias@codesourcery.com>
1421
1422 PR fortran/107424
1423 * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: New test.
1424 * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: New test.
1425 * testsuite/libgomp.fortran/non-rectangular-loop-2.f90: New test.
1426 * testsuite/libgomp.fortran/non-rectangular-loop-3.f90: New test.
1427 * testsuite/libgomp.fortran/non-rectangular-loop-4.f90: New test.
1428 * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: New test.
1429
8f3b85ef
GA
14302023-02-07 Thomas Schwinge <thomas@codesourcery.com>
1431
1432 * testsuite/libgomp.fortran/reverse-offload-6.f90: Fix nvptx
1433 offloading compilation.
1434
49e52115
GA
14352023-02-03 Tobias Burnus <tobias@codesourcery.com>
1436
1437 * target.c (gomp_target_rev): Handle mapnum == 0 and avoid
1438 freeing not allocated memory.
1439 * testsuite/libgomp.fortran/reverse-offload-6.f90: New test.
1440
14412023-02-03 Tobias Burnus <tobias@codesourcery.com>
1442
1443 * libgomp.texi (5.0 Impl. Status, gcn specifics): Update for
1444 reverse offload.
1445 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Accept
1446 reverse-offload requirement.
1447
a37a0cb3
GA
14482023-02-02 Andrew Stubbs <ams@codesourcery.com>
1449
1450 * config/gcn/libgomp-gcn.h (DEFAULT_GCN_STACK_SIZE): New define.
1451 (DEFAULT_TEAM_ARENA_SIZE): New define.
1452 (struct heap): Move to this file.
1453 (struct kernargs_abi): Likewise.
1454 * config/gcn/team.c (gomp_gcn_enter_kernel): Use team arena size from
1455 the kernargs.
1456 * libgomp.h: Include libgomp-gcn.h.
1457 (TEAM_ARENA_SIZE): Remove.
1458 (team_malloc): Update the error message.
1459 * plugin/plugin-gcn.c (struct kernargs): Move common content to
1460 struct kernargs_abi.
1461 (struct agent_info): Rename team arenas to ephemeral memories.
1462 (struct team_arena_list): Rename ....
1463 (struct ephemeral_memories_list): to this.
1464 (struct heap): Delete.
1465 (team_arena_size): New variable.
1466 (stack_size): New variable.
1467 (print_kernel_dispatch): Update debug messages.
1468 (init_environment_variables): Read GCN_TEAM_ARENA_SIZE.
1469 Read GCN_STACK_SIZE.
1470 (get_team_arena): Rename ...
1471 (configure_ephemeral_memories): ... to this, and set up stacks.
1472 (release_team_arena): Rename ...
1473 (release_ephemeral_memories): ... to this.
1474 (destroy_team_arenas): Rename ...
1475 (destroy_ephemeral_memories): ... to this.
1476 (create_kernel_dispatch): Add num_threads parameter.
1477 Adjust for kernargs_abi refactor and ephemeral memories.
1478 (release_kernel_dispatch): Adjust for ephemeral memories.
1479 (run_kernel): Pass thread-count to create_kernel_dispatch.
1480 (GOMP_OFFLOAD_init_device): Adjust for ephemeral memories.
1481 (GOMP_OFFLOAD_fini_device): Adjust for ephemeral memories.
1482
14832023-02-02 Tobias Burnus <tobias@codesourcery.com>
1484
1485 * libgomp.texi (OpenMP TR11): Fix item for 'strict' modifier.
1486
0a251e74
GA
14872023-02-01 Tobias Burnus <tobias@codesourcery.com>
1488
1489 * testsuite/libgomp.fortran/allocate-3.f90: Fix ALIGN
1490 usage, remove unused -fdump-tree-original.
1491 * testsuite/libgomp.fortran/allocate-4.f90: New.
1492
14932023-02-01 Tobias Burnus <tobias@codesourcery.com>
1494
1495 * libgomp.texi (5.0 Impl. Status): Update 'requires' and 'ancestor'.
1496 (GCN): Add item about 'omp requires'.
1497 (nvptx): Likewise; add item about reverse offload.
1498
338eb0f0
GA
14992023-01-27 Tobias Burnus <tobias@codesourcery.com>
1500
1501 PR fortran/108558
1502 * testsuite/libgomp.fortran/has_device_addr.f90: New test.
1503
607f278a
GA
15042023-01-23 Tobias Burnus <tobias@codesourcery.com>
1505
1506 * libgomp.texi (OpenMP 5.0): Set non-rectangular
1507 loop nest back to 'P' as Fortran support is incomplete.
1508
0846336d
GA
15092023-01-19 Jakub Jelinek <jakub@redhat.com>
1510
1511 PR middle-end/108459
1512 * testsuite/libgomp.c/pr108459.c: New test.
1513
8d07b193
GA
15142023-01-17 Martin Liska <mliska@suse.cz>
1515
1516 * Makefile.in: Regenerate.
1517 * configure: Regenerate.
1518
d901bf8a
GA
15192023-01-07 LIU Hao <lh_mouse@126.com>
1520
1521 PR middle-end/108300
1522 * config/mingw32/proc.c: Define `WIN32_LEAN_AND_MEAN` before
1523 <windows.h>.
1524
53ef7c1d
GA
15252023-01-05 Jakub Jelinek <jakub@redhat.com>
1526
1527 PR c++/108286
1528 * testsuite/libgomp.c++/pr108286.C: New test.
1529
fee53a31
GA
15302023-01-02 Jakub Jelinek <jakub@redhat.com>
1531
1532 * libgomp.texi: Bump @copying's copyright year.
1533
de282a20
GA
15342022-12-21 Chung-Lin Tang <cltang@codesourcery.com>
1535
1536 PR target/99555
1537 * config/nvptx/bar.c (generation_to_barrier): Remove.
1538 (futex_wait,futex_wake,do_spin,do_wait): Remove.
1539 (GOMP_WAIT_H): Remove.
1540 (#include "../linux/bar.c"): Remove.
1541 (gomp_barrier_wait_end): New function.
1542 (gomp_barrier_wait): Likewise.
1543 (gomp_barrier_wait_last): Likewise.
1544 (gomp_team_barrier_wait_end): Likewise.
1545 (gomp_team_barrier_wait): Likewise.
1546 (gomp_team_barrier_wait_final): Likewise.
1547 (gomp_team_barrier_wait_cancel_end): Likewise.
1548 (gomp_team_barrier_wait_cancel): Likewise.
1549 (gomp_team_barrier_cancel): Likewise.
1550 * config/nvptx/bar.h (gomp_barrier_t): Remove waiters, lock fields.
1551 (gomp_barrier_init): Remove init of waiters, lock fields.
1552 (gomp_team_barrier_wake): Remove prototype, add new static inline
1553 function.
1554
15552022-12-21 Jakub Jelinek <jakub@redhat.com>
1556
1557 PR c++/108180
1558 * testsuite/libgomp.c++/pr108180.C: New test.
1559
5fb1e674
GA
15602022-12-16 Tobias Burnus <tobias@codesourcery.com>
1561
1562 PR libfortran/108056
1563 * testsuite/libgomp.fortran/allocate-4.f90: Remove
1564 accidentally added file.
1565
c8f767b2
GA
15662022-12-15 Tobias Burnus <tobias@codesourcery.com>
1567
1568 PR libfortran/108056
1569 * testsuite/libgomp.fortran/allocate-4.f90: New file.
1570
26f4aefa
GA
15712022-12-14 Julian Brown <julian@codesourcery.com>
1572
1573 * testsuite/libgomp.fortran/combined-directive-splitting-1.f90: New
1574 test.
1575
c6b12b80
GA
15762022-12-10 Tobias Burnus <tobias@codesourcery.com>
1577
1578 * libgomp.h (struct target_mem_desc): Predeclare; move
1579 below after 'reverse_splay_tree_node' and add rev_array
1580 member.
1581 (struct reverse_splay_tree_key_s, reverse_splay_compare): New.
1582 (reverse_splay_tree_node, reverse_splay_tree,
1583 reverse_splay_tree_key): New typedef.
1584 (struct gomp_device_descr): Add mem_map_rev member.
1585 * oacc-host.c (host_dispatch): NULL init .mem_map_rev.
1586 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Claim
1587 support for GOMP_REQUIRES_REVERSE_OFFLOAD.
1588 * splay-tree.h (splay_tree_callback_stop): New typedef; like
1589 splay_tree_callback but returning int not void.
1590 (splay_tree_foreach_lazy): Define; like splay_tree_foreach but
1591 taking splay_tree_callback_stop as argument.
1592 * splay-tree.c (splay_tree_foreach_internal_lazy,
1593 splay_tree_foreach_lazy): New; but early exit if callback returns
1594 nonzero.
1595 * target.c: Instatiate splay_tree_c with splay_tree_prefix 'reverse'.
1596 (gomp_map_lookup_rev): New.
1597 (gomp_load_image_to_device): Handle reverse-offload function
1598 lookup table.
1599 (gomp_unload_image_from_device): Free devicep->mem_map_rev.
1600 (struct gomp_splay_tree_rev_lookup_data, gomp_splay_tree_rev_lookup,
1601 gomp_map_rev_lookup, struct cpy_data, gomp_map_cdata_lookup_int,
1602 gomp_map_cdata_lookup): New auxiliary structs and functions for
1603 gomp_target_rev.
1604 (gomp_target_rev): Implement reverse offloading and its mapping.
1605 (gomp_target_init): Init current_device.mem_map_rev.root.
1606 * testsuite/libgomp.fortran/reverse-offload-2.f90: New test.
1607 * testsuite/libgomp.fortran/reverse-offload-3.f90: New test.
1608 * testsuite/libgomp.fortran/reverse-offload-4.f90: New test.
1609 * testsuite/libgomp.fortran/reverse-offload-5.f90: New test.
1610 * testsuite/libgomp.fortran/reverse-offload-5a.f90: New test without
1611 mapping of on-device allocated variables.
1612
40ce6485
GA
16132022-12-09 Tobias Burnus <tobias@codesourcery.com>
1614
1615 * libgomp.texi (5.1 Impl. Status): Split allocate clause/directive
1616 item about 'align'; mark clause as 'Y' and directive as 'N'.
1617 * testsuite/libgomp.fortran/allocate-2.f90: New test.
1618 * testsuite/libgomp.fortran/allocate-3.f90: New test.
1619
3fe66f7f
GA
16202022-12-06 Marcel Vollweiler <marcel@codesourcery.com>
1621
1622 * config/gcn/icv-device.c (omp_get_teams_thread_limit): Added to
1623 allow processing of device-specific values.
1624 (omp_set_teams_thread_limit): Likewise.
1625 (ialias): Likewise.
1626 * config/nvptx/icv-device.c (omp_get_teams_thread_limit): Likewise.
1627 (omp_set_teams_thread_limit): Likewise.
1628 (ialias): Likewise.
1629 * icv-device.c (omp_get_teams_thread_limit): Likewise.
1630 (ialias): Likewise.
1631 (omp_set_teams_thread_limit): Likewise.
1632 * icv.c (omp_set_teams_thread_limit): Removed.
1633 (omp_get_teams_thread_limit): Likewise.
1634 (ialias): Likewise.
1635 * libgomp.texi: Updated documentation for nvptx and gcn corresponding
1636 to the limitation of the number of teams.
1637 * plugin/plugin-gcn.c (limit_teams): New helper function that limits
1638 the number of teams by twice the number of compute units.
1639 (parse_target_attributes): Limit the number of teams on gcn offload
1640 devices.
1641 * target.c (get_gomp_offload_icvs): Added teams_thread_limit_var
1642 handling.
1643 (gomp_load_image_to_device): Added a size check for the ICVs struct
1644 variable.
1645 (gomp_copy_back_icvs): New function that is used in GOMP_target_ext to
1646 copy back the ICV values from device to host.
1647 (GOMP_target_ext): Update the number of teams and threads in the kernel
1648 args also considering device-specific values.
1649 * testsuite/libgomp.c-c++-common/icv-4.c: Fixed an error in the reading
1650 of OMP_TEAMS_THREAD_LIMIT from the environment.
1651 * testsuite/libgomp.c-c++-common/icv-5.c: Extended.
1652 * testsuite/libgomp.c-c++-common/icv-6.c: Extended.
1653 * testsuite/libgomp.c-c++-common/icv-7.c: Extended.
1654 * testsuite/libgomp.c-c++-common/icv-9.c: New test.
1655 * testsuite/libgomp.fortran/icv-5.f90: New test.
1656 * testsuite/libgomp.fortran/icv-6.f90: New test.
1657
16582022-12-06 Tobias Burnus <tobias@codesourcery.com>
1659
1660 * libgomp.texi (OpenMP 5.2): Add missing 'the'.
1661 (TR11): Add missing '@tab N @tab'.
1662
6eea85a9
GA
16632022-11-30 Tobias Burnus <tobias@codesourcery.com>
1664
1665 * libgomp.texi (OpenMP Context Selectors): Add 'gfx803' to gcn's isa.
1666
16672022-11-30 Paul-Antoine Arras <pa@codesourcery.com>
1668
1669 * testsuite/libgomp.c/declare-variant-4-fiji.c: New test.
1670 * testsuite/libgomp.c/declare-variant-4-gfx803.c: New test.
1671 * testsuite/libgomp.c/declare-variant-4-gfx900.c: New test.
1672 * testsuite/libgomp.c/declare-variant-4-gfx906.c: New test.
1673 * testsuite/libgomp.c/declare-variant-4-gfx908.c: New test.
1674 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: New test.
1675 * testsuite/libgomp.c/declare-variant-4.h: New header file.
1676
b7748535
GA
16772022-11-28 Tobias Burnus <tobias@codesourcery.com>
1678
1679 * libgomp.texi (OpenMP 5.2): Mark end-directive as Y.
1680
d769c504
GA
16812022-11-25 Sandra Loosemore <sandra@codesourcery.com>
1682
1683 * testsuite/lib/libgomp.exp: Load scanoffloadipa.exp library.
1684 * testsuite/libgomp.c/target-simd-clone-1.c: New.
1685 * testsuite/libgomp.c/target-simd-clone-2.c: New.
1686 * testsuite/libgomp.c/target-simd-clone-3.c: New.
1687
16882022-11-25 Tobias Burnus <tobias@codesourcery.com>
1689
1690 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Use unsigned int
1691 for 'i' to match 'fn_entries'; regard absent GOMP_REV_OFFLOAD_VAR
1692 as valid and the code having no reverse-offload code.
1693 * testsuite/libgomp.c-c++-common/reverse-offload-2.c: New test.
1694
16952022-11-25 Tobias Burnus <tobias@codesourcery.com>
1696
1697 * libgomp.texi (OpenMP Implementation Status): Add three 5.1 items
1698 and status for Technical Report (TR) 11.
1699
8b7fee1d
GA
17002022-11-21 Tobias Burnus <tobias@codesourcery.com>
1701
1702 * config/gcn/libgomp-gcn.h (struct output):
1703 Remove 'msg_u64' from the union, change
1704 value_u64[2] to value_u64[6].
1705 * config/gcn/target.c (GOMP_target_ext): Update accordingly.
1706 * plugin/plugin-gcn.c (process_reverse_offload, console_output):
1707 Likewise.
1708
fb98ede8
GA
17092022-11-19 Tobias Burnus <tobias@codesourcery.com>
1710
1711 * config/gcn/libgomp-gcn.h: New file; contains
1712 struct output, declared previously in plugin-gcn.c.
1713 * config/gcn/target.c: Include it.
1714 (GOMP_ADDITIONAL_ICVS): Declare as extern var.
1715 (GOMP_target_ext): Handle reverse offload.
1716 * plugin/plugin-gcn.c: Include libgomp-gcn.h.
1717 (struct kernargs): Replace struct def by the one
1718 from libgomp-gcn.h for output_data.
1719 (process_reverse_offload): New.
1720 (console_output): Call it.
1721
80909529
GA
17222022-11-16 Tobias Burnus <tobias@codesourcery.com>
1723 Andrew Stubbs <ams@codesourcery.com>
1724
1725 * config/gcn/team.c (gomp_gcn_enter_kernel): Use
1726 __builtin_gcn_kernarg_ptr instead of asm ("s8").
1727
83d400bd
GA
17282022-11-14 Martin Liska <mliska@suse.cz>
1729
1730 Revert:
1731 2022-11-14 Martin Liska <mliska@suse.cz>
1732
1733 * doc/amd-radeon-gcn.rst: New file.
1734 * doc/conf.py: New file.
1735 * doc/copyright.rst: New file.
1736 * doc/cuda-streams-usage.rst: New file.
1737 * doc/enabling-openacc.rst: New file.
1738 * doc/enabling-openmp.rst: New file.
1739 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
1740 * doc/first-invocation-openacc-library-api.rst: New file.
1741 * doc/funding.rst: New file.
1742 * doc/general-public-license-3.rst: New file.
1743 * doc/gnu-free-documentation-license.rst: New file.
1744 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
1745 * doc/index.rst: New file.
1746 * doc/indices-and-tables.rst: New file.
1747 * doc/introduction.rst: New file.
1748 * doc/memory-allocation-with-libmemkind.rst: New file.
1749 * doc/nvptx.rst: New file.
1750 * doc/offload-target-specifics.rst: New file.
1751 * doc/openacc-environment-variables.rst: New file.
1752 * doc/openacc-environment-variables/accdevicenum.rst: New file.
1753 * doc/openacc-environment-variables/accdevicetype.rst: New file.
1754 * doc/openacc-environment-variables/accproflib.rst: New file.
1755 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
1756 * doc/openacc-introduction.rst: New file.
1757 * doc/openacc-library-and-environment-variables.rst: New file.
1758 * doc/openacc-library-interoperability.rst: New file.
1759 * doc/openacc-profiling-interface.rst: New file.
1760 * doc/openacc-runtime-library-routines.rst: New file.
1761 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
1762 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
1763 * doc/openacc-runtime-library-routines/accattach.rst: New file.
1764 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
1765 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
1766 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
1767 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
1768 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
1769 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
1770 * doc/openacc-runtime-library-routines/accfree.rst: New file.
1771 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
1772 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
1773 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
1774 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
1775 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
1776 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
1777 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
1778 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
1779 * doc/openacc-runtime-library-routines/accinit.rst: New file.
1780 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
1781 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
1782 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
1783 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
1784 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
1785 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
1786 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
1787 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
1788 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
1789 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
1790 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
1791 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
1792 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
1793 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
1794 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
1795 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
1796 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
1797 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
1798 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
1799 * doc/openacc-runtime-library-routines/accwait.rst: New file.
1800 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
1801 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
1802 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
1803 * doc/openmp-context-selectors.rst: New file.
1804 * doc/openmp-environment-variables.rst: New file.
1805 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
1806 * doc/openmp-environment-variables/gompdebug.rst: New file.
1807 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
1808 * doc/openmp-environment-variables/gompspincount.rst: New file.
1809 * doc/openmp-environment-variables/gompstacksize.rst: New file.
1810 * doc/openmp-environment-variables/ompcancellation.rst: New file.
1811 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
1812 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
1813 * doc/openmp-environment-variables/ompdynamic.rst: New file.
1814 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
1815 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
1816 * doc/openmp-environment-variables/ompnested.rst: New file.
1817 * doc/openmp-environment-variables/ompnumteams.rst: New file.
1818 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
1819 * doc/openmp-environment-variables/ompplaces.rst: New file.
1820 * doc/openmp-environment-variables/ompprocbind.rst: New file.
1821 * doc/openmp-environment-variables/ompschedule.rst: New file.
1822 * doc/openmp-environment-variables/ompstacksize.rst: New file.
1823 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
1824 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
1825 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
1826 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
1827 * doc/openmp-implementation-specifics.rst: New file.
1828 * doc/openmp-implementation-status.rst: New file.
1829 * doc/openmp-implementation-status/openmp-45.rst: New file.
1830 * doc/openmp-implementation-status/openmp-50.rst: New file.
1831 * doc/openmp-implementation-status/openmp-51.rst: New file.
1832 * doc/openmp-implementation-status/openmp-52.rst: New file.
1833 * doc/openmp-runtime-library-routines.rst: New file.
1834 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
1835 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
1836 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
1837 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
1838 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
1839 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
1840 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
1841 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
1842 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
1843 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
1844 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
1845 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
1846 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
1847 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
1848 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
1849 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
1850 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
1851 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
1852 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
1853 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
1854 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
1855 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
1856 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
1857 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
1858 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
1859 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
1860 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
1861 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
1862 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
1863 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
1864 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
1865 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
1866 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
1867 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
1868 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
1869 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
1870 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
1871 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
1872 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
1873 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
1874 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
1875 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
1876 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
1877 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
1878 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
1879 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
1880 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
1881 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
1882 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
1883 * doc/reporting-bugs.rst: New file.
1884 * doc/the-libgomp-abi.rst: New file.
1885 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
1886 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
1887 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
1888 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1889 New file.
1890 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
1891 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
1892 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
1893 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
1894 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
1895 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
1896 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
1897 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
1898 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
1899 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
1900 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
1901
19022022-11-14 Martin Liska <mliska@suse.cz>
1903
1904 Revert:
1905 2022-11-14 Martin Liska <mliska@suse.cz>
1906
1907 * Makefile.in: Support Sphinx based documentation.
1908
19092022-11-14 Martin Liska <mliska@suse.cz>
1910
1911 Revert:
1912 2022-11-14 Martin Liska <mliska@suse.cz>
1913
1914 * libgomp.texi: Removed.
1915
19162022-11-14 Martin Liska <mliska@suse.cz>
1917
1918 Revert:
1919 2022-11-14 Martin Liska <mliska@suse.cz>
1920
1921 * Makefile.in: Support --with-sphinx-build.
1922 * configure.ac: Likewise..
1923 * configure: Regenerate.
1924
19252022-11-14 Martin Liska <mliska@suse.cz>
1926
1927 Revert:
1928 2022-11-09 Martin Liska <mliska@suse.cz>
1929
1930 * Makefile.in: Build info pages conditionally.
1931
19322022-11-14 Martin Liska <mliska@suse.cz>
1933
1934 Revert:
1935 2022-11-14 Martin Liska <mliska@suse.cz>
1936
1937 * doc/amd-radeon-gcn.rst:
3d3b561f 1938 Add trailing newline.
83d400bd 1939 * doc/copyright.rst:
3d3b561f 1940 Add trailing newline.
83d400bd 1941 * doc/cuda-streams-usage.rst:
3d3b561f 1942 Add trailing newline.
83d400bd 1943 * doc/enabling-openacc.rst:
3d3b561f 1944 Add trailing newline.
83d400bd 1945 * doc/enabling-openmp.rst:
3d3b561f 1946 Add trailing newline.
83d400bd 1947 * doc/first-invocation-nvidia-cublas-library-api.rst:
3d3b561f 1948 Add trailing newline.
83d400bd 1949 * doc/first-invocation-openacc-library-api.rst:
3d3b561f 1950 Add trailing newline.
83d400bd 1951 * doc/funding.rst:
3d3b561f 1952 Add trailing newline.
83d400bd 1953 * doc/general-public-license-3.rst:
3d3b561f 1954 Add trailing newline.
83d400bd 1955 * doc/gnu-free-documentation-license.rst:
3d3b561f 1956 Add trailing newline.
83d400bd 1957 * doc/implementation-status-and-implementation-defined-behavior.rst:
3d3b561f 1958 Add trailing newline.
83d400bd 1959 * doc/index.rst:
3d3b561f 1960 Add trailing newline.
83d400bd 1961 * doc/indices-and-tables.rst:
3d3b561f 1962 Add trailing newline.
83d400bd 1963 * doc/introduction.rst:
3d3b561f 1964 Add trailing newline.
83d400bd 1965 * doc/memory-allocation-with-libmemkind.rst:
3d3b561f 1966 Add trailing newline.
83d400bd 1967 * doc/nvptx.rst:
3d3b561f 1968 Add trailing newline.
83d400bd 1969 * doc/offload-target-specifics.rst:
3d3b561f 1970 Add trailing newline.
83d400bd 1971 * doc/openacc-environment-variables.rst:
3d3b561f 1972 Add trailing newline.
83d400bd 1973 * doc/openacc-environment-variables/accdevicenum.rst:
3d3b561f 1974 Add trailing newline.
83d400bd 1975 * doc/openacc-environment-variables/accdevicetype.rst:
3d3b561f 1976 Add trailing newline.
83d400bd 1977 * doc/openacc-environment-variables/accproflib.rst:
3d3b561f 1978 Add trailing newline.
83d400bd 1979 * doc/openacc-environment-variables/gccaccnotify.rst:
3d3b561f 1980 Add trailing newline.
83d400bd 1981 * doc/openacc-introduction.rst:
3d3b561f 1982 Add trailing newline.
83d400bd 1983 * doc/openacc-library-and-environment-variables.rst:
3d3b561f 1984 Add trailing newline.
83d400bd 1985 * doc/openacc-library-interoperability.rst:
3d3b561f 1986 Add trailing newline.
83d400bd 1987 * doc/openacc-profiling-interface.rst:
3d3b561f 1988 Add trailing newline.
83d400bd 1989 * doc/openacc-runtime-library-routines.rst:
3d3b561f 1990 Add trailing newline.
83d400bd 1991 * doc/openacc-runtime-library-routines/accasynctest.rst:
3d3b561f 1992 Add trailing newline.
83d400bd 1993 * doc/openacc-runtime-library-routines/accasynctestall.rst:
3d3b561f 1994 Add trailing newline.
83d400bd 1995 * doc/openacc-runtime-library-routines/accattach.rst:
3d3b561f 1996 Add trailing newline.
83d400bd 1997 * doc/openacc-runtime-library-routines/acccopyin.rst:
3d3b561f 1998 Add trailing newline.
83d400bd 1999 * doc/openacc-runtime-library-routines/acccopyout.rst:
3d3b561f 2000 Add trailing newline.
83d400bd 2001 * doc/openacc-runtime-library-routines/acccreate.rst:
3d3b561f 2002 Add trailing newline.
83d400bd 2003 * doc/openacc-runtime-library-routines/accdelete.rst:
3d3b561f 2004 Add trailing newline.
83d400bd 2005 * doc/openacc-runtime-library-routines/accdetach.rst:
3d3b561f 2006 Add trailing newline.
83d400bd 2007 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
3d3b561f 2008 Add trailing newline.
83d400bd 2009 * doc/openacc-runtime-library-routines/accfree.rst:
3d3b561f 2010 Add trailing newline.
83d400bd 2011 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
3d3b561f 2012 Add trailing newline.
83d400bd 2013 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
3d3b561f 2014 Add trailing newline.
83d400bd 2015 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
3d3b561f 2016 Add trailing newline.
83d400bd 2017 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
3d3b561f 2018 Add trailing newline.
83d400bd 2019 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
3d3b561f 2020 Add trailing newline.
83d400bd 2021 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
3d3b561f 2022 Add trailing newline.
83d400bd 2023 * doc/openacc-runtime-library-routines/accgetproperty.rst:
3d3b561f 2024 Add trailing newline.
83d400bd 2025 * doc/openacc-runtime-library-routines/acchostptr.rst:
3d3b561f 2026 Add trailing newline.
83d400bd 2027 * doc/openacc-runtime-library-routines/accinit.rst:
3d3b561f 2028 Add trailing newline.
83d400bd 2029 * doc/openacc-runtime-library-routines/accispresent.rst:
3d3b561f 2030 Add trailing newline.
83d400bd 2031 * doc/openacc-runtime-library-routines/accmalloc.rst:
3d3b561f 2032 Add trailing newline.
83d400bd 2033 * doc/openacc-runtime-library-routines/accmapdata.rst:
3d3b561f 2034 Add trailing newline.
83d400bd 2035 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
3d3b561f 2036 Add trailing newline.
83d400bd 2037 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
3d3b561f 2038 Add trailing newline.
83d400bd 2039 * doc/openacc-runtime-library-routines/accondevice.rst:
3d3b561f 2040 Add trailing newline.
83d400bd 2041 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
3d3b561f 2042 Add trailing newline.
83d400bd 2043 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
3d3b561f 2044 Add trailing newline.
83d400bd 2045 * doc/openacc-runtime-library-routines/accproflookup.rst:
3d3b561f 2046 Add trailing newline.
83d400bd 2047 * doc/openacc-runtime-library-routines/accprofregister.rst:
3d3b561f 2048 Add trailing newline.
83d400bd 2049 * doc/openacc-runtime-library-routines/accprofunregister.rst:
3d3b561f 2050 Add trailing newline.
83d400bd 2051 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
3d3b561f 2052 Add trailing newline.
83d400bd 2053 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
3d3b561f 2054 Add trailing newline.
83d400bd 2055 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
3d3b561f 2056 Add trailing newline.
83d400bd 2057 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
3d3b561f 2058 Add trailing newline.
83d400bd 2059 * doc/openacc-runtime-library-routines/accshutdown.rst:
3d3b561f 2060 Add trailing newline.
83d400bd 2061 * doc/openacc-runtime-library-routines/accunmapdata.rst:
3d3b561f 2062 Add trailing newline.
83d400bd 2063 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
3d3b561f 2064 Add trailing newline.
83d400bd 2065 * doc/openacc-runtime-library-routines/accupdateself.rst:
3d3b561f 2066 Add trailing newline.
83d400bd 2067 * doc/openacc-runtime-library-routines/accwait.rst:
3d3b561f 2068 Add trailing newline.
83d400bd 2069 * doc/openacc-runtime-library-routines/accwaitall.rst:
3d3b561f 2070 Add trailing newline.
83d400bd 2071 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
3d3b561f 2072 Add trailing newline.
83d400bd 2073 * doc/openacc-runtime-library-routines/accwaitasync.rst:
3d3b561f 2074 Add trailing newline.
83d400bd 2075 * doc/openmp-context-selectors.rst:
3d3b561f 2076 Add trailing newline.
83d400bd 2077 * doc/openmp-environment-variables.rst:
3d3b561f 2078 Add trailing newline.
83d400bd 2079 * doc/openmp-environment-variables/gompcpuaffinity.rst:
3d3b561f 2080 Add trailing newline.
83d400bd 2081 * doc/openmp-environment-variables/gompdebug.rst:
3d3b561f 2082 Add trailing newline.
83d400bd 2083 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
3d3b561f 2084 Add trailing newline.
83d400bd 2085 * doc/openmp-environment-variables/gompspincount.rst:
3d3b561f 2086 Add trailing newline.
83d400bd 2087 * doc/openmp-environment-variables/gompstacksize.rst:
3d3b561f 2088 Add trailing newline.
83d400bd 2089 * doc/openmp-environment-variables/ompcancellation.rst:
3d3b561f 2090 Add trailing newline.
83d400bd 2091 * doc/openmp-environment-variables/ompdefaultdevice.rst:
3d3b561f 2092 Add trailing newline.
83d400bd 2093 * doc/openmp-environment-variables/ompdisplayenv.rst:
3d3b561f 2094 Add trailing newline.
83d400bd 2095 * doc/openmp-environment-variables/ompdynamic.rst:
3d3b561f 2096 Add trailing newline.
83d400bd 2097 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
3d3b561f 2098 Add trailing newline.
83d400bd 2099 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
3d3b561f 2100 Add trailing newline.
83d400bd 2101 * doc/openmp-environment-variables/ompnested.rst:
3d3b561f 2102 Add trailing newline.
83d400bd 2103 * doc/openmp-environment-variables/ompnumteams.rst:
3d3b561f 2104 Add trailing newline.
83d400bd 2105 * doc/openmp-environment-variables/ompnumthreads.rst:
3d3b561f 2106 Add trailing newline.
83d400bd 2107 * doc/openmp-environment-variables/ompplaces.rst:
3d3b561f 2108 Add trailing newline.
83d400bd 2109 * doc/openmp-environment-variables/ompprocbind.rst:
3d3b561f 2110 Add trailing newline.
83d400bd 2111 * doc/openmp-environment-variables/ompschedule.rst:
3d3b561f 2112 Add trailing newline.
83d400bd 2113 * doc/openmp-environment-variables/ompstacksize.rst:
3d3b561f 2114 Add trailing newline.
83d400bd 2115 * doc/openmp-environment-variables/omptargetoffload.rst:
3d3b561f 2116 Add trailing newline.
83d400bd 2117 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
3d3b561f 2118 Add trailing newline.
83d400bd 2119 * doc/openmp-environment-variables/ompthreadlimit.rst:
3d3b561f 2120 Add trailing newline.
83d400bd 2121 * doc/openmp-environment-variables/ompwaitpolicy.rst:
3d3b561f 2122 Add trailing newline.
83d400bd 2123 * doc/openmp-implementation-specifics.rst:
3d3b561f 2124 Add trailing newline.
83d400bd 2125 * doc/openmp-implementation-status.rst:
3d3b561f 2126 Add trailing newline.
83d400bd 2127 * doc/openmp-implementation-status/openmp-45.rst:
3d3b561f 2128 Add trailing newline.
83d400bd 2129 * doc/openmp-implementation-status/openmp-50.rst:
3d3b561f 2130 Add trailing newline.
83d400bd 2131 * doc/openmp-implementation-status/openmp-51.rst:
3d3b561f 2132 Add trailing newline.
83d400bd 2133 * doc/openmp-implementation-status/openmp-52.rst:
3d3b561f 2134 Add trailing newline.
83d400bd 2135 * doc/openmp-runtime-library-routines.rst:
3d3b561f 2136 Add trailing newline.
83d400bd 2137 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
3d3b561f 2138 Add trailing newline.
83d400bd 2139 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
3d3b561f 2140 Add trailing newline.
83d400bd 2141 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
3d3b561f 2142 Add trailing newline.
83d400bd 2143 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
3d3b561f 2144 Add trailing newline.
83d400bd 2145 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
3d3b561f 2146 Add trailing newline.
83d400bd 2147 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
3d3b561f 2148 Add trailing newline.
83d400bd 2149 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
3d3b561f 2150 Add trailing newline.
83d400bd 2151 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
3d3b561f 2152 Add trailing newline.
83d400bd 2153 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
3d3b561f 2154 Add trailing newline.
83d400bd 2155 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
3d3b561f 2156 Add trailing newline.
83d400bd 2157 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
3d3b561f 2158 Add trailing newline.
83d400bd 2159 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
3d3b561f 2160 Add trailing newline.
83d400bd 2161 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
3d3b561f 2162 Add trailing newline.
83d400bd 2163 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
3d3b561f 2164 Add trailing newline.
83d400bd 2165 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
3d3b561f 2166 Add trailing newline.
83d400bd 2167 * doc/openmp-runtime-library-routines/ompgetnested.rst:
3d3b561f 2168 Add trailing newline.
83d400bd 2169 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
3d3b561f 2170 Add trailing newline.
83d400bd 2171 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
3d3b561f 2172 Add trailing newline.
83d400bd 2173 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
3d3b561f 2174 Add trailing newline.
83d400bd 2175 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
3d3b561f 2176 Add trailing newline.
83d400bd 2177 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
3d3b561f 2178 Add trailing newline.
83d400bd 2179 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
3d3b561f 2180 Add trailing newline.
83d400bd 2181 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
3d3b561f 2182 Add trailing newline.
83d400bd 2183 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
3d3b561f 2184 Add trailing newline.
83d400bd 2185 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
3d3b561f 2186 Add trailing newline.
83d400bd 2187 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
3d3b561f 2188 Add trailing newline.
83d400bd 2189 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
3d3b561f 2190 Add trailing newline.
83d400bd 2191 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
3d3b561f 2192 Add trailing newline.
83d400bd 2193 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
3d3b561f 2194 Add trailing newline.
83d400bd 2195 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
3d3b561f 2196 Add trailing newline.
83d400bd 2197 * doc/openmp-runtime-library-routines/ompinfinal.rst:
3d3b561f 2198 Add trailing newline.
83d400bd 2199 * doc/openmp-runtime-library-routines/ompinitlock.rst:
3d3b561f 2200 Add trailing newline.
83d400bd 2201 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
3d3b561f 2202 Add trailing newline.
83d400bd 2203 * doc/openmp-runtime-library-routines/ompinparallel.rst:
3d3b561f 2204 Add trailing newline.
83d400bd 2205 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
3d3b561f 2206 Add trailing newline.
83d400bd 2207 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
3d3b561f 2208 Add trailing newline.
83d400bd 2209 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
3d3b561f 2210 Add trailing newline.
83d400bd 2211 * doc/openmp-runtime-library-routines/ompsetlock.rst:
3d3b561f 2212 Add trailing newline.
83d400bd 2213 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
3d3b561f 2214 Add trailing newline.
83d400bd 2215 * doc/openmp-runtime-library-routines/ompsetnested.rst:
3d3b561f 2216 Add trailing newline.
83d400bd 2217 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
3d3b561f 2218 Add trailing newline.
83d400bd 2219 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
3d3b561f 2220 Add trailing newline.
83d400bd 2221 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
3d3b561f 2222 Add trailing newline.
83d400bd 2223 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
3d3b561f 2224 Add trailing newline.
83d400bd 2225 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
3d3b561f 2226 Add trailing newline.
83d400bd 2227 * doc/openmp-runtime-library-routines/omptestlock.rst:
3d3b561f 2228 Add trailing newline.
83d400bd 2229 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
3d3b561f 2230 Add trailing newline.
83d400bd 2231 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
3d3b561f 2232 Add trailing newline.
83d400bd 2233 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
3d3b561f 2234 Add trailing newline.
83d400bd 2235 * doc/reporting-bugs.rst:
3d3b561f 2236 Add trailing newline.
83d400bd 2237 * doc/the-libgomp-abi.rst:
3d3b561f 2238 Add trailing newline.
83d400bd 2239 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
3d3b561f 2240 Add trailing newline.
83d400bd 2241 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
3d3b561f 2242 Add trailing newline.
83d400bd 2243 * doc/the-libgomp-abi/implementing-critical-construct.rst:
3d3b561f 2244 Add trailing newline.
83d400bd 2245 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
3d3b561f 2246 Add trailing newline.
83d400bd 2247 * doc/the-libgomp-abi/implementing-flush-construct.rst:
3d3b561f 2248 Add trailing newline.
83d400bd 2249 * doc/the-libgomp-abi/implementing-for-construct.rst:
3d3b561f 2250 Add trailing newline.
83d400bd 2251 * doc/the-libgomp-abi/implementing-master-construct.rst:
3d3b561f 2252 Add trailing newline.
83d400bd 2253 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
3d3b561f 2254 Add trailing newline.
83d400bd 2255 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
3d3b561f 2256 Add trailing newline.
83d400bd 2257 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
3d3b561f 2258 Add trailing newline.
83d400bd 2259 * doc/the-libgomp-abi/implementing-private-clause.rst:
3d3b561f 2260 Add trailing newline.
83d400bd 2261 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
3d3b561f 2262 Add trailing newline.
83d400bd 2263 * doc/the-libgomp-abi/implementing-sections-construct.rst:
3d3b561f 2264 Add trailing newline.
83d400bd 2265 * doc/the-libgomp-abi/implementing-single-construct.rst:
3d3b561f 2266 Add trailing newline.
83d400bd 2267 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
3d3b561f 2268 Add trailing newline.
83d400bd
GA
2269
22702022-11-14 Martin Liska <mliska@suse.cz>
2271
2272 Revert:
2273 2022-11-09 Martin Liska <mliska@suse.cz>
2274
2275 * Makefile.in: Add missing HAS_SPHINX_BUILD.
2276
22772022-11-14 Martin Liska <mliska@suse.cz>
2278
2279 Revert:
2280 2022-11-14 Martin Liska <mliska@suse.cz>
2281
2282 * doc/conf.py: Add newline at last line.
2283
22842022-11-14 Martin Liska <mliska@suse.cz>
2285
2286 Revert:
2287 2022-11-14 Martin Liska <mliska@suse.cz>
2288
2289 PR other/107620
2290 * configure: Regenerate.
2291 * configure.ac: Always set sphinx-build.
2292
eefbfbc7
GA
22932022-11-13 Martin Liska <mliska@suse.cz>
2294
2295 PR other/107620
2296 * configure: Regenerate.
2297 * configure.ac: Always set sphinx-build.
2298
30d77d49
GA
22992022-11-12 Jakub Jelinek <jakub@redhat.com>
2300
2301 PR libgomp/107641
2302 * env.c (parse_unsigned_long): Cast params[2] to uintptr_t rather than
2303 unsigned long. Change type of upper from unsigned to unsigned long.
2304
f225b813
GA
23052022-11-10 Martin Liska <mliska@suse.cz>
2306
2307 * doc/conf.py: Add newline at last line.
2308
1cdfd0e5
GA
23092022-11-09 Martin Liska <mliska@suse.cz>
2310
2311 * Makefile.in: Add missing HAS_SPHINX_BUILD.
2312
23132022-11-09 Martin Liska <mliska@suse.cz>
2314
2315 * doc/amd-radeon-gcn.rst:
3d3b561f 2316 Add trailing newline.
1cdfd0e5 2317 * doc/copyright.rst:
3d3b561f 2318 Add trailing newline.
1cdfd0e5 2319 * doc/cuda-streams-usage.rst:
3d3b561f 2320 Add trailing newline.
1cdfd0e5 2321 * doc/enabling-openacc.rst:
3d3b561f 2322 Add trailing newline.
1cdfd0e5 2323 * doc/enabling-openmp.rst:
3d3b561f 2324 Add trailing newline.
1cdfd0e5 2325 * doc/first-invocation-nvidia-cublas-library-api.rst:
3d3b561f 2326 Add trailing newline.
1cdfd0e5 2327 * doc/first-invocation-openacc-library-api.rst:
3d3b561f 2328 Add trailing newline.
1cdfd0e5 2329 * doc/funding.rst:
3d3b561f 2330 Add trailing newline.
1cdfd0e5 2331 * doc/general-public-license-3.rst:
3d3b561f 2332 Add trailing newline.
1cdfd0e5 2333 * doc/gnu-free-documentation-license.rst:
3d3b561f 2334 Add trailing newline.
1cdfd0e5 2335 * doc/implementation-status-and-implementation-defined-behavior.rst:
3d3b561f 2336 Add trailing newline.
1cdfd0e5 2337 * doc/index.rst:
3d3b561f 2338 Add trailing newline.
1cdfd0e5 2339 * doc/indices-and-tables.rst:
3d3b561f 2340 Add trailing newline.
1cdfd0e5 2341 * doc/introduction.rst:
3d3b561f 2342 Add trailing newline.
1cdfd0e5 2343 * doc/memory-allocation-with-libmemkind.rst:
3d3b561f 2344 Add trailing newline.
1cdfd0e5 2345 * doc/nvptx.rst:
3d3b561f 2346 Add trailing newline.
1cdfd0e5 2347 * doc/offload-target-specifics.rst:
3d3b561f 2348 Add trailing newline.
1cdfd0e5 2349 * doc/openacc-environment-variables.rst:
3d3b561f 2350 Add trailing newline.
1cdfd0e5 2351 * doc/openacc-environment-variables/accdevicenum.rst:
3d3b561f 2352 Add trailing newline.
1cdfd0e5 2353 * doc/openacc-environment-variables/accdevicetype.rst:
3d3b561f 2354 Add trailing newline.
1cdfd0e5 2355 * doc/openacc-environment-variables/accproflib.rst:
3d3b561f 2356 Add trailing newline.
1cdfd0e5 2357 * doc/openacc-environment-variables/gccaccnotify.rst:
3d3b561f 2358 Add trailing newline.
1cdfd0e5 2359 * doc/openacc-introduction.rst:
3d3b561f 2360 Add trailing newline.
1cdfd0e5 2361 * doc/openacc-library-and-environment-variables.rst:
3d3b561f 2362 Add trailing newline.
1cdfd0e5 2363 * doc/openacc-library-interoperability.rst:
3d3b561f 2364 Add trailing newline.
1cdfd0e5 2365 * doc/openacc-profiling-interface.rst:
3d3b561f 2366 Add trailing newline.
1cdfd0e5 2367 * doc/openacc-runtime-library-routines.rst:
3d3b561f 2368 Add trailing newline.
1cdfd0e5 2369 * doc/openacc-runtime-library-routines/accasynctest.rst:
3d3b561f 2370 Add trailing newline.
1cdfd0e5 2371 * doc/openacc-runtime-library-routines/accasynctestall.rst:
3d3b561f 2372 Add trailing newline.
1cdfd0e5 2373 * doc/openacc-runtime-library-routines/accattach.rst:
3d3b561f 2374 Add trailing newline.
1cdfd0e5 2375 * doc/openacc-runtime-library-routines/acccopyin.rst:
3d3b561f 2376 Add trailing newline.
1cdfd0e5 2377 * doc/openacc-runtime-library-routines/acccopyout.rst:
3d3b561f 2378 Add trailing newline.
1cdfd0e5 2379 * doc/openacc-runtime-library-routines/acccreate.rst:
3d3b561f 2380 Add trailing newline.
1cdfd0e5 2381 * doc/openacc-runtime-library-routines/accdelete.rst:
3d3b561f 2382 Add trailing newline.
1cdfd0e5 2383 * doc/openacc-runtime-library-routines/accdetach.rst:
3d3b561f 2384 Add trailing newline.
1cdfd0e5 2385 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
3d3b561f 2386 Add trailing newline.
1cdfd0e5 2387 * doc/openacc-runtime-library-routines/accfree.rst:
3d3b561f 2388 Add trailing newline.
1cdfd0e5 2389 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
3d3b561f 2390 Add trailing newline.
1cdfd0e5 2391 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
3d3b561f 2392 Add trailing newline.
1cdfd0e5 2393 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
3d3b561f 2394 Add trailing newline.
1cdfd0e5 2395 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
3d3b561f 2396 Add trailing newline.
1cdfd0e5 2397 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
3d3b561f 2398 Add trailing newline.
1cdfd0e5 2399 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
3d3b561f 2400 Add trailing newline.
1cdfd0e5 2401 * doc/openacc-runtime-library-routines/accgetproperty.rst:
3d3b561f 2402 Add trailing newline.
1cdfd0e5 2403 * doc/openacc-runtime-library-routines/acchostptr.rst:
3d3b561f 2404 Add trailing newline.
1cdfd0e5 2405 * doc/openacc-runtime-library-routines/accinit.rst:
3d3b561f 2406 Add trailing newline.
1cdfd0e5 2407 * doc/openacc-runtime-library-routines/accispresent.rst:
3d3b561f 2408 Add trailing newline.
1cdfd0e5 2409 * doc/openacc-runtime-library-routines/accmalloc.rst:
3d3b561f 2410 Add trailing newline.
1cdfd0e5 2411 * doc/openacc-runtime-library-routines/accmapdata.rst:
3d3b561f 2412 Add trailing newline.
1cdfd0e5 2413 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
3d3b561f 2414 Add trailing newline.
1cdfd0e5 2415 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
3d3b561f 2416 Add trailing newline.
1cdfd0e5 2417 * doc/openacc-runtime-library-routines/accondevice.rst:
3d3b561f 2418 Add trailing newline.
1cdfd0e5 2419 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
3d3b561f 2420 Add trailing newline.
1cdfd0e5 2421 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
3d3b561f 2422 Add trailing newline.
1cdfd0e5 2423 * doc/openacc-runtime-library-routines/accproflookup.rst:
3d3b561f 2424 Add trailing newline.
1cdfd0e5 2425 * doc/openacc-runtime-library-routines/accprofregister.rst:
3d3b561f 2426 Add trailing newline.
1cdfd0e5 2427 * doc/openacc-runtime-library-routines/accprofunregister.rst:
3d3b561f 2428 Add trailing newline.
1cdfd0e5 2429 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
3d3b561f 2430 Add trailing newline.
1cdfd0e5 2431 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
3d3b561f 2432 Add trailing newline.
1cdfd0e5 2433 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
3d3b561f 2434 Add trailing newline.
1cdfd0e5 2435 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
3d3b561f 2436 Add trailing newline.
1cdfd0e5 2437 * doc/openacc-runtime-library-routines/accshutdown.rst:
3d3b561f 2438 Add trailing newline.
1cdfd0e5 2439 * doc/openacc-runtime-library-routines/accunmapdata.rst:
3d3b561f 2440 Add trailing newline.
1cdfd0e5 2441 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
3d3b561f 2442 Add trailing newline.
1cdfd0e5 2443 * doc/openacc-runtime-library-routines/accupdateself.rst:
3d3b561f 2444 Add trailing newline.
1cdfd0e5 2445 * doc/openacc-runtime-library-routines/accwait.rst:
3d3b561f 2446 Add trailing newline.
1cdfd0e5 2447 * doc/openacc-runtime-library-routines/accwaitall.rst:
3d3b561f 2448 Add trailing newline.
1cdfd0e5 2449 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
3d3b561f 2450 Add trailing newline.
1cdfd0e5 2451 * doc/openacc-runtime-library-routines/accwaitasync.rst:
3d3b561f 2452 Add trailing newline.
1cdfd0e5 2453 * doc/openmp-context-selectors.rst:
3d3b561f 2454 Add trailing newline.
1cdfd0e5 2455 * doc/openmp-environment-variables.rst:
3d3b561f 2456 Add trailing newline.
1cdfd0e5 2457 * doc/openmp-environment-variables/gompcpuaffinity.rst:
3d3b561f 2458 Add trailing newline.
1cdfd0e5 2459 * doc/openmp-environment-variables/gompdebug.rst:
3d3b561f 2460 Add trailing newline.
1cdfd0e5 2461 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
3d3b561f 2462 Add trailing newline.
1cdfd0e5 2463 * doc/openmp-environment-variables/gompspincount.rst:
3d3b561f 2464 Add trailing newline.
1cdfd0e5 2465 * doc/openmp-environment-variables/gompstacksize.rst:
3d3b561f 2466 Add trailing newline.
1cdfd0e5 2467 * doc/openmp-environment-variables/ompcancellation.rst:
3d3b561f 2468 Add trailing newline.
1cdfd0e5 2469 * doc/openmp-environment-variables/ompdefaultdevice.rst:
3d3b561f 2470 Add trailing newline.
1cdfd0e5 2471 * doc/openmp-environment-variables/ompdisplayenv.rst:
3d3b561f 2472 Add trailing newline.
1cdfd0e5 2473 * doc/openmp-environment-variables/ompdynamic.rst:
3d3b561f 2474 Add trailing newline.
1cdfd0e5 2475 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
3d3b561f 2476 Add trailing newline.
1cdfd0e5 2477 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
3d3b561f 2478 Add trailing newline.
1cdfd0e5 2479 * doc/openmp-environment-variables/ompnested.rst:
3d3b561f 2480 Add trailing newline.
1cdfd0e5 2481 * doc/openmp-environment-variables/ompnumteams.rst:
3d3b561f 2482 Add trailing newline.
1cdfd0e5 2483 * doc/openmp-environment-variables/ompnumthreads.rst:
3d3b561f 2484 Add trailing newline.
1cdfd0e5 2485 * doc/openmp-environment-variables/ompplaces.rst:
3d3b561f 2486 Add trailing newline.
1cdfd0e5 2487 * doc/openmp-environment-variables/ompprocbind.rst:
3d3b561f 2488 Add trailing newline.
1cdfd0e5 2489 * doc/openmp-environment-variables/ompschedule.rst:
3d3b561f 2490 Add trailing newline.
1cdfd0e5 2491 * doc/openmp-environment-variables/ompstacksize.rst:
3d3b561f 2492 Add trailing newline.
1cdfd0e5 2493 * doc/openmp-environment-variables/omptargetoffload.rst:
3d3b561f 2494 Add trailing newline.
1cdfd0e5 2495 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
3d3b561f 2496 Add trailing newline.
1cdfd0e5 2497 * doc/openmp-environment-variables/ompthreadlimit.rst:
3d3b561f 2498 Add trailing newline.
1cdfd0e5 2499 * doc/openmp-environment-variables/ompwaitpolicy.rst:
3d3b561f 2500 Add trailing newline.
1cdfd0e5 2501 * doc/openmp-implementation-specifics.rst:
3d3b561f 2502 Add trailing newline.
1cdfd0e5 2503 * doc/openmp-implementation-status.rst:
3d3b561f 2504 Add trailing newline.
1cdfd0e5 2505 * doc/openmp-implementation-status/openmp-45.rst:
3d3b561f 2506 Add trailing newline.
1cdfd0e5 2507 * doc/openmp-implementation-status/openmp-50.rst:
3d3b561f 2508 Add trailing newline.
1cdfd0e5 2509 * doc/openmp-implementation-status/openmp-51.rst:
3d3b561f 2510 Add trailing newline.
1cdfd0e5 2511 * doc/openmp-implementation-status/openmp-52.rst:
3d3b561f 2512 Add trailing newline.
1cdfd0e5 2513 * doc/openmp-runtime-library-routines.rst:
3d3b561f 2514 Add trailing newline.
1cdfd0e5 2515 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
3d3b561f 2516 Add trailing newline.
1cdfd0e5 2517 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
3d3b561f 2518 Add trailing newline.
1cdfd0e5 2519 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
3d3b561f 2520 Add trailing newline.
1cdfd0e5 2521 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
3d3b561f 2522 Add trailing newline.
1cdfd0e5 2523 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
3d3b561f 2524 Add trailing newline.
1cdfd0e5 2525 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
3d3b561f 2526 Add trailing newline.
1cdfd0e5 2527 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
3d3b561f 2528 Add trailing newline.
1cdfd0e5 2529 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
3d3b561f 2530 Add trailing newline.
1cdfd0e5 2531 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
3d3b561f 2532 Add trailing newline.
1cdfd0e5 2533 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
3d3b561f 2534 Add trailing newline.
1cdfd0e5 2535 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
3d3b561f 2536 Add trailing newline.
1cdfd0e5 2537 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
3d3b561f 2538 Add trailing newline.
1cdfd0e5 2539 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
3d3b561f 2540 Add trailing newline.
1cdfd0e5 2541 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
3d3b561f 2542 Add trailing newline.
1cdfd0e5 2543 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
3d3b561f 2544 Add trailing newline.
1cdfd0e5 2545 * doc/openmp-runtime-library-routines/ompgetnested.rst:
3d3b561f 2546 Add trailing newline.
1cdfd0e5 2547 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
3d3b561f 2548 Add trailing newline.
1cdfd0e5 2549 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
3d3b561f 2550 Add trailing newline.
1cdfd0e5 2551 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
3d3b561f 2552 Add trailing newline.
1cdfd0e5 2553 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
3d3b561f 2554 Add trailing newline.
1cdfd0e5 2555 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
3d3b561f 2556 Add trailing newline.
1cdfd0e5 2557 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
3d3b561f 2558 Add trailing newline.
1cdfd0e5 2559 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
3d3b561f 2560 Add trailing newline.
1cdfd0e5 2561 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
3d3b561f 2562 Add trailing newline.
1cdfd0e5 2563 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
3d3b561f 2564 Add trailing newline.
1cdfd0e5 2565 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
3d3b561f 2566 Add trailing newline.
1cdfd0e5 2567 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
3d3b561f 2568 Add trailing newline.
1cdfd0e5 2569 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
3d3b561f 2570 Add trailing newline.
1cdfd0e5 2571 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
3d3b561f 2572 Add trailing newline.
1cdfd0e5 2573 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
3d3b561f 2574 Add trailing newline.
1cdfd0e5 2575 * doc/openmp-runtime-library-routines/ompinfinal.rst:
3d3b561f 2576 Add trailing newline.
1cdfd0e5 2577 * doc/openmp-runtime-library-routines/ompinitlock.rst:
3d3b561f 2578 Add trailing newline.
1cdfd0e5 2579 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
3d3b561f 2580 Add trailing newline.
1cdfd0e5 2581 * doc/openmp-runtime-library-routines/ompinparallel.rst:
3d3b561f 2582 Add trailing newline.
1cdfd0e5 2583 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
3d3b561f 2584 Add trailing newline.
1cdfd0e5 2585 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
3d3b561f 2586 Add trailing newline.
1cdfd0e5 2587 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
3d3b561f 2588 Add trailing newline.
1cdfd0e5 2589 * doc/openmp-runtime-library-routines/ompsetlock.rst:
3d3b561f 2590 Add trailing newline.
1cdfd0e5 2591 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
3d3b561f 2592 Add trailing newline.
1cdfd0e5 2593 * doc/openmp-runtime-library-routines/ompsetnested.rst:
3d3b561f 2594 Add trailing newline.
1cdfd0e5 2595 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
3d3b561f 2596 Add trailing newline.
1cdfd0e5 2597 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
3d3b561f 2598 Add trailing newline.
1cdfd0e5 2599 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
3d3b561f 2600 Add trailing newline.
1cdfd0e5 2601 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
3d3b561f 2602 Add trailing newline.
1cdfd0e5 2603 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
3d3b561f 2604 Add trailing newline.
1cdfd0e5 2605 * doc/openmp-runtime-library-routines/omptestlock.rst:
3d3b561f 2606 Add trailing newline.
1cdfd0e5 2607 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
3d3b561f 2608 Add trailing newline.
1cdfd0e5 2609 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
3d3b561f 2610 Add trailing newline.
1cdfd0e5 2611 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
3d3b561f 2612 Add trailing newline.
1cdfd0e5 2613 * doc/reporting-bugs.rst:
3d3b561f 2614 Add trailing newline.
1cdfd0e5 2615 * doc/the-libgomp-abi.rst:
3d3b561f 2616 Add trailing newline.
1cdfd0e5 2617 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
3d3b561f 2618 Add trailing newline.
1cdfd0e5 2619 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
3d3b561f 2620 Add trailing newline.
1cdfd0e5 2621 * doc/the-libgomp-abi/implementing-critical-construct.rst:
3d3b561f 2622 Add trailing newline.
1cdfd0e5 2623 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
3d3b561f 2624 Add trailing newline.
1cdfd0e5 2625 * doc/the-libgomp-abi/implementing-flush-construct.rst:
3d3b561f 2626 Add trailing newline.
1cdfd0e5 2627 * doc/the-libgomp-abi/implementing-for-construct.rst:
3d3b561f 2628 Add trailing newline.
1cdfd0e5 2629 * doc/the-libgomp-abi/implementing-master-construct.rst:
3d3b561f 2630 Add trailing newline.
1cdfd0e5 2631 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
3d3b561f 2632 Add trailing newline.
1cdfd0e5 2633 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
3d3b561f 2634 Add trailing newline.
1cdfd0e5 2635 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
3d3b561f 2636 Add trailing newline.
1cdfd0e5 2637 * doc/the-libgomp-abi/implementing-private-clause.rst:
3d3b561f 2638 Add trailing newline.
1cdfd0e5 2639 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
3d3b561f 2640 Add trailing newline.
1cdfd0e5 2641 * doc/the-libgomp-abi/implementing-sections-construct.rst:
3d3b561f 2642 Add trailing newline.
1cdfd0e5 2643 * doc/the-libgomp-abi/implementing-single-construct.rst:
3d3b561f 2644 Add trailing newline.
1cdfd0e5 2645 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
3d3b561f 2646 Add trailing newline.
1cdfd0e5
GA
2647
26482022-11-09 Martin Liska <mliska@suse.cz>
2649
2650 * Makefile.in: Build info pages conditionally.
2651
26522022-11-09 Martin Liska <mliska@suse.cz>
2653
2654 * Makefile.in: Support --with-sphinx-build.
2655 * configure.ac: Likewise..
2656 * configure: Regenerate.
2657
26582022-11-09 Martin Liska <mliska@suse.cz>
2659
2660 * libgomp.texi: Removed.
2661
26622022-11-09 Martin Liska <mliska@suse.cz>
2663
2664 * Makefile.in: Support Sphinx based documentation.
2665
26662022-11-09 Martin Liska <mliska@suse.cz>
2667
2668 * doc/amd-radeon-gcn.rst: New file.
2669 * doc/conf.py: New file.
2670 * doc/copyright.rst: New file.
2671 * doc/cuda-streams-usage.rst: New file.
2672 * doc/enabling-openacc.rst: New file.
2673 * doc/enabling-openmp.rst: New file.
2674 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
2675 * doc/first-invocation-openacc-library-api.rst: New file.
2676 * doc/funding.rst: New file.
2677 * doc/general-public-license-3.rst: New file.
2678 * doc/gnu-free-documentation-license.rst: New file.
2679 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
2680 * doc/index.rst: New file.
2681 * doc/indices-and-tables.rst: New file.
2682 * doc/introduction.rst: New file.
2683 * doc/memory-allocation-with-libmemkind.rst: New file.
2684 * doc/nvptx.rst: New file.
2685 * doc/offload-target-specifics.rst: New file.
2686 * doc/openacc-environment-variables.rst: New file.
2687 * doc/openacc-environment-variables/accdevicenum.rst: New file.
2688 * doc/openacc-environment-variables/accdevicetype.rst: New file.
2689 * doc/openacc-environment-variables/accproflib.rst: New file.
2690 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
2691 * doc/openacc-introduction.rst: New file.
2692 * doc/openacc-library-and-environment-variables.rst: New file.
2693 * doc/openacc-library-interoperability.rst: New file.
2694 * doc/openacc-profiling-interface.rst: New file.
2695 * doc/openacc-runtime-library-routines.rst: New file.
2696 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
2697 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
2698 * doc/openacc-runtime-library-routines/accattach.rst: New file.
2699 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
2700 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
2701 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
2702 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
2703 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
2704 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
2705 * doc/openacc-runtime-library-routines/accfree.rst: New file.
2706 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
2707 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
2708 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
2709 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
2710 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
2711 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
2712 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
2713 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
2714 * doc/openacc-runtime-library-routines/accinit.rst: New file.
2715 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
2716 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
2717 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
2718 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
2719 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
2720 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
2721 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
2722 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
2723 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
2724 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
2725 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
2726 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
2727 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
2728 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
2729 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
2730 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
2731 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
2732 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
2733 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
2734 * doc/openacc-runtime-library-routines/accwait.rst: New file.
2735 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
2736 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
2737 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
2738 * doc/openmp-context-selectors.rst: New file.
2739 * doc/openmp-environment-variables.rst: New file.
2740 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
2741 * doc/openmp-environment-variables/gompdebug.rst: New file.
2742 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
2743 * doc/openmp-environment-variables/gompspincount.rst: New file.
2744 * doc/openmp-environment-variables/gompstacksize.rst: New file.
2745 * doc/openmp-environment-variables/ompcancellation.rst: New file.
2746 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
2747 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
2748 * doc/openmp-environment-variables/ompdynamic.rst: New file.
2749 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
2750 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
2751 * doc/openmp-environment-variables/ompnested.rst: New file.
2752 * doc/openmp-environment-variables/ompnumteams.rst: New file.
2753 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
2754 * doc/openmp-environment-variables/ompplaces.rst: New file.
2755 * doc/openmp-environment-variables/ompprocbind.rst: New file.
2756 * doc/openmp-environment-variables/ompschedule.rst: New file.
2757 * doc/openmp-environment-variables/ompstacksize.rst: New file.
2758 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
2759 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
2760 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
2761 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
2762 * doc/openmp-implementation-specifics.rst: New file.
2763 * doc/openmp-implementation-status.rst: New file.
2764 * doc/openmp-implementation-status/openmp-45.rst: New file.
2765 * doc/openmp-implementation-status/openmp-50.rst: New file.
2766 * doc/openmp-implementation-status/openmp-51.rst: New file.
2767 * doc/openmp-implementation-status/openmp-52.rst: New file.
2768 * doc/openmp-runtime-library-routines.rst: New file.
2769 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
2770 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
2771 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
2772 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
2773 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
2774 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
2775 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
2776 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
2777 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
2778 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
2779 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
2780 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
2781 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
2782 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
2783 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
2784 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
2785 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
2786 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
2787 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
2788 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
2789 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
2790 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
2791 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
2792 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
2793 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
2794 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
2795 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
2796 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
2797 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
2798 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
2799 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
2800 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
2801 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
2802 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
2803 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
2804 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
2805 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
2806 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
2807 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
2808 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
2809 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
2810 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
2811 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
2812 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
2813 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
2814 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
2815 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
2816 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
2817 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
2818 * doc/reporting-bugs.rst: New file.
2819 * doc/the-libgomp-abi.rst: New file.
2820 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
2821 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
2822 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
2823 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2824 New file.
2825 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
2826 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
2827 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
2828 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
2829 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
2830 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
2831 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
2832 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
2833 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
2834 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
2835 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
2836
89d0a14a
JJ
28372022-11-04 Thomas Schwinge <thomas@codesourcery.com>
2838
2839 * libgomp-plugin.h (OFFLOAD_TARGET_TYPE_INTEL_MIC): Remove.
2840 * libgomp.texi (OpenMP Context Selectors): Remove Intel MIC
2841 documentation.
2842 * plugin/configfrag.ac <enable_offload_targets>
2843 [*-intelmic-* | *-intelmicemul-*]: Remove.
2844 * configure: Regenerate.
2845 * testsuite/lib/libgomp.exp (libgomp_init): Remove 'liboffloadmic'
2846 handling.
2847 (offload_target_to_openacc_device_type)
2848 [$offload_target = *-intelmic*]: Remove.
2849 (check_effective_target_offload_device_intel_mic)
2850 (check_effective_target_offload_device_any_intel_mic): Remove.
2851 * testsuite/libgomp.c-c++-common/on_device_arch.h
2852 (device_arch_intel_mic, on_device_arch_intel_mic, any_device_arch)
2853 (any_device_arch_intel_mic): Remove.
2854 * testsuite/libgomp.c-c++-common/target-45.c: Remove
2855 'offload_device_any_intel_mic' XFAIL.
2856 * testsuite/libgomp.fortran/target10.f90: Likewise.
2857
d29260ce
GA
28582022-11-03 Tobias Burnus <tobias@codesourcery.com>
2859
2860 * testsuite/libgomp.fortran/target-11.f90: New test.
2861 * testsuite/libgomp.fortran/target-13.f90: New test.
2862
58035eee
GA
28632022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2864
2865 PR libgomp/106643
2866 PR fortran/96668
2867 * oacc-mem.c (goacc_enter_data_internal): Support
2868 OpenACC 'declare create' with Fortran allocatable arrays, part II.
2869 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2870 Adjust.
2871 * testsuite/libgomp.oacc-fortran/pr106643-1.f90: New.
2872
28732022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2874
2875 PR libgomp/106643
2876 * oacc-mem.c (goacc_enter_data_internal): Support
2877 OpenACC 'declare create' with Fortran allocatable arrays, part I.
2878 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90:
2879 New.
2880 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2881 New.
2882
28832022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2884
2885 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-runtime.f90:
2886 New.
2887
28882022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2889
2890 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90:
2891 New.
2892
28932022-11-02 Cesar Philippidis <cesar@codesourcery.com>
2894 Thomas Schwinge <thomas@codesourcery.com>
2895
2896 * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: New.
2897
3055829a
GA
28982022-10-28 Julian Brown <julian@codesourcery.com>
2899 Thomas Schwinge <thomas@codesourcery.com>
2900
2901 PR middle-end/90115
2902 * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
2903 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
2904 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2905 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
2906 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2907
4e939ae1
GA
29082022-10-24 Thomas Schwinge <thomas@codesourcery.com>
2909
2910 * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
2911 'ptx_dev->rev_data'.
2912
29132022-10-24 Tobias Burnus <tobias@codesourcery.com>
2914
2915 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
2916 'static' for this variable.
2917 * config/nvptx/libgomp-nvptx.h: New file.
2918 * config/nvptx/target.c: Include it.
2919 (GOMP_ADDITIONAL_ICVS): Declare extern var.
2920 (GOMP_REV_OFFLOAD_VAR): Declare var.
2921 (GOMP_target_ext): Handle reverse offload.
2922 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
2923 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
2924 * target.c (gomp_target_rev): ... this new stub function.
2925 * libgomp.h (gomp_target_rev): Declare.
2926 * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
2927 * plugin/cuda-lib.def (cuMemHostAlloc): Add.
2928 * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
2929 (struct ptx_device): Add rev_data member.
2930 (nvptx_open_device): Remove async_engines query, last used in
2931 r10-304-g1f4c5b9b; add unified-address assert check.
2932 (GOMP_OFFLOAD_get_num_devices): Claim unified address
2933 support.
2934 (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
2935 offload functions exist. Make offload var available
2936 on host and device.
2937 (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
2938 (GOMP_OFFLOAD_run): Handle reverse offload.
2939
10439719
GA
29402022-10-21 Thomas Schwinge <thomas@codesourcery.com>
2941
2942 PR tree-optimization/107195
2943 PR target/107344
2944 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
2945 regions checking.
2946
47a6ae56
GA
29472022-10-20 Tobias Burnus <tobias@codesourcery.com>
2948
2949 * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
2950 New.
2951 * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
2952 on_device_arch_gcn): New.
2953 * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
2954 requires-4.c but using heap-allocated memory.
2955
29562022-10-20 Thomas Schwinge <thomas@codesourcery.com>
2957
2958 PR target/105421
2959 * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
2960
6237663c
GA
29612022-10-17 Thomas Schwinge <thomas@codesourcery.com>
2962
2963 * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
2964 '-foffload-options' syntax.
2965
621a911d
GA
29662022-10-13 Tobias Burnus <tobias@codesourcery.com>
2967
2968 * testsuite/libgomp.fortran/task-7.f90: New test.
2969 * testsuite/libgomp.fortran/task-8.f90: New test.
2970 * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
2971 * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
2972 * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
2973 * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
2974 * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
2975
781f477a
GA
29762022-10-12 Jakub Jelinek <jakub@redhat.com>
2977
2978 * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
2979 in deprecation bullet.
2980
29812022-10-12 Jakub Jelinek <jakub@redhat.com>
2982
2983 * omp.h.in (omp_in_explicit_task): Declare.
2984 * omp_lib.h.in (omp_in_explicit_task): Likewise.
2985 * omp_lib.f90.in (omp_in_explicit_task): New interface.
2986 * libgomp.map (OMP_5.2): New symbol version, export
2987 omp_in_explicit_task and omp_in_explicit_task_.
2988 * task.c (omp_in_explicit_task): New function.
2989 * fortran.c (omp_in_explicit_task): Add ialias_redirect.
2990 (omp_in_explicit_task_): New function.
2991 * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
2992 * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
2993 * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
2994 * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
2995
29962022-10-12 Jakub Jelinek <jakub@redhat.com>
2997
2998 * task.c (gomp_create_artificial_team): Fix up handling of invocations
2999 from within explicit task.
3000 * target.c (GOMP_target_ext): Likewise.
3001 * testsuite/libgomp.c/task-7.c: New test.
3002 * testsuite/libgomp.c/task-8.c: New test.
3003 * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
3004 * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
3005
30062022-10-12 Martin Liska <mliska@suse.cz>
3007
3008 * configure: Regenerate.
3009
ab332cd7
GA
30102022-10-11 Olivier Hainque <hainque@adacore.com>
3011 Olivier Hainque <hainque@adacore.com>
3012
3013 * configure: Regenerate.
3014
966010b2
GA
30152022-10-05 Tobias Burnus <tobias@codesourcery.com>
3016
3017 * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
3018
85872a69
GA
30192022-10-04 Jakub Jelinek <jakub@redhat.com>
3020
3021 * libgomp.texi (Support begin/end declare target syntax in C/C++):
3022 Mark as implemented.
3023
3a221b73
GA
30242022-09-30 Tobias Burnus <tobias@codesourcery.com>
3025
3026 PR fortran/105318
3027 * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
3028
9e79a25b
GA
30292022-09-28 Tobias Burnus <tobias@codesourcery.com>
3030
3031 * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
3032 for C/C++. Remove duplicated 'begin declare target' entry.
3033
28a61ecd
GA
30342022-09-24 Jakub Jelinek <jakub@redhat.com>
3035
3036 PR c/106981
3037 * testsuite/libgomp.c-c++-common/pr106981.c: New test.
3038
ff822367
GA
30392022-09-14 Julian Brown <julian@codesourcery.com>
3040
3041 * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
3042 * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
3043 * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
3044 * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
3045 test to here, make "run" test.
3046
1995a022
GA
30472022-09-13 Jakub Jelinek <jakub@redhat.com>
3048
3049 PR libgomp/106906
3050 * env.c (get_icv_member_addr): Cast false to void * before assigning
3051 it to icv_addr[1], and comment the whole assignment out.
3052
30532022-09-13 Tobias Burnus <tobias@codesourcery.com>
3054
3055 * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
3056 (nvptx): ... here.
3057
b5f09bd7
GA
30582022-09-12 Tobias Burnus <tobias@codesourcery.com>
3059
3060 * libgomp.texi (Offload-Target Specifics: nvptx): Document
3061 that reverse offload requires >= -march=sm_35.
3062 * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
3063 with -misa=sm_35.
3064 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
3065 * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
3066 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
3067 * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
3068 * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
3069
30702022-09-12 Tobias Burnus <tobias@codesourcery.com>
3071
3072 * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
3073 (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
3074
30752022-09-12 Jakub Jelinek <jakub@redhat.com>
3076
3077 PR libgomp/106894
3078 * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
3079 (main): Avoid tests for which corresponding non-_ALL suffixed variable
3080 is in the environment, or for OMP_NUM_TEAMS on the device
3081 OMP_NUM_TEAMS_DEV_?.
3082
5b3496e2
GA
30832022-09-10 Iain Sandoe <iain@sandoe.co.uk>
3084
3085 * env.c (initialize_env): Include libiberty environ.h.
3086
861d1a11
GA
30872022-09-09 Tobias Burnus <tobias@codesourcery.com>
3088
3089 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
3090 function address table '$offload_func_table' if rev_fn_table
3091 is not NULL.
3092
30932022-09-09 Tobias Burnus <tobias@codesourcery.com>
3094
3095 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
3096 .offload_func_table to populate rev_fn_table when requested.
3097
30982022-09-09 Tobias Burnus <tobias@codesourcery.com>
3099
3100 * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
3101 'uint64_t **rev_fn_table' argument.
3102 * oacc-host.c (host_load_image): Likewise.
3103 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
3104 currently unused.
3105 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
3106 * target.c (gomp_load_image_to_device): Update call but pass
3107 NULL for now.
3108
31092022-09-09 Jakub Jelinek <jakub@redhat.com>
3110
3111 PR libgomp/106894
3112 * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
3113 char * for dest[1] initialization from params[1]. Formatting fixes.
3114
2e7ad70c
GA
31152022-09-08 Tobias Burnus <tobias@codesourcery.com>
3116
3117 PR fortran/106670
3118 * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
3119
31202022-09-08 Tobias Burnus <tobias@codesourcery.com>
3121
3122 * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
3123 section; move OpenMP Context Selectors from ...
3124 (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
3125 'nvptx' sections.
3126
31272022-09-08 Marcel Vollweiler <marcel@codesourcery.com>
3128
3129 * config/gcn/icv-device.c (omp_get_default_device): Return device-
3130 specific ICV.
3131 (omp_get_max_teams): Added for GCN devices.
3132 (omp_set_num_teams): Likewise.
3133 (ialias): Likewise.
3134 * config/nvptx/icv-device.c (omp_get_default_device): Return device-
3135 specific ICV.
3136 (omp_get_max_teams): Added for NVPTX devices.
3137 (omp_set_num_teams): Likewise.
3138 (ialias): Likewise.
3139 * env.c (struct gomp_icv_list): New struct to store entries of initial
3140 ICV values.
3141 (struct gomp_offload_icv_list): New struct to store entries of device-
3142 specific ICV values that are copied to the device and back.
3143 (struct gomp_default_icv_values): New struct to store default values of
3144 ICVs according to the OpenMP standard.
3145 (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
3146 (print_env_var_error): Function that prints an error for invalid values
3147 for ICVs.
3148 (parse_unsigned_long_1): Removed getenv. Generalized.
3149 (parse_unsigned_long): Likewise.
3150 (parse_int_1): Likewise.
3151 (parse_int): Likewise.
3152 (parse_int_secure): Likewise.
3153 (parse_unsigned_long_list): Likewise.
3154 (parse_target_offload): Likewise.
3155 (parse_bind_var): Likewise.
3156 (parse_stacksize): Likewise.
3157 (parse_boolean): Likewise.
3158 (parse_wait_policy): Likewise.
3159 (parse_allocator): Likewise.
3160 (omp_display_env): Extended to output different variants of environment
3161 variables.
3162 (print_schedule): New helper function for omp_display_env which prints
3163 the values of run_sched_var.
3164 (print_proc_bind): New helper function for omp_display_env which prints
3165 the values of proc_bind_var.
3166 (enum gomp_parse_type): Collection of types used for parsing environment
3167 variables.
3168 (ENTRY): Preprocess string lengths of environment variables.
3169 (OMP_VAR_CNT): Preprocess table size.
3170 (OMP_HOST_VAR_CNT): Likewise.
3171 (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
3172 number.
3173 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
3174 (gomp_set_icv_flag): Sets a flag for a particular ICV.
3175 (print_device_specific_icvs): New helper function for omp_display_env to
3176 print device specific ICV values.
3177 (get_device_num): New helper function for parse_device_specific.
3178 Extracts the device number from an environment variable name.
3179 (get_icv_member_addr): Gets the memory address for a particular member
3180 of an ICV struct.
3181 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
3182 (initialize_icvs): New function to initialize a gomp_initial_icvs
3183 struct.
3184 (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
3185 (startswith): Checks if a string starts with a given prefix.
3186 (initialize_env): Extended to parse the new syntax of environment
3187 variables.
3188 * icv-device.c (omp_get_max_teams): Added.
3189 (ialias): Likewise.
3190 (omp_set_num_teams): Likewise.
3191 * icv.c (omp_set_num_teams): Moved to icv-device.c.
3192 (omp_get_max_teams): Likewise.
3193 (ialias): Likewise.
3194 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
3195 (GOMP_ADDITIONAL_ICVS): New target-side struct that
3196 holds the designated ICVs of the target device.
3197 * libgomp.h (enum gomp_icvs): Collection of ICVs.
3198 (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
3199 no suffix.
3200 (enum gomp_env_suffix): Collection of possible suffixes of environment
3201 variables.
3202 (struct gomp_initial_icvs): Contains all ICVs for which we need to store
3203 initial values.
3204 (struct gomp_default_icv):New struct to hold ICVs for which we need
3205 to store initial values.
3206 (struct gomp_icv_list): Definition of a linked list that is used for
3207 storing ICVs for the devices and also for _DEV, _ALL, and without
3208 suffix.
3209 (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
3210 a device.
3211 (struct gomp_offload_icv_list): Definition of a linked list that holds
3212 device-specific ICVs that are copied to devices.
3213 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
3214 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
3215 * libgomp.texi: Updated.
3216 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
3217 further ICVs from the offload image.
3218 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
3219 * target.c (gomp_get_offload_icv_item): Get a list item of
3220 gomp_offload_icv_list.
3221 (get_gomp_offload_icvs): New. Returns the ICV values
3222 depending on the device num and the variable hierarchy.
3223 (gomp_load_image_to_device): Extended to copy further ICVs to a device.
3224 * testsuite/libgomp.c-c++-common/icv-5.c: New test.
3225 * testsuite/libgomp.c-c++-common/icv-6.c: New test.
3226 * testsuite/libgomp.c-c++-common/icv-7.c: New test.
3227 * testsuite/libgomp.c-c++-common/icv-8.c: New test.
3228 * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
3229 * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
3230
32312022-09-08 Jakub Jelinek <jakub@redhat.com>
3232
3233 * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
3234 fully supported.
3235 * testsuite/libgomp.c/doacross-4.c: New test.
3236 * testsuite/libgomp.c/doacross-5.c: New test.
3237 * testsuite/libgomp.c/doacross-6.c: New test.
3238 * testsuite/libgomp.c/doacross-7.c: New test.
3239
47d2dcd1
GA
32402022-09-05 Tobias Burnus <tobias@codesourcery.com>
3241
3242 * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
3243
16f542d6
GA
32442022-08-26 Tobias Burnus <tobias@codesourcery.com>
3245
3246 * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
3247 refer to 'requires'.
3248 * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
3249 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
3250 * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
3251 * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
3252
0342f034
GA
32532022-08-17 Tobias Burnus <tobias@codesourcery.com>
3254
3255 PR middle-end/106548
3256 * testsuite/libgomp.c/linear-2.c: New test.
3257
32582022-08-17 Tobias Burnus <tobias@codesourcery.com>
3259
3260 * splay-tree.h: Fix splay_* macro unsetting if
3261 splay_tree_prefix is defined.
3262
b2bf0473
GA
32632022-07-29 Tobias Burnus <tobias@codesourcery.com>
3264
3265 * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
3266
32672022-07-29 Jakub Jelinek <jakub@redhat.com>
3268
3269 PR middle-end/106449
3270 * testsuite/libgomp.c-c++-common/pr106449.c: New test.
3271
43997608
GA
32722022-07-12 Tobias Burnus <tobias@codesourcery.com>
3273
3274 * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
3275
32762022-07-12 Thomas Schwinge <thomas@codesourcery.com>
3277
3278 PR middle-end/101551
3279 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
3280 'offloading_enabled' diagnostics issue.
3281
c72d4714
GA
32822022-07-11 Thomas Schwinge <thomas@codesourcery.com>
3283
3284 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
3285 '_Pragma' diagnostics verification.
3286
b53ebbc5
GA
32872022-07-10 Lewis Hyatt <lhyatt@gmail.com>
3288
3289 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
3290 improved warning locations.
3291 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
3292
0fe604a2
GA
32932022-07-08 Thomas Schwinge <thomas@codesourcery.com>
3294
3295 * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
3296 * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
3297 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
3298 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
3299 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
3300
6345c414
GA
33012022-07-07 Thomas Schwinge <thomas@codesourcery.com>
3302
3303 * target.c (GOMP_offload_register, GOMP_offload_unregister):
3304 Denote as legacy entry points.
3305 * testsuite/lib/libgomp.exp
3306 (check_effective_target_offload_target_any): New proc.
3307 * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
3308 'offload_target_any'.
3309 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
3310 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
3311 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
3312
33132022-07-07 Thomas Schwinge <thomas@codesourcery.com>
3314
3315 * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
3316 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
3317
33182022-07-07 Thomas Schwinge <thomas@codesourcery.com>
3319
3320 * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
3321
4bc92c3b
GA
33222022-07-06 Thomas Schwinge <thomas@codesourcery.com>
3323
3324 * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
3325 'data'.
3326 (GOMP_offload_unregister_ver): Likewise. Fix up 'target_data'.
3327
8467574d
GA
33282022-07-04 Tobias Burnus <tobias@codesourcery.com>
3329 Jakub Jelinek <jakub@redhat.com>
3330
3331 * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
3332
33332022-07-04 Tobias Burnus <tobias@codesourcery.com>
3334 Chung-Lin Tang <cltang@codesourcery.com>
3335 Thomas Schwinge <thomas@codesourcery.com>
3336
3337 * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
3338 omp_requires_mask arg.
3339 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
3340 return -1 when device available but omp_requires_mask != 0.
3341 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
3342 * oacc-host.c (host_get_num_devices, host_openacc_get_property):
3343 Update call.
3344 * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
3345 goacc_attach_host_thread_to_device, acc_get_num_devices,
3346 acc_set_device_num, get_property_any): Likewise.
3347 * target.c (omp_requires_mask): New global var.
3348 (gomp_requires_to_name): New.
3349 (GOMP_offload_register_ver): Handle passed omp_requires_mask.
3350 (gomp_target_init): Handle omp_requires_mask.
3351 * libgomp.texi (OpenMP 5.0): Update requires impl. status.
3352 (OpenMP 5.1): Add a missed item.
3353 (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
3354 * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
3355 * testsuite/libgomp.c-c++-common/requires-1.c: New test.
3356 * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
3357 * testsuite/libgomp.c-c++-common/requires-2.c: New test.
3358 * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
3359 * testsuite/libgomp.c-c++-common/requires-3.c: New test.
3360 * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
3361 * testsuite/libgomp.c-c++-common/requires-4.c: New test.
3362 * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
3363 * testsuite/libgomp.c-c++-common/requires-5.c: New test.
3364 * testsuite/libgomp.c-c++-common/requires-6.c: New test.
3365 * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
3366 * testsuite/libgomp.c-c++-common/requires-7.c: New test.
3367 * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
3368 * testsuite/libgomp.fortran/requires-1.f90: New test.
3369
ed974488
GA
33702022-07-01 Tobias Burnus <tobias@codesourcery.com>
3371
3372 * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
3373 with fromto as implemented.
3374
fb29fdea
GA
33752022-06-28 Martin Liska <mliska@suse.cz>
3376
3377 * acinclude.m4: Fix typo in mold linker detection.
3378 * Makefile.in: Regenerate.
3379 * configure: Regenerate.
3380
de89b078
GA
33812022-06-21 Jakub Jelinek <jakub@redhat.com>
3382 Paul Iannetta <piannetta@kalrayinc.com>
3383
3384 PR libgomp/106045
3385 * testsuite/libgomp.c/target-31.c: Add private (i) clause.
3386
5a66d7dd
GA
33872022-06-17 Martin Liska <mliska@suse.cz>
3388
3389 * libgomp.texi: Add table header for new features of
3390 OpenMP 5.2.
3391
499b9c5f
GA
33922022-06-15 Jakub Jelinek <jakub@redhat.com>
3393
3394 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
3395 q to ddress of an automatic variable. Use -5 instead of -1 in
3396 omp_get_mapped_ptr call. Add test with omp_initial_device.
3397 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
3398 of -1 in omp_get_mapped_ptr call. Add test with omp_initial_device.
3399 Renumber stop arguments afterwards.
3400
c3642271
GA
34012022-06-13 Jakub Jelinek <jakub@redhat.com>
3402
3403 * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
3404 * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
3405 parameters.
3406 * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
3407 * target.c (resolve_device): Add remapped argument, handle
3408 GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
3409 for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
3410 if remapped, otherwise treat omp_initial_device that way. For
3411 omp_invalid_device, always emit gomp_fatal, even when
3412 OMP_TARGET_OFFLOAD isn't mandatory.
3413 (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
3414 GOMP_target_update, GOMP_target_update_ext,
3415 GOMP_target_enter_exit_data): Pass true as remapped argument to
3416 resolve_device.
3417 (omp_target_alloc, omp_target_free, omp_target_is_present,
3418 omp_target_memcpy_check, omp_target_associate_ptr,
3419 omp_target_disassociate_ptr, omp_get_mapped_ptr,
3420 omp_target_is_accessible): Pass false as remapped argument to
3421 resolve_device. Treat omp_initial_device the same as
3422 gomp_get_num_devices (). Don't bypass resolve_device calls if
3423 device_num is negative.
3424 (omp_pause_resource): Treat omp_initial_device the same as
3425 gomp_get_num_devices (). Call resolve_device.
3426 * icv-device.c (omp_set_default_device): Always set to device_num
3427 even when it is negative.
3428 * libgomp.texi: Document that Conforming device numbers,
3429 omp_initial_device and omp_invalid_device is implemented.
3430 * testsuite/libgomp.c/target-41.c (main): Add test with
3431 omp_initial_device.
3432 * testsuite/libgomp.c/target-45.c: New test.
3433 * testsuite/libgomp.c/target-46.c: New test.
3434 * testsuite/libgomp.c/target-47.c: New test.
3435 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
3436 test with omp_initial_device. Use -5 instead of -1 for negative value
3437 test.
3438 * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
3439 Likewise. Reorder stop numbers.
3440
ef1e4d80
GA
34412022-06-10 Jakub Jelinek <jakub@redhat.com>
3442
3443 * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
3444 rather than "libmemkind.so".
3445
34462022-06-10 Thomas Schwinge <thomas@codesourcery.com>
3447
3448 * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
3449 * plugin/configfrag.ac (--with-cuda-driver)
3450 (--with-cuda-driver-include, --with-cuda-driver-lib)
3451 (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
3452 (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
3453 Remove.
3454 * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
3455 (cuda_driver_lib): Remove.
3456 * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
3457 * Makefile.in: Regenerate.
3458 * configure: Likewise.
3459 * testsuite/Makefile.in: Likewise.
3460
e3bba42f
GA
34612022-06-09 Jakub Jelinek <jakub@redhat.com>
3462
3463 * config/linux/allocator.c: Fix up #include directive.
3464
34652022-06-09 Jakub Jelinek <jakub@redhat.com>
3466
3467 * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
3468 (enum gomp_memkind_kind): New type.
3469 (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
3470 is defined.
3471 (struct gomp_memkind_data): New type.
3472 (memkind_data, memkind_data_once): New variables.
3473 (gomp_init_memkind, gomp_get_memkind): New functions.
3474 (omp_init_allocator): Initialize data.memkind, don't fail for
3475 omp_high_bw_mem_space if libmemkind supports it.
3476 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
3477 memkind support of LIBGOMP_USE_MEMKIND is defined.
3478 * config/linux/allocator.c: New file.
3479
58b67140
GA
34802022-06-03 Tobias Burnus <tobias@codesourcery.com>
3481
3482 * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
3483 * testsuite/libgomp.fortran/scope-2.f90: New test.
3484
b168441c
GA
34852022-06-02 David Malcolm <dmalcolm@redhat.com>
3486
3487 * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
3488
820ead45
GA
34892022-05-31 Jakub Jelinek <jakub@redhat.com>
3490
3491 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
3492 scope construct with allocate clause.
3493 * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
3494 * testsuite/libgomp.c-c++-common/scope-2.c: New test.
3495
37b3b5da
GA
34962022-05-28 Tobias Burnus <tobias@codesourcery.com>
3497
3498 * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
3499 * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
3500 explicit 'to' and 'enter' clause.
3501 * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
3502
35032022-05-28 Jakub Jelinek <jakub@redhat.com>
3504
3505 PR libgomp/105745
3506 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
3507 defined(HAVE__ALIGNED_MALLOC) case.
3508 * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
3509 handling as last option before fallback instead of first.
3510 (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
3511 _aligned_free.
3512
d9176e64
GA
35132022-05-27 Jakub Jelinek <jakub@redhat.com>
3514
3515 * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
3516 clauses to enter.
3517 * testsuite/libgomp.c/target-41.c: Likewise.
3518
35192022-05-27 Tobias Burnus <tobias@codesourcery.com>
3520
3521 * libgomp.texi (Other new OpenMP 5.1 features): Add
3522 'begin declare target'.
3523 (Other new OpenMP 5.2 features): New.
3524
3dff965c
GA
35252022-05-25 Jakub Jelinek <jakub@redhat.com>
3526
3527 * task.c (gomp_task_run_post_handle_dependers): If empty_task
3528 is the last task taskwait depend depends on, wake it up.
3529 Similarly if it is the last child of a taskgroup, use atomic
3530 store instead of decrement and awak taskgroup wait if any.
3531 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
3532
768f49a2
GA
35332022-05-24 Andrew Stubbs <ams@codesourcery.com>
3534
3535 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
3536 EF_AMDGPU_MACH_AMDGCN_GFX90a.
3537 (gcn_gfx90a_s): New.
3538 (isa_hsa_name): Support gfx90a.
3539 (isa_code): Likewise.
3540
35412022-05-24 Tobias Burnus <tobias@codesourcery.com>
3542
3543 PR c/105378
3544 * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
3545 * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
3546
35472022-05-24 Jakub Jelinek <jakub@redhat.com>
3548
3549 PR c/105378
3550 * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
3551 * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
3552 * task.c (empty_task): New function.
3553 (gomp_task_run_post_handle_depend_hash): Declare earlier.
3554 (gomp_task_run_post_handle_depend): Declare.
3555 (GOMP_task): Optimize fn == empty_task if there is nothing to wait
3556 for.
3557 (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
3558 (GOMP_taskwait_depend_nowait): New function.
3559 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
3560
168fc8bd
GA
35612022-05-23 Tobias Burnus <tobias@codesourcery.com>
3562
3563 PR fortran/104949
3564 * target.c (gomp_map_vars_internal, copy_firstprivate_data):
3565 Support attach for GOMP_MAP_FIRSTPRIVATE.
3566 * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
3567 * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
3568 * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
3569
57f2ce6a
GA
35702022-05-20 Marcel Vollweiler <marcel@codesourcery.com>
3571
3572 * libgomp.map: Added omp_target_memcpy_async and
3573 omp_target_memcpy_rect_async.
3574 * libgomp.texi: Both functions are now supported.
3575 * omp.h.in: Added omp_target_memcpy_async and
3576 omp_target_memcpy_rect_async.
3577 * omp_lib.f90.in: Added interfaces for both new functions.
3578 * omp_lib.h.in: Likewise.
3579 * target.c (ialias_redirect): Added for GOMP_task.
3580 (omp_target_memcpy): Restructured into check and copy part.
3581 (omp_target_memcpy_check): New helper function for omp_target_memcpy and
3582 omp_target_memcpy_async that checks requirements.
3583 (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
3584 omp_target_memcpy_async that performs the memcpy.
3585 (omp_target_memcpy_async_helper): New helper function that is used in
3586 omp_target_memcpy_async for the asynchronous task.
3587 (omp_target_memcpy_async): Added.
3588 (omp_target_memcpy_rect): Restructured into check and copy part.
3589 (omp_target_memcpy_rect_check): New helper function for
3590 omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
3591 requirements.
3592 (omp_target_memcpy_rect_copy): New helper function for
3593 omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
3594 the memcpy.
3595 (omp_target_memcpy_rect_async_helper): New helper function that is used
3596 in omp_target_memcpy_rect_async for the asynchronous task.
3597 (omp_target_memcpy_rect_async): Added.
3598 * task.c (ialias): Added for GOMP_task.
3599 * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
3600 * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
3601 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
3602 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
3603 * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
3604 * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
3605 * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
3606 * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
3607
1cda629f
GA
36082022-05-18 Tobias Burnus <tobias@codesourcery.com>
3609
3610 * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
3611 (OpenMP Context Selectors): Add missing comma.
3612 * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
3613 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
3614 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
3615 * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
3616
3d9439b1
GA
36172022-05-17 Jakub Jelinek <jakub@redhat.com>
3618
3619 * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
3620 comment for omp_display_env feature.
3621
36222022-05-17 Tobias Burnus <tobias@codesourcery.com>
3623
3624 * libgomp.texi (Offload-Target Specifics): New chapter; add section
3625 to document OpenMP context selectors.
3626
36272022-05-17 Jakub Jelinek <jakub@redhat.com>
3628
3629 * libgomp.h (struct gomp_task_depend_entry): Change is_in type
3630 from bool to unsigned char.
3631 * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
3632 Ignore dependencies where
3633 task->depend[i].is_in && task->depend[i].is_in == ent->is_in
3634 rather than just task->depend[i].is_in && ent->is_in. Remember
3635 whether GOMP_DEPEND_IN loop is needed and guard the loop with that
3636 conditional.
3637 (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
3638 Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
3639 rather than just elem.is_in && ent->is_in.
3640 * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
3641 inoutset depend-kind.
3642 * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
3643 * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
3644 * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
3645
36462022-05-17 Tobias Burnus <tobias@codesourcery.com>
3647
3648 * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
3649
36502022-05-17 Tobias Burnus <tobias@codesourcery.com>
3651
3652 * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
3653 * testsuite/libgomp.fortran/depend-5.f90: New test.
3654 * testsuite/libgomp.fortran/depend-6.f90: New test.
3655 * testsuite/libgomp.fortran/depend-7.f90: New test.
3656
702bd11f
GA
36572022-05-16 Marcel Vollweiler <marcel@codesourcery.com>
3658
3659 * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
3660 * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
3661 * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
3662
9df4ffe4
GA
36632022-05-13 Tobias Burnus <tobias@codesourcery.com>
3664
3665 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3666
36672022-05-13 Tobias Burnus <tobias@codesourcery.com>
3668
3669 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3670
36712022-05-13 Thomas Schwinge <thomas@codesourcery.com>
3672
3673 * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
3674 [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
3675 (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
3676 append '$(PLUGIN_NVPTX_LDFLAGS)'.
3677 * Makefile.in: Regenerate.
3678
49ace834
GA
36792022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3680
3681 * Makefile.am (libgomp_la_LIBADD): Initialize.
3682 * plugin/configfrag.ac (DL_LIBS): New.
3683 (PLUGIN_GCN_LIBS): Remove.
3684 (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
3685 * plugin/Makefrag.am (libgomp_la_LIBADD)
3686 (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
3687 (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
3688 * Makefile.in: Regenerate.
3689 * config.h.in: Likewise.
3690 * configure: Likewise.
3691 * testsuite/Makefile.in: Likewise.
3692
36932022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3694
3695 * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
3696 * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
3697 'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
3698 * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
3699 'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
3700 'PLUGIN_NVPTX_LINK_LIBCUDA'.
3701 * Makefile.in: Regenerate.
3702 * config.h.in: Likewise.
3703 * configure: Likewise.
3704
37052022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3706
3707 * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
3708 for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
3709 * Makefile.in: Regenerate.
3710 * config.h.in: Likewise.
3711 * configure: Likewise.
3712 * testsuite/Makefile.in: Likewise.
3713
37142022-05-12 Jakub Jelinek <jakub@redhat.com>
3715
3716 * libgomp.h (struct gomp_task): Add depend_all_memory member.
3717 * task.c (gomp_init_task): Initialize depend_all_memory.
3718 (gomp_task_handle_depend): Handle omp_all_memory.
3719 (gomp_task_run_post_handle_depend_hash): Clear
3720 parent->depend_all_memory if equal to current task.
3721 (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
3722 * testsuite/libgomp.c-c++-common/depend-1.c: New test.
3723 * testsuite/libgomp.c-c++-common/depend-2.c: New test.
3724 * testsuite/libgomp.c-c++-common/depend-3.c: New test.
3725
d0d513b5
GA
37262022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3727
3728 * plugin/configfrag.ac: Remove '--with-hsa-runtime',
3729 '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
3730 * Makefile.in: Regenerate.
3731 * configure: Likewise.
3732 * testsuite/Makefile.in: Likewise.
3733
37342022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3735
3736 * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
3737 consider 'PLUGIN_GCN_CPPFLAGS'.
3738 (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
3739 'PLUGIN_GCN_LDFLAGS'.
3740 * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
3741 Remove.
3742 * Makefile.in: Regenerate.
3743 * configure: Likewise.
3744 * testsuite/Makefile.in: Likewise.
3745
37462022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3747
3748 * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
3749 (HSA_RUNTIME_LDFLAGS): Remove.
3750 * configure: Regenerate.
3751
37522022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3753
3754 * testsuite/lib/libgomp.exp (libgomp_init): Don't
3755 'append always_ld_library_path ":$hsa_runtime_lib"'.
3756 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
3757
e8778989
GA
37582022-05-10 Thomas Schwinge <thomas@codesourcery.com>
3759
3760 * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
3761 multi-device testing.
3762
ea3fbfda
GA
37632022-05-06 Marcel Vollweiler <marcel@codesourcery.com>
3764
3765 * libgomp.map: Added omp_target_is_accessible.
3766 * libgomp.texi: Tagged omp_target_is_accessible as supported.
3767 * omp.h.in: Added omp_target_is_accessible.
3768 * omp_lib.f90.in: Added interface for omp_target_is_accessible.
3769 * omp_lib.h.in: Likewise.
3770 * target.c (omp_target_is_accessible): Added implementation of
3771 omp_target_is_accessible.
3772 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
3773 * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
3774
ab869e7f
GA
37752022-05-05 Sandra Loosemore <sandra@codesourcery.com>
3776
3777 * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
3778
3e7db517
GA
37792022-05-04 Tobias Burnus <tobias@codesourcery.com>
3780
3781 * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
3782
37832022-05-04 Tobias Burnus <tobias@codesourcery.com>
3784
3785 * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
3786
e66af28d
GA
37872022-05-03 Marcel Vollweiler <marcel@codesourcery.com>
3788
3789 * libgomp.map: Added omp_get_mapped_ptr.
3790 * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
3791 * omp.h.in: Added omp_get_mapped_ptr.
3792 * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
3793 * omp_lib.h.in: Likewise.
3794 * target.c (omp_get_mapped_ptr): Added implementation of
3795 omp_get_mapped_ptr.
3796 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
3797 * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
3798 * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
3799 * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
3800 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
3801 * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
3802 * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
3803 * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
3804
6b6f53d8
GA
38052022-04-28 Thomas Schwinge <thomas@codesourcery.com>
3806
3807 PR fortran/104717
3808 * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
3809 privatization scanning. For GCN offloading compilation, raise
3810 '-mgang-private-size'.
3811
01ad093b
GA
38122022-04-26 Jakub Jelinek <jakub@redhat.com>
3813
3814 PR libgomp/105358
3815 * work.c (gomp_init_work_share): Don't mask of adjustment for
3816 dynamic long long realignment if struct gomp_work_share has smaller
3817 alignof than long long.
3818 * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
3819 struct gomp_work_share has smaller alignof than long long or if
3820 sizeof (struct gomp_work_share) is smaller than
3821 INLINE_ORDERED_TEAM_IDS_OFF.
3822 * loop_ull.c (GOMP_loop_ull_start): Likewise.
3823 * sections.c (GOMP_sections2_start): Likewise.
3824
98de0da6
GA
38252022-04-25 Jakub Jelinek <jakub@redhat.com>
3826 Thomas Schwinge <thomas@codesourcery.com>
3827
3828 PR fortran/104717
3829 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
3830
247bbed1
GA
38312022-04-13 Jakub Jelinek <jakub@redhat.com>
3832
3833 * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
3834
80eb8ec6
GA
38352022-04-06 Thomas Schwinge <thomas@codesourcery.com>
3836
3837 * plugin/cuda/cuda.h: Remove file.
3838 * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
3839 "cuda/cuda.h" instead of <cuda.h>.
3840 * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
3841 'PLUGIN_NVPTX_CPPFLAGS'.
3842 * configure: Regenerate.
3843
9d84ed68
GA
38442022-04-05 Chung-Lin Tang <cltang@codesourcery.com>
3845
3846 * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
3847
5e09bb1b
GA
38482022-04-04 Tom de Vries <tdevries@suse.de>
3849
3850 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
3851 on_device_arch_nvptx instead of offload_target_nvptx.
3852 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3853
8af4270d
GA
38542022-04-01 Tom de Vries <tdevries@suse.de>
3855
3856 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
3857 and use REC_DEPTH.
3858 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3859
38602022-04-01 Tom de Vries <tdevries@suse.de>
3861
3862 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
3863 num_workers check.
3864
9f774626
GA
38652022-03-29 Chenghua Xu <xuchenghua@loongson.cn>
3866 Lulu Cheng <chenglulu@loongson.cn>
3867
3868 * configure.tgt: Add LoongArch triplet.
3869
aab0127d
GA
38702022-03-28 Tom de Vries <tdevries@suse.de>
3871
3872 * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
3873 instead of /libexec/.
3874 * configure: Regenerate.
3875
31e989a2
GA
38762022-03-25 Tom de Vries <tdevries@suse.de>
3877
3878 PR libgomp/105042
3879 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
3880 execution time.
3881 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
3882 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
3883
d1ca63a1
GA
38842022-03-23 Tobias Burnus <tobias@codesourcery.com>
3885
3886 PR middle-end/104285
3887 * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
3888 * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
3889 * testsuite/libgomp.c++/target-same-name-2.C: New test.
3890 * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
3891 * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
3892 * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
3893
a2287813
GA
38942022-03-22 Tom de Vries <tdevries@suse.de>
3895
3896 PR target/104916
3897 PR target/104783
3898 * testsuite/libgomp.c/pr104783-2.c: New test.
3899
8ca61ad1
GA
39002022-03-18 Tobias Burnus <tobias@codesourcery.com>
3901
3902 PR fortran/103039
3903 * testsuite/libgomp.fortran/associate4.f90: New test.
3904
39052022-03-18 Tom de Vries <tdevries@suse.de>
3906
3907 PR target/104952
3908 * testsuite/libgomp.c/pr104952-1.c: New test.
3909 * testsuite/libgomp.c/pr104952-2.c: New test.
3910
39112022-03-18 Jakub Jelinek <jakub@redhat.com>
3912
3913 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
3914 variable next to pl variable.
3915
e9ea3016
GA
39162022-03-17 Thomas Schwinge <thomas@codesourcery.com>
3917
3918 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3919 Enhance.
3920 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
3921 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3922
39232022-03-17 Thomas Schwinge <thomas@codesourcery.com>
3924
3925 PR middle-end/90115
3926 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
3927 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3928
9fc8f278
GA
39292022-03-16 Marcel Vollweiler <marcel@codesourcery.com>
3930
3931 * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
3932 omp_set_max_active_levels.
3933 * testsuite/libgomp.fortran/icv-8.f90: New test.
3934
39352022-03-16 Thomas Schwinge <thomas@codesourcery.com>
3936
3937 PR testsuite/102841
3938 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
3939
b9756c08
GA
39402022-03-13 Tobias Burnus <tobias@codesourcery.com>
3941
3942 * libgomp.texi: Fix typo.
3943
57eeedda
GA
39442022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3945
3946 PR middle-end/100280
3947 PR middle-end/104892
3948 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
3949 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
3950 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3951 Likewise.
3952 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3953 Likewise.
3954 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3955 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3956 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3957 Likewise.
3958
39592022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3960
3961 PR middle-end/104892
3962 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
3963 to PR104892.
3964 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
3965 enable '--param=openacc-kernels=decompose' and adjust.
3966 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3967 Likewise.
3968 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3969 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3970 Likewise.
3971
39722022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3973
3974 PR middle-end/90115
3975 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
3976 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
3977 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3978 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
3979
39802022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3981
3982 PR middle-end/100280
3983 PR middle-end/104086
3984 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3985 Merge this...
3986 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3987 ..., and this...
3988 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
3989 this, and adjust.
3990 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3991 Extend.
3992
5e28be89
GA
39932022-03-10 Hafiz Abid Qadeer <abidh@codesourcery.com>
3994
3995 * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
3996 trait. Test last index in w and v array. Remove redundant
3997 assignment to V(1). Move alignment checks at the end of
3998 parallel region.
3999
40002022-03-10 Tom de Vries <tdevries@suse.de>
4001
4002 * testsuite/libgomp.c/pr104783.c: New test.
4003
40042022-03-10 Thomas Schwinge <thomas@codesourcery.com>
4005
4006 PR middle-end/90115
4007 PR middle-end/102330
4008 PR middle-end/104774
4009 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4010 Enhance.
4011 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4012 Adjust.
4013 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4014 Likewise.
4015 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4016 Likewise.
4017 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4018 Likewise.
4019 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4020 Likewise.
4021 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4022 Likewise.
4023 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4024 Likewise.
4025 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4026 Likewise.
4027 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4028 Likewise.
4029 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4030 Likewise.
4031 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4032 Likewise.
4033 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4034 Likewise.
4035 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4036 Likewise.
4037 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
4038 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4039 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4040
40412022-03-10 Thomas Schwinge <thomas@codesourcery.com>
4042
4043 PR middle-end/90115
4044 * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
4045 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
4046 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
4047 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
4048
8d96e14c
GA
40492022-03-04 Thomas Schwinge <thomas@codesourcery.com>
4050
4051 PR testsuite/104791
4052 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
4053 expected diagnostics.
4054
40552022-03-04 Thomas Schwinge <thomas@codesourcery.com>
4056
4057 PR middle-end/104784
4058 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4059 Test with '--param=openacc-kernels=decompose'.
4060 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4061 Likewise.
4062 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4063 Likewise.
4064 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4065 Likewise.
4066 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4067 Likewise.
4068 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
4069 Likewise.
4070 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
4071 Likewise.
4072 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
4073 Likewise.
4074 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
4075 Likewise.
4076 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
4077 Likewise.
4078 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
4079 Likewise.
4080 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4081 Likewise.
4082 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4083 Likewise.
4084 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
4085 Likewise.
4086 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4087 Likewise.
4088 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4089 Likewise.
4090 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4091 Likewise.
4092 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4093 Likewise.
4094 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4095 Likewise.
4096 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4097 Likewise.
4098 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4099 Likewise.
4100 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4101 Likewise.
4102 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4103 Likewise.
4104 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4105 Likewise.
4106 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
4107 Likewise.
4108 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
4109 Likewise.
4110 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
4111 Likewise.
4112 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
4113 Likewise.
4114 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
4115 Likewise.
4116 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
4117 Likewise.
4118 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
4119 Likewise.
4120 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
4121 Likewise.
4122 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
4123 Likewise.
4124
41252022-03-04 Thomas Schwinge <thomas@codesourcery.com>
4126
4127 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4128 Test '-fopt-info-omp-all'.
4129 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4130 Likewise.
4131 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4132 Likewise.
4133 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4134 Likewise.
4135 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4136 Likewise.
4137 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
4138 Likewise.
4139 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
4140 Likewise.
4141 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
4142 Likewise.
4143 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
4144 Likewise.
4145 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
4146 Likewise.
4147 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
4148 Likewise.
4149 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4150 Likewise.
4151 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4152 Likewise.
4153 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
4154 Likewise.
4155 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4156 Likewise.
4157 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4158 Likewise.
4159 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4160 Likewise.
4161 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4162 Likewise.
4163 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4164 Likewise.
4165 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4166 Likewise.
4167 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4168 Likewise.
4169 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4170 Likewise.
4171 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4172 Likewise.
4173 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4174 Likewise.
4175 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
4176 Likewise.
4177 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
4178 Likewise.
4179 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
4180 Likewise.
4181 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
4182 Likewise.
4183 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
4184 Likewise.
4185 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
4186 Likewise.
4187 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
4188 Likewise.
4189 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
4190 Likewise.
4191 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
4192 Likewise.
4193
41942022-03-04 Thomas Schwinge <thomas@codesourcery.com>
4195
4196 PR middle-end/100280
4197 PR middle-end/104132
4198 PR middle-end/104133
4199 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4200 Extend.
4201
42022022-03-04 Thomas Schwinge <thomas@codesourcery.com>
4203
4204 PR middle-end/100280
4205 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
4206 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4207 Likewise.
4208
42092022-03-04 Thomas Schwinge <thomas@codesourcery.com>
4210
4211 PR middle-end/100280
4212 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
4213 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4214 Likewise.
4215
a35f1697
GA
42162022-02-28 Tom de Vries <tdevries@suse.de>
4217
4218 * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
4219 * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
4220 * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
4221 * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
4222 * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
4223 * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
4224
756a6185
GA
42252022-02-24 Tom de Vries <tdevries@suse.de>
4226
4227 * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
4228 * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
4229 * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
4230 * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
4231 * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
4232 * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
4233 * testsuite/libgomp.c/declare-variant-3.h: New header file.
4234
2cfb33fc
GA
42352022-02-22 Thomas Schwinge <thomas@codesourcery.com>
4236
4237 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
4238 gang-redundant execution.
4239
42402022-02-22 Tom de Vries <tdevries@suse.de>
4241
4242 PR target/99555
4243 * config/nvptx/bar.c (generation_to_barrier): New function, copied
4244 from config/rtems/bar.c.
4245 (futex_wait, futex_wake): New function.
4246 (do_spin, do_wait): New function, copied from config/linux/wait.h.
4247 (gomp_barrier_wait_end, gomp_barrier_wait_last)
4248 (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
4249 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
4250 and replace with include of config/linux/bar.c.
4251 * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
4252 (gomp_barrier_init): Init new fields.
4253 * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
4254 workarounds.
4255 * testsuite/libgomp.c/pr99555-1.c: Same.
4256 * testsuite/libgomp.fortran/task-detach-6.f90: Same.
4257
42582022-02-22 Tom de Vries <tdevries@suse.de>
4259
4260 PR testsuite/104146
4261 * testsuite/libgomp.c++/pr96390.C: Add additional-option
4262 -foffload=-Wa,--verify for nvptx.
4263 * testsuite/libgomp.c-c++-common/pr96390.c: Same.
4264
875e493b
GA
42652022-02-15 Tobias Burnus <tobias@codesourcery.com>
4266
4267 * testsuite/libgomp.fortran/depend-4.f90: New test.
4268
a645583d
GA
42692022-02-10 Tobias Burnus <tobias@codesourcery.com>
4270
4271 PR c++/102204
4272 * testsuite/libgomp.c++/target-virtual-1.C: New test.
4273
42742022-02-10 Marcel Vollweiler <marcel@codesourcery.com>
4275
4276 * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
4277 * target.c (copy_firstprivate_data): Copy only if host address is not
4278 NULL.
4279 * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
4280 * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
4281 * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
4282 * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
4283 * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
4284 * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
4285 * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
4286 * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
4287 * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
4288 * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
4289
2a2fda2d
GA
42902022-02-08 Jakub Jelinek <jakub@redhat.com>
4291
4292 PR libgomp/104385
4293 * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
4294 clear task->parent.
4295 * testsuite/libgomp.c/pr104385.c: New test.
4296
3c1cbde1
GA
42972022-02-04 Tobias Burnus <tobias@codesourcery.com>
4298
4299 * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
4300 STOP of previous commit.
4301
43022022-02-04 Tobias Burnus <tobias@codesourcery.com>
4303
4304 * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
4305 from is_64bit_aligned_.
4306 * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
4307 and use it, more implicit none, remove unused argument.
4308
682ede39
GA
43092022-02-03 David Seifert <soap@gentoo.org>
4310 Jakub Jelinek <jakub@redhat.com>
4311
4312 * configure.ac: Support --disable-werror.
4313 * configure: Regenerate.
4314
ae7e4af9
GA
43152022-02-01 Tom de Vries <tdevries@suse.de>
4316
4317 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
4318 PR83812 workaround.
4319 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
4320 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
4321
43222022-02-01 Tom de Vries <tdevries@suse.de>
4323
4324 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
4325 num_workers for nvidia accelerator to fix libgomp error 'insufficient
4326 resources'.
4327 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
4328 Same.
4329 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
4330
43312022-02-01 Tom de Vries <tdevries@suse.de>
4332
4333 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
4334 recursion depth.
4335 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
4336
1bb52662
GA
43372022-01-31 Martin Liska <mliska@suse.cz>
4338
4339 * acinclude.m4: Detect *_ld_is_mold and use it.
4340 * configure: Regenerate.
4341
99f17e99
GA
43422022-01-27 Tobias Burnus <tobias@codesourcery.com>
4343
4344 * libgomp.texi (OpenMP 5.0): Update implementation status.
4345
9dd44357
GA
43462022-01-21 Thomas Schwinge <thomas@codesourcery.com>
4347
4348 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
4349 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
4350 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4351 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4352 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
4353 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4354 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4355 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4356 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
4357 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4358 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
4359 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
4360 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
4361 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
4362 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
4363
fe1ad141
GA
43642022-01-19 Marcel Vollweiler <marcel@codesourcery.com>
4365
4366 * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
4367 "static") to make the device num available in the offload image.
4368
43692022-01-19 Martin Liska <mliska@suse.cz>
4370 Thomas Schwinge <thomas@codesourcery.com>
4371
4372 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
4373 patterns.
4374 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4375 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
4376 Likewise.
4377 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
4378 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4379 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4380 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
4381 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
4382 Likewise.
4383 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
4384 Likewise.
4385 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
4386 Likewise.
4387 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
4388 Likewise.
4389 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
4390 Likewise.
4391 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
4392 Likewise.
4393 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4394 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4395 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4396
7a761ae6
GA
43972022-01-18 Martin Liska <mliska@suse.cz>
4398
4399 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
4400 in dg-warning.
4401 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4402 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
4403 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
4404 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4405 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4406 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
4407 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
4408 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
4409 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
4410 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
4411 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
4412 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
4413 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4414 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4415 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4416
fc829782
GA
44172022-01-17 Thomas Schwinge <thomas@codesourcery.com>
4418
4419 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
4420 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4421 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4422
44232022-01-17 Julian Brown <julian@codesourcery.com>
4424 Thomas Schwinge <thomas@codesourcery.com>
4425
4426 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
4427 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
4428 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
4429
1e942d7c
GA
44302022-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
4431 Andrew Stubbs <ams@codesourcery.com>
4432
4433 * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
4434 the number of teams and threads if necessary.
4435 (gcn_exec): Automatically set the number of gangs and workers if
4436 necessary.
4437
ad3f0d08
GA
44382022-01-13 Hafiz Abid Qadeer <abidh@codesourcery.com>
4439
4440 * testsuite/libgomp.fortran/allocate-1.c: New test.
4441 * testsuite/libgomp.fortran/allocate-1.f90: New test.
4442 * libgomp.texi: Remove string that says that allocate clause
4443 support is for C/C++ only.
4444
44452022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4446
4447 * testsuite/libgomp.c-c++-common/on_device_arch.h
4448 (any_device_arch, any_device_arch_intel_mic): New.
4449 * testsuite/lib/libgomp.exp
4450 (check_effective_target_offload_device_any_intel_mic): New.
4451 * testsuite/libgomp.c-c++-common/target-45.c: Use it.
4452 * testsuite/libgomp.fortran/target10.f90: Likewise.
4453
44542022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4455
4456 PR tree-optimization/102192
4457 * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
4458 '-Wuninitialized' diagnostics.
4459
44602022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4461
4462 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
4463 current '-Wuninitialized' diagnostics.
4464 * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
4465 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
4466 * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
4467 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
4468 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4469 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
4470 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
4471 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4472 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4473 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4474 * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
4475 Likewise.
4476
44772022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4478
4479 * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
4480 for 'offload_device_intel_mic'.
4481
44822022-01-13 Julian Brown <julian@codesourcery.com>
4483 Thomas Schwinge <thomas@codesourcery.com>
4484
4485 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
4486 offloading execution XFAIL.
4487
44882022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4489
4490 PR middle-end/100280
4491 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4492 Update.
4493 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
4494 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4495 Likewise.
4496
44972022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4498
4499 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4500 Enhance.
4501 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
4502 Likewise.
4503 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
4504 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
4505 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
4506 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
4507 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4508 Likewise.
4509 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4510 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
4511 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
4512 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
4513
7d11b64b
GA
45142022-01-04 Tobias Burnus <tobias@codesourcery.com>
4515
4516 * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
4517 * testsuite/libgomp.fortran/target10.f90: Likewise.
4518
45192022-01-04 Chung-Lin Tang <cltang@codesourcery.com>
4520
4521 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
4522 into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
4523 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
4524
a4ae8c37
GA
45252022-01-03 Jakub Jelinek <jakub@redhat.com>
4526
4527 * libgomp.texi: Bump @copying's copyright year.
4528
7f1239cb
GA
45292021-12-13 Tobias Burnus <tobias@codesourcery.com>
4530
4531 * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
4532 * testsuite/libgomp.fortran/atomic-19.f90: New test.
4533
0bceef16
GA
45342021-12-10 Andrew Stubbs <ams@codesourcery.com>
4535
4536 * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
4537 (GOMP_OFFLOAD_load_image): Locate the offload variables via the
4538 table, not individual symbols.
4539
4b4839e3
GA
45402021-12-09 Chung-Lin Tang <cltang@codesourcery.com>
4541
4542 * testsuite/libgomp.c++/target-lambda-1.C: Only run under
4543 "target offload_device_nonshared_as"
4544 * testsuite/libgomp.c++/target-this-3.C: Likewise.
4545 * testsuite/libgomp.c++/target-this-4.C: Likewise.
4546
641ff219
GA
45472021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
4548
4549 * target.c (gomp_map_vars_existing): Make sure attached pointer is
4550 not overwritten during cross-host/device copying.
4551 (gomp_update): Likewise.
4552 (gomp_exit_data): Likewise.
4553 * testsuite/libgomp.c++/target-11.C: Adjust testcase.
4554 * testsuite/libgomp.c++/target-12.C: Likewise.
4555 * testsuite/libgomp.c++/target-15.C: Likewise.
4556 * testsuite/libgomp.c++/target-16.C: Likewise.
4557 * testsuite/libgomp.c++/target-17.C: Likewise.
4558 * testsuite/libgomp.c++/target-21.C: Likewise.
4559 * testsuite/libgomp.c++/target-23.C: Likewise.
4560 * testsuite/libgomp.c/target-23.c: Likewise.
4561 * testsuite/libgomp.c/target-29.c: Likewise.
4562 * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
4563
45642021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
4565
4566 PR middle-end/92120
4567 * libgomp.h (gomp_attach_pointer): Add bool parameter.
4568 * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
4569 (goacc_enter_data_internal): Likewise.
4570 * target.c (gomp_map_vars_existing): Update assert condition to
4571 include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
4572 (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
4573 parameter, add support for mapping a pointer with NULL target.
4574 (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
4575 parameter, add support for attaching a pointer with NULL target.
4576 (gomp_map_vars_internal): Update calls to gomp_map_pointer and
4577 gomp_attach_pointer, add handling for
4578 GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
4579 GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
4580 * testsuite/libgomp.c++/target-23.C: New testcase.
4581 * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
4582 * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
4583 * testsuite/libgomp.c++/target-this-1.C: New testcase.
4584 * testsuite/libgomp.c++/target-this-2.C: New testcase.
4585 * testsuite/libgomp.c++/target-this-3.C: New testcase.
4586 * testsuite/libgomp.c++/target-this-4.C: New testcase.
4587 * testsuite/libgomp.c++/target-this-5.C: New testcase.
4588
70e4cb66
GA
45892021-12-04 Tobias Burnus <tobias@codesourcery.com>
4590
4591 * libgomp.texi (OpenMP 5.1): Update status.
4592
45932021-12-04 Tobias Burnus <tobias@codesourcery.com>
4594
4595 * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
4596
ea6ef320
GA
45972021-12-02 Chung-Lin Tang <cltang@codesourcery.com>
4598
4599 PR fortran/90030
4600 * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
4601 * testsuite/libgomp.fortran/pr90030.f90: New test.
4602
c177e806
GA
46032021-11-30 Kwok Cheung Yeung <kcy@codesourcery.com>
4604 Thomas Schwinge <thomas@codesourcery.com>
4605
4606 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
4607 temporary skip.
4608
46092021-11-30 Cesar Philippidis <cesar@codesourcery.com>
4610 Thomas Schwinge <thomas@codesourcery.com>
4611
4612 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
4613 skip.
4614
87cd82c8
GA
46152021-11-29 Richard Biener <rguenther@suse.de>
4616
4617 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
4618 return.
4619
d9ca4b45
GA
46202021-11-24 Jakub Jelinek <jakub@redhat.com>
4621
4622 PR middle-end/103384
4623 * testsuite/libgomp.c/declare-variant-2.c: New test.
4624
483092d3
GA
46252021-11-18 David Edelsohn <dje.gcc@gmail.com>
4626
4627 * alloc.c (gomp_aligned_alloc): Fix typo.
4628
46292021-11-18 Jakub Jelinek <jakub@redhat.com>
4630
4631 PR libgomp/102838
4632 * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
4633 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
4634 (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
4635 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4636 * work.c (alloc_work_share, gomp_work_share_start): Likewise.
4637 * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
4638 gomp_aligned_alloc instead of team_malloc.
4639
46402021-11-18 Jakub Jelinek <jakub@redhat.com>
4641
4642 PR libgomp/102838
4643 * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
4644 memalign over posix_memalign over aligned_alloc over fallback
4645 with malloc instead of aligned_alloc over _aligned_alloc over
4646 posix_memalign over memalign over fallback with malloc. For
4647 aligned_alloc, round up size up to multiple of al.
4648
6b1695f4
GA
46492021-11-16 Jakub Jelinek <jakub@redhat.com>
4650
4651 * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
4652 construct as implemented.
4653
e2b57363
GA
46542021-11-15 Tobias Burnus <tobias@codesourcery.com>
4655
4656 * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
4657
46582021-11-15 Jakub Jelinek <jakub@redhat.com>
4659
4660 * task.c (gomp_create_target_task): Copy args array as well.
4661 * target.c (gomp_target_fallback): Add args argument.
4662 Set gomp_icv (true)->thread_limit_var if thread_limit is present.
4663 (GOMP_target): Adjust gomp_target_fallback caller.
4664 (GOMP_target_ext): Likewise.
4665 (gomp_target_task_fn): Likewise.
4666 * config/nvptx/team.c (gomp_nvptx_main): Set
4667 gomp_global_icv.thread_limit_var.
4668 * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
4669
46702021-11-15 Jakub Jelinek <jakub@redhat.com>
4671
4672 * config/nvptx/team.c (__gomp_team_num): Define as
4673 __attribute__((shared)) var.
4674 (gomp_nvptx_main): Initialize __gomp_team_num to 0.
4675 * config/nvptx/target.c (__gomp_team_num): Declare as
4676 extern __attribute__((shared)) var.
4677 (GOMP_teams4): Use __gomp_team_num as the team number instead of
4678 %ctaid.x. If first, initialize it to %ctaid.x. If num_teams_lower
4679 is bigger than num_blocks, use num_teams_lower teams and arrange for
4680 bumping of __gomp_team_num if !first and returning false once we run
4681 out of teams.
4682 * config/nvptx/teams.c (__gomp_team_num): Declare as
4683 extern __attribute__((shared)) var.
4684 (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
4685
46862021-11-15 Jakub Jelinek <jakub@redhat.com>
4687
4688 * testsuite/libgomp.c/teams-5.c: New test.
4689
af2852b9
GA
46902021-11-12 Jakub Jelinek <jakub@redhat.com>
4691
4692 PR target/103201
4693 * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
4694 to ...
4695 * config/gcn/teams.c: ... here. New file.
4696
46972021-11-12 Chung-Lin Tang <cltang@codesourcery.com>
4698
4699 * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
4700 implicit map handling to allow a "superset" existing map as valid case.
4701 (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
4702 (get_implicit): New function to extract implicit status.
4703 (gomp_map_fields_existing): Adjust arguments in calls to
4704 gomp_map_vars_existing, and add uses of get_implicit.
4705 (gomp_map_vars_internal): Likewise.
4706 * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
4707
47082021-11-12 Jakub Jelinek <jakub@redhat.com>
4709
4710 * libgomp_g.h (GOMP_teams4): Declare.
4711 * libgomp.map (GOMP_5.1): Export GOMP_teams4.
4712 * target.c (GOMP_teams4): New function.
4713 * config/nvptx/target.c (GOMP_teams): Remove.
4714 (GOMP_teams4): New function.
4715 * config/gcn/target.c (GOMP_teams): Remove.
4716 (GOMP_teams4): New function.
4717 * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
4718 teams instead of <= 2.
4719 * testsuite/libgomp.c-c++-common/teams-2.c: New test.
4720
b39265d4
GA
47212021-11-11 Tobias Burnus <tobias@codesourcery.com>
4722
4723 * testsuite/libgomp.fortran/teams-1.f90: New test.
4724
47252021-11-11 Jakub Jelinek <jakub@redhat.com>
4726
4727 * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
4728 * team.c (struct gomp_thread_start_data): Likewise.
4729 (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
4730 (gomp_team_start): Initialize start_data->num_teams and
4731 start_data->team_num. Update nthr->num_teams and nthr->team_num.
4732 * teams.c (gomp_num_teams, gomp_team_num): Remove.
4733 (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
4734 instead of gomp_num_teams and gomp_team_num.
4735 (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
4736 (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
4737 * testsuite/libgomp.c/teams-4.c: New test.
4738
47392021-11-11 Jakub Jelinek <jakub@redhat.com>
4740
4741 * testsuite/libgomp.c-c++-common/teams-1.c: New test.
4742
c9b1334e
GA
47432021-11-09 Thomas Schwinge <thomas@codesourcery.com>
4744
4745 * env.c (parse_gomp_openacc_dim): Restore parsing.
4746
0ef94462
GA
47472021-10-30 Tobias Burnus <tobias@codesourcery.com>
4748
4749 PR middle-end/102972
4750 * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
4751 parallel construct.
4752 * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
4753 * testsuite/libgomp.c/target-3.c: Likewise.
4754 * testsuite/libgomp.c/target-5.c: Likewise.
4755 * testsuite/libgomp.c/target-6.c: Likewise.
4756 * testsuite/libgomp.c/target-teams-1.c: Likewise.
4757 * testsuite/libgomp.c/teams-1.c: Likewise.
4758 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
4759 * testsuite/libgomp.c/thread-limit-3.c: Likewise.
4760 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
4761 * testsuite/libgomp.c/thread-limit-5.c: Likewise.
4762 * testsuite/libgomp.fortran/icv-3.f90: Likewise.
4763 * testsuite/libgomp.fortran/icv-4.f90: Likewise.
4764 * testsuite/libgomp.fortran/teams1.f90: Likewise.
4765
4c61300f
GA
47662021-10-29 Aldy Hernandez <aldyh@redhat.com>
4767
4768 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
4769 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
4770
04a2cf3f
GA
47712021-10-27 Jakub Jelinek <jakub@redhat.com>
4772
4773 * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
4774 aren't implemented for Fortran yet.
4775
47762021-10-27 Jakub Jelinek <jakub@redhat.com>
4777
4778 * testsuite/libgomp.c/loop-26.c: New test.
4779 * testsuite/libgomp.c/loop-27.c: New test.
4780
b621508d
GA
47812021-10-25 Tobias Burnus <tobias@codesourcery.com>
4782
4783 PR testsuite/102910
4784 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
4785 instead of #include <alloca.h> + alloca.
4786
ae5c5406
GA
47872021-10-21 Chung-Lin Tang <cltang@codesourcery.com>
4788
4789 * libgomp.texi (Support of strictly structured blocks in Fortran):
4790 Adjust to 'Y'.
4791 * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
4792
674dda6b
GA
47932021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
4794
4795 * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
4796 * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
4797
47982021-10-20 Jakub Jelinek <jakub@redhat.com>
4799
4800 PR libgomp/102838
4801 * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
4802 (struct gomp_work_share): Only use aligned(64) attribute if
4803 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
4804 add padding before lock to ensure lock is at offset 64 bytes
4805 into the structure.
4806 (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
4807 New poor man's static assertions.
4808 * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
4809 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4810
48112021-10-20 Aldy Hernandez <aldyh@redhat.com>
4812 Richard Biener <rguenther@suse.de>
4813
4814 * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
4815
ce4d1f63
GA
48162021-10-18 Jakub Jelinek <jakub@redhat.com>
4817
4818 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
4819 && gomp_places_list_len < count after nfirst <= nlast loop condition.
4820
48212021-10-18 Tobias Burnus <tobias@codesourcery.com>
4822
4823 PR fortran/102086
4824 PR fortran/92189
4825 PR fortran/92621
4826 PR fortran/101308
4827 PR fortran/101309
4828 PR fortran/101635
4829 PR fortran/92482
4830 * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
4831
93d183a5
GA
48322021-10-15 Jakub Jelinek <jakub@redhat.com>
4833
4834 * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
4835 type from char [50] to const char *.
4836 (places_array): Add a testcase for simplified syntax place followed
4837 by length or length and stride.
4838
48392021-10-15 Jakub Jelinek <jakub@redhat.com>
4840
4841 * env.c (parse_one_place): Handle non-negative-number the same
4842 as { non-negative-number }. Reject even !number:1 and
4843 !number:1:stride or !place:1 or !place:1:stride instead of just
4844 length other than 1.
4845 * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
4846 and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
4847 omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
4848 as implemented.
4849 * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
4850 simplified syntax.
4851
48522021-10-15 Jakub Jelinek <jakub@redhat.com>
4853
4854 * env.c (parse_schedule): For strtoul or strtoull calls which don't
4855 clearly reject return value 0 as invalid handle the case where end
4856 pointer is the same as first argument as invalid.
4857 (parse_unsigned_long_1): Likewise.
4858 (parse_one_place): Likewise.
4859 (parse_places_var): Likewise.
4860 (parse_stacksize): Likewise.
4861 (parse_spincount): Likewise.
4862 (parse_affinity): Likewise.
4863 (parse_gomp_openacc_dim): Likewise. Avoid strict aliasing violation.
4864 Make code valid C89.
4865 * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
4866 For strtoul calls which don't clearly reject return value 0 as
4867 invalid handle the case where end pointer is the same as first
4868 argument as invalid.
4869 (gomp_affinity_init_level_1): Likewise.
4870 (gomp_affinity_init_numa_domains): Likewise.
4871 * config/rtems/proc.c (parse_thread_pools): Likewise.
4872
48732021-10-15 Jakub Jelinek <jakub@redhat.com>
4874
4875 * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
4876 after creating count places clean up and return immediately.
4877 * testsuite/libgomp.c/places-6.c: New test.
4878 * testsuite/libgomp.c/places-7.c: New test.
4879 * testsuite/libgomp.c/places-8.c: New test.
4880 * testsuite/libgomp.c/places-9.c: New test.
4881 * testsuite/libgomp.c/places-10.c: New test.
4882
48832021-10-15 Jakub Jelinek <jakub@redhat.com>
4884
4885 * env.c (parse_places_var): Handle numa_domains as level 5.
4886 * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
4887 function.
4888 (gomp_affinity_init_level): Use it instead of
4889 gomp_affinity_init_level_1 for level == 5.
4890 * testsuite/libgomp.c/places-5.c: New test.
4891
48922021-10-15 Jakub Jelinek <jakub@redhat.com>
4893
4894 * env.c (parse_places_var): Handle ll_caches as level 4.
4895 * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
4896 function.
4897 (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
4898 last level cache.
4899 (gomp_affinity_init_level): Likewise.
4900 * testsuite/libgomp.c/places-1.c: New test.
4901 * testsuite/libgomp.c/places-2.c: New test.
4902 * testsuite/libgomp.c/places-3.c: New test.
4903 * testsuite/libgomp.c/places-4.c: New test.
4904
5d5885c9
GA
49052021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
4906
4907 * libgomp.texi (OpenMP 5.0): Update entry for declare variant
4908 directive.
4909
49102021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
4911
4912 * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
4913
52055987
GA
49142021-10-12 Julian Brown <julian@codesourcery.com>
4915
4916 * target.c (gomp_copy_host2dev): Release device lock on cbuf
4917 error path.
4918
49192021-10-12 Tobias Burnus <tobias@codesourcery.com>
4920
4921 * testsuite/libgomp.fortran/icv-3.f90: New.
4922 * testsuite/libgomp.fortran/icv-4.f90: New.
4923
49242021-10-12 Jakub Jelinek <jakub@redhat.com>
4925
4926 * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
4927 omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
4928 OMP_TEAMS_THREAD_LIMIT): Document.
4929
49302021-10-12 Jakub Jelinek <jakub@redhat.com>
4931
4932 * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
4933 to avoid makeinfo warnings.
4934
49352021-10-12 Jakub Jelinek <jakub@redhat.com>
4936
4937 * testsuite/libgomp.c-c++-common/icv-3.c: New test.
4938 * testsuite/libgomp.c-c++-common/icv-4.c: New test.
4939
49402021-10-12 Jakub Jelinek <jakub@redhat.com>
4941
4942 PR libgomp/102628
4943 PR libgomp/102668
4944 * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
4945 allocation sizes from 420 to 320 and from 768 to 568.
4946 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
4947 * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
4948 for cr from 16 to 4.
4949
49502021-10-12 Jakub Jelinek <jakub@redhat.com>
4951
4952 * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
4953 * testsuite/libgomp.c/scan-12.c: Likewise.
4954 * testsuite/libgomp.c/scan-13.c: Likewise.
4955 * testsuite/libgomp.c/scan-14.c: Likewise.
4956 * testsuite/libgomp.c/scan-15.c: Likewise.
4957 * testsuite/libgomp.c/scan-16.c: Likewise.
4958 * testsuite/libgomp.c/scan-17.c: Likewise.
4959 * testsuite/libgomp.c/scan-18.c: Likewise.
4960 * testsuite/libgomp.c/scan-19.c: Likewise.
4961 * testsuite/libgomp.c/scan-20.c: Likewise.
4962 * testsuite/libgomp.c/scan-21.c: Likewise.
4963 * testsuite/libgomp.c/scan-22.c: Likewise.
4964 * testsuite/libgomp.c++/scan-9.C: Likewise.
4965 * testsuite/libgomp.c++/scan-10.C: Likewise.
4966 * testsuite/libgomp.c++/scan-11.C: Likewise.
4967 * testsuite/libgomp.c++/scan-12.C: Likewise.
4968 * testsuite/libgomp.c++/scan-13.C: Likewise.
4969 * testsuite/libgomp.c++/scan-14.C: Likewise.
4970 * testsuite/libgomp.c++/scan-15.C: Likewise.
4971 * testsuite/libgomp.c++/scan-16.C: Likewise.
4972
49732021-10-12 Kewen Lin <linkw@linux.ibm.com>
4974
4975 * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
4976
732d7638
GA
49772021-10-11 Marcel Vollweiler <marcel@codesourcery.com>
4978
4979 * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
4980 omp_atv_serialized.
4981 * omp.h.in: Add deprecated flag for omp_atv_sequential.
4982 * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
4983 * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
4984 * testsuite/libgomp.fortran/alloc-12.f90: New test.
4985
49862021-10-11 Jakub Jelinek <jakub@redhat.com>
4987
4988 * omp.h.in (omp_set_num_teams, omp_get_max_teams,
4989 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4990 * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
4991 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4992 * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
4993 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4994 * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
4995 * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
4996 omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
4997 omp_set_teams_thread_limit{,_,_8_}.
4998 * icv.c (omp_set_num_teams, omp_get_max_teams,
4999 omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
5000 functions.
5001 * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
5002 (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
5003 (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
5004 vars.
5005 * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
5006 gomp_teams_thread_limit_var as fallback if not zero. If num_teams
5007 is not specified, use gomp_nteams_var.
5008 * fortran.c (omp_set_num_teams, omp_get_max_teams,
5009 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
5010 ialias_redirect.
5011 (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
5012 omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
5013 omp_get_teams_thread_limit_): New functions.
5014
c9db17b8
GA
50152021-10-09 liuhongt <hongtao.liu@intel.com>
5016
5017 * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
5018 * testsuite/libgomp.c++/scan-11.C: Ditto.
5019 * testsuite/libgomp.c++/scan-12.C: Ditto.
5020 * testsuite/libgomp.c++/scan-13.C: Ditto.
5021 * testsuite/libgomp.c++/scan-14.C: Ditto.
5022 * testsuite/libgomp.c++/scan-15.C: Ditto.
5023 * testsuite/libgomp.c++/scan-16.C: Ditto.
5024 * testsuite/libgomp.c++/scan-9.C: Ditto.
5025 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
5026 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
5027 * testsuite/libgomp.c/scan-11.c: Ditto.
5028 * testsuite/libgomp.c/scan-12.c: Ditto.
5029 * testsuite/libgomp.c/scan-13.c: Ditto.
5030 * testsuite/libgomp.c/scan-14.c: Ditto.
5031 * testsuite/libgomp.c/scan-15.c: Ditto.
5032 * testsuite/libgomp.c/scan-16.c: Ditto.
5033 * testsuite/libgomp.c/scan-17.c: Ditto.
5034 * testsuite/libgomp.c/scan-18.c: Ditto.
5035 * testsuite/libgomp.c/scan-19.c: Ditto.
5036 * testsuite/libgomp.c/scan-20.c: Ditto.
5037 * testsuite/libgomp.c/scan-21.c: Ditto.
5038 * testsuite/libgomp.c/scan-22.c: Ditto.
5039
50402021-10-09 Jakub Jelinek <jakub@redhat.com>
5041
5042 * libgomp.texi (OpenMP 5.1): Mention implemented support for
5043 structured block sequences in C/C++. Mention support for
5044 unconstrained/reproducible modifiers on order clause.
5045 Mention partial (C/C++ only) support of extentensions to atomics
5046 construct. Mention partial (C/C++ on clause only) support of
5047 align/allocator modifiers on allocate clause.
5048
e3e07b89
GA
50492021-10-02 Tobias Burnus <tobias@codesourcery.com>
5050
5051 * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
5052 based on libgomp.c-c++-common/order-reproducible-1.c.
5053 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
5054 * testsuite/libgomp.fortran/my-usleep.c: New test.
5055
9d116bcc
GA
50562021-10-01 Tobias Burnus <tobias@codesourcery.com>
5057
5058 * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
5059 * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
5060 * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
5061 * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
5062 based on libgomp.c-c++-common/alloc-9.c.
5063
50642021-10-01 Jakub Jelinek <jakub@redhat.com>
5065
5066 * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
5067 * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
5068
50692021-10-01 Jakub Jelinek <jakub@redhat.com>
5070
5071 * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
5072 ialias_redirect.
5073 * env.c (handle_omp_display_env): Use ialias_call.
5074 * icv-device.c: Move ialias right below each function.
5075 (omp_get_device_num): Use ialias_call.
5076 * fortran.c (omp_fulfill_event): Add ialias_redirect.
5077 * icv.c (omp_get_active_level): Add ialias_redirect.
5078
50792021-10-01 Jakub Jelinek <jakub@redhat.com>
5080
5081 * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
5082 __alloc_align__ (1) attribute.
5083 * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
5084
24679983
GA
50852021-09-30 Tobias Burnus <tobias@codesourcery.com>
5086
5087 * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
5088 for -fintrinsic-modules-path= warning of the C compiler.
5089 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
5090 * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
5091
50922021-09-30 Tobias Burnus <tobias@codesourcery.com>
5093
5094 * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
5095 omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
5096 * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
5097 omp_realloc): Add.
5098 * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
5099 omp_realloc): Add.
5100 * testsuite/libgomp.fortran/alloc-10.f90: New test.
5101 * testsuite/libgomp.fortran/alloc-6.f90: New test.
5102 * testsuite/libgomp.fortran/alloc-7.c: New test.
5103 * testsuite/libgomp.fortran/alloc-7.f90: New test.
5104 * testsuite/libgomp.fortran/alloc-8.f90: New test.
5105 * testsuite/libgomp.fortran/alloc-9.f90: New test.
5106
51072021-09-30 Jakub Jelinek <jakub@redhat.com>
5108
5109 * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
5110 omp_realloc): New prototypes.
5111 (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
5112 attribute.
5113 * allocator.c: Include string.h.
5114 (omp_aligned_alloc): No longer static, add ialias. Add new_alignment
5115 variable and use it instead of alignment so that when retrying the old
5116 alignment is used again. Don't retry if new alignment is the same
5117 as old alignment, unless allocator had pool size.
5118 (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
5119 (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
5120 * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
5121 omp_aligned_calloc and omp_realloc.
5122 * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
5123 omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
5124 * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
5125 * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
5126 * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
5127 * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
5128
fd133479
GA
51292021-09-28 Tobias Burnus <tobias@codesourcery.com>
5130
5131 PR libgomp/96661
5132 * configure.ac: Only check for int-type = 2*size_t support when
5133 building with Fortran support.
5134 * configure: Regenerate.
5135
51362021-09-28 Thomas Schwinge <thomas@codesourcery.com>
5137
5138 * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
5139 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5140
cf966403
GA
51412021-09-27 Aldy Hernandez <aldyh@redhat.com>
5142
5143 * team.c: Initialize start_data.
5144 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
5145 * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
5146
51472021-09-27 Tobias Burnus <tobias@codesourcery.com>
5148
5149 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
5150 dg-message back to dg-note.
5151
51522021-09-27 Tobias Burnus <tobias@codesourcery.com>
5153
5154 PR fortran/94070
5155 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
5156 expected dg-note output.
5157
e4777439
GA
51582021-09-22 Tobias Burnus <tobias@codesourcery.com>
5159
5160 PR fortran/55534
5161 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
5162 r12-3722 by removing -Wno-missing-include-dirs.
5163 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
5164
51652021-09-22 Jakub Jelinek <jakub@redhat.com>
5166
5167 * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
5168 * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
5169
2c41dd82
GA
51702021-09-21 Tobias Burnus <tobias@codesourcery.com>
5171
5172 PR fortran/55534
5173 * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
5174 to ALWAYS_CFLAGS.
5175 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5176
cf74e7b5
GA
51772021-09-18 Jakub Jelinek <jakub@redhat.com>
5178
5179 * testsuite/libgomp.c++/default-1.C: New test.
5180 * testsuite/libgomp.c-c++-common/default-1.c: New test.
5181 * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
5182 to default clause in C and C++" as implemented.
5183
0a4cb439
GA
51842021-09-17 Julian Brown <julian@codesourcery.com>
5185
5186 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
5187
51882021-09-17 Julian Brown <julian@codesourcery.com>
5189
5190 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
5191
51922021-09-17 Jakub Jelinek <jakub@redhat.com>
5193
5194 * libgomp.texi (OpenMP 5.1): Spelling fix,
5195 declare variante -> declare variant.
5196
51972021-09-17 Jakub Jelinek <jakub@redhat.com>
5198
5199 * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
5200 Use /* */ comments instead of //.
5201 * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
5202 * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
5203 * testsuite/libgomp.c++/atomic-16.C: New test.
5204 * testsuite/libgomp.c++/atomic-17.C: New test.
5205
a26206ec
GA
52062021-09-10 Jakub Jelinek <jakub@redhat.com>
5207
5208 * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
5209 * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
5210 * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
5211
b2748138
GA
52122021-09-07 Tobias Burnus <tobias@codesourcery.com>
5213
5214 * libgomp.texi (OpenMP Implementation Status): Extend
5215 OpenMP 5.0 section.
5216 (OpenACC Profiling Interface): Fix typo.
5217
52182021-09-07 Tobias Burnus <tobias@codesourcery.com>
5219
5220 * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
5221 not to 4.5; link to new section.
5222 (OpenMP Implementation Status): New.
5223
9f99555f
GA
52242021-09-06 Thomas Schwinge <thomas@codesourcery.com>
5225
5226 * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
5227
7b739540
GA
52282021-09-03 Tobias Burnus <tobias@codesourcery.com>
5229
5230 * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
5231 dg-output.
5232 * testsuite/libgomp.fortran/error-1.f90: Likewise.
5233
38b19c5b
GA
52342021-08-23 Thomas Schwinge <thomas@codesourcery.com>
5235 Jakub Jelinek <jakub@redhat.com>
5236
5237 * testsuite/libgomp.c/address-space-1.c: New file.
5238
52392021-08-23 Thomas Schwinge <thomas@codesourcery.com>
5240
5241 * testsuite/lib/libgomp.exp
5242 (check_effective_target_offload_target_intelmic): Remove 'proc'.
5243 (check_effective_target_offload_device_intel_mic): New 'proc'.
5244 * testsuite/libgomp.c-c++-common/on_device_arch.h
5245 (device_arch_intel_mic, on_device_arch_intel_mic): New.
5246 * testsuite/libgomp.c-c++-common/target-45.c: Use that for
5247 'dg-xfail-run-if'.
5248 * testsuite/libgomp.fortran/target10.f90: Likewise.
5249
52502021-08-23 Tobias Burnus <tobias@codesourcery.com>
5251
5252 * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
5253 * testsuite/libgomp.fortran/taskloop-4.f90: New test.
5254 * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
5255 * testsuite/libgomp.fortran/taskloop-5.f90: New test.
5256
52572021-08-23 Jakub Jelinek <jakub@redhat.com>
5258
5259 * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
5260 * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
5261 * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
5262
5b2876f9
GA
52632021-08-22 Thomas Schwinge <thomas@codesourcery.com>
5264
5265 * config/nvptx/error.c (fwrite, exit): Override, too.
5266 * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
5267 of offloading testing.
5268 * testsuite/libgomp.fortran/error-1.f90: Likewise.
5269
7c9e1645
GA
52702021-08-20 Tobias Burnus <tobias@codesourcery.com>
5271
5272 * testsuite/libgomp.fortran/error-1.f90: New test.
5273
52742021-08-20 Jakub Jelinek <jakub@redhat.com>
5275
5276 * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
5277 * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
5278 * error.c (GOMP_warning, GOMP_error): New functions.
5279 * testsuite/libgomp.c-c++-common/error-1.c: New test.
5280
6e529985
GA
52812021-08-18 Tobias Burnus <tobias@codesourcery.com>
5282
5283 * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
5284 omp_target_free. omp_target_is_present, omp_target_memcpy,
5285 omp_target_memcpy_rect, omp_target_associate_ptr,
5286 omp_target_disassociate_ptr): Add interface.
5287 * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
5288 omp_target_free. omp_target_is_present, omp_target_memcpy,
5289 omp_target_memcpy_rect, omp_target_associate_ptr,
5290 omp_target_disassociate_ptr): Add interface.
5291 * testsuite/libgomp.fortran/alloc-1.F90: Remove local
5292 interface block for omp_alloc + omp_free.
5293 * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
5294 * testsuite/libgomp.fortran/refcount-1.f90: New test.
5295 * testsuite/libgomp.fortran/target-12.f90: New test.
5296
52972021-08-18 Jakub Jelinek <jakub@redhat.com>
5298
5299 * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
5300
2d14d64b
GA
53012021-08-17 Tobias Burnus <tobias@codesourcery.com>
5302
5303 * testsuite/libgomp.fortran/scope-1.f90: New test.
5304 * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
5305
53062021-08-17 Jakub Jelinek <jakub@redhat.com>
5307
5308 * Makefile.am (libgomp_la_SOURCES): Add scope.c
5309 * Makefile.in: Regenerated.
5310 * libgomp_g.h (GOMP_scope_start): Declare.
5311 * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
5312 * scope.c: New file.
5313 * testsuite/libgomp.c-c++-common/scope-1.c: New test.
5314 * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
5315
9d1d9fc8
GA
53162021-08-16 Thomas Schwinge <thomas@codesourcery.com>
5317
5318 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
5319 '?:' issues.
5320
53212021-08-16 Tobias Burnus <tobias@codesourcery.com>
5322
5323 * testsuite/libgomp.fortran/masked-1.f90: New test.
5324
261512fa
GA
53252021-08-13 Thomas Schwinge <thomas@codesourcery.com>
5326
5327 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
5328
72be20e2
GA
53292021-08-12 Jakub Jelinek <jakub@redhat.com>
5330
5331 * testsuite/libgomp.c-c++-common/masked-1.c: New test.
5332
53332021-08-12 Tobias Burnus <tobias@codesourcery.com>
5334
5335 * env.c (parse_bind_var): Accept 'primary' as alias for
5336 'master'.
5337 (omp_display_env): Add TODO comment to
5338 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
5339 * libgomp.texi: Change 'master thread' to 'primary thread'
5340 in line with OpenMP 5.1.
5341 (omp_get_proc_bind): Add omp_proc_bind_primary and note that
5342 omp_proc_bind_master is an alias of it.
5343 (OMP_PROC_BIND): Mention 'PRIMARY'.
5344 * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
5345 (omp_proc_bind_primary): Add.
5346 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
5347 * omp_lib.f90.in (omp_proc_bind_primary): Add.
5348 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
5349 * omp_lib.h.in (omp_proc_bind_primary): Add.
5350 * testsuite/libgomp.c/affinity-1.c: Check that
5351 'primary' works and is identical to 'master'.
5352
37768150
GA
53532021-08-09 Julian Brown <julian@codesourcery.com>
5354 Kwok Cheung Yeung <kcy@codesourcery.com>
5355 Thomas Schwinge <thomas@codesourcery.com>
5356
5357 * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
5358 16.
5359 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
5360 [acc_device_radeon]: Update.
5361 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
5362 [ACC_DEVICE_TYPE_radeon]: Likewise.
5363 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5364 [acc_device_radeon]: Likewise.
5365 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
5366 [ACC_DEVICE_TYPE_radeon]: Likewise.
5367 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
5368 'openacc_radeon_accel_selected' and '-O0'.
5369 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
5370
8ebf4fb5
GA
53712021-08-05 Chung-Lin Tang <cltang@codesourcery.com>
5372
5373 * icv-device.c (omp_get_device_num): New API function, host side.
5374 * fortran.c (omp_get_device_num_): New interface function.
5375 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
5376 * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
5377 omp_get_device_num_.
5378 * libgomp.texi (omp_get_device_num): Add documentation for new API
5379 function.
5380 * omp.h.in (omp_get_device_num): Add declaration.
5381 * omp_lib.f90.in (omp_get_device_num): Likewise.
5382 * omp_lib.h.in (omp_get_device_num): Likewise.
5383 * target.c (gomp_load_image_to_device): If additional entry for device
5384 number exists at end of returned entries from 'load_image_func' hook,
5385 copy the assigned device number over to the device variable.
5386 * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
5387 (omp_get_device_num): New API function, device side.
5388 * plugin/plugin-gcn.c ("symcat.h"): Add include.
5389 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
5390 at end of returned 'target_table' entries.
5391 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
5392 (omp_get_device_num): New API function, device side.
5393 * plugin/plugin-nvptx.c ("symcat.h"): Add include.
5394 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
5395 at end of returned 'target_table' entries.
5396 * testsuite/lib/libgomp.exp
5397 (check_effective_target_offload_target_intelmic): New function for
5398 testing for intelmic offloading.
5399 * testsuite/libgomp.c-c++-common/target-45.c: New test.
5400 * testsuite/libgomp.fortran/target10.f90: New test.
5401
4d17ca1b
GA
54022021-07-30 Thomas Schwinge <thomas@codesourcery.com>
5403 Ulrich Drepper <drepper@redhat.com>
5404
5405 * fortran.c (omp_display_env_, omp_display_env_8_): Only
5406 '#ifndef LIBGOMP_OFFLOADED_ONLY'.
5407
54082021-07-29 Thomas Schwinge <thomas@codesourcery.com>
5409 Julian Brown <julian@codesourcery.com>
5410 Kwok Cheung Yeung <kcy@codesourcery.com>
5411
5412 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
5413 's%oaccdevlow%oaccloops%g'.
5414 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
5415 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
5416 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
5417 Likewise.
5418 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
5419 Likewise.
5420 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
5421 Likewise.
5422 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
5423 Likewise.
5424 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
5425 Likewise.
5426 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
5427 Likewise.
5428 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
5429 Likewise.
5430 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
5431 Likewise.
5432 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
5433
872c1a56
ML
54342021-07-29 Aldy Hernandez <aldyh@redhat.com>
5435
5436 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
5437 threader.
5438 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
5439
af3f12e6
GA
54402021-07-27 Ulrich Drepper <drepper@gmail.com>
5441
5442 * env.c (wait_policy, stacksize): New static variables,
5443 move out of handle_omp_display_env.
5444 (omp_display_env): New function. The meat of the old
5445 handle_omp_display_env function.
5446 (handle_omp_display_env): Change to not take parameters
5447 and instead use the global variables. Only perform
5448 parsing, defer to omp_display_env for the implementation.
5449 (initialize_env): Remove local variables wait_policy and
5450 stacksize. Don't pass parameters to handle_omp_display_env.
5451 * fortran.c: Add ialias_redirect for omp_display_env.
5452 (omp_display_env_, omp_display_env_8_): New functions.
5453 * libgomp.map (OMP_5.1): New version. Add omp_display_env,
5454 omp_display_env_, and omp_display_env_8_.
5455 * omp.h.in: Declare omp_display_env.
5456 * omp_lib.f90.in: Likewise.
5457 * omp_lib.h.in: Likewise.
5458
54592021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5460 Julian Brown <julian@codesourcery.com>
5461
5462 * target.c (gomp_coalesce_buf_add): Update comment.
5463 (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
5464 'aq && cbuf'.
5465 (gomp_map_vars_internal): Only 'if (!aq)', do
5466 'gomp_coalesce_buf_add'.
5467 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
5468 XFAIL.
5469
54702021-07-27 Julian Brown <julian@codesourcery.com>
5471 Thomas Schwinge <thomas@codesourcery.com>
5472
5473 * libgomp.h (gomp_copy_host2dev): Update prototype.
5474 * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
5475 argument to gomp_copy_host2dev (false).
5476 * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
5477 (copy_data): Don't free src.
5478 (queue_push_copy): Remove free_src handling.
5479 (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
5480 (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
5481 snapshotting.
5482 (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
5483 queue_push_copy.
5484 * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
5485 (gomp_copy_host2dev): Add EPHEMERAL parameter. Snapshot source
5486 data when true, and set up deferred freeing of temporary buffer.
5487 (gomp_copy_dev2host): Update call to goacc_device_copy_async.
5488 (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
5489 (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
5490 calls to gomp_copy_host2dev with appropriate ephemeral argument.
5491 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
5492 XFAIL.
5493
54942021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5495 Tom de Vries <tom@codesourcery.com>
5496
5497 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
5498 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
5499
55002021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5501
5502 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
5503 sequencing of 'async' data copying vs. profiling events.
5504 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
5505 Likewise.
5506
55072021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5508 Julian Brown <julian@codesourcery.com>
5509
5510 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
5511 'async'/'wait' issue.
5512 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
5513 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
5514 * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
5515
419c6c68
GA
55162021-07-21 Thomas Schwinge <thomas@codesourcery.com>
5517 Joseph Myers <joseph@codesourcery.com>
5518 Cesar Philippidis <cesar@codesourcery.com>
5519
5520 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
5521 file.
5522 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
5523 Likewise.
5524 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
5525 Likewise.
5526 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
5527
92d45509
GA
55282021-07-20 Thomas Schwinge <thomas@codesourcery.com>
5529
5530 PR target/101484
5531 * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
5532 '-Wno-error=array-bounds'.
5533 * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
5534 * libgomp.h [__AMDGCN__]: Likewise.
5535
21ea2f93
GA
55362021-07-19 Thomas Schwinge <thomas@codesourcery.com>
5537
5538 PR target/101484
5539 * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
5540 * libgomp.h [__AMDGCN__]: Likewise.
5541
0e775456
GA
55422021-07-13 Jakub Jelinek <jakub@redhat.com>
5543 Florian Weimer <fweimer@redhat.com>
5544
5545 * config/linux/sem.h: Don't include limits.h.
5546 (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
5547 * config/linux/affinity.c: Include limits.h.
5548
bea7c16a
GA
55492021-07-01 Jakub Jelinek <jakub@redhat.com>
5550
5551 PR middle-end/94366
5552 * testsuite/libgomp.c-c++-common/pr94366.c: New test.
5553
6bc18203
GA
55542021-06-29 Tobias Burnus <tobias@codesourcery.com>
5555
5556 PR other/67300
5557 * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
5558 -foffload=nvptx-none= by -foffload-options=nvptx-none= to
5559 avoid disabling other offload targets.
5560 * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
5561 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5562 * testsuite/libgomp.c/target-44.c: Likewise.
5563
55642021-06-29 Tobias Burnus <tobias@codesourcery.com>
5565
5566 * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
5567 target has shared memory and disable some scalar pointer/allocatable
5568 checks if not as firstprivate does not work.
5569
90708f87
GA
55702021-06-25 Chung-Lin Tang <cltang@codesourcery.com>
5571
5572 PR testsuite/101114
5573 * testsuite/libgomp.c-c++-common/struct-elem-5.c:
5574 Add "target offload_device_nonshared_as" condition for enabling test.
5575
9aa8327e
GA
55762021-06-24 Jakub Jelinek <jakub@redhat.com>
5577
5578 * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
5579 * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
5580 * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
5581 * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
5582
fcf617f0
GA
55832021-06-23 Jakub Jelinek <jakub@redhat.com>
5584
5585 PR middle-end/101167
5586 * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
5587
688359a2
GA
55882021-06-17 Chung-Lin Tang <cltang@codesourcery.com>
5589
5590 * hashtab.h (htab_clear): New function with initialization code
5591 factored out from...
5592 (htab_create): ...here, adjust to use htab_clear function.
5593 * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
5594 special refcount values, add comments.
5595 (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
5596 (REFCOUNT_LINK): Likewise.
5597 (REFCOUNT_STRUCTELEM): New special refcount range for structure
5598 element siblings.
5599 (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
5600 sibling maps.
5601 (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
5602 (REFCOUNT_STRUCTELEM_FLAG_LAST): Flag to indicate last sibling.
5603 (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
5604 (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
5605 (struct splay_tree_key_s): Add structelem_refcount and
5606 structelem_refcount_ptr fields into a union with dynamic_refcount.
5607 Add comments.
5608 (gomp_map_vars): Delete declaration.
5609 (gomp_map_vars_async): Likewise.
5610 (gomp_unmap_vars): Likewise.
5611 (gomp_unmap_vars_async): Likewise.
5612 (goacc_map_vars): New declaration.
5613 (goacc_unmap_vars): Likewise.
5614 * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
5615 (goacc_enter_datum): Likewise.
5616 (goacc_enter_data_internal): Likewise.
5617 * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
5618 and goacc_unmap_vars.
5619 (GOACC_data_start): Adjust to use goacc_map_vars.
5620 (GOACC_data_end): Adjust to use goacc_unmap_vars.
5621 * target.c (hash_entry_type): New typedef.
5622 (htab_alloc): New function hook for hashtab.h.
5623 (htab_free): Likewise.
5624 (htab_hash): Likewise.
5625 (htab_eq): Likewise.
5626 (hashtab.h): Add file include.
5627 (gomp_increment_refcount): New function.
5628 (gomp_decrement_refcount): Likewise.
5629 (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
5630 gomp_increment_refcount.
5631 (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
5632 to gomp_map_vars_existing.
5633 (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
5634 variable to guard OpenMP specific paths, adjust calls to
5635 gomp_map_vars_existing, add structure element sibling splay_tree_key
5636 sequence creation code, adjust Fortran map case to avoid increment
5637 under OpenMP.
5638 (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
5639 local refcount_set if caller passed in NULL, adjust call to
5640 gomp_map_vars_internal.
5641 (gomp_map_vars_async): Adjust and rename into...
5642 (goacc_map_vars): ...this new function, adjust call to
5643 gomp_map_vars_internal.
5644 (gomp_remove_splay_tree_key): New function with code factored out from
5645 gomp_remove_var_internal.
5646 (gomp_remove_var_internal): Add code to handle removing multiple
5647 splay_tree_key sequence for structure elements, adjust code to use
5648 gomp_remove_splay_tree_key for splay-tree key removal.
5649 (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
5650 gomp_decrement_refcount.
5651 (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
5652 local refcount_set if caller passed in NULL, adjust call to
5653 gomp_unmap_vars_internal.
5654 (gomp_unmap_vars_async): Adjust and rename into...
5655 (goacc_unmap_vars): ...this new function, adjust call to
5656 gomp_unmap_vars_internal.
5657 (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
5658 gomp_unmap_vars.
5659 (GOMP_target_ext): Likewise.
5660 (gomp_target_data_fallback): Adjust call to gomp_map_vars.
5661 (GOMP_target_data): Likewise.
5662 (GOMP_target_data_ext): Likewise.
5663 (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
5664 (gomp_exit_data): Add refcount_set parameter, adjust to use
5665 gomp_decrement_refcount, adjust to queue splay-tree keys for removal
5666 after main loop.
5667 (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
5668 gomp_map_vars and gomp_exit_data.
5669 (gomp_target_task_fn): Likewise.
5670 * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
5671 * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
5672 * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
5673 * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
5674 * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
5675 * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
5676
ede6c356
GA
56772021-06-15 Tobias Burnus <tobias@codesourcery.com>
5678
5679 PR fortran/92568
5680 * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
5681
43c35d0d
GA
56822021-06-10 Andrew Stubbs <ams@codesourcery.com>
5683 Thomas Schwinge <thomas@codesourcery.com>
5684
5685 * libgomp.map (GOACC_2.0.2): New symbol version.
5686 * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
5687 * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
5688
56892021-06-10 Thomas Schwinge <thomas@codesourcery.com>
5690 Andrew Stubbs <ams@codesourcery.com>
5691
5692 * oacc-mem.c (goacc_enter_exit_data_internal): New function,
5693 extracted from...
5694 (GOACC_enter_exit_data): ... here.
5695 (GOACC_declare): Use it.
5696
56972021-06-10 Thomas Schwinge <thomas@codesourcery.com>
5698
5699 * oacc-parallel.c (GOACC_declare): Move...
5700 * oacc-mem.c: ... here.
5701 * libgomp_g.h: Adjust.
5702
57032021-06-10 Andrew Stubbs <ams@codesourcery.com>
5704 Thomas Schwinge <thomas@codesourcery.com>
5705
5706 * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
5707 handling.
5708
57092021-06-10 Jakub Jelinek <jakub@redhat.com>
5710
5711 PR tree-optimization/100981
5712 * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
5713 dsdotr and dsdoti to 0.
5714
4f625f47
GA
57152021-06-09 H.J. Lu <hjl.tools@gmail.com>
5716
5717 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
5718 if atomic compare-and-swap is supported on 'int'.
5719
57202021-06-09 Richard Biener <rguenther@suse.de>
5721
5722 PR tree-optimization/100981
5723 * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
5724
c6038721
GA
57252021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5726
5727 * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
5728 unconditionally.
5729 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
5730 Update.
5731 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5732 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5733
57342021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5735
5736 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
5737 '-DACC_MEM_SHARED=0'.
5738 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
5739 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5740 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5741 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5742 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5743 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
5744 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5745 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5746 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5747 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5748 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
5749 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
5750 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
5751 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
5752 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
5753 'acc_device_radeon' testing.
5754 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
5755 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
5756 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
5757 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
5758 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5759 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5760 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
5761 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
5762 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
5763 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
5764 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
5765 for non-'openacc_nvidia_accel_selected'.
5766 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5767 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
5768 all implement this checking".
5769 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
5770 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
5771 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
5772 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
5773 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
5774
57752021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5776
5777 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
5778 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
5779
57802021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5781
5782 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
5783 for 'acc_device_radeon'.
5784
57852021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5786
5787 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
5788 for non-'acc_device_nvidia'.
5789
57902021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5791
5792 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
5793 'acc_device_radeon' testing.
5794 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5795 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5796 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5797
57982021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5799
5800 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
5801 require 'openacc_nvidia_accel_selected'. Fix up for
5802 'ACC_DEVICE_TYPE_radeon'.
5803
58042021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5805
5806 * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
5807 'openacc_nvidia_accel_selected'.
5808 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
5809
58102021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5811
5812 * testsuite/lib/libgomp.exp
5813 (check_effective_target_openacc_radeon_accel_selected):
5814 Streamline.
5815
58162021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5817
5818 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
5819 PR80547 workaround.
5820
58212021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5822
5823 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5824 <acc_device_nvidia>: Update comment.
5825
48166757
GA
58262021-05-28 Tobias Burnus <tobias@codesourcery.com>
5827
5828 * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
5829
cd62d089
GA
58302021-05-27 Jakub Jelinek <jakub@redhat.com>
5831
5832 * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
5833 check_effective_target_openacc_cublas,
5834 check_effective_target_openacc_cudart): New.
5835 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
5836 target openacc_cublas.
5837 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
5838 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
5839 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
5840 target openacc_cuda.
5841 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
5842 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
5843 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
5844 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
5845 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
5846 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
5847 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
5848 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
5849 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
5850 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
5851 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
5852 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
5853 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
5854 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
5855 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
5856 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
5857 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
5858 targets openacc_cublas and openacc_cudart.
5859 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
5860 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
5861 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
5862 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
5863 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
5864 Require effective target openacc_cudart.
5865 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
5866 for effective target openacc_cuda and add && defined USE_CUDA_H to
5867 preprocessor conditionals. Guard -lcuda also on openacc_cuda
5868 effective target.
5869
01c59ef2
GA
58702021-05-26 Jakub Jelinek <jakub@redhat.com>
5871
5872 PR libgomp/100573
5873 * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
5874 GOMP_target_end_data, GOMP_target_update_ext,
5875 GOMP_target_enter_exit_data): New dummy entrypoints.
5876 * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
5877 GOMP_target_end_data, GOMP_target_update_ext,
5878 GOMP_target_enter_exit_data): Likewise.
5879 * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
5880 OMPFROM, OMPTO): Define.
5881 (main): Remove #pragma omp target teams around all the tests.
5882 * testsuite/libgomp.c-c++-common/target-41.c: New test.
5883 * testsuite/libgomp.c-c++-common/target-42.c: New test.
5884
2bc6dace
GA
58852021-05-25 Jakub Jelinek <jakub@redhat.com>
5886
5887 PR middle-end/99928
5888 * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
5889
637569df
GA
58902021-05-24 Tobias Burnus <tobias@codesourcery.com>
5891
5892 PR fortran/86470
5893 * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
5894 * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
5895 * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
5896
15d30d2f
GA
58972021-05-22 Thomas Schwinge <thomas@codesourcery.com>
5898
5899 PR testsuite/90115
5900 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
5901 uninteresting/varying diagnostics.
5902
2832d51b
GA
59032021-05-21 Thomas Schwinge <thomas@codesourcery.com>
5904
5905 PR middle-end/90115
5906 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
5907 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5908
59092021-05-21 Thomas Schwinge <thomas@codesourcery.com>
5910
5911 PR middle-end/90115
5912 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
5913 file.
5914 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5915 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
5916 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5917 Likewise.
5918 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
5919 Likewise.
5920 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
5921 Likewise.
5922 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
5923 Likewise.
5924 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
5925 Likewise.
5926 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
5927 Likewise.
5928 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
5929 Likewise.
5930 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
5931 Likewise.
5932 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
5933 Likewise.
5934 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
5935 Likewise.
5936 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
5937 Likewise.
5938 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
5939 Likewise.
5940 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
5941 Likewise.
5942 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
5943 Likewise.
5944 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
5945 Likewise.
5946 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
5947 Likewise.
5948 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
5949 Likewise.
5950 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
5951 Likewise.
5952 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
5953 Likewise.
5954 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
5955 Likewise.
5956 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
5957 Likewise.
5958 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5959 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5960 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5961 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
5962 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5963 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5964 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5965 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5966 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5967 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5968 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5969 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5970 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5971 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5972 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5973 Likewise.
5974 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
5975 Likewise.
5976 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
5977 Likewise.
5978 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5979 Likewise.
5980 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5981 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
5982 Likewise.
5983 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5984 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5985 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5986 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5987 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
5988 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5989 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
5990 Likewise.
5991 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
5992 Likewise.
5993 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
5994 Likewise.
5995 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
5996 Likewise.
5997 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
5998 Likewise.
5999 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
6000 Likewise.
6001 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
6002 Likewise.
6003 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
6004 Likewise.
6005 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
6006 Likewise.
6007 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
6008 Likewise.
6009 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
6010 Likewise.
6011 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
6012 Likewise.
6013 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
6014 Likewise.
6015 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
6016 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6017 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
6018 Likewise.
6019 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
6020 Likewise.
6021 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
6022 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
6023 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
6024
60252021-05-21 Julian Brown <julian@codesourcery.com>
6026 Chung-Lin Tang <cltang@codesourcery.com>
6027 Thomas Schwinge <thomas@codesourcery.com>
6028
6029 PR middle-end/90115
6030 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
6031 test.
6032 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
6033 Likewise.
6034 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
6035 Likewise.
6036
60372021-05-21 Thomas Schwinge <thomas@codesourcery.com>
6038
6039 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
6040 for nvptx offloading.
6041
60422021-05-21 Tobias Burnus <tobias@codesourcery.com>
6043
6044 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
6045
65f32e5d
GA
60462021-05-19 Thomas Schwinge <thomas@codesourcery.com>
6047
6048 PR target/83812
6049 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
6050
60512021-05-19 Julian Brown <julian@codesourcery.com>
6052
6053 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
6054
a8daf9a1
GA
60552021-05-18 Thomas Schwinge <thomas@codesourcery.com>
6056
6057 * testsuite/lib/libgomp.exp
6058 (check_effective_target_offload_target_nvptx): Don't shadow global
6059 'offload_targets' variable.
6060
60612021-05-18 Thomas Schwinge <thomas@codesourcery.com>
6062
6063 * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
6064 '-latomic' to nvptx offloading compilation.
6065 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
6066
60672021-05-18 Thomas Schwinge <thomas@codesourcery.com>
6068
6069 * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
6070 offloading compilation.
6071
a7ffc1ef
GA
60722021-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
6073
6074 * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
6075 if new tasks generated.
6076 * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
6077
87a7d10c
GA
60782021-05-14 Tobias Burnus <tobias@codesourcery.com>
6079
6080 * testsuite/libgomp.fortran/parallel-master.f90: New test.
6081
f9af11c7
GA
60822021-05-13 Martin Liska <mliska@suse.cz>
6083
6084 PR testsuite/100569
6085 * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
6086 * testsuite/libgomp.c/pr46032-2.c: Likewise.
6087 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
6088 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
6089
0ff3a0f2
GA
60902021-05-12 Tobias Burnus <tobias@codesourcery.com>
6091
6092 * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
6093 * testsuite/libgomp.fortran/task-detach-12.f90: New test.
6094
037e3661
GA
60952021-05-11 Jakub Jelinek <jakub@redhat.com>
6096
6097 PR middle-end/100471
6098 * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
6099 GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
6100 reduction pointer.
6101 * testsuite/libgomp.c/task-reduction-4.c: New test.
6102
62d87a32
GA
61032021-05-07 Tobias Burnus <tobias@codesourcery.com>
6104 Tom de Vries <tdevries@suse.de>
6105
6106 * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
6107 complex/floating-point || + && reduction with 'omp target'.
6108 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
6109
99e8df7a
GA
61102021-05-04 Tobias Burnus <tobias@codesourcery.com>
6111
6112 * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
6113 * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
6114 * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
6115 * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
6116
61172021-05-04 Tobias Burnus <tobias@codesourcery.com>
6118
6119 PR testsuite/100397
6120 * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
6121 declaration to scope of non-'depend'-guarded assignment to avoid races.
6122
e690396d
GA
61232021-05-03 Tom de Vries <tdevries@suse.de>
6124
6125 PR target/100321
6126 * testsuite/libgomp.c/target-44.c: New test.
6127
9326049e
GA
61282021-04-30 Roman Zhuykov <zhroma@ispras.ru>
6129
6130 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
6131
3c8e539d
GA
61322021-04-29 Tom de Vries <tdevries@suse.de>
6133
6134 * testsuite/libgomp.c/pr81778.c: New test.
6135
61362021-04-29 Tom de Vries <tdevries@suse.de>
6137
6138 PR target/100232
6139 * testsuite/libgomp.c/target-43.c: New file.
6140
e4ff4ffb
GA
61412021-04-28 Jakub Jelinek <jakub@redhat.com>
6142 Tobias Burnus <tobias@codesourcery.com>
6143
6144 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
6145 * target.c (gomp_load_plugin_for_device): If set and if a plugin
6146 can't be dlopened, silently assume it has no devices.
6147 * Makefile.in: Regenerate.
6148 * config.h.in: Regenerate.
6149 * configure: Regenerate.
6150
c0fa3f2f
GA
61512021-04-26 Tobias Burnus <tobias@codesourcery.com>
6152
6153 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
6154 Use [Ww]arning in dg-bogus as FE diagnostic and default
6155 diagnostic differ and the result depends on ENABLE_OFFLOAD.
6156 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
6157 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6158 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6159
61602021-04-26 Tobias Burnus <tobias@codesourcery.com>
6161
6162 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
6163 Correct spelling in dg-bogus to match -Wopenacc-parallelism.
6164 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
6165 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6166 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6167
61682021-04-26 Thomas Schwinge <thomas@codesourcery.com>
6169 Nathan Sidwell <nathan@codesourcery.com>
6170 Tom de Vries <vries@codesourcery.com>
6171 Julian Brown <julian@codesourcery.com>
6172 Kwok Cheung Yeung <kcy@codesourcery.com>
6173
6174 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
6175 '-Wopenacc-parallelism', and match diagnostics, as appropriate.
6176 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
6177 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6178 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6179 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
6180 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
6181 Likewise.
6182 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
6183 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6184 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
6185 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
6186 Likewise.
6187 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
6188 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
6189 Likewise.
6190 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6191 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
6192 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
6193 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
6194 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
6195 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
6196 Likewise.
6197 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
6198 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
6199 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
6200 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6201 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6202 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
6203 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
6204 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
6205 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
6206 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6207 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
6208
62092021-04-26 Thomas Schwinge <thomas@codesourcery.com>
6210
6211 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
6212 compile with '-w'.
6213 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6214 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
6215 Likewise.
6216 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6217 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
6218 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6219 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
6220 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
6221 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6222 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
6223
e3948473
GA
62242021-04-22 Richard Biener <rguenther@suse.de>
6225
6226 * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
6227 only on nvptx-none.
6228
c1ef0c92
GA
62292021-04-21 Tobias Burnus <tobias@codesourcery.com>
6230
6231 * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
6232 omp_depend_kind instead of defining it as 16.
6233
62342021-04-21 Tobias Burnus <tobias@codesourcery.com>
6235
6236 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
6237 New, based on check_effective_target_offload_target_nvptx.
6238 (check_effective_target_offload_target_nvptx): Call it.
6239 (check_effective_target_offload_target_amdgcn): New.
6240 * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
6241 Require target offload_target_nvptx || offload_target_amdgcn.
6242 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
6243 * testsuite/libgomp.c/pr86416-1.c: Likewise.
6244 * testsuite/libgomp.c/pr86416-2.c: Likewise.
6245
62462021-04-21 Tobias Burnus <tobias@codesourcery.com>
6247
6248 * testsuite/libgomp.fortran/depobj-1.f90: New test.
6249
6e81e015
GA
62502021-04-19 Thomas Schwinge <thomas@codesourcery.com>
6251
6252 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
6253 '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
6254 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
6255 Likewise.
6256 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6257 Likewise.
6258 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6259
ee351f7f
GA
62602021-04-15 Thomas Schwinge <thomas@codesourcery.com>
6261
6262 PR target/99555
6263 * testsuite/lib/libgomp.exp
6264 (check_effective_target_offload_device_nvptx): New.
6265 * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
6266 resolved, make sure that we exit quickly, with error status,
6267 XFAILed.
6268 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
6269 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
6270
df3b1289
GA
62712021-04-14 Jakub Jelinek <jakub@redhat.com>
6272
6273 PR testsuite/100071
6274 * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
6275 cp = omp_alloc with cp, p arguments instead of cq, q and call
6276 c_f_pointer after last cq = omp_alloc with cq, q.
6277
a0ecde22
GA
62782021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
6279
6280 PR middle-end/98088
6281 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
6282 for loop with GT/GE condition.
6283 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
6284
3115aba8
GA
62852021-04-09 Thomas Schwinge <thomas@codesourcery.com>
6286
6287 PR middle-end/84991
6288 PR middle-end/84992
6289 PR middle-end/90779
6290 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
6291
62922021-04-09 Jakub Jelinek <jakub@redhat.com>
6293
6294 PR libgomp/99984
6295 * team.c (gomp_thread_start): Call pthread_setspecific for
6296 !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
6297 has been initialized to avoid false positive warning.
6298
65374af2
GA
62992021-03-29 Tobias Burnus <tobias@codesourcery.com>
6300
6301 PR target/99555
6302 * testsuite/lib/on_device_arch.c: Move to ...
6303 * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
6304 * testsuite/libgomp.fortran/on_device_arch.c: New file;
6305 #include on_device_arch.h.
6306 * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
6307 on_device_arch.h instead of using dg-additional-source.
6308 * testsuite/libgomp.c/pr99555-1.c: Likewise.
6309 * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
6310 on_device_arch.c without relative paths.
6311
4493b1c1
GA
63122021-03-25 Thomas Schwinge <thomas@codesourcery.com>
6313
6314 * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
6315 the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
6316 * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
6317 * config.h.in: Regenerate.
6318 * configure: Likewise.
6319
63202021-03-25 Thomas Schwinge <thomas@codesourcery.com>
6321
6322 PR target/99555
6323 * testsuite/lib/on_device_arch.c: New file.
6324 * testsuite/libgomp.c/pr99555-1.c: Likewise.
6325 * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
6326 skip for nvptx offloading, with error status.
6327 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
6328
63292021-03-25 Thomas Schwinge <thomas@codesourcery.com>
6330
6331 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
6332 OpenACC 'serial' construct diagnostic for nvptx offloading.
6333
3c5b6d24
GA
63342021-03-15 Tobias Burnus <tobias@codesourcery.com>
6335
6336 PR c++/99509
6337 * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
6338
6da2762a
GA
63392021-03-12 Tobias Burnus <tobias@codesourcery.com>
6340
6341 PR fortran/98858
6342 * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
6343
67f10d28
GA
63442021-03-04 Jakub Jelinek <jakub@redhat.com>
6345
6346 * configure.ac: Add AC_CHECK_SIZEOF([void *]).
6347 * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
6348 checking of -m32 or -mx32 options on the command line.
6349 * config.h.in: Regenerated.
6350 * configure: Regenerated.
6351
ec9dc4fa
GA
63522021-02-27 Iain Sandoe <iain@sandoe.co.uk>
6353
6354 * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
6355 support from the target.
6356
daa68844
GA
63572021-02-25 Kwok Cheung Yeung <kcy@codesourcery.com>
6358 Jakub Jelinek <jakub@redhat.com>
6359
6360 PR libgomp/98738
6361 * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
6362 (struct gomp_task): Replace detach and completion_sem fields with
6363 union containing completion_sem and detach_team. Add deferred_p
6364 field.
6365 (struct gomp_team): Remove task_detach_queue.
6366 * task.c: Include assert.h.
6367 (gomp_init_task): Initialize deferred_p and completion_sem fields.
6368 Rearrange initialization order of fields.
6369 (task_fulfilled_p): Delete.
6370 (GOMP_task): Use address of task as the event handle. Remove
6371 initialization of detach field. Initialize deferred_p field.
6372 Use automatic local for completion_sem. Initialize detach_team field
6373 for deferred tasks.
6374 (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
6375 Set kind of suspended detach task to GOMP_TASK_DETACHED and
6376 decrement task_running_count. Move finish_cancelled block out of
6377 else branch. Relocate call to gomp_team_barrier_done.
6378 (GOMP_taskwait): Handle tasks with completion events that have not
6379 been fulfilled.
6380 (GOMP_taskgroup_end): Likewise.
6381 (omp_fulfill_event): Use address of task as event handle. Post to
6382 completion_sem for undeferred tasks. Clear detach_team if task
6383 has not finished. For finished tasks, handle post-execution tasks,
6384 call gomp_team_barrier_wake if necessary, and free task.
6385 * team.c (gomp_new_team): Remove initialization of task_detach_queue.
6386 (free_team): Remove free of task_detach_queue.
6387 * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
6388 * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
6389 * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
6390 * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
6391 * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
6392 Change data-sharing of detach events on enclosing parallel to private.
6393 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise. Remove
6394 taskwait directive.
6395 * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
6396 * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
6397 * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
6398 * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
6399 * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
6400 * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
6401 * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
6402 * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
6403 * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
6404 * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
6405 Change data-sharing of detach events on enclosing parallel to private.
6406 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise. Remove
6407 taskwait directive.
6408 * testsuite/libgomp.fortran/task-detach-7.f90: New.
6409 * testsuite/libgomp.fortran/task-detach-8.f90: New.
6410 * testsuite/libgomp.fortran/task-detach-9.f90: New.
6411 * testsuite/libgomp.fortran/task-detach-10.f90: New.
6412 * testsuite/libgomp.fortran/task-detach-11.f90: New.
6413
2f5765cf
GA
64142021-02-22 Tobias Burnus <tobias@codesourcery.com>
6415
6416 PR fortran/99171
6417 * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
6418
acc0ee5c
GA
64192021-02-17 Julian Brown <julian@codesourcery.com>
6420
6421 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
6422 expected errors.
6423
64242021-02-17 Julian Brown <julian@codesourcery.com>
6425
6426 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
6427 * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
6428
0c5cdb31
GA
64292021-02-11 Uroš Bizjak <ubizjak@gmail.com>
6430
6431 * config/linux/x86/futex.h (__futex_wait):
6432 Revert output type back to long.
6433 (__futex_wake): Ditto.
6434 (futex_wait): Update for revert.
6435 (futex_wake): Ditto.
6436
64372021-02-11 Uroš Bizjak <ubizjak@gmail.com>
6438
6439 * config/linux/x86/futex.h (__futex_wait): New static inline
6440 wrapper function. Correct output type to int and
6441 timeout type to void *.
6442 (__futex_wake): New static inline wrapper function.
6443 Correct output type to int.
6444 (futex_wait): Use __futex_wait.
6445 (futex_wake): Use __futex_wake.
6446
4b37c3ea
GA
64472021-02-10 Julian Brown <julian@codesourcery.com>
6448
6449 PR fortran/98979
6450 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
6451 errors.
6452
a19dd5e6
GA
64532021-02-04 Julian Brown <julian@codesourcery.com>
6454
6455 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
6456
9faaa807
GA
64572021-02-03 Andrew Stubbs <ams@codesourcery.com>
6458
6459 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
6460 EF_AMDGPU_MACH_AMDGCN_GFX908.
6461 (gcn_gfx908_s): New constant string.
6462 (isa_hsa_name): Add gfx908.
6463 (isa_code): Add gfx908.
6464
161e4c08
GA
64652021-01-25 Kwok Cheung Yeung <kcy@codesourcery.com>
6466
6467 * libgomp.texi (omp_fulfill_event): New entry.
6468
b93d0e36
GA
64692021-01-20 Jakub Jelinek <jakub@redhat.com>
6470
6471 * task.c (GOMP_task): Rename priority argument to priority_arg,
6472 add priority automatic variable and modify that variable. Instead of
6473 clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
6474 check flags for that bit.
6475
f35a4f96
GA
64762021-01-19 Tobias Burnus <tobias@codesourcery.com>
6477
6478 PR fortran/98476
6479 * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
6480
ef1f8ee6
GA
64812021-01-18 Andreas Schwab <schwab@suse.de>
6482
6483 * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
6484
64852021-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
6486
6487 * config/rtems/sem.h (gomp_sem_getcount): New function.
6488
64892021-01-18 Jakub Jelinek <jakub@redhat.com>
6490
6491 * config/linux/sem.h (gomp_sem_getcount): New function.
6492 * config/posix/sem.h (gomp_sem_getcount): New function.
6493 * config/posix/sem.c (gomp_sem_getcount): New function.
6494 * config/accel/sem.h (gomp_sem_getcount): New function.
6495 * task.c (task_fulfilled_p): Use gomp_sem_getcount.
6496 (omp_fulfill_event): Likewise.
6497
59cf67d1
GA
64982021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
6499
6500 * fortran.c (omp_fulfill_event_): New.
6501 * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
6502 (struct gomp_team): Add task_detach_queue and task_detach_count
6503 fields.
6504 * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
6505 * libgomp_g.h (GOMP_task): Add extra argument.
6506 * omp.h.in (enum omp_event_handle_t): New.
6507 (omp_fulfill_event): New.
6508 * omp_lib.f90.in (omp_event_handle_kind): New.
6509 (omp_fulfill_event): New.
6510 * omp_lib.h.in (omp_event_handle_kind): New.
6511 (omp_fulfill_event): Declare.
6512 * priority_queue.c (priority_tree_find): New.
6513 (priority_list_find): New.
6514 (priority_queue_find): New.
6515 * priority_queue.h (priority_queue_predicate): New.
6516 (priority_queue_find): New.
6517 * task.c (gomp_init_task): Initialize detach field.
6518 (task_fulfilled_p): New.
6519 (GOMP_task): Add detach argument. Ignore detach argument if
6520 GOMP_TASK_FLAG_DETACH not set in flags. Initialize completion_sem
6521 field. Copy address of completion_sem into detach argument and
6522 into the start of the data record. Wait for detach event if task
6523 not deferred.
6524 (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
6525 Remove completed tasks and requeue dependent tasks.
6526 (omp_fulfill_event): New.
6527 * team.c (gomp_new_team): Initialize task_detach_queue and
6528 task_detach_count fields.
6529 (free_team): Free task_detach_queue field.
6530 * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
6531 * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
6532 * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
6533 * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
6534 * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
6535 * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
6536 * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
6537 * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
6538 * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
6539 * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
6540 * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
6541 * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
6542
2f7f0d32
GA
65432021-01-15 Jakub Jelinek <jakub@redhat.com>
6544
6545 PR target/70454
6546 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
6547 be added through preprocessor check on
6548 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
6549
5fff80fd
GA
65502021-01-14 Thomas Schwinge <thomas@codesourcery.com>
6551
6552 PR libgomp/65099
6553 * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
6554 configurations.
6555 * configure: Regenerate.
6556 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
6557 check.
6558
651b8a50
GA
65592021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
6560
6561 * configure: Re-generate.
6562
65632021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
6564
6565 * configure: Re-generate.
6566
65672021-01-05 Julian Brown <julian@codesourcery.com>
6568
6569 * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
6570 (struct ptx_device): Add omp_stacks struct.
6571 (nvptx_open_device): Initialise cached-stacks housekeeping info.
6572 (nvptx_close_device): Free cached stacks block and mutex.
6573 (nvptx_stacks_free): New function.
6574 (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
6575 (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
6576 (nvptx_stacks_alloc): Rename to...
6577 (nvptx_stacks_acquire): This. Cache stacks block between runs if same
6578 size or smaller is required.
6579 (nvptx_stacks_free): Remove.
6580 (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
6581 during kernel execution.
6582
b6dd195a
GA
65832021-01-01 Jakub Jelinek <jakub@redhat.com>
6584
6585 * libgomp.texi: Bump @copying's copyright year.
6586
2d3425a5
GA
65872020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
6588
6589 * libgomp.texi (Top): Avoid bad "up" link.
6590
b1a2242e
GA
65912020-12-18 Jakub Jelinek <jakub@redhat.com>
6592
6593 * testsuite/libgomp.c/task-6.c: New test.
6594
ca2bd949
GA
65952020-12-09 Andrew Stubbs <ams@codesourcery.com>
6596
6597 * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
6598 (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
6599
f6e8e279
GA
66002020-12-08 Tobias Burnus <tobias@codesourcery.com>
6601
6602 * testsuite/libgomp.fortran/scan-1.f90: New test.
6603
6e1edf48
GA
66042020-12-05 Iain Sandoe <iain@sandoe.co.uk>
6605
6606 PR target/97865
6607 * configure: Regenerate.
6608
a9625c50
GA
66092020-11-29 John David Anglin <danglin@gcc.gnu.org>
6610
6611 * configure: Regenerate.
6612
360258da
GA
66132020-11-25 Thomas Schwinge <thomas@codesourcery.com>
6614
6615 * testsuite/libgomp.oacc-c++/cache-1.C: New.
6616 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
6617
66182020-11-25 Andrew Stubbs <ams@codesourcery.com>
6619
6620 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
6621 expected results.
6622
1e2c9a27
GA
66232020-11-24 Andrew Stubbs <ams@codesourcery.com>
6624
6625 * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
6626 (reserved): Delete unused define.
6627
66282020-11-24 Thomas Schwinge <thomas@codesourcery.com>
6629
6630 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
6631 Tcl 8.5-specific behavior.
6632 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6633
25bb75f8
GA
66342020-11-18 Kwok Cheung Yeung <kcy@codesourcery.com>
6635
6636 * env.c (gomp_global_icv): Remove nest_var field. Add
6637 max_active_levels_var field.
6638 (gomp_max_active_levels_var): Remove.
6639 (parse_boolean): Return true on success.
6640 (handle_omp_display_env): Express OMP_NESTED in terms of
6641 max_active_levels_var. Change format specifier for
6642 max_active_levels_var.
6643 (initialize_env): Set max_active_levels_var from
6644 OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
6645 OMP_PROC_BIND.
6646 * icv.c (omp_set_nested): Express in terms of
6647 max_active_levels_var.
6648 (omp_get_nested): Likewise.
6649 (omp_set_max_active_levels): Use max_active_levels_var field instead
6650 of gomp_max_active_levels_var.
6651 (omp_get_max_active_levels): Likewise.
6652 * libgomp.h (struct gomp_task_icv): Remove nest_var field. Add
6653 max_active_levels_var field.
6654 (gomp_supported_active_levels): Set to UCHAR_MAX.
6655 (gomp_max_active_levels_var): Delete.
6656 * libgomp.texi (omp_get_nested): Update documentation.
6657 (omp_set_nested): Likewise.
6658 (OMP_MAX_ACTIVE_LEVELS): Likewise.
6659 (OMP_NESTED): Likewise.
6660 (OMP_NUM_THREADS): Likewise.
6661 (OMP_PROC_BIND): Likewise.
6662 * parallel.c (gomp_resolve_num_threads): Replace reference
6663 to nest_var with max_active_levels_var. Use max_active_levels_var
6664 field instead of gomp_max_active_levels_var.
6665
66662020-11-18 Tobias Burnus <tobias@codesourcery.com>
6667
6668 * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
6669 nvptx_usleep; use also for device={arch(gcn)}.
6670
faab61b5
GA
66712020-11-14 Jakub Jelinek <jakub@redhat.com>
6672
6673 * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
6674 (foo): Add tests for non-VLA private and firstprivate clauses on
6675 omp task.
6676 (bar): Likewise. Remove taking of address from private/firstprivate
6677 variables.
6678 * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
6679 (foo): Add p, q, px and s arguments. Add tests for array reductions
6680 and for non-VLA private and firstprivate clauses on omp task.
6681 (bar): Removed.
6682 (main): Adjust foo caller. Don't call bar.
6683
77f67db2
GA
66842020-11-13 Gergö Barany <gergo@codesourcery.com>
6685 Thomas Schwinge <thomas@codesourcery.com>
6686
6687 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
6688 New.
6689 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
6690 Likewise.
6691 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6692 Likewise.
6693 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
6694 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6695
66962020-11-13 Gergö Barany <gergo@codesourcery.com>
6697 Thomas Schwinge <thomas@codesourcery.com>
6698
6699 PR fortran/94358
6700 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
6701
67022020-11-13 Jakub Jelinek <jakub@redhat.com>
6703
6704 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
6705 for array reductions.
6706 (main): Adjust foo callers.
6707
a5a11525
GA
67082020-11-12 Jakub Jelinek <jakub@redhat.com>
6709
6710 * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
6711 * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
6712 * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
6713 * allocator.c (omp_aligned_alloc): New for now static function,
6714 add alignment argument and handle it.
6715 (omp_alloc): Reimplement using omp_aligned_alloc.
6716 (GOMP_alloc, GOMP_free): New functions.
6717 (omp_free): Add ialias.
6718 * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
6719 * testsuite/libgomp.c++/allocate-1.C: New test.
6720
67212020-11-12 Thomas Schwinge <thomas@codesourcery.com>
6722
6723 PR fortran/97782
6724 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
6725
bb622641
GA
67262020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
6727
6728 * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
6729 usable.
6730 * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
6731 'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
6732 (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
6733 (goacc_enter_data_internal): Likewise.
6734 * target.c (gomp_map_vars_internal):
6735 Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
6736 of gomp_attach_pointer for OpenMP cases.
6737 (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
6738 (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
6739 * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
6740
0cfd9109
GA
67412020-11-05 Ulrich Drepper <drepper@redhat.com>
6742 Kwok Cheung Yeung <kcy@codesourcery.com>
6743
6744 * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
6745 * Makefile.in: Regenerate.
6746 * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
6747 pragmas to ignore -Wdeprecated-declarations warnings.
6748 * icv.c: Likewise.
6749 * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
6750 Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
6751 and omp_get_nested with __GOMP_DEPRECATED_5_0.
6752 * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
6753 deprecated.
6754 * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
6755 to test options.
6756 * testsuite/libgomp.c/affinity-1.c: Likewise.
6757 * testsuite/libgomp.c/affinity-2.c: Likewise.
6758 * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
6759 * testsuite/libgomp.c/lib-1.c: Likewise.
6760 * testsuite/libgomp.c/nested-1.c: Likewise.
6761 * testsuite/libgomp.c/nested-2.c: Likewise.
6762 * testsuite/libgomp.c/nested-3.c: Likewise.
6763 * testsuite/libgomp.c/pr32362-1.c: Likewise.
6764 * testsuite/libgomp.c/pr32362-2.c: Likewise.
6765 * testsuite/libgomp.c/pr32362-3.c: Likewise.
6766 * testsuite/libgomp.c/pr35549.c: Likewise.
6767 * testsuite/libgomp.c/pr42942.c: Likewise.
6768 * testsuite/libgomp.c/pr61200.c: Likewise.
6769 * testsuite/libgomp.c/sort-1.c: Likewise.
6770 * testsuite/libgomp.c/target-5.c: Likewise.
6771 * testsuite/libgomp.c/target-6.c: Likewise.
6772 * testsuite/libgomp.c/teams-1.c: Likewise.
6773 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
6774 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
6775 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
6776 * testsuite/libgomp.fortran/affinity1.f90: Likewise.
6777 * testsuite/libgomp.fortran/lib1.f90: Likewise.
6778 * testsuite/libgomp.fortran/lib2.f: Likewise.
6779 * testsuite/libgomp.fortran/nested1.f90: Likewise.
6780 * testsuite/libgomp.fortran/teams1.f90: Likewise.
6781
88ce3d5f
GA
67822020-11-02 Thomas Schwinge <thomas@codesourcery.com>
6783
6784 PR target/85486
6785 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
6786 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
6787 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
6788
67892020-11-02 Thomas Schwinge <thomas@codesourcery.com>
6790
6791 PR testsuite/80219
6792 PR testsuite/85303
6793 * testsuite/lib/libgomp.exp (libgomp_init): Set
6794 'gcc_warning_prefix', 'gcc_error_prefix'.
6795
67962020-10-30 Jakub Jelinek <jakub@redhat.com>
6797
6798 * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
6799 even in field_tgt_clear initializer.
6800
e93aae4a
GA
68012020-10-28 Jakub Jelinek <jakub@redhat.com>
6802
6803 * testsuite/libgomp.c/target-42.c: New test.
6804
68052020-10-28 Jakub Jelinek <jakub@redhat.com>
6806 Tom de Vries <tdevries@suse.de>
6807
6808 PR testsuite/81690
6809 * testsuite/libgomp.c/usleep.h: New file.
6810 * testsuite/libgomp.c/target-32.c: Include usleep.h.
6811 (main): Use tgt_usleep instead of usleep.
6812 * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
6813 (main): Use tgt_usleep instead of usleep.
6814
68152020-10-28 Jakub Jelinek <jakub@redhat.com>
6816
6817 PR lto/96680
6818 * testsuite/libgomp.c/declare-variant-1.c: New test.
6819
56ddd5e2
GA
68202020-10-22 Jakub Jelinek <jakub@redhat.com>
6821
6822 * testsuite/libgomp.c/target-41.c: New test.
6823
68242020-10-22 Jakub Jelinek <jakub@redhat.com>
6825
6826 * icv.c (omp_get_initial_device): Remove including corresponding
6827 ialias.
6828 * icv-device.c (omp_get_initial_device): New function. Return
6829 gomp_get_num_devices (). Add ialias.
6830 * target.c (resolve_device): Don't fail with
6831 OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
6832 gomp_get_num_devices ().
6833 (omp_target_alloc, omp_target_free, omp_target_is_present,
6834 omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
6835 omp_target_disassociate_ptr, omp_pause_resource): Use
6836 gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
6837 first use in the functions, in uses dominated by the
6838 gomp_get_num_devices call use num_devices_openmp instead.
6839 * libgomp.texi (omp_get_initial_device): Document.
6840 * config/gcn/icv-device.c (omp_get_initial_device): New function.
6841 Add ialias.
6842 * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
6843 * testsuite/libgomp.c/target-40.c: New test.
6844
68452020-10-21 Jakub Jelinek <jakub@redhat.com>
6846
6847 * env.c (parse_target_offload): Change new_offload var type to int,
6848 preinitialize to -1, remove found var and test new_offload != -1
6849 instead of found.
6850
e2e04288
GA
68512020-10-20 Jakub Jelinek <jakub@redhat.com>
6852
6853 * target.c (gomp_target_init): Inside of the function, use automatic
6854 variables corresponding to num_devices, num_devices_openmp and devices
6855 global variables and update the globals only at the end of the
6856 function.
6857
68582020-10-20 Kwok Cheung Yeung <kcy@codesourcery.com>
6859
6860 * env.c (gomp_target_offload_var): New.
6861 (parse_target_offload): New.
6862 (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
6863 (initialize_env): Parse OMP_TARGET_OFFLOAD.
6864 * libgomp.h (gomp_target_offload_t): New.
6865 (gomp_target_offload_var): New.
6866 * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
6867 * target.c (resolve_device): Generate error if device not found and
6868 offloading is mandatory.
6869 (gomp_target_fallback): Generate error if offloading is mandatory.
6870 (GOMP_target): Add argument in call to gomp_target_fallback.
6871 (GOMP_target_ext): Likewise.
6872 (gomp_target_data_fallback): Generate error if offloading is mandatory.
6873 (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
6874 (GOMP_target_data_ext): Likewise.
6875 (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
6876 (gomp_target_init): Return early if offloading is disabled.
6877
b85d5dc5
GA
68782020-10-15 Kwok Cheung Yeung <kcy@codesourcery.com>
6879
6880 * libgomp.texi (omp_get_max_active_levels): Modify description.
6881 (omp_get_supported_active_levels): Make descriptions consistent.
6882
b2698c21
GA
68832020-10-14 Jakub Jelinek <jakub@redhat.com>
6884
6885 * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
6886
bdd74cc2
GA
68872020-10-13 Kwok Cheung Yeung <kcy@codesourcery.com>
6888
6889 * env.c (gomp_max_active_levels_var): Initialize to
6890 gomp_supported_active_levels.
6891 (initialize_env): Limit gomp_max_active_levels_var to be at most
6892 equal to gomp_supported_active_levels.
6893 * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
6894 (omp_get_supported_active_levels_): New.
6895 * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
6896 to at most equal to gomp_supported_active_levels.
6897 (omp_get_supported_active_levels): New.
6898 * libgomp.h (gomp_supported_active_levels): New.
6899 * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
6900 omp_get_supported_active_levels_.
6901 * libgomp.texi (omp_get_supported_active_levels): New.
6902 (omp_set_max_active_levels): Update. Add reference to
6903 omp_get_supported_active_levels.
6904 * omp.h.in (omp_get_supported_active_levels): New.
6905 * omp_lib.f90.in (omp_get_supported_active_levels): New.
6906 * omp_lib.h.in (omp_get_supported_active_levels): New.
6907 * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
6908 against omp_get_supported_active_levels.
6909 * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
6910
2baa36d4
GA
69112020-10-11 Clement Chigot <clement.chigot@atos.net>
6912
6913 * config/t-aix: Delete and recreate libgomp before creating
6914 FAT library.
6915
da9df699
GA
69162020-10-08 Tom de Vries <tdevries@suse.de>
6917
6918 PR libgomp/81802
6919 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
6920 dimensions.
6921
8e97b905
GA
69222020-10-06 Tom de Vries <tdevries@suse.de>
6923
6924 * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
6925
69262020-10-06 Tom de Vries <tdevries@suse.de>
6927
6928 PR middle-end/90861
6929 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
6930
7e9282ae
GA
69312020-10-05 Tom de Vries <tdevries@suse.de>
6932
6933 PR fortran/95654
6934 * testsuite/libgomp.fortran/pr95654.f90: New test.
6935
b0b9b8f0
GA
69362020-10-02 Tobias Burnus <tobias@codesourcery.com>
6937
6938 * Makefile.in: Regenerate with automake 1.15.1.
6939 * aclocal.m4: Likewise.
6940 * configure: Likewise.
6941 * testsuite/Makefile.in: Likewise.
6942
660bfe61
GA
69432020-09-30 Andrew Stubbs <ams@codesourcery.com>
6944
6945 * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
6946 and amdgcn targets.
6947
69482020-09-30 Tobias Burnus <tobias@codesourcery.com>
6949
6950 * testsuite/libgomp.fortran/declare-target-3.f90: New test.
6951
93bca37c
GA
69522020-09-29 Andrew Stubbs <ams@codesourcery.com>
6953
6954 * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
6955 total number of threads is one.
6956 (gomp_team_barrier_wake): Likewise.
6957 (gomp_team_barrier_wait_end): Likewise.
6958 (gomp_team_barrier_wait_cancel_end): Likewise.
6959 * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
6960 (gomp_team_barrier_wake): Likewise.
6961 (gomp_team_barrier_wait_end): Likewise.
6962 (gomp_team_barrier_wait_cancel_end): Likewise.
6963 * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
6964
e84761c6
GA
69652020-09-28 Tobias Burnus <tobias@codesourcery.com>
6966
6967 PR middle-end/96390
6968 * testsuite/libgomp.c++/pr96390.C: New test.
6969 * testsuite/libgomp.c-c++-common/pr96390.c: New test.
6970
4383c595
GA
69712020-09-27 Clement Chigot <clement.chigot@atos.net>
6972
6973 * config/t-aix: Use $(AR) without -X32_64.
6974
cdd8f031
GA
69752020-09-25 Jakub Jelinek <jakub@redhat.com>
6976
6977 * testsuite/libgomp.c/loop-25.c: New test.
6978
521d2711
GA
69792020-09-22 Tobias Burnus <tobias@codesourcery.com>
6980
6981 PR fortran/95654
6982 * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
6983
69842020-09-22 Tom de Vries <tdevries@suse.de>
6985
6986 * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
6987 fails.
6988
ecde1b0a
GA
69892020-09-16 Nathan Sidwell <nathan@acm.org>
6990
6991 * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
6992
9f7ab8c5
GA
69932020-09-15 Tobias Burnus <tobias@codesourcery.com>
6994
6995 PR fortran/96668
6996 * target.c (gomp_map_vars_internal): Initialize has_nullptr.
6997
69982020-09-15 Tobias Burnus <tobias@codesourcery.com>
6999
7000 PR fortran/96668
7001 * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
7002 * target.c (gomp_map_vars_existing): Add always_to_flag flag.
7003 (gomp_map_vars_existing): Update call to it.
7004 (gomp_map_fields_existing): Likewise
7005 (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
7006 now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
7007 remapped.
7008 (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
7009 GOMP_MAP_POINTER.
7010 * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
7011 * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
7012
50a71cd0
GA
70132020-09-14 Tom de Vries <tdevries@suse.de>
7014
7015 * config/nvptx/atomic.c: New file. Add
7016 __sync_val_compare_and_swap_16.
7017 * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
7018 target offload_target_nvptx.
7019
31a05046
GA
70202020-09-08 Julian Brown <julian@codesourcery.com>
7021
7022 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
7023 iteration-ordering assumptions.
7024
70252020-09-08 Julian Brown <julian@codesourcery.com>
7026
7027 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
7028 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
7029
5b9a3d2a
GA
70302020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
7031
7032 * plugin/plugin-nvptx.c (nvptx_free):
7033 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
7034 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
7035 comments.
7036
70372020-08-20 Tobias Burnus <tobias@codesourcery.com>
7038
7039 * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
7040
b3cb5606
GA
70412020-08-13 Kwok Cheung Yeung <kcy@codesourcery.com>
7042
7043 * testsuite/libgomp.c-c++-common/reduction-16.c: New.
7044
70452020-08-13 Jakub Jelinek <jakub@redhat.com>
7046
7047 * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
7048 * testsuite/libgomp.c/loop-23.c (main): Likewise.
7049 * testsuite/libgomp.c/loop-24.c: New test.
7050
bc0ca715
GA
70512020-08-08 Jakub Jelinek <jakub@redhat.com>
7052 Tobias Burnus <tobias@codesourcery.com>
7053
7054 PR fortran/93553
7055 * testsuite/libgomp.fortran/pr93553.f90: New test.
7056
aa5ea20c
GA
70572020-08-05 Jakub Jelinek <jakub@redhat.com>
7058
7059 * testsuite/libgomp.c/loop-22.c: New test.
7060 * testsuite/libgomp.c/loop-23.c: New test.
7061
70622020-08-05 Jakub Jelinek <jakub@redhat.com>
7063
7064 PR middle-end/96459
7065 * testsuite/libgomp.c/teams-3.c: New test.
7066 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
7067 if not defined yet.
7068 (N(test)): Use it before all N(f*) calls.
7069 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
7070 (main): Don't call all test_* functions from within
7071 #pragma omp teams reduction(|:err), call them directly.
7072
abba2591
GA
70732020-08-04 Tom de Vries <tdevries@suse.de>
7074
7075 PR target/96428
7076 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
7077 * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
7078
6a1ad710
GA
70792020-08-03 Julian Brown <julian@codesourcery.com>
7080 Thomas Schwinge <thomas@codesourcery.com>
7081
7082 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
7083 shared-memory devices. Extend with further checking.
7084
70852020-08-03 Martin Jambor <mjambor@suse.cz>
7086
7087 * plugin/Makefrag.am: Remove configuration of HSA plugin.
7088 * aclocal.m4: Regenerated.
7089 * Makefile.in: Regenerated.
7090 * config.h.in: Regenerated.
7091 * configure: Regenerated.
7092 * plugin/configfrag.ac: Likewise.
7093 * plugin/hsa_ext_finalize.h: Removed.
7094 * plugin/plugin-hsa.c: Likewise.
7095 * testsuite/Makefile.in: Regenerated.
7096 * testsuite/lib/libgomp.exp
7097 (offload_target_to_openacc_device_type): Remove hsa case.
7098 (check_effective_target_hsa_offloading_selected_nocache): Removed
7099 (check_effective_target_hsa_offloading_selected): Likewise.
7100 (libgomp_init): Do not add -Wno-hsa to additional_flags.
7101 * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
7102 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
7103 * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
7104 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
7105 * testsuite/libgomp.hsa.c/c.exp: Likewise.
7106 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
7107 * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
7108 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
7109 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
7110 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
7111 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
7112 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
7113 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
7114 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
7115 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
7116 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
7117 * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
7118 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
7119 * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
7120 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
7121 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
7122 * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
7123 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
7124 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
7125
e71dab87
GA
71262020-07-27 Julian Brown <julian@codesourcery.com>
7127 Thomas Schwinge <thomas@codesourcery.com>
7128
7129 * libgomp.h (struct target_var_desc): Rename do_detach field to
7130 is_attach.
7131 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
7132 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
7133 (goacc_enter_data_internal): Don't affect reference counts
7134 for attach mappings.
7135 (goacc_exit_data_internal): Don't affect reference counts for detach
7136 mappings.
7137 * target.c (gomp_map_vars_existing): Don't affect reference counts for
7138 attach mappings.
7139 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
7140 mark attach mappings.
7141 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
7142 reference count for attach mappings.
7143 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
7144 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
7145 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
7146 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
7147 test as shouldfail.
7148 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
7149 gracefully in no-finalize mode.
7150 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
7151
53256ee3
GA
71522020-07-24 Thomas Schwinge <thomas@codesourcery.com>
7153
7154 * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
7155 use.
7156 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7157 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7158
9bb403dc
GA
71592020-07-23 Julian Brown <julian@codesourcery.com>
7160 Thomas Schwinge <thomas@codesourcery.com>
7161
7162 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
7163 finalization for detach operation.
7164 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
7165 New test.
7166
71672020-07-23 Tobias Burnus <tobias@codesourcery.com>
7168
7169 * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
7170 * libgomp_f.h.in (omp_check_defines): Check whether
7171 sizeof of determined Fortran kind and C typedef match.
7172 * omp_lib.f90.in: Add omp_depened_kind.
7173 * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
7174 * configure: Regenerate.
7175 * Makefile.in: Regenerate.
7176 * testsuite/Makefile.in: Regenerate.
7177
3ea9abca
GA
71782020-07-22 Tobias Burnus <tobias@codesourcery.com>
7179
7180 * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
7181 gcc/testsuite/c-c++-common/gomp/.
7182 * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
7183 * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
7184 from gcc/testsuite/gfortran.dg/gomp/.
7185 * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
7186
71872020-07-22 Tobias Burnus <tobias@codesourcery.com>
7188
7189 * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
7190 * omp_lib.h.in: Likewise.
7191
aeb34e15
GA
71922020-07-18 H.J. Lu <hjl.tools@gmail.com>
7193
7194 PR target/95620
7195 * testsuite/libgomp.c/pr95620.c: New test.
7196
96686b3f
GA
71972020-07-16 Julian Brown <julian@codesourcery.com>
7198 Thomas Schwinge <thomas@codesourcery.com>
7199
7200 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
7201 * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
7202
fe8185b5
GA
72032020-07-15 Tobias Burnus <tobias@codesourcery.com>
7204
7205 * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
7206 avoid conversion on 32bit systems from 32bit to 64bit due
7207 to -fdefault-integer-8.
7208
72092020-07-15 Tobias Burnus <tobias@codesourcery.com>
7210
7211 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
7212 variables; add character(kind=4) tests; update TODO comment.
7213
72142020-07-15 Tobias Burnus <tobias@codesourcery.com>
7215
7216 * allocator.c: Add ialias for omp_init_allocator and
7217 omp_destroy_allocator.
7218 * configure.ac: Set INTPTR_T_KIND.
7219 * configure: Regenerate.
7220 * Makefile.in: Regenerate.
7221 * testsuite/Makefile.in: Regenerate.
7222 * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
7223 omp_set_default_allocator_, omp_get_default_allocator_): New
7224 functions and ialias_redirect.
7225 * icv.c: Add ialias for omp_set_default_allocator and
7226 omp_get_default_allocator.
7227 * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
7228 omp_destroy_allocator_, omp_set_default_allocator_ and
7229 omp_get_default_allocator_.
7230 * omp_lib.f90.in: Add allocator traits parameters, declare
7231 allocator routines and add related kind parameters.
7232 * omp_lib.h.in: Likewise.
7233 * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
7234 * testsuite/libgomp.fortran/alloc-1.F90: New test.
7235 * testsuite/libgomp.fortran/alloc-2.F90: New test.
7236 * testsuite/libgomp.fortran/alloc-3.F: New test.
7237 * testsuite/libgomp.fortran/alloc-4.f90: New test.
7238 * testsuite/libgomp.fortran/alloc-5.f90: New test.
7239
8ca07a30
GA
72402020-07-14 Tom de Vries <tom@codesourcery.com>
7241 Cesar Philippidis <cesar@codesourcery.com>
7242 Thomas Schwinge <thomas@codesourcery.com>
7243 Kwok Cheung Yeung <kcy@codesourcery.com>
7244
7245 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
7246 New variable.
7247 (acc_init_1): Set acc_init_thread to pthread_self (). Set
7248 acc_init_state to initializing at the start, and to initialized at the
7249 end.
7250 (self_initializing_p): New function.
7251 (acc_get_device_type): Return acc_device_none if called by thread that
7252 is currently executing acc_init_1.
7253 * libgomp.texi (acc_get_device_type): Update documentation.
7254 (Implementation Status and Implementation-Defined Behavior): Likewise.
7255 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
7256
72572020-07-14 David Edelsohn <dje.gcc@gmail.com>
7258
7259 * config/t-aix: Set BITS from compiler cpp macro.
7260
72612020-07-14 Tobias Burnus <tobias@codesourcery.com>
7262
7263 * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
7264
72652020-07-14 Tobias Burnus <tobias@codesourcery.com>
7266
7267 PR fortran/67311
7268 * testsuite/libgomp.fortran/target-map-1.f90: New test.
7269
72702020-07-14 Jakub Jelinek <jakub@redhat.com>
7271
7272 * testsuite/libgomp.c/loop-21.c: New test.
7273
ea69fcf9
GA
72742020-07-13 Julian Brown <julian@codesourcery.com>
7275 Thomas Schwinge <thomas@codesourcery.com>
7276
7277 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
7278
86536295
GA
72792020-07-10 Julian Brown <julian@codesourcery.com>
7280 Thomas Schwinge <thomas@codesourcery.com>
7281
7282 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
7283 dynamic_refcount.
7284 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
7285 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
7286 dynamic_refcount.
7287 (acc_unmap_data): Update comment.
7288 (goacc_map_var_existing, goacc_enter_datum): Adjust for
7289 dynamic_refcount semantics.
7290 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
7291 Adjust for dynamic_refcount semantics.
7292 (goacc_enter_data_internal): Implement "present" case of dynamic
7293 memory-map handling here. Update "non-present" case for
7294 dynamic_refcount semantics.
7295 (goacc_exit_data_internal): Use goacc_exit_datum_1.
7296 * target.c (gomp_map_vars_internal): Remove
7297 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
7298 handling.
7299 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
7300 (gomp_load_image_to_device): Substitute dynamic_refcount for
7301 virtual_refcount.
7302 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
7303 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
7304 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
7305 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
7306 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
7307 trace output.
7308 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
7309 trace output.
7310 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
7311 test.
7312 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
7313 Remove stale comment.
7314 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
7315 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
7316 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7317 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7318 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7319 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
7320
73212020-07-10 Julian Brown <julian@codesourcery.com>
7322 Thomas Schwinge <thomas@codesourcery.com>
7323
7324 * oacc-mem.c (goacc_map_var_existing): New function.
7325 (goacc_enter_datum): Use above function.
7326 (goacc_exit_datum_1): New function.
7327 (goacc_exit_datum): Use above function.
7328
3f8ca9cb
GA
73292020-07-09 Julian Brown <julian@codesourcery.com>
7330 Thomas Schwinge <thomas@codesourcery.com>
7331
7332 PR middle-end/95270
7333 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
7334 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
7335
73362020-07-09 Julian Brown <julian@codesourcery.com>
7337
7338 * oacc-mem.c (find_group_last): Group data-movement clauses
7339 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
7340 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
7341
73422020-07-09 Jakub Jelinek <jakub@redhat.com>
7343
7344 * testsuite/libgomp.c/loop-19.c: New test.
7345 * testsuite/libgomp.c/loop-20.c: New test.
7346
73472020-07-09 Jakub Jelinek <jakub@redhat.com>
7348
7349 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
7350 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
7351 it. Remove __omp_alloctrait_value_max__.
7352 * allocator.c (omp_init_allocator): Handle omp_atv_default for
7353 omp_atk_alignment and omp_atk_pool_size.
7354
b991c834
GA
73552020-07-03 Thomas Schwinge <thomas@codesourcery.com>
7356
7357 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
7358 behavior for 'GOMP_MAP_FORCE_FROM'.
7359 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
7360
73612020-07-03 Thomas Schwinge <thomas@codesourcery.com>
7362
7363 * oacc-mem.c (goacc_exit_data_internal): Remove
7364 'GOMP_MAP_ALWAYS_FROM' handling.
7365
46fbb6c6
GA
73662020-06-30 Thomas Schwinge <thomas@codesourcery.com>
7367
7368 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
7369 'scan-assembler' with 'scan-offload-rtl'.
7370 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
7371 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
7372 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
7373 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
7374
73752020-06-30 Thomas Schwinge <thomas@codesourcery.com>
7376
7377 * target.c (gomp_map_vars_existing): Assert 'kind !=
7378 GOMP_MAP_ATTACH'.
7379 (gomp_map_vars_internal): Clean up.
7380
9a33c41f
GA
73812020-06-27 Jakub Jelinek <jakub@redhat.com>
7382
7383 * testsuite/libgomp.c/loop-17.c: New test.
7384 * testsuite/libgomp.c/loop-18.c: New test.
7385
c9c05f73
GA
73862020-06-26 Marek Polacek <polacek@redhat.com>
7387
7388 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
7389
4543acc8
GA
73902020-06-23 Alexandre Oliva <oliva@adacore.com>
7391
7392 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
7393 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
7394
605a8f3b
GA
73952020-06-22 David Edelsohn <dje.gcc@gmail.com>
7396
7397 * Makefile.am: Use -include.
7398 * Makefile.in: Regenerate.
7399
f86e11a2
GA
74002020-06-21 David Edelsohn <dje.gcc@gmail.com>
7401
7402 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
7403 * Makefile.in: Regenerate
7404 * configure.ac (tmake_file): Substitute.
7405 * configure: Regenerate.
7406 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
7407 * config/t-aix: New file.
7408
aff95ee7
GA
74092020-06-17 Thomas Schwinge <thomas@codesourcery.com>
7410
7411 PR lto/94848
7412 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
7413 'dg-do run'.
7414
74152020-06-17 Andrew Stubbs <ams@codesourcery.com>
7416
7417 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
7418 variant for HSA_RUNTIME_LIB name.
7419 (find_executable_symbol_1): Delete.
7420 (find_executable_symbol): Delete.
7421 (init_kernel_properties): Add ".kd" suffix to symbol names.
7422 (find_load_offset): Delete.
7423 (create_and_finalize_hsa_program): Remove relocation handling.
7424
56638b9b
GA
74252020-06-16 Tobias Burnus <tobias@codesourcery.com>
7426
7427 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
7428
2c455ae0
GA
74292020-06-08 Tobias Burnus <tobias@codesourcery.com>
7430
7431 PR lto/94848
7432 PR middle-end/95551
7433 * testsuite/libgomp.fortran/target-var.f90: New test.
7434
1a59f3db
GA
74352020-06-05 Thomas Schwinge <thomas@codesourcery.com>
7436 Julian Brown <julian@codesourcery.com>
7437
7438 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
7439 special handling.
7440
74412020-06-05 Thomas Schwinge <thomas@codesourcery.com>
7442 Julian Brown <julian@codesourcery.com>
7443
7444 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7445 Simplify.
7446
74472020-06-05 Julian Brown <julian@codesourcery.com>
7448
7449 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
7450 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
7451
3add3425
GA
74522020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7453
7454 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7455 Evaluate 'copyfrom' individually for each entry.
7456 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
7457
74582020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7459
7460 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7461 Evaluate 'finalize' individually for each entry.
7462 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
7463 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
7464 file.
7465
74662020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7467
7468 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
7469 usage.
7470 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
7471
74722020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7473 Julian Brown <julian@codesourcery.com>
7474
7475 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
7476 checking.
7477 (acc_unmap_data, goacc_exit_data_internal): Restore
7478 'is_tgt_unmapped' checking.
7479 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
7480 file.
7481 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
7482 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
7483 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7484 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7485 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7486 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
7487
74882020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7489 Julian Brown <julian@codesourcery.com>
7490
7491 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
7492
74932020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7494
7495 PR libgomp/92854
7496 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
7497
74982020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7499
7500 PR libgomp/92854
7501 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
7502 more.
7503
75042020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7505 Julian Brown <julian@codesourcery.com>
7506
7507 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
7508 'gomp_map_vars'.
3d3b561f 7509 (acc_map_data): Clean up accordingly.
3add3425
GA
7510
75112020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7512
7513 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
7514 of over-eager 'finalize' clause.
7515 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
7516 file.
7517 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
7518 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
7519 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7520 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7521 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7522 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
7523 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
7524 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
7525
75262020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7527
7528 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
7529
75302020-06-04 Julian Brown <julian@codesourcery.com>
7531
7532 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
7533 error path.
7534 (goacc_detach_internal): Likewise.
7535
75362020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7537
7538 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
7539 the checkpoint.
7540 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
7541 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
7542 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
7543 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
7544 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
7545
a9312a79
GA
75462020-06-02 Jakub Jelinek <jakub@redhat.com>
7547
7548 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
7549 defined.
7550
945b53cc
GA
75512020-05-30 Jakub Jelinek <jakub@redhat.com>
7552
7553 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
7554
75552020-05-30 Jakub Jelinek <jakub@redhat.com>
7556
7557 * allocator.c (omp_alloc): For size == 0, return NULL early.
7558
885ef72f
GA
75592020-05-29 H.J. Lu <hjl.tools@gmail.com>
7560
7561 PR bootstrap/95413
7562 * configure: Regenerated.
7563
8df7ee67
TK
75642020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
7565
7566 PR libfortran/95191
7567 * testsuite/libgomp.fortran/async_io_9.f90: New test.
7568
800bcc8c
JJ
75692020-05-19 Jakub Jelinek <jakub@redhat.com>
7570
7571 * omp.h.in (omp_uintptr_t): New typedef.
7572 (__GOMP_UINTPTR_T_ENUM): Define.
7573 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
7574 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
7575 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
7576 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
7577 omp_get_default_allocator, omp_alloc, omp_free): Declare.
7578 * libgomp.h (struct gomp_team_state): Add def_allocator field.
7579 (gomp_def_allocator): Declare.
7580 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
7581 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
7582 omp_alloc and omp_free.
7583 * team.c (gomp_team_start): Copy over ts.def_allocator.
7584 * env.c (gomp_def_allocator): New variable.
7585 (parse_wait_policy): Adjust function comment.
7586 (parse_allocator): New function.
7587 (handle_omp_display_env): Print OMP_ALLOCATOR.
7588 (initialize_env): Call parse_allocator.
7589 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
7590 * allocator.c: New file.
7591 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
7592 functions.
7593 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
7594 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
7595 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
7596 * Makefile.in: Regenerated.
7597
4c1a5d8b
L
75982020-05-15 H.J. Lu <hongjiu.lu@intel.com>
7599
7600 PR bootstrap/95147
7601 * configure: Regenerated.
7602
cdc34b50
TK
76032020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
7604
7605 PR libfortran/95119
7606 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
7607
76082020-05-14 H.J. Lu <hongjiu.lu@intel.com>
7609
7610 * configure: Regenerated.
7611
76122020-05-14 Jakub Jelinek <jakub@redhat.com>
7613
7614 * testsuite/libgomp.c-c++-common/target-40.c: New test.
7615
f884bef2
TB
76162020-05-13 Tobias Burnus <tobias@codesourcery.com>
7617
7618 PR fortran/94690
7619 * testsuite/libgomp.fortran/pr66199-3.f90: New.
7620 * testsuite/libgomp.fortran/pr66199-4.f90: New.
7621 * testsuite/libgomp.fortran/pr66199-5.f90: New.
7622 * testsuite/libgomp.fortran/pr66199-6.f90: New.
7623 * testsuite/libgomp.fortran/pr66199-7.f90: New.
7624 * testsuite/libgomp.fortran/pr66199-8.f90: New.
7625 * testsuite/libgomp.fortran/pr66199-9.f90: New.
7626
dc703151
JJ
76272020-05-12 Jakub Jelinek <jakub@redhat.com>
7628
7629 * testsuite/libgomp.c/target-39.c: New test.
7630
b9dc11b6
TS
76312020-04-29 Thomas Schwinge <thomas@codesourcery.com>
7632
a5d0bc12
TS
7633 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
7634 * openacc.f90 (acc_device_current): Likewise.
7635 * openacc.h (acc_device_current): Likewise.
7636 * openacc_lib.h (acc_device_current): Likewise.
7637
7f198924
TS
7638 PR target/94282
7639 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
7640 'dg-allow-blank-lines-in-output'.
7641
4912a04f
TS
7642 * oacc-init.c (get_openacc_name): Handle 'gcn'.
7643 * testsuite/lib/libgomp.exp
7644 (offload_target_to_openacc_device_type) [amdgcn*]: Return
7645 'radeon'. Adjust all users.
7646 (check_effective_target_openacc_amdgcn_accel_present): Rename
7647 to...
7648 (check_effective_target_openacc_radeon_accel_present): ... this.
7649 Adjust all users.
7650 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
7651 (check_effective_target_openacc_radeon_accel_selected): ... this.
7652 Adjust all users.
7653
b9dc11b6
TS
7654 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
7655 'dg-do run'.
7656
966de09b
AS
76572020-04-23 Andrew Stubbs <ams@codesourcery.com>
7658
7659 PR other/94629
7660
7661 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
7662 hsa_iterate_agents.
7663 (GOMP_OFFLOAD_init_device): Check return values from both calls to
7664 hsa_agent_iterate_regions.
7665
3f5d94c1
TS
76662020-04-20 Thomas Schwinge <thomas@codesourcery.com>
7667
7668 PR middle-end/94635
7669 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
7670 run'.
7671
85d8c05a
TB
76722020-04-20 Tobias Burnus <tobias@codesourcery.com>
7673
7674 PR middle-end/94120
7675 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
7676 test case.
7677
af557050
TB
76782020-04-17 Tobias Burnus <tobias@codesourcery.com>
7679
7680 PR middle-end/94635
7681 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
7682
af4c9257
TS
76832020-04-13 Thomas Schwinge <thomas@codesourcery.com>
7684
7685 PR libgomp/92843
7686 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7687 Rename to...
7688 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
7689 ... this.
7690 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7691 Rename to...
7692 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
7693 ... this.
7694 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7695 Rename to...
7696 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
7697 ... this.
7698 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7699 Rename to...
7700 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
7701 ... this.
7702 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7703 Rename to...
7704 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
7705 ... this.
7706 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7707 Rename to...
7708 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
7709 ... this.
7710 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7711 Rename to...
7712 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
7713 ... this.
7714 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7715 Rename to...
7716 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
7717 ... this.
7718 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7719 Rename to...
7720 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
7721 ... this.
7722 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7723 Rename to...
7724 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
7725 ... this.
7726 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7727 Rename to...
7728 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
7729 ... this.
7730 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7731 Rename to...
7732 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
7733 ... this.
7734 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7735 Rename to...
7736 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
7737 ... this.
7738 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7739 Rename to...
7740 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
7741 ... this.
7742 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7743 Rename to...
7744 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
7745 ... this.
7746 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
7747 Rename to...
7748 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
7749 ... this.
7750
be9862dd
JB
77512020-04-10 Julian Brown <julian@codesourcery.com>
7752 Thomas Schwinge <thomas@codesourcery.com>
7753
7754 PR libgomp/92843
7755 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7756 New file.
7757 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7758 Likewise.
7759 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7760 Likewise.
7761 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7762 Likewise.
7763 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7764 Likewise.
7765 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7766 Likewise.
7767 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7768 Likewise.
7769 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7770 Likewise.
7771 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7772 Likewise.
7773 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7774 Likewise.
7775 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7776 Likewise.
7777 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7778 Likewise.
7779 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7780 Likewise.
7781 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7782 Likewise.
7783 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7784 Likewise.
7785 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
7786 Likewise.
7787
6b816a5f
TS
77882020-04-10 Thomas Schwinge <thomas@codesourcery.com>
7789
7790 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
7791 run'.
7792
13e41d8b
TB
77932020-04-08 Tobias Burnus <tobias@codesourcery.com>
7794
7795 PR middle-end/94120
7796 * libgomp.oacc-c++/declare-pr94120.C: New.
7797
749bd22d
MR
77982020-04-06 Maciej W. Rozycki <macro@wdc.com>
7799
7800 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
7801 files.
7802 * configure: Regenerate.
7803 * testsuite/libgomp-site-extra.exp.in: New file.
7804 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
7805 variable.
7806 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
7807 variable.
7808 * testsuite/Makefile.in: Regenerate.
7809
2b1e849b
TS
78102020-04-03 Thomas Schwinge <thomas@codesourcery.com>
7811
7812 PR tree-optimization/89713
7813 PR c/94392
7814 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
7815 'bar.sync'.
7816 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
7817
689418b9
TB
78182020-03-31 Tobias Burnus <tobias@codesourcery.com>
7819
7820 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
7821 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
7822
c2211a60
TB
78232020-03-24 Tobias Burnus <tobias@codesourcery.com>
7824
7825 PR libgomp/81689
7826 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
7827
4897bb00
TB
78282020-03-20 Tobias Burnus <tobias@codesourcery.com>
7829
7830 PR libgomp/94251
7831 * target.c (gomp_load_image_to_device): Fix link
7832 variable handling.
7833
02f7334a
JJ
78342020-03-19 Jakub Jelinek <jakub@redhat.com>
7835
7836 PR c++/93931
7837 * testsuite/libgomp.c++/pr93931.C: New test.
7838
bb83e069
TB
78392020-03-19 Tobias Burnus <tobias@codesourcery.com>
7840
7841 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
7842 dg-allow-blank-lines-in-output.
7843
26cbcfe5
TB
78442020-03-18 Julian Brown <julian@codesourcery.com>
7845 Tobias Burnus <tobias@codesourcery.com>
7846
7847 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
7848 it work concurrently.
7849
4da92887
TB
78502020-03-18 Tobias Burnus <tobias@codesourcery.com>
7851
7852 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
7853 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
7854 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
7855
9c3cdb43
JJ
78562020-03-14 Jakub Jelinek <jakub@redhat.com>
7857
7858 PR middle-end/93566
7859 * testsuite/libgomp.c/pr93566.c: New test.
7860
83d45e1d
FH
78612020-02-21 Frederik Harwath <frederik@codesourcery.com>
7862
7863 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
7864 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
7865 integer(acc_device_property) for the type of the return value of
7866 acc_get_property.
7867
8d1a1cb1
TB
78682020-02-19 Tobias Burnus <tobias@codesourcery.com>
7869
7870 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
7871 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
7872 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
7873 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
7874 (acc_set_device_num): Fix Fortran argument name, use same name for C.
7875 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
7876 corrections; add note about the previous interface and named constant.
7877 (OpenACC library and environment variables): Fix two typos.
7878 * openacc.f90: Use for all procedures the argument names from the spec
7879 as for …_h they are user visible.
7880 (openacc_kinds): Rename acc_device_property to
7881 acc_device_property_kinds and change value to int32 ; and update users.
7882 Re-add acc_device_property for for backward compatibility.
7883 (acc_get_property_string_h): Clean up as acc_device_property_kind
7884 changed.
7885 (acc_get_property_h): Likewise and return c_size_t instead of
7886 acc_device_property.
7887 (openacc): Also export acc_device_property_kinds.
7888 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
7889 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
7890 handling; check against /= 0 instead of == 1 to match C.
7891 * openacc_lib.h: Use for all procedures the argument names from the spec
7892 as for …_h they are user visible. Place !GCC$ into the first column to
7893 be active also for fixed-form souce form.
7894 (acc_device_current, acc_device_property_kind, acc_device_property,
7895 acc_property_memory, acc_property_free_memory, acc_property_name,
7896 acc_property_vendor, acc_property_driver): New named constants.
7897 (acc_get_property, acc_get_property_string): New generic interface.
7898
2d9eb4e4
FH
78992020-02-13 Frederik Harwath <frederik@codesourcery.com>
7900
7901 PR libgomp/93481
7902 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
7903 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
7904 optional.
7905 (gomp_target_task_fn): Assert "devicep->async_run_func".
7906 (clear_unsupported_flags): New function to remove unsupported flags
7907 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
7908 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
7909 * testsuite/libgomp.c/target-33.c:
7910 Remove xfail for offload_target_nvptx.
7911 * testsuite/libgomp.c/target-34.c: Likewise.
fd789c81
FH
7912
79132020-02-10 Frederik Harwath <frederik@codesourcery.com>
7914
7915 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
7916 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
7917 * testsuite/libgomp.c/target-34.c: Likewise.
7918 * testsuite/libgomp.c/target-link-1.c: Add xfail for
7919 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
7920
9bc3b95d
JJ
79212020-02-09 Jakub Jelinek <jakub@redhat.com>
7922
7923 * testsuite/libgomp.c/target-38.c: New test.
7924
cb3f0648
JJ
79252020-02-06 Jakub Jelinek <jakub@redhat.com>
7926
7927 PR libgomp/93515
7928 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
7929
91bc3c98
TB
79302020-02-05 Tobias Burnus <tobias@codesourcery.com>
7931
7932 * testsuite/lib/libgomp.exp
7933 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
7934 and not as 'source' argument to libgomp_target_compile.
7935
591f869a
AS
79362020-02-03 Andrew Stubbs <ams@codesourcery.com>
7937
7938 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
7939 (gcn_gfx801_s): Remove.
7940 (isa_hsa_name): Remove gfx801.
7941 (isa_gcc_name): Remove gfx801/carizzo.
7942 (isa_code): Remove gfx801.
7943
e464fc90
TB
79442020-02-03 Julian Brown <julian@codesourcery.com>
7945 Tobias Burnus <tobias@codesourcery.com>
7946
7947 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
7948 and *_finalize variants; document acc_attach and acc_detach; update
7949 references from OpenACC 2.0 to 2.6.
7950 * openacc.f90 (openacc_version): Update to 201711.
7951 * openacc_lib.h (openacc_version): Update to 201711.
7952 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
7953 openacc_version to 201711.
7954 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
7955
5a28e272
KCY
79562020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
7957
7958 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
7959 and vgpr_count fields.
7960 (struct kernel_info): Add a field for a hsa_kernel_description.
7961 (run_kernel): Reduce the number of threads/workers if the requested
7962 number would require too many VGPRs.
7963 (init_basic_kernel_info): Initialize description field with
7964 the hsa_kernel_description entry for the kernel.
7965
5ab5d81b
TB
79662020-01-29 Tobias Burnus <tobias@codesourcery.com>
7967
7968 PR bootstrap/93409
7969 * plugin/configfrag.ac (enable_offload_targets): Skip
7970 HSA and GCN plugin besides -m32 also for -mx32.
7971 * configure: Regenerate.
7972
989a5fb3
FH
79732020-01-29 Frederik Harwath <frederik@codesourcery.com>
7974
7975 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
2e5ea579
FH
7976
79772020-01-29 Frederik Harwath <frederik@codesourcery.com>
7978
7979 * plugin-gcn.c (struct agent_info): Add fields "name" and
7980 "vendor_name" ...
7981 (GOMP_OFFLOAD_init_device): ... and init from here.
7982 (struct hsa_context_info): Add field "driver_version_s" ...
7983 (init_hsa_contest): ... and init from here.
7984 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
7985 implementation.
7986 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
7987 Enable test execution for amdgcn and host offloading targets.
7988 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
7989 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7990 (expect_device_properties): Split function into ...
7991 (expect_device_string_properties): ... this new function ...
7992 (expect_device_memory): ... and this new function.
7993 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
7994 Add test.
7995
278c3214
JB
79962020-01-28 Julian Brown <julian@codesourcery.com>
7997
7998 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
7999 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
8000 component/non-component variable refs in a single directive.
8001 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
8002
e8e66971
MR
80032020-01-24 Maciej W. Rozycki <macro@wdc.com>
8004
8005 * configure.ac: Handle `--with-toolexeclibdir='.
8006 * Makefile.in: Regenerate.
8007 * aclocal.m4: Regenerate.
8008 * configure: Regenerate.
8009 * testsuite/Makefile.in: Regenerate.
8010
9e424d97
FH
80112020-01-24 Frederik Harwath <frederik@codesourcery.com>
8012
8013 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
8014 (expect_device_properties): Remove "expected_free_mem" argument,
8015 change "expected_total_mem" argument type to size_t;
8016 change types of acc_get_property results to size_t,
8017 adapt format strings.
8018 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
8019 Use %zu instead of %zd to print size_t values.
8020 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
8021 rename to ...
8022 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
8023 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
8024 rename to ...
8025 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
8026
14e5e746
AS
80272020-01-23 Andrew Stubbs <ams@codesourcery.com>
8028
8029 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
8030 the device id.
8031
09e0ad62
AS
80322020-01-20 Andrew Stubbs <ams@codesourcery.com>
8033
8034 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
8035 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
8036 Adjust test dimensions for amdgcn.
8037 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
8038 gang/worker/vector expectations dynamically.
8039 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
8040 (main): Likewise.
8041 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
8042 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
8043 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
8044 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
8045 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
8046 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
8047 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
8048 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
8049 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
8050 (acc_gang): Recognise acc_device_radeon.
8051 (acc_worker): Likewise.
8052 (acc_vector): Likewise.
8053 (main): Set expectations for amdgcn.
8054 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
8055 (main): Adjust gang/worker/vector expectations dynamically.
8056 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
8057 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
8058 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
8059 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
8060 for amdgcn.
8061
6687d13a
AS
80622020-01-17 Andrew Stubbs <ams@codesourcery.com>
8063
8064 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
8065 acc_device_radeon.
8066 (openacc): Likewise.
8067 * openacc.f90 (openacc_kinds): Likewise.
8068 (openacc): Likewise.
8069 * openacc.h (acc_device_t): Likewise.
8070 * openacc_lib.h: Likewise.
8071 * testsuite/lib/libgomp.exp
8072 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
8073 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
8074 (cb_compute_construct_end): Likewise.
8075 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
8076 (cb_enqueue_launch_start): Likewise.
8077 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
8078 (cb_enter_data_end): Likewise.
8079 (cb_exit_data_start): Likewise.
8080 (cb_exit_data_end): Likewise.
8081 (cb_compute_construct_end): Likewise.
8082 (cb_enqueue_launch_start): Likewise.
8083 (cb_enqueue_launch_end): Likewise.
8084 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
8085 (main): Likewise.
8086
b3b75e66
TS
80872020-01-10 Thomas Schwinge <thomas@codesourcery.com>
8088
6fc0385c
TS
8089 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
8090 to use this instead of 'enum gomp_device_property'.
8091 (GOMP_OFFLOAD_get_property): Rename to...
8092 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
8093 * libgomp.h (struct gomp_device_descr): Move
8094 'GOMP_OFFLOAD_openacc_get_property'...
8095 (struct acc_dispatch_t): ... here. Adjust all users.
8096 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
8097
b3b75e66
TS
8098 * target.c (gomp_map_vars_internal)
8099 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
8100 paths.
8101
91df4397
JJ
81022020-01-10 Jakub Jelinek <jakub@redhat.com>
8103
8104 PR libgomp/93219
8105 * libgomp.h (gomp_print_string): Change return type from void to int.
8106 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
8107 not all characters have been written.
8108
df2c0d36
TB
81092020-01-08 Tobias Burnus <tobias@codesourcery.com>
8110
8111 * libgomp.texi: Fix typos, use https.
8112
f760c0c7
TB
81132020-01-03 Tobias Burnus <tobias@codesourcery.com>
8114
8115 * testsuite/libgomp.fortran/optional-map.f90: Add test for
8116 unallocated/disassociated actual arguments to nonallocatable/nonpointer
8117 dummy arguments; those are/shall be regarded as absent arguments.
8118 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
8119 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
8120
7e7065b9
JJ
81212020-01-01 Jakub Jelinek <jakub@redhat.com>
8122
8d9254fc
JJ
8123 Update copyright years.
8124
7e7065b9
JJ
8125 * libgomp.texi: Bump @copying's copyright year.
8126
2c829799
AM
81272019-12-31 Ayush Mittal <ayush.m@samsung.com>
8128
8129 PR libgomp/93065
8130 * oacc-init.c (goacc_runtime_deinitialize): New function.
8131
e9dcb75e
JJ
81322019-12-28 Jakub Jelinek <jakub@redhat.com>
8133
8134 PR bootstrap/93074
8135 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
8136 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
8137
6c84c8bf
MR
81382019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
8139 Frederik Harwath <frederik@codesourcery.com>
8140 Thomas Schwinge <tschwinge@codesourcery.com>
8141
8142 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
8143 * libgomp-plugin.h (gomp_device_property_value): New union.
8144 (gomp_device_property_value): New prototype.
8145 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
8146 constant.
8147 (acc_device_property_t): New enum.
8148 (acc_get_property, acc_get_property_string): New prototypes.
8149 * oacc-init.c (acc_get_device_type): Also assert that result
8150 is not `acc_device_current'.
8151 (get_property_any, acc_get_property, acc_get_property_string):
8152 New functions.
8153 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
8154 `acc_property_memory', `acc_property_free_memory',
8155 `acc_property_name', `acc_property_vendor' and
8156 `acc_property_driver' constants. Add `acc_device_property' data
8157 type.
8158 (openacc_internal): Add `acc_get_property' and
8159 `acc_get_property_string' interfaces. Add `acc_get_property_h',
8160 `acc_get_property_string_h', `acc_get_property_l' and
8161 `acc_get_property_string_l'.
8162 * oacc-host.c (host_get_property): New function.
8163 (host_dispatch): Wire it.
8164 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
8165 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
8166 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
8167 * libgomp.texi (OpenACC Runtime Library Routines): Add
8168 `acc_get_property'.
8169 (acc_get_property): New node.
8170 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
8171 function (stub).
8172 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
8173 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
8174 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
8175 calls.
8176 (GOMP_OFFLOAD_get_property): New function.
8177 (struct ptx_device): Add new field "name".
8178 (cuda_driver_version_s): Add new static variable ...
8179 (nvptx_init): ... and init from here.
8180
8181 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
8182 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
8183 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
8184 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
8185 with test helper functions.
8186
8187 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
8188
c8e759b4
MR
81892019-12-22 Maciej W. Rozycki <macro@wdc.com>
8190
8191 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
8192 variable.
8193
b092fb3b
TS
81942019-12-21 Thomas Schwinge <thomas@codesourcery.com>
8195
8196 * target.c (gomp_map_vars_internal): Restore 'omp declare target
8197 link' handling.
8198
9be3ac5d
JB
81992019-12-19 Julian Brown <julian@codesourcery.com>
8200
8201 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
8202 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
8203 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
8204
02817027
JB
82052019-12-19 Julian Brown <julian@codesourcery.com>
8206 Cesar Philippidis <cesar@codesourcery.com>
8207
8208 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
8209 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
8210 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
8211 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
8212 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
8213 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
8214 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
8215 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
8216 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
8217 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
8218 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
8219 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
8220 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
8221
c2eb021f
JB
82222019-12-19 Julian Brown <julian@codesourcery.com>
8223
8224 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
8225 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
8226 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
8227 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
8228 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
8229 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
8230 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
8231 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
8232 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
8233 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
8234 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
8235 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
8236
8e7e71ff
JB
82372019-12-19 Julian Brown <julian@codesourcery.com>
8238
8239 * libgomp.h (struct target_var_desc): Add do_detach flag.
8240 * oacc-init.c (acc_shutdown_1): Free aux block if present.
8241 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
8242 struct components. Tidy up and add some new checks.
8243 (goacc_enter_data_internal): Update call to find_group_last.
8244 (goacc_exit_data_internal): Support detach operations and
8245 GOMP_MAP_STRUCT.
8246 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
8247 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
8248 attach/detach in enter/exit data detection code.
8249 * target.c (gomp_map_vars_existing): Initialise do_detach field of
8250 tgt_var_desc.
8251 (gomp_map_vars_internal): Support attach.
8252 (gomp_unmap_vars_internal): Support detach.
8253
5d5be7bf
JB
82542019-12-19 Julian Brown <julian@codesourcery.com>
8255 Thomas Schwinge <thomas@codesourcery.com>
8256
8257 * libgomp.h (struct splay_tree_aux): Add attach_count field.
8258 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
8259 * libgomp.map (OACC_2.6): New section. Add acc_attach,
8260 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
8261 acc_detach_finalize_async.
8262 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
8263 acc_detach, acc_detach_async, acc_detach_finalize,
8264 acc_detach_finalize_async): New functions.
8265 * openacc.h (acc_attach, acc_attach_async, acc_detach,
8266 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
8267 prototypes.
8268 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
8269 (gomp_remove_var_internal): Free attachment counts if present.
8270 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
8271 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
8272
5bcd470b
JB
82732019-12-19 Julian Brown <julian@codesourcery.com>
8274 Cesar Philippidis <cesar@codesourcery.com>
8275
8276 * libgomp.h (gomp_map_val): Add prototype.
8277 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
8278 open-coding device-address calculation.
8279 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
8280 non-present case.
8281
378da98f
JB
82822019-12-19 Julian Brown <julian@codesourcery.com>
8283
8284 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
8285 field for virtual_refcount.
8286 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
8287 (gomp_free_memmap): Remove prototype.
8288 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
8289 instead of calling gomp_free_memmap.
8290 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
8291 dynamic_refcount.
8292 (acc_unmap_data): Open code instead of forcing target_mem_desc's
8293 to_free field to NULL then calling gomp_unmap_vars. Handle
8294 REFCOUNT_INFINITY on target blocks.
8295 (goacc_enter_data): Rename to...
8296 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
8297 handling for mapping groups. Use virtual_refcount instead of
8298 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
8299 map_map_vars_async call. Re-do lookup for target pointer return value.
8300 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
8301 renamed goacc_enter_datum function.
8302 (goacc_exit_data): Rename to...
8303 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
8304 (acc_delete, acc_delete_async, acc_delete_finalize,
8305 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
8306 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
8307 goacc_exit_datum function.
8308 (gomp_acc_remove_pointer, find_pointer): Remove functions.
8309 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
8310 New functions.
8311 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
8312 goacc_exit_data_internal helper functions.
8313 * target.c (gomp_map_vars_internal): Handle
8314 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
8315 semantics.
8316 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
8317 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
8318 virtual_refcount field instead of dynamic_refcount.
8319 (gomp_free_memmap): Remove function.
8320 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
8321 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
8322 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
8323
2a656a93
JB
83242019-12-19 Julian Brown <julian@codesourcery.com>
8325 Thomas Schwinge <thomas@codesourcery.com>
8326
8327 * libgomp.h (struct splay_tree_aux): New.
8328 (struct splay_tree_key_s): Replace link_key field with aux pointer.
8329 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
8330 to aux struct.
8331 (gomp_remove_var_internal): Free aux block if present.
8332 (gomp_load_image_to_device): Zero-initialise aux field instead of
8333 link_key field.
8334 (omp_target_associate_pointer): Zero-initialise aux field.
8335
601399c0
JJ
83362019-12-18 Jakub Jelinek <jakub@redhat.com>
8337
8338 PR middle-end/86416
8339 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
8340 q or none.
8341 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
8342 L or none.
8343
a6163563
JB
83442019-12-19 Julian Brown <julian@codesourcery.com>
8345 Maciej W. Rozycki <macro@codesourcery.com>
8346 Tobias Burnus <tobias@codesourcery.com>
8347 Thomas Schwinge <thomas@codesourcery.com>
8348
8349 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
8350 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
8351 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
8352 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
8353 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
8354 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
8355 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
8356 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
8357 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
8358
6278b549
TS
83592019-12-18 Thomas Schwinge <thomas@codesourcery.com>
8360
77ce5555
TS
8361 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
8362 called...
8363 (goacc_insert_pointer): ... from here, "present" case.
8364 (goacc_insert_pointer): Inline function into...
8365 (GOACC_enter_exit_data): ... here, and simplify.
8366
9444a299
TS
8367 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
8368 called...
8369 (goacc_insert_pointer): ... from here, "not present" case.
8370
5031b619
TS
8371 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
8372 all users.
8373
1a79b578
TS
8374 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
8375 'goacc_enter_data', 'goacc_exit_data'.
8376
34cfe31e
TS
8377 * oacc-mem.c (delete_copyout): Refactor into...
8378 (goacc_exit_data): ... this. Adjust all users.
8379
aaf0e9d7
TS
8380 * oacc-mem.c (present_create_copy): Refactor into...
8381 (goacc_enter_data): ... this. Adjust all users.
8382
83d1d065
TS
8383 * target.c (gomp_unmap_vars_internal): Add a safeguard to
8384 'gomp_remove_var'.
8385
cc3f11f5
TS
8386 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
8387 like 'GOMP_MAP_FROM'.
8388
ddb25eb9
TS
8389 PR libgomp/92726
8390 PR libgomp/92970
8391 PR libgomp/92984
8392 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
8393 fails.
8394 (GOACC_enter_exit_data): Simplify accordingly.
8395 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
8396 subsuming...
8397 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
8398 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
8399 file.
8400 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
8401 subsuming...
8402 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
8403 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
8404 file.
8405 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
8406 subsuming...
8407 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
8408
32128577
TS
8409 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
8410 'finalize' handling.
8411
ba40277f
TS
8412 PR libgomp/92848
8413 * oacc-mem.c (acc_map_data, present_create_copy)
8414 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
8415 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
8416 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
8417 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
8418 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
8419 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
8420 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
8421 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
8422 Remove "XFAIL"s.
8423
6278b549
TS
8424 * target.c (gomp_unmap_tgt): Make it 'static'.
8425 * libgomp.h (gomp_unmap_tgt): Remove.
8426
c80c9e26
TB
84272019-12-18 Tobias Burnus <tobias@codesourcery.com>
8428
8429 PR middle-end/86416
8430 * testsuite/libgomp.c/pr86416-1.c: New.
8431 * testsuite/libgomp.c/pr86416-2.c: New.
8432
0b8499a4
TB
84332019-12-17 Tobias Burnus <tobias@codesourcery.com>
8434
8435 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
8436 all symbols as public except for the 'use …, only' imported symbol,
8437 which is private.
8438 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
8439 all symbols from module openacc_kinds as PUBLIC
8440 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
8441 fix comment typo.
8442 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
8443
1cbd94e8
JB
84442019-12-13 Julian Brown <julian@codesourcery.com>
8445
8446 PR libgomp/92881
8447
8448 * libgomp.h (gomp_remove_var_async): Add prototype.
8449 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
8450 gomp_remove_var.
8451 * target.c (gomp_unref_tgt): Change return type to bool, indicating
8452 whether target_mem_desc was unmapped.
8453 (gomp_unref_tgt_void): New.
8454 (gomp_remove_var): Reimplement in terms of...
8455 (gomp_remove_var_internal): ...this new helper function.
8456 (gomp_remove_var_async): New, implemented using above helper function.
8457 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
8458 gomp_unref_tgt.
8459
26b74ed0
AS
84602019-12-13 Andrew Stubbs <ams@codesourcery.com>
8461
8462 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
8463 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
8464 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
8465 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
8466 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
8467 Likewise.
8468 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
8469 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
8470
7858bb96
TB
84712019-12-13 Tobias Burnus <tobias@codesourcery.com>
8472
8473 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
8474 as public except for the 'use …, only' imported symbol, which is
8475 private.
8476 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
8477 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
8478 attributes for acc_copyout_finalize and acc_delete_finalize.
8479
f8ac7d8f
JJ
84802019-12-11 Jakub Jelinek <jakub@redhat.com>
8481
8482 PR fortran/92899
8483 * testsuite/libgomp.fortran/atomic1.f90: New test.
8484
3d1b5e71
TS
84852019-12-11 Thomas Schwinge <thomas@codesourcery.com>
8486
d6e8c01c
TS
8487 PR libgomp/92843
8488 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
8489 reference counting for structured 'REFCOUNT_INFINITY'. Add some
8490 assertions.
8491 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
8492 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
8493 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
8494 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
8495 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8496
57963e39
TS
8497 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
8498 * oacc-mem.c: ... here.
8499 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
8500 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
8501 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
8502 Remove.
8503 * libgomp_g.h: Update.
8504
c5578b56
TS
8505 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
8506 * oacc-async.c: ... here.
8507 * oacc-int.h (goacc_wait): Declare.
8508 * libgomp_g.h: Update
8509
3d1b5e71
TS
8510 PR libgomp/92854
8511 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
8512 New file.
8513 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
8514 Likewise.
8515 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
8516 Likewise.
8517 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
8518 Likewise.
8519 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
8520 Likewise.
8521 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
8522 Likewise.
8523
5e939438
TS
85242019-12-11 Thomas Schwinge <thomas@codesourcery.com>
8525 Julian Brown <julian@codesourcery.com>
8526
8527 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
8528 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
8529
93d90219
TB
85302019-12-11 Tobias Burnus <tobias@codesourcery.com>
8531
8532 * omp_lib.h.in: Fix spelling of function declaration
8533 omp_get_cancell(l)ation.
8534 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
8535 Fix typos.
8536 * env.c: Fix comment typos.
8537 * oacc-host.c: Likewise.
8538 * ordered.c: Likewise.
8539 * task.c: Likewise.
8540 * team.c: Likewise.
8541 * config/gcn/task.c: Likewise.
8542 * config/gcn/team.c: Likewise.
8543 * config/nvptx/task.c: Likewise.
8544 * config/nvptx/team.c: Likewise.
8545 * plugin/plugin-gcn.c: Likewise.
8546 * testsuite/libgomp.fortran/jacobi.f: Likewise.
8547 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
8548 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
8549
a0221aee
TB
85502019-12-11 Tobias Burnus <tobias@codesourcery.com>
8551
8552 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
8553 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
8554 unnecessary 'dg-additional-options "-w"'.
8555
47afc7b4
TS
85562019-12-09 Thomas Schwinge <thomas@codesourcery.com>
8557 Julian Brown <julian@codesourcery.com>
8558
8559 PR libgomp/92116
8560 PR libgomp/92877
8561
8562 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
8563 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
8564 Adjust all users.
8565 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8566 Remove XFAIL.
8567 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8568 Likewise.
8569 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
8570
b5859e40
TS
85712019-12-09 Thomas Schwinge <thomas@codesourcery.com>
8572
cec41816
TS
8573 PR libgomp/92503
8574 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
8575 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
8576 file.
8577 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
8578 Likewise.
8579 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
8580 Likewise.
8581 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
8582 Likewise.
8583 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8584 Likewise.
8585 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8586 Likewise.
8587 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8588 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
8589 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
8590 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
8591 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
8592 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
8593 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8594 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8595 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
8596 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8597
e103542b
TS
8598 PR libgomp/92840
8599 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
8600 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
8601 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
8602 New file.
8603 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
8604 Likewise.
8605 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
8606 Likewise.
8607 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8608 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
8609
41f36f22
TS
8610 PR libgomp/92511
8611 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
8612 this file...
8613 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
8614 this file...
8615 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
8616 file...
8617 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
8618 file...
8619 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
8620 ... with their content moved into, and extended in this new file.
8621 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
8622 New file.
8623 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
8624 Likewise.
8625 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
8626 Likewise.
8627 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
8628 Likewise.
8629
6effebe1
TS
8630 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
8631
7d020473
TS
8632 PR libgomp/92854
8633 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
8634
1e1fb715
TS
8635 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
8636
b5859e40
TS
8637 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
8638
11586ed9
TB
86392019-12-09 Tobias Burnus <tobias@codesourcery.com>
8640
8641 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
8642 unique.
8643 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
8644 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
8645 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
8646 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
8647 Ditto.
8648 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
8649 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
8650
3ad4a03a
KCY
86512019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
8652
8653 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
8654
6e4d01d6
TB
86552019-12-06 Tobias Burnus <tobias@codesourcery.com>
8656 Kwok Cheung Yeung <kcy@codesourcery.com>
8657
8658 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
8659 if input it a NULL pointer.
8660 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
8661 diagnostic of NULL pointer.
8662 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
8663 * testsuite/libgomp.fortran/optional-map.f90: New.
8664 * testsuite/libgomp.fortran/use_device_addr-1.f90
8665 (test_dummy_opt_callee_1_absent): New.
8666 (test_dummy_opt_call_1): Call it.
8667 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8668 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
8669 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8670 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
8671 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
8672 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
8673 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
8674 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
8675 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
8676 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
8677 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
8678 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
8679 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
8680 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
8681 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
8682 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
8683
ad80ec46
TB
86842019-12-05 Tobias Burnus <tobias@codesourcery.com>
8685
8686 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
8687 expect dg-output of 'Error termination.' for GCN.
8688 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
8689 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
8690
a8a5f4cc
JJ
86912019-12-04 Jakub Jelinek <jakub@redhat.com>
8692
8693 PR fortran/92756
8694 * testsuite/libgomp.fortran/teams1.f90: New test.
8695 * testsuite/libgomp.fortran/teams2.f90: New test.
8696
d8f0024b
FH
86972019-12-03 Frederik Harwath <frederik@codesourcery.com>
8698
8699 * oacc-init.c (acc_known_device_type): Add function.
8700 (unknown_device_type_error): Add function.
8701 (name_of_acc_device_t): Change to call unknown_device_type_error
8702 on unknown type.
8703 (resolve_device): Use acc_known_device_type.
8704 (acc_init): Fail if acc_device_t argument is not valid.
8705 (acc_shutdown): Likewise.
8706 (acc_get_num_devices): Likewise.
8707 (acc_set_device_type): Likewise.
8708 (acc_get_device_num): Likewise.
8709 (acc_set_device_num): Likewise.
8710 (acc_on_device): Add comment that argument validity is not checked.
8711
83caa34e
AS
87122019-12-03 Andrew Stubbs <ams@codesourcery.com>
8713
8714 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
8715 Recognize amdgcn.
8716 (check_effective_target_openacc_amdgcn_accel_present): New proc.
8717 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
8718 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
8719 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8720 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8721
00484365
SN
87222019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
8723
8724 PR libgomp/91938
8725 * configure.tgt: Avoid IE tls on *-*-musl*.
8726
9909a059
TB
87272019-11-29 Tobias Burnus <tobias@codesourcery.com>
8728
8729 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
8730 adding a common-block test case.
8731
b3f44388
JJ
87322019-11-29 Jakub Jelinek <jakub@redhat.com>
8733
8734 PR c++/60228
8735 * testsuite/libgomp.c++/udr-20.C: New test.
8736 * testsuite/libgomp.c++/udr-21.C: New test.
8737
b1a73b48
TS
87382019-11-27 Thomas Schwinge <thomas@codesourcery.com>
8739
8740 * testsuite/lib/libgomp.exp
8741 (check_effective_target_offload_target_nvptx): New proc.
8742 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
8743 'dg-skip-if'.
8744 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
8745 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
8746 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
8747
b8e72446
RO
87482019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8749
8750 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
8751 * testsuite/libgomp.c/pr39591-2.c: Likewise.
8752 * testsuite/libgomp.c/pr39591-3.c: Likewise.
8753 * testsuite/libgomp.c/private-1.c: Likewise.
8754 * testsuite/libgomp.c/task-1.c: Likewise.
8755 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
8756
d88b27da
JB
87572019-11-20 Julian Brown <julian@codesourcery.com>
8758
8759 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
8760 aq->mutex here.
8761 (queue_push_launch): Lock aq->mutex before calling
8762 wait_for_queue_nonfull.
8763 (queue_push_callback): Likewise.
8764 (queue_push_asyncwait): Likewise.
8765 (queue_push_placeholder): Likewise.
8766
8d2f4ddf
JB
87672019-11-20 Julian Brown <julian@codesourcery.com>
8768
8769 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
8770 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
8771 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
8772 return code.
8773
e307b05f
JB
87742019-11-20 Julian Brown <julian@codesourcery.com>
8775
8776 PR libgomp/92511
8777
8778 * oacc-mem.c (present_create_copy): Fix device pointer return value in
8779 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
8780 in non-present/create case.
8781 (delete_copyout): Change error condition to fail only on copies outside
8782 of mapped block. Adjust error message accordingly.
8783 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
8784 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
8785 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
8786 message.
8787 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8788 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
8789 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8790
83115e9e
MR
87912019-11-20 Maciej W. Rozycki <macro@wdc.com>
8792
8793 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
8794 libatomic in build-tree testing.
8795
a1289887
MR
87962019-11-18 Maciej W. Rozycki <macro@wdc.com>
8797
8798 * testsuite/Makefile.in: Regenerate.
8799
8916ba87
AS
88002019-11-15 Andrew Stubbs <ams@codesourcery.com>
8801
8802 * testsuite/libgomp.c/target-print-1.c: New file.
8803 * testsuite/libgomp.fortran/target-print-1.f90: New file.
8804 * testsuite/libgomp.oacc-c/print-1.c: New file.
8805 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
8806
237957cc
AS
88072019-11-13 Andrew Stubbs <ams@codesourcery.com>
8808 Kwok Cheung Yeung <kcy@codesourcery.com>
8809 Julian Brown <julian@codesourcery.com>
8810 Tom de Vries <tom@codesourcery.com>
8811
8812 * plugin/Makefrag.am: Add amdgcn plugin support.
8813 * plugin/configfrag.ac: Likewise.
8814 * plugin/plugin-gcn.c: New file.
8815 * configure: Regenerate.
8816 * Makefile.in: Regenerate.
8817 * testsuite/Makefile.in: Regenerate.
8818
cee16451
AS
88192019-11-13 Andrew Stubbs <ams@codesourcery.com>
8820
8821 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
8822 and use team_malloc variants.
8823 (gomp_gcn_exit_kernel): Use team_free.
8824 * libgomp.h (TEAM_ARENA_SIZE): Define.
8825 (TEAM_ARENA_START): Define.
8826 (TEAM_ARENA_FREE): Define.
8827 (TEAM_ARENA_END): Define.
8828 (team_malloc): New function.
8829 (team_malloc_cleared): New function.
8830 (team_free): New function.
8831 * team.c (gomp_new_team): Initialize and use team_malloc.
8832 (free_team): Use team_free.
8833 (gomp_free_thread): Use team_free.
8834 (gomp_pause_host): Use team_free.
8835 * work.c (gomp_init_work_share): Use team_malloc.
8836 (gomp_fini_work_share): Use team_free.
8837
fa499995
AS
88382019-11-13 Andrew Stubbs <ams@codesourcery.com>
8839 Kwok Cheung Yeung <kcy@codesourcery.com>
8840 Julian Brown <julian@codesourcery.com>
8841 Tom de Vries <tom@codesourcery.com>
8842
8843 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
8844 * Makefile.in: Regenerate.
8845 * config.h.in (PLUGIN_GCN): Add new undef.
8846 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
8847 * config/gcn/affinity-fmt.c: New file.
8848 * config/gcn/bar.c: New file.
8849 * config/gcn/bar.h: New file.
8850 * config/gcn/doacross.h: New file.
8851 * config/gcn/icv-device.c: New file.
8852 * config/gcn/oacc-target.c: New file.
8853 * config/gcn/simple-bar.h: New file.
8854 * config/gcn/target.c: New file.
8855 * config/gcn/task.c: New file.
8856 * config/gcn/team.c: New file.
8857 * config/gcn/time.c: New file.
8858 * configure.ac: Add amdgcn*-*-*.
8859 * configure: Regenerate.
8860 * configure.tgt: Add amdgcn*-*-*.
8861 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
8862 * libgomp.h (gcn_thrs): Add amdgcn variant.
8863 (set_gcn_thrs): Likewise.
8864 (gomp_thread): Likewise.
8865 * oacc-int.h (goacc_thread): Likewise.
8866 * oacc-target.c: New file.
8867 * openacc.f90 (acc_device_gcn): New parameter.
8868 * openacc.h (acc_device_t): Add acc_device_gcn.
8869 * team.c (gomp_free_pool_helper): Add amdgcn support.
8870
d2903ce0
AS
88712019-11-13 Andrew Stubbs <ams@codesourcery.com>
8872 Julian Brown <julian@codesourcery.com>
8873
8874 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
8875 parameter.
8876 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
8877 queue constructor.
8878 * oacc-host.c (host_openacc_async_construct): Add device parameter.
8879 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
8880 device parameter.
8881
b3d14b3a
AS
88822019-11-13 Andrew Stubbs <ams@codesourcery.com>
8883
8884 * configure.tgt (nvptx*-*-*): Add "accel" directory.
8885 * config/nvptx/libgomp-plugin.c: Move ...
8886 * config/accel/libgomp-plugin.c: ... to here.
8887 * config/nvptx/lock.c: Move ...
8888 * config/accel/lock.c: ... to here.
8889 * config/nvptx/mutex.c: Move ...
8890 * config/accel/mutex.c: ... to here.
8891 * config/nvptx/mutex.h: Move ...
8892 * config/accel/mutex.h: ... to here.
8893 * config/nvptx/oacc-async.c: Move ...
8894 * config/accel/oacc-async.c: ... to here.
8895 * config/nvptx/oacc-cuda.c: Move ...
8896 * config/accel/oacc-cuda.c: ... to here.
8897 * config/nvptx/oacc-host.c: Move ...
8898 * config/accel/oacc-host.c: ... to here.
8899 * config/nvptx/oacc-init.c: Move ...
8900 * config/accel/oacc-init.c: ... to here.
8901 * config/nvptx/oacc-mem.c: Move ...
8902 * config/accel/oacc-mem.c: ... to here.
8903 * config/nvptx/oacc-plugin.c: Move ...
8904 * config/accel/oacc-plugin.c: ... to here.
8905 * config/nvptx/omp-lock.h: Move ...
8906 * config/accel/omp-lock.h: ... to here.
8907 * config/nvptx/openacc.f90: Move ...
8908 * config/accel/openacc.f90: ... to here.
8909 * config/nvptx/pool.h: Move ...
8910 * config/accel/pool.h: ... to here.
8911 * config/nvptx/proc.c: Move ...
8912 * config/accel/proc.c: ... to here.
8913 * config/nvptx/ptrlock.c: Move ...
8914 * config/accel/ptrlock.c: ... to here.
8915 * config/nvptx/ptrlock.h: Move ...
8916 * config/accel/ptrlock.h: ... to here.
8917 * config/nvptx/sem.c: Move ...
8918 * config/accel/sem.c: ... to here.
8919 * config/nvptx/sem.h: Move ...
8920 * config/accel/sem.h: ... to here.
8921 * config/nvptx/thread-stacksize.h: Move ...
8922 * config/accel/thread-stacksize.h: ... to here.
8923
62aee289
MR
89242019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
8925 Tobias Burnus <tobias@codesourcery.com>
8926 Frederik Harwath <frederik@codesourcery.com>
8927 Thomas Schwinge <thomas@codesourcery.com>
8928
8929 libgomp/
8930 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
8931 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
8932 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
8933
a2c26c50
TB
89342019-11-11 Tobias Burnus <tobias@codesourcery.com>
8935 Kwok Cheung Yeung <kcy@codesourcery.com>
8936
8937 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
8938 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
8939
6d4868f3
TS
89402019-11-11 Thomas Schwinge <thomas@codesourcery.com>
8941
bfa1837b
TS
8942 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
8943
6d4868f3
TS
8944 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
8945 run'.
8946 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8947 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
8948
5d183d17
FH
89492019-11-06 Thomas Schwinge <thomas@codesourcery.com>
8950
8951 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
8952 Add expected warnings about missing reduction clauses.
8953 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
8954 Likewise.
8955 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
8956 Likewise.
8957 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
8958 Likewise.
8959
d8f03b03
TB
89602019-11-04 Tobias Burnus <tobias@codesourcery.com>
8961
8962 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
8963 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
8964 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
8965 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
8966 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
8967 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
8968
12fd2ec5
TB
89692019-11-04 Tobias Burnus <tobias@codesourcery.com>
8970
8971 PR fortran/92305
8972 * testsuite/libgomp.fortran/allocatable2.f90: Use
8973 unique numbers with 'stop'.
8974 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
8975 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
8976 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
8977 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
8978 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
8979
92e63bd2
TB
89802019-11-01 Tobias Burnus <tobias@codesourcery.com>
8981
8982 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
8983 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
8984 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8985 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
8986 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
8987 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
8988
91ae0a46
TB
89892019-10-30 Tobias Burnus <tobias@codesourcery.com>
8990
8991 * testsuite/libgomp.fortran/target9.f90: New.
8992
c425e66b
TB
89932019-10-30 Tobias Burnus <tobias@codesourcery.com>
8994
8995 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
8996 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
8997 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
8998 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
8999 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
9000 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
9001 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
9002 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
9003 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
9004 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
9005 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
9006 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
9007 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
9008 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
9009 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
9010 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
9011 * testsuite/libgomp.fortran/associate1.f90: Ditto.
9012 * testsuite/libgomp.fortran/associate2.f90: Ditto.
9013 * testsuite/libgomp.fortran/associate3.f90: Ditto.
9014 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
9015 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
9016 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
9017 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
9018 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
9019 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
9020 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
9021 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
9022 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
9023 * testsuite/libgomp.fortran/character1.f90: Ditto.
9024 * testsuite/libgomp.fortran/character2.f90: Ditto.
9025 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
9026 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
9027 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
9028 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
9029 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
9030 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
9031 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
9032 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
9033 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
9034 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
9035 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
9036 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
9037 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
9038 * testsuite/libgomp.fortran/do1.f90: Ditto.
9039 * testsuite/libgomp.fortran/do2.f90: Ditto.
9040 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
9041 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
9042 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
9043 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
9044 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
9045 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
9046 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
9047 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
9048 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
9049 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
9050 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
9051 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
9052 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
9053 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
9054 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
9055 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
9056 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
9057 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
9058 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
9059 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
9060 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
9061 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
9062 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
9063 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
9064 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
9065 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
9066 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
9067 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
9068 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
9069 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
9070 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
9071 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
9072 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
9073 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
9074 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
9075 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
9076 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
9077 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
9078 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
9079 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
9080 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
9081 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
9082 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
9083 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
9084 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
9085 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
9086 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
9087 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
9088 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
9089 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
9090 * testsuite/libgomp.fortran/lib1.f90: Ditto.
9091 * testsuite/libgomp.fortran/lib4.f90: Ditto.
9092 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
9093 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
9094 * testsuite/libgomp.fortran/nested1.f90: Ditto.
9095 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
9096 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
9097 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
9098 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
9099 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
9100 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
9101 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
9102 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
9103 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
9104 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
9105 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
9106 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
9107 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
9108 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
9109 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
9110 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
9111 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
9112 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
9113 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
9114 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
9115 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
9116 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
9117 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
9118 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
9119 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
9120 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
9121 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
9122 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
9123 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
9124 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
9125 * testsuite/libgomp.fortran/pr28390.f: Ditto.
9126 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
9127 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
9128 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
9129 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
9130 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
9131 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
9132 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
9133 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
9134 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
9135 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
9136 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
9137 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
9138 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
9139 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
9140 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
9141 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
9142 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
9143 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
9144 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
9145 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
9146 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
9147 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
9148 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
9149 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
9150 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
9151 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
9152 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
9153 * testsuite/libgomp.fortran/reference1.f90: Ditto.
9154 * testsuite/libgomp.fortran/reference2.f90: Ditto.
9155 * testsuite/libgomp.fortran/retval1.f90: Ditto.
9156 * testsuite/libgomp.fortran/retval2.f90: Ditto.
9157 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
9158 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
9159 * testsuite/libgomp.fortran/simd1.f90: Ditto.
9160 * testsuite/libgomp.fortran/simd2.f90: Ditto.
9161 * testsuite/libgomp.fortran/simd3.f90: Ditto.
9162 * testsuite/libgomp.fortran/simd4.f90: Ditto.
9163 * testsuite/libgomp.fortran/simd5.f90: Ditto.
9164 * testsuite/libgomp.fortran/simd6.f90: Ditto.
9165 * testsuite/libgomp.fortran/simd7.f90: Ditto.
9166 * testsuite/libgomp.fortran/stack.f90: Ditto.
9167 * testsuite/libgomp.fortran/strassen.f90: Ditto.
9168 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
9169 * testsuite/libgomp.fortran/tabs2.f: Ditto.
9170 * testsuite/libgomp.fortran/target1.f90: Ditto.
9171 * testsuite/libgomp.fortran/target2.f90: Ditto.
9172 * testsuite/libgomp.fortran/target3.f90: Ditto.
9173 * testsuite/libgomp.fortran/target4.f90: Ditto.
9174 * testsuite/libgomp.fortran/target5.f90: Ditto.
9175 * testsuite/libgomp.fortran/target6.f90: Ditto.
9176 * testsuite/libgomp.fortran/target7.f90: Ditto.
9177 * testsuite/libgomp.fortran/target8.f90: Ditto.
9178 * testsuite/libgomp.fortran/task1.f90: Ditto.
9179 * testsuite/libgomp.fortran/task2.f90: Ditto.
9180 * testsuite/libgomp.fortran/task3.f90: Ditto.
9181 * testsuite/libgomp.fortran/task4.f90: Ditto.
9182 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
9183 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
9184 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
9185 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
9186 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
9187 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
9188 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
9189 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
9190 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
9191 * testsuite/libgomp.fortran/udr1.f90: Ditto.
9192 * testsuite/libgomp.fortran/udr10.f90: Ditto.
9193 * testsuite/libgomp.fortran/udr11.f90: Ditto.
9194 * testsuite/libgomp.fortran/udr12.f90: Ditto.
9195 * testsuite/libgomp.fortran/udr13.f90: Ditto.
9196 * testsuite/libgomp.fortran/udr14.f90: Ditto.
9197 * testsuite/libgomp.fortran/udr15.f90: Ditto.
9198 * testsuite/libgomp.fortran/udr2.f90: Ditto.
9199 * testsuite/libgomp.fortran/udr3.f90: Ditto.
9200 * testsuite/libgomp.fortran/udr4.f90: Ditto.
9201 * testsuite/libgomp.fortran/udr5.f90: Ditto.
9202 * testsuite/libgomp.fortran/udr6.f90: Ditto.
9203 * testsuite/libgomp.fortran/udr7.f90: Ditto.
9204 * testsuite/libgomp.fortran/udr8.f90: Ditto.
9205 * testsuite/libgomp.fortran/udr9.f90: Ditto.
9206 * testsuite/libgomp.fortran/vla1.f90: Ditto.
9207 * testsuite/libgomp.fortran/vla2.f90: Ditto.
9208 * testsuite/libgomp.fortran/vla3.f90: Ditto.
9209 * testsuite/libgomp.fortran/vla4.f90: Ditto.
9210 * testsuite/libgomp.fortran/vla5.f90: Ditto.
9211 * testsuite/libgomp.fortran/vla6.f90: Ditto.
9212 * testsuite/libgomp.fortran/vla7.f90: Ditto.
9213 * testsuite/libgomp.fortran/vla8.f90: Ditto.
9214 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
9215 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
9216
01509e2f
TB
92172019-10-30 Tobias Burnus <tobias@codesourcery.com>
9218
9219 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
9220 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
9221 Ditto; add 'dg-do run' for torture testing.
9222 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
9223 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
9224 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
9225 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
9226 * testsuite/libgomp.fortran/pr28390.f: Ditto.
9227 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
9228 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
9229 * testsuite/libgomp.fortran/task2.f90: Ditto.
9230 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
9231 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
9232 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
9233 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
9234 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
9235 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
9236
ffbdd78a
TB
92372019-10-28 Tobias Burnus <tobias@codesourcery.com>
9238
9239 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
9240 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
9241 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
9242 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
9243 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
9244 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
9245 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
9246 Use 'stop' not abort().
9247 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
9248 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
9249 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
9250 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
9251 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
9252 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
9253 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
9254 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
9255 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
9256 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
9257 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
9258 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
9259 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
9260 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
9261 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
9262 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
9263 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
9264 Ditto.
9265 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
9266 Ditto.
9267 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
9268 Ditto.
9269 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
9270 Ditto.
9271 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
9272 Ditto.
9273 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
9274 Ditto.
9275 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
9276 Ditto.
9277 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
9278 Ditto.
9279 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
9280 Ditto.
9281 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
9282 Ditto.
9283 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
9284 Ditto.
9285 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
9286 Ditto.
9287 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
9288 Ditto.
9289 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
9290 Ditto.
9291 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
9292 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
9293 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
9294 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
9295 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
9296 Likewise and also add 'dg-do run'.
9297 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
9298 Ditto.
9299
ec084613
CP
93002019-10-25 Cesar Philippidis <cesar@codesourcery.com>
9301 Tobias Burnus <tobias@codesourcery.com>
9302
9303 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
9304 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
9305 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
9306
77ef3394
JJ
93072019-10-14 Jakub Jelinek <jakub@redhat.com>
9308
9309 PR libgomp/92081
9310 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
9311 than 0.
9312
08c14aaa
TB
93132019-10-11 Tobias Burnus <tobias@codesourcery.com>
9314
9315 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
9316 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
9317
6bbead0c
TS
93182019-10-09 Thomas Schwinge <thomas@codesourcery.com>
9319
9320 PR middle-end/92036
9321 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
9322 file.
9323
eba3dee8
TB
93242019-10-09 Tobias Burnus <tobias@codesourcery.com>
9325
9326 PR testsuite/91884
9327 * testsuite/libgomp.fortran/fortran.exp: Conditionally
9328 add -lquadmath.
9329 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
9330
7d48e14f
JJ
93312019-10-09 Jakub Jelinek <jakub@redhat.com>
9332
9333 PR libgomp/92028
9334 * target.c (gomp_map_vars_internal): Readd the previous
9335 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
9336 though do that just in the !not_found_cnt case.
9337
65b67cf3
TB
93382019-10-08 Tobias Burnus <tobias@codesourcery.com>
9339
9340 * gfortran.dg/gomp/target-simd.f90: New.
9341
6c7e076b
JB
93422019-10-02 Julian Brown <julian@codesourcery.com>
9343 Cesar Philippidis <cesar@codesourcery.com>
9344
9345 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
9346 * target.c (FIELD_TGT_EMPTY): Define.
9347 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
9348 as switch instead of list of ifs.
9349 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
9350
d61bff85
AT
93512019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
9352
9353 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
9354 include. Replace alloca () with __builtin_alloca ().
9355 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
9356
810f316d
JJ
93572019-10-01 Jakub Jelinek <jakub@redhat.com>
9358
9359 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
9360 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
9361 * oacc-parallel.c: Don't include "libgomp_g.h".
9362 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
9363 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
9364 * aclocal.m4: Regenerated.
9365 * config.h.in: Regenerated.
9366 * configure: Regenerated.
9367 * Makefile.in: Regenerated.
9368
d7f9ee98
KCY
93692019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
9370
9371 * libgomp_g.h: Include stdint.h instead of gstdint.h.
9372
e9085da5
MR
93732019-09-27 Maciej W. Rozycki <macro@wdc.com>
9374
9375 * configure: Regenerate.
9376
c28712be
TB
93772019-09-13 Tobias Burnus <tobias@codesourcery.com>
9378
9379 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
9380 string is initialized.
9381
3c086f8d
FW
93822019-09-06 Florian Weimer <fweimer@redhat.com>
9383
9384 * configure: Regenerate.
9385
c6c2d1bc
CLT
93862019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
9387
9388 PR other/79543
9389 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
9390 scanning to conform to the GNU Coding Standards.
9391 * configure: Regenerate.
9392
5cb72d83
JJ
93932019-08-28 Jakub Jelinek <jakub@redhat.com>
9394
9395 PR libgomp/91530
9396 * testsuite/libgomp.c/scan-21.c: New test.
9397 * testsuite/libgomp.c/scan-22.c: New test.
9398
0ad7981c
JJ
93992019-08-27 Jakub Jelinek <jakub@redhat.com>
9400
9401 PR libgomp/91530
9402 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
9403 targets.
9404 * testsuite/libgomp.c/scan-12.c: Likewise.
9405 * testsuite/libgomp.c/scan-13.c: Likewise.
9406 * testsuite/libgomp.c/scan-14.c: Likewise.
9407 * testsuite/libgomp.c/scan-15.c: Likewise.
9408 * testsuite/libgomp.c/scan-16.c: Likewise.
9409 * testsuite/libgomp.c/scan-17.c: Likewise.
9410 * testsuite/libgomp.c/scan-18.c: Likewise.
9411 * testsuite/libgomp.c/scan-19.c: Likewise.
9412 * testsuite/libgomp.c/scan-20.c: Likewise.
9413 * testsuite/libgomp.c++/scan-9.C: Likewise.
9414 * testsuite/libgomp.c++/scan-10.C: Likewise.
9415 * testsuite/libgomp.c++/scan-11.C: Likewise.
9416 * testsuite/libgomp.c++/scan-12.C: Likewise.
9417 * testsuite/libgomp.c++/scan-14.C: Likewise.
9418 * testsuite/libgomp.c++/scan-15.C: Likewise.
9419 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
9420 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
9421 * testsuite/libgomp.c++/scan-16.C: Likewise.
9422
1e67491a
TK
94232019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
9424
9425 PR fortran/91473
9426 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
9427 -std=legacy so invalid code in the test case is accepted.
9428
393fdeb1
TK
94292019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
9430
9431 PR fortran/91422
9432 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
9433 dimension.
9434
8860d270
JJ
94352019-08-08 Jakub Jelinek <jakub@redhat.com>
9436
9437 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
9438 perform the lookup in the first loop only if !not_found_cnt, otherwise
9439 perform lookups for it in the second loop guarded with
9440 if (not_found_cnt || has_firstprivate).
9441 * testsuite/libgomp.c/target-37.c: New test.
9442 * testsuite/libgomp.c++/target-22.C: New test.
9443
398e3feb
JJ
94442019-08-07 Jakub Jelinek <jakub@redhat.com>
9445
9446 * testsuite/libgomp.c/target-18.c (struct S): New type.
9447 (foo): Use use_device_addr clause instead of use_device_ptr clause
9448 where required by OpenMP 5.0, add further tests for both use_device_ptr
9449 and use_device_addr clauses.
9450 * testsuite/libgomp.c++/target-9.C (struct S): New type.
9451 (foo): Use use_device_addr clause instead of use_device_ptr clause
9452 where required by OpenMP 5.0, add further tests for both use_device_ptr
9453 and use_device_addr clauses. Add t and u arguments.
9454 (main): Adjust caller.
9455
d81ab49d
JJ
94562019-08-06 Jakub Jelinek <jakub@redhat.com>
9457
9458 * testsuite/libgomp.c++/loop-13.C: New test.
9459 * testsuite/libgomp.c++/loop-14.C: New test.
9460 * testsuite/libgomp.c++/loop-15.C: New test.
9461
c3ac76aa
JJ
94622019-07-31 Jakub Jelinek <jakub@redhat.com>
9463
9464 PR middle-end/91301
9465 * testsuite/libgomp.c++/for-27.C: New test.
9466
8dc63166
SK
94672019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
9468
393fdeb1 9469 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
8dc63166 9470 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
393fdeb1 9471
554a530f
JJ
94722019-07-20 Jakub Jelinek <jakub@redhat.com>
9473
9474 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
9475
6cda84b5
JJ
94762019-07-08 Jakub Jelinek <jakub@redhat.com>
9477
9478 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
9479 * testsuite/libgomp.c++/scan-16.C: Likewise.
9480
1f52d1a8
JJ
94812019-07-06 Jakub Jelinek <jakub@redhat.com>
9482
6f67abcd
JJ
9483 * testsuite/libgomp.c/scan-19.c: New test.
9484 * testsuite/libgomp.c/scan-20.c: New test.
9485
1f52d1a8
JJ
9486 * testsuite/libgomp.c/scan-11.c: New test.
9487 * testsuite/libgomp.c/scan-12.c: New test.
9488 * testsuite/libgomp.c/scan-13.c: New test.
9489 * testsuite/libgomp.c/scan-14.c: New test.
9490 * testsuite/libgomp.c/scan-15.c: New test.
9491 * testsuite/libgomp.c/scan-16.c: New test.
9492 * testsuite/libgomp.c/scan-17.c: New test.
9493 * testsuite/libgomp.c/scan-18.c: New test.
9494 * testsuite/libgomp.c++/scan-9.C: New test.
9495 * testsuite/libgomp.c++/scan-10.C: New test.
9496 * testsuite/libgomp.c++/scan-11.C: New test.
9497 * testsuite/libgomp.c++/scan-12.C: New test.
9498 * testsuite/libgomp.c++/scan-13.C: New test.
9499 * testsuite/libgomp.c++/scan-14.C: New test.
9500 * testsuite/libgomp.c++/scan-15.C: New test.
9501 * testsuite/libgomp.c++/scan-16.C: New test.
9502
2f03073f
JJ
95032019-07-04 Jakub Jelinek <jakub@redhat.com>
9504
9505 * testsuite/libgomp.c/scan-9.c: New test.
9506 * testsuite/libgomp.c/scan-10.c: New test.
9507
2f6bb511
JJ
95082019-07-03 Jakub Jelinek <jakub@redhat.com>
9509
9510 * testsuite/libgomp.c++/scan-1.C: New test.
9511 * testsuite/libgomp.c++/scan-2.C: New test.
9512 * testsuite/libgomp.c++/scan-3.C: New test.
9513 * testsuite/libgomp.c++/scan-4.C: New test.
9514 * testsuite/libgomp.c++/scan-5.C: New test.
9515 * testsuite/libgomp.c++/scan-6.C: New test.
9516 * testsuite/libgomp.c++/scan-7.C: New test.
9517 * testsuite/libgomp.c++/scan-8.C: New test.
9518 * testsuite/libgomp.c/scan-1.c: New test.
9519 * testsuite/libgomp.c/scan-2.c: New test.
9520 * testsuite/libgomp.c/scan-3.c: New test.
9521 * testsuite/libgomp.c/scan-4.c: New test.
9522 * testsuite/libgomp.c/scan-5.c: New test.
9523 * testsuite/libgomp.c/scan-6.c: New test.
9524 * testsuite/libgomp.c/scan-7.c: New test.
9525 * testsuite/libgomp.c/scan-8.c: New test.
9526
bd194a51
TS
95272019-06-18 Thomas Schwinge <thomas@codesourcery.com>
9528
85fca03a
TS
9529 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
9530 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
9531 Likewise.
9532
bd194a51
TS
9533 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
9534 check.
9535
6652161e
CP
95362019-06-18 Cesar Philippidis <cesar@codesourcery.com>
9537
9538 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
9539 file.
9540
3a37d6f6
TS
95412019-06-18 Thomas Schwinge <thomas@codesourcery.com>
9542
4017da8d
TS
9543 PR fortran/90743
9544 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
9545 case.
9546 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
9547 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
9548 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
9549 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
9550
6f7c1f65
TS
9551 PR testsuite/90861
9552 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
9553
3a37d6f6
TS
9554 PR middle-end/90862
9555 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
9556
f45ce17d
TV
95572019-06-16 Tom de Vries <tdevries@suse.de>
9558
9559 PR tree-optimization/89376
9560 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
9561
00908992
TV
95622019-06-15 Tom de Vries <tdevries@suse.de>
9563
9564 PR tree-optimization/89713
9565 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
9566 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
9567
211b7533
JJ
95682019-06-15 Jakub Jelinek <jakub@redhat.com>
9569
9570 PR middle-end/90779
9571 * testsuite/libgomp.c/pr90779.c: New test.
9572 * testsuite/libgomp.fortran/pr90779.f90: New test.
9573
120a01d1
TV
95742019-06-15 Tom de Vries <tdevries@suse.de>
9575
9576 PR tree-optimization/90009
9577 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
9578
c29c92c7
FX
95792019-06-13 Feng Xue <fxue@os.amperecomputing.com>
9580
9581 PR tree-optimization/89713
9582 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
9583
ce9c4ec3
JJ
95842019-06-11 Jakub Jelinek <jakub@redhat.com>
9585
9586 PR target/90811
9587 * testsuite/libgomp.c/pr90811.c: New test.
9588
28b3a77c
JJ
95892019-06-05 Jakub Jelinek <jakub@redhat.com>
9590
9591 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
9592 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
9593
7855700e
JJ
95942019-06-04 Jakub Jelinek <jakub@redhat.com>
9595
9596 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
9597 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
9598 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
9599 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
9600
a7155c2e
RO
96012019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9602
9603 * configure.ac: Call AX_COUNT_CPUS.
9604 Substitute CPU_COUNT.
9605 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
9606 count fallback.
9607 * aclocal.m4: Regenerate.
9608 * configure: Regenerate.
9609 * Makefile.in, testsuite/Makefile.in: Regenerate.
9610
7e47198b
JJ
96112019-05-29 Jakub Jelinek <jakub@redhat.com>
9612
9613 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
9614 to ...
9615 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
9616 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
9617 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
9618
fcfb8032
JJ
96192019-05-27 Jakub Jelinek <jakub@redhat.com>
9620
8e7757ba
JJ
9621 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
9622
36c7a3ff
JJ
9623 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
9624
fcfb8032
JJ
9625 PR libgomp/90641
9626 * work.c (gomp_init_work_share): Instead of aligning final ordered
9627 value to multiples of long long alignment, align to that the
9628 first part (ordered team ids) and if inline_ordered_team_ids
9629 is not on a long long alignment boundary within the structure,
9630 use __alignof__ (long long) - 1 pad size always.
9631 * loop.c (GOMP_loop_start): Fix *mem computation if
9632 inline_ordered_team_ids is not aligned on long long alignment boundary
9633 within the structure.
9634 * loop-ull.c (GOMP_loop_ull_start): Likewise.
9635 * sections.c (GOMP_sections2_start): Likewise.
9636
b5c26449
JJ
96372019-05-24 Jakub Jelinek <jakub@redhat.com>
9638
6c7ae8c5
JJ
9639 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
9640 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
9641
b5c26449
JJ
9642 PR libgomp/90585
9643 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
9644 HAVE_INTTYPES_H is defined.
9645 (print_uint64_t): New typedef.
9646 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
9647 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
9648 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
9649 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
9650 before casting to void *.
9651 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
9652 * oacc-mem.c: Don't include config.h nor stdint.h.
9653 * target.c: Don't include config.h.
9654 * oacc-cuda.c: Likewise.
9655 * oacc-host.c: Don't include stdint.h.
9656
3e03ed66
JJ
96572019-05-20 Jakub Jelinek <jakub@redhat.com>
9658
9659 PR libgomp/90527
9660 * alloc.c (_GNU_SOURCE): Define.
9661
5fae049d
TS
96622019-05-17 Thomas Schwinge <thomas@codesourcery.com>
9663
9664 * acc_prof.h: New file.
9665 * oacc-profiling.c: Likewise.
9666 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
9667 Add these, respectively.
9668 * Makefile.in: Regenerate.
9669 * env.c (initialize_env): Call goacc_profiling_initialize.
9670 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
9671 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
9672 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
9673 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
9674 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
9675 acc_prof_register, acc_prof_unregister, and acc_register_library.
9676 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
9677 GOMP_PLUGIN_goacc_thread.
9678 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
9679 prof_callbacks_enabled members.
9680 (goacc_prof_enabled, goacc_profiling_initialize)
9681 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
9682 (goacc_profiling_dispatch): Declare.
9683 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
9684 (GOACC_PROFILING_SETUP_P): Define.
9685 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
9686 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
9687 OpenACC Profiling Interface.
9688 * oacc-cuda.c (acc_get_current_cuda_device)
9689 (acc_get_current_cuda_context, acc_get_cuda_stream)
9690 (acc_set_cuda_stream): Likewise.
9691 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
9692 (acc_init, acc_set_device_type, acc_get_device_type)
9693 (acc_get_device_num, goacc_lazy_initialize): Likewise.
9694 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
9695 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
9696 (acc_unmap_data, present_create_copy, delete_copyout)
9697 (update_dev_host): Likewise.
9698 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
9699 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
9700 Likewise.
9701 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
9702 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
9703 Likewise.
9704 * libgomp.texi: Update.
9705 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
9706 file.
9707 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
9708 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
9709 Likewise.
9710 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
9711 Likewise.
9712 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
9713 Likewise.
9714 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
9715 Likewise.
9716
1f4c5b9b
CLT
97172019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
9718
9719 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
9720 (struct goacc_asyncqueue_list): Likewise.
9721 (goacc_aq): Likewise.
9722 (goacc_aq_list): Likewise.
9723 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9724 (GOMP_OFFLOAD_openacc_async_test): Remove.
9725 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9726 (GOMP_OFFLOAD_openacc_async_wait): Remove.
9727 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9728 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9729 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9730 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9731 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
9732 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
9733 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
9734 (GOMP_OFFLOAD_openacc_async_exec): Declare.
9735 (GOMP_OFFLOAD_openacc_async_construct): Declare.
9736 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
9737 (GOMP_OFFLOAD_openacc_async_test): Declare.
9738 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
9739 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
9740 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
9741 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
9742 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
9743
9744 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
9745 (gomp_acc_insert_pointer): Adjust declaration.
9746 (gomp_copy_host2dev): New declaration.
9747 (gomp_copy_dev2host): Likewise.
9748 (gomp_map_vars_async): Likewise.
9749 (gomp_unmap_tgt): Likewise.
9750 (gomp_unmap_vars_async): Likewise.
9751 (gomp_fini_device): Likewise.
9752
9753 * oacc-async.c (get_goacc_thread): New function.
9754 (get_goacc_thread_device): New function.
9755 (lookup_goacc_asyncqueue): New function.
9756 (get_goacc_asyncqueue): New function.
9757 (acc_async_test): Adjust code to use new async design.
9758 (acc_async_test_all): Likewise.
9759 (acc_wait): Likewise.
9760 (acc_wait_async): Likewise.
9761 (acc_wait_all): Likewise.
9762 (acc_wait_all_async): Likewise.
9763 (goacc_async_free): New function.
9764 (goacc_init_asyncqueues): Likewise.
9765 (goacc_fini_asyncqueues): Likewise.
9766 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
9767 design.
9768 (acc_set_cuda_stream): Likewise.
9769 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
9770 (host_openacc_register_async_cleanup): Remove.
9771 (host_openacc_async_exec): New function.
9772 (host_openacc_async_test): Adjust parameters.
9773 (host_openacc_async_test_all): Remove.
9774 (host_openacc_async_wait): Remove.
9775 (host_openacc_async_wait_async): Remove.
9776 (host_openacc_async_wait_all): Remove.
9777 (host_openacc_async_wait_all_async): Remove.
9778 (host_openacc_async_set_async): Remove.
9779 (host_openacc_async_synchronize): New function.
9780 (host_openacc_async_serialize): New function.
9781 (host_openacc_async_host2dev): New function.
9782 (host_openacc_async_dev2host): New function.
9783 (host_openacc_async_queue_callback): New function.
9784 (host_openacc_async_construct): New function.
9785 (host_openacc_async_destruct): New function.
9786 (struct gomp_device_descr host_dispatch): Remove initialization of old
93d90219 9787 interface, add initialization of new async sub-struct.
1f4c5b9b
CLT
9788 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
9789 (goacc_attach_host_thread_to_device): Remove old async code usage.
9790 * oacc-int.h (goacc_init_asyncqueues): New declaration.
9791 (goacc_fini_asyncqueues): Likewise.
9792 (goacc_async_copyout_unmap_vars): Likewise.
9793 (goacc_async_free): Likewise.
9794 (get_goacc_asyncqueue): Likewise.
9795 (lookup_goacc_asyncqueue): Likewise.
9796 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
9797 design.
9798 (present_create_copy): Adjust code to use new async design.
9799 (delete_copyout): Likewise.
9800 (update_dev_host): Likewise.
9801 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
9802 async design.
9803 (gomp_acc_remove_pointer): Adjust code to use new async design.
9804 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
9805 design.
9806 (GOACC_enter_exit_data): Likewise.
9807 (goacc_wait): Likewise.
9808 (GOACC_update): Likewise.
9809 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
9810 when called, warn as obsolete in comment.
9811 * target.c (goacc_device_copy_async): New function.
9812 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
9813 add goacc_device_copy_async case.
9814 (gomp_copy_dev2host): Likewise.
9815 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
9816 (gomp_map_pointer): Likewise.
9817 (gomp_map_fields_existing): Likewise.
9818 (gomp_map_vars_internal): New always_inline function, renamed from
9819 gomp_map_vars.
9820 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
9821 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
9822 passing goacc_asyncqueue argument.
9823 (gomp_unmap_tgt): Remove static, add attribute_hidden.
9824 (gomp_unref_tgt): New function.
9825 (gomp_unmap_vars_internal): New always_inline function, renamed from
9826 gomp_unmap_vars.
9827 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
9828 (gomp_unmap_vars_async): Implement by calling
9829 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
9830 (gomp_fini_device): New function.
9831 (gomp_exit_data): Adjust gomp_copy_dev2host call.
9832 (gomp_load_plugin_for_device): Remove old interface, adjust to load
9833 new async interface.
9834 (gomp_target_fini): Adjust code to call gomp_fini_device.
9835
9836 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
9837 (struct ptx_stream): Remove.
9838 (struct nvptx_thread): Remove current_stream field.
9839 (cuda_map_create): Remove.
9840 (cuda_map_destroy): Remove.
9841 (map_init): Remove.
9842 (map_fini): Remove.
9843 (map_pop): Remove.
9844 (map_push): Remove.
9845 (struct goacc_asyncqueue): Define.
9846 (struct nvptx_callback): Define.
9847 (struct ptx_free_block): Define.
9848 (struct ptx_device): Remove null_stream, active_streams, async_streams,
9849 stream_lock, and next fields.
9850 (enum ptx_event_type): Remove.
9851 (struct ptx_event): Remove.
9852 (ptx_event_lock): Remove.
9853 (ptx_events): Remove.
9854 (init_streams_for_device): Remove.
9855 (fini_streams_for_device): Remove.
9856 (select_stream_for_async): Remove.
9857 (nvptx_init): Remove ptx_events and ptx_event_lock references.
9858 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
9859 case.
9860 (nvptx_open_device): Add free_blocks initialization, remove
9861 init_streams_for_device call.
9862 (nvptx_close_device): Remove fini_streams_for_device call, add
9863 free_blocks destruct code.
9864 (event_gc): Remove.
9865 (event_add): Remove.
9866 (nvptx_exec): Adjust parameters and code.
9867 (nvptx_free): Likewise.
9868 (nvptx_host2dev): Remove.
9869 (nvptx_dev2host): Remove.
9870 (nvptx_set_async): Remove.
9871 (nvptx_async_test): Remove.
9872 (nvptx_async_test_all): Remove.
9873 (nvptx_wait): Remove.
9874 (nvptx_wait_async): Remove.
9875 (nvptx_wait_all): Remove.
9876 (nvptx_wait_all_async): Remove.
9877 (nvptx_get_cuda_stream): Remove.
9878 (nvptx_set_cuda_stream): Remove.
9879 (GOMP_OFFLOAD_alloc): Adjust code.
9880 (GOMP_OFFLOAD_free): Likewise.
9881 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9882 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
9883 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9884 (GOMP_OFFLOAD_openacc_async_wait): Remove.
9885 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9886 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9887 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9888 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9889 (cuda_free_argmem): New function.
9890 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
9891 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
9892 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
9893 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
9894 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
9895 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
9896 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
9897 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
9898 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
9899 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
9900 (cuda_callback_wrapper): New function.
9901 (cuda_memcpy_sanity_check): New function.
9902 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
9903 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
9904 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
9905 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
9906
da2d30c1
TS
99072019-05-07 Thomas Schwinge <thomas@codesourcery.com>
9908
9909 PR target/87835
9910 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
9911
2bbbfa4e
TS
99122019-05-06 Thomas Schwinge <thomas@codesourcery.com>
9913
9914 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
9915
bbf1efe1
KB
99162019-03-27 Kevin Buettner <kevinb@redhat.com>
9917
9918 * team.c (gomp_team_start): Initialize pool->threads[0].
9919
1241136c
TS
99202019-02-22 Thomas Schwinge <thomas@codesourcery.com>
9921
b03d721a
TS
9922 * testsuite/libgomp.oacc-c++/c++.exp: Specify
9923 "-foffload=$offload_target".
9924 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9925 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9926 * testsuite/lib/libgomp.exp
9927 (check_effective_target_openacc_nvidia_accel_configured): Remove,
9928 as (conceptually) merged into
9929 check_effective_target_openacc_nvidia_accel_selected. Adjust all
9930 users.
9931
0a0384b4
TS
9932 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
9933 * testsuite/libgomp-test-support.exp.in: Adjust.
9934 * testsuite/lib/libgomp.exp: Likewise. Don't populate
9935 openacc_device_types_s.
9936 (offload_target_to_openacc_device_type): New proc.
9937 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
9938 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9939 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9940 * Makefile.in: Regenerate.
9941 * configure: Likewise.
9942 * testsuite/Makefile.in: Likewise.
9943
ee332b4a
TS
9944 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
9945 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
9946 instead of OFFLOAD_TARGETS.
9947 * target.c (gomp_target_init): Adjust.
9948 * testsuite/libgomp-test-support.exp.in: Likewise.
9949 * testsuite/lib/libgomp.exp: Likewise. Populate
9950 openacc_device_types_s instead of offload_targets_s_openacc.
9951 (check_effective_target_openacc_nvidia_accel_selected)
9952 (check_effective_target_openacc_host_selected): Adjust.
9953 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
9954 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9955 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9956 * Makefile.in: Regenerate.
9957 * config.h.in: Likewise.
9958 * configure: Likewise.
9959 * testsuite/Makefile.in: Likewise.
9960
1241136c
TS
9961 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
9962 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
9963 "offloading: supported, but hardware not accessible".
9964 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9965 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9966
19695f4d
CLT
99672019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
9968
9969 PR c/87924
9970 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
9971 goacc_wait().
9972 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
9973 and related adjustment.
9974
8b44f8ec
JJ
99752019-01-30 Jakub Jelinek <jakub@redhat.com>
9976
9977 PR c++/88988
9978 * testsuite/libgomp.c++/pr88988.C: New test.
9979
be3a87e7
JJ
99802019-01-28 Jakub Jelinek <jakub@redhat.com>
9981
9982 PR middle-end/89002
9983 * testsuite/libgomp.c/pr89002.c: New test.
9984
497ef4d7
RB
99852019-01-28 Richard Biener <rguenther@suse.de>
9986
9987 PR testsuite/89064
9988 PR tree-optimization/86865
9989 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
9990
738c56d4
TV
99912019-01-24 Tom de Vries <tdevries@suse.de>
9992
9993 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
9994 once instantiated_devices drops to 0.
9995
4a75460b
TV
99962019-01-23 Tom de Vries <tdevries@suse.de>
9997
9998 PR target/PR88946
9999 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
10000 cuMemFree.
10001 (nvptx_exec): Don't call map_push if mapnum == 0.
10002 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
10003
4fef8e4d
TV
100042019-01-23 Tom de Vries <tdevries@suse.de>
10005
10006 PR target/88941
10007 PR target/88939
10008 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
10009 (map_fini): Remove "assert (!s->map->active)".
10010 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
10011
2ee6cb22
TV
100122019-01-23 Tom de Vries <tdevries@suse.de>
10013
10014 PR target/87835
10015 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
10016 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
10017
d41d952c
TV
100182019-01-15 Tom de Vries <tdevries@suse.de>
10019
10020 PR target/80547
10021 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
10022 New test.
10023
efb56ae8
TV
100242019-01-12 Tom de Vries <tdevries@suse.de>
10025
10026 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
10027 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
10028 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
10029 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
10030
2c2ff168
TV
100312019-01-12 Tom de Vries <tdevries@suse.de>
10032
10033 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
10034
a1057758
TV
100352019-01-12 Tom de Vries <tdevries@suse.de>
10036
10037 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
10038 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
10039 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
10040
56314b77
TV
100412019-01-12 Tom de Vries <tdevries@suse.de>
10042
10043 PR target/85486
10044 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
10045 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
10046
b39e4366
TV
100472019-01-12 Tom de Vries <tdevries@suse.de>
10048
10049 PR target/85381
10050 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
10051 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
10052
2cb7a501
TV
100532019-01-12 Tom de Vries <tdevries@suse.de>
10054
10055 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
10056 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
10057 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
10058
8e77f71e
TV
100592019-01-12 Tom de Vries <tdevries@suse.de>
10060
10061 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
10062 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
10063 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
10064
52d22ece
TV
100652019-01-12 Tom de Vries <tdevries@suse.de>
10066
10067 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
10068 resources diagnostic.
10069
2b9d9e39
TV
100702019-01-12 Tom de Vries <tdevries@suse.de>
10071
10072 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
10073 vector length to be 128.
10074 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
10075 length 2097152 to be reduced to 1024 instead of 32.
10076
4102bda6
TS
100772019-01-11 Thomas Schwinge <thomas@codesourcery.com>
10078 James Norris <jnorris@codesourcery.com>
10079
10080 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
10081 Library Routines", and "Environment Variables".
10082
052aaace
TV
100832019-01-11 Tom de Vries <tdevries@suse.de>
10084
10085 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
10086 num_workers 16.
10087
9390f916
TV
100882019-01-11 Tom de Vries <tdevries@suse.de>
10089
10090 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
10091 -foffload=-w.
10092 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
10093 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
10094 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
10095 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
10096
2c3e7ad2
TV
100972019-01-11 Tom de Vries <tdevries@suse.de>
10098
10099 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
10100 test.
10101
e222497d
NS
101022019-01-10 Nathan Sidwell <nathan@acm.org>
10103 Julian Brown <julian@codesourcery.com>
10104
10105 PR lto/71959
10106 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
10107 * testsuite/libgomp.oacc-c++/pr71959.C: New.
10108
cb87fec3
SH
101092019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
10110
10111 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
10112 and paste code.
10113
30b4d0d0
SH
101142019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
10115
10116 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
10117 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
10118 write.
10119
5d0bc70a
TV
101202019-01-09 Tom de Vries <tdevries@suse.de>
10121
10122 PR target/88756
10123 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
10124 #define instead of "const int".
10125 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
10126 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
10127 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
10128 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
10129
2c372e81
TV
101302019-01-09 Tom de Vries <tdevries@suse.de>
10131
10132 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
10133 one worker.
10134
43493c97
TV
101352019-01-07 Tom de Vries <tdevries@suse.de>
10136
10137 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
10138 GOMP_OPENACC_DIM argument.
10139
5c571497
TV
101402019-01-03 Tom de Vries <tdevries@suse.de>
10141
10142 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
10143 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
10144
a5544970
JJ
101452019-01-01 Jakub Jelinek <jakub@redhat.com>
10146
10147 Update copyright years.
10148
3f27508c
JJ
101492019-01-01 Jakub Jelinek <jakub@redhat.com>
10150
10151 * libgomp.texi: Bump @copying's copyright year.
10152
59d5960c
TS
101532018-12-28 Thomas Schwinge <thomas@codesourcery.com>
10154
10155 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
10156 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
10157 (GOACC_declare): Redefine the "device" argument to "flags".
10158
a44c1790
TS
101592018-12-28 Thomas Schwinge <thomas@codesourcery.com>
10160 Cesar Philippidis <cesar@codesourcery.com>
10161
10162 * target.c (struct gomp_coalesce_chunk): New structure.
10163 (struct gomp_coalesce_buf): Update the chunks member to use that
10164 type. Adjust all users.
10165
a152954e
TV
101662018-12-19 Tom de Vries <tdevries@suse.de>
10167
10168 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
10169 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
10170 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
10171
49188cd1
TV
101722018-12-19 Tom de Vries <tdevries@suse.de>
10173
10174 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
10175 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
10176 gcc/testsuite/gcc.dg/goacc.
10177 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
10178
c759830b
TS
101792018-12-14 Thomas Schwinge <thomas@codesourcery.com>
10180 Chung-Lin Tang <cltang@codesourcery.com>
10181
10182 * oacc-mem.c (acc_present_or_create): Remove definition and change
10183 to alias of acc_create.
10184 (acc_present_or_copyin): Remove definition and change to alias of
10185 acc_copyin.
10186 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
10187 of acc_present_or_create.
10188 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
10189 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10190 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
10191 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
10192 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
10193 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
10194 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
10195 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10196 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
10197 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10198 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
10199 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
10200 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
10201 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
10202 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
10203 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10204
7de562ee
TS
102052018-12-14 Thomas Schwinge <thomas@codesourcery.com>
10206
f847198e
TS
10207 PR libgomp/88495
10208 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
10209 "identical parameters".
10210 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
10211 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
10212
c8ab8aab
TS
10213 PR libgomp/88484
10214 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
10215 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
10216
1404af62
TS
10217 PR libgomp/88407
10218 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
10219 (nvptx_wait_async): Unseen async-argument is a no-op.
10220 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
10221 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
10222 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
10223 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
10224 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
10225 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
10226 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
10227 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
10228 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
10229
7de562ee
TS
10230 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
10231 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
10232
17469af7
CLT
102332018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
10234
10235 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
10236 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
10237 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
10238
18c247cc
TS
102392018-12-14 Thomas Schwinge <thomas@codesourcery.com>
10240
10241 PR libgomp/88370
10242 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
10243 (acc_set_cuda_stream): Clarify.
10244 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
10245 "async_valid_p".
10246 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
10247 acc_async_sync".
10248 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
10249 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
10250 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
10251 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
10252
b0aba46c
TV
102532018-12-14 Tom de Vries <tdevries@suse.de>
10254
10255 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
10256 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
10257 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
10258 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
10259 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
10260
fe0827ee
TV
102612018-12-13 Tom de Vries <tdevries@suse.de>
10262
10263 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
10264 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
10265 * fortran.c (omp_display_affinity_): ... here.
10266 * libgomp.h (gomp_print_string): Declare.
10267 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
10268 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
10269 write.
10270
a51f8c92
JJ
102712018-12-13 Jakub Jelinek <jakub@redhat.com>
10272
10273 PR libgomp/88460
10274 * testsuite/libgomp.c++/for-24.C (results): Include it in
10275 omp declare target region.
10276 (main): Use map (always, tofrom: results) instead of
10277 map (tofrom: results).
10278
a6ef2ac9
JJ
102792018-12-12 Jakub Jelinek <jakub@redhat.com>
10280
7a289b7d
JJ
10281 PR fortran/88463
10282 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
10283 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
10284
a6ef2ac9
JJ
10285 * testsuite/libgomp.c-c++-common/for-16.c: New test.
10286
9c47a019
AS
102872018-12-12 Andreas Schwab <schwab@suse.de>
10288
10289 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
10290 clobbered.
10291
d0cbb206
TK
102922018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
10293
10294 PR fortran/88411
10295 * testsuite/libgomp.fortran/async_io_8.f90: New test.
10296
84ca08d2
TS
102972018-12-09 Thomas Schwinge <thomas@codesourcery.com>
10298 Jakub Jelinek <jakub@redhat.com>
10299
10300 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
10301 devicep->host2dev_func.
10302
6997628d
JJ
103032018-12-08 Jakub Jelinek <jakub@redhat.com>
10304
10305 PR libgomp/87995
10306 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
10307 tls_runtime effective target.
10308 (t): New threadprivate variable.
10309 (main): Set t in threads which execute iterations of the worksharing
10310 loop. Propagate that to the task after the loop and don't abort
10311 if the current taskgroup hasn't been cancelled.
10312
daa8c1d7
JJ
103132018-12-02 Jakub Jelinek <jakub@redhat.com>
10314
4a82df9a
JJ
10315 * testsuite/libgomp.c/task-reduction-3.c: New test.
10316
daa8c1d7
JJ
10317 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
10318
fe570ff8
CP
103192018-11-30 Cesar Philippidis <cesar@codesourcery.com>
10320
10321 PR libgomp/88288
10322 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
10323 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
10324
c223608f
TS
103252018-11-30 Thomas Schwinge <thomas@codesourcery.com>
10326
10327 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
10328
fc60283c
RB
103292018-10-19 Richard Biener <rguenther@suse.de>
10330
10331 PR tree-optimization/88182
10332 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
10333
ffcf3b79
JJ
103342018-11-26 Jakub Jelinek <jakub@redhat.com>
10335
10336 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
10337 (RUNTEST): Don't define.
10338 (RUNTESTDEFAULTFLAGS): Add.
10339 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
10340 (distclean-am): Depend on distclean-DEJAGNU.
10341 (check-am): If -j% option is present in MFLAGS and if
10342 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
10343 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
10344 * testsuite/Makefile.in: Regenerated.
10345
ef6e6914
RB
103462018-11-26 Richard Biener <rguenther@suse.de>
10347
10348 PR tree-optimization/88182
10349 * testsuite/libgomp.c++/pr88182.C: New testcase.
10350
72d3bb76
JJ
103512018-11-20 Jakub Jelinek <jakub@redhat.com>
10352
10353 PR bootstrap/88106
10354 * config/mingw32/affinity-fmt.c: New file.
10355
207286c3
JJ
103562018-11-09 Jakub Jelinek <jakub@redhat.com>
10357
9666c522
JJ
10358 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
10359 (gomp_display_affinity): Use __builtin_choose_expr to handle
10360 properly handle argument having integral, or pointer or some other
10361 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
10362 with uint64_t type instead of %llx and unsigned long long.
10363
207286c3
JJ
10364 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
10365 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
10366
2033f45b
RO
103672018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10368
10369 * affinity.c: Include <string.h>, <stdio.h>.
10370 (gomp_display_affinity_place): Remove cpusetp.
10371 * teams.c: Include <limits.h>.
10372
28567c40
JJ
103732018-11-08 Jakub Jelinek <jakub@redhat.com>
10374
8991d779
JJ
10375 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
10376 in_reduction clause for s[0].
10377
28567c40
JJ
10378 * affinity.c (gomp_display_affinity_place): New function.
10379 * affinity-fmt.c: New file.
10380 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
10381 * config/linux/affinity.c (gomp_display_affinity_place): New function.
10382 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
10383 Move these functions to ...
10384 * config/nvptx/teams.c: ... here. New file.
10385 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
10386 New functions.
10387 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
10388 functions.
10389 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
10390 and _aligned_malloc.
10391 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
10392 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
10393 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
10394 gomp_affinity_format_len): New variables.
10395 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
10396 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
10397 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
10398 modifiers. Display (non-default) chunk sizes. Print
10399 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
10400 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
10401 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
10402 * fortran.c: Include stdio.h and string.h.
10403 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
10404 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
10405 (omp_set_affinity_format_, omp_get_affinity_format_,
10406 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
10407 omp_pause_resource_all_): New functions.
10408 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
10409 switch.
10410 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
10411 functions to ...
10412 * teams.c: ... here. New file.
10413 * libgomp_g.h: Include gstdint.h.
10414 (GOMP_loop_nonmonotonic_runtime_start,
10415 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
10416 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
10417 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
10418 GOMP_parallel_loop_nonmonotonic_runtime,
10419 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10420 GOMP_loop_ull_nonmonotonic_runtime_start,
10421 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
10422 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
10423 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10424 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
10425 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
10426 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10427 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
10428 GOMP_teams_reg): Declare.
10429 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
10430 gomp_aligned_alloc uses fallback implementation.
10431 (gomp_aligned_alloc, gomp_aligned_free): Declare.
10432 (enum gomp_schedule_type): Add GFS_MONOTONIC.
10433 (struct gomp_doacross_work_share): Add extra field.
10434 (struct gomp_work_share): Add task_reductions field.
10435 (struct gomp_taskgroup): Add workshare and reductions fields.
10436 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
10437 (gomp_thread_handle): New typedef.
10438 (gomp_display_affinity_place, gomp_set_affinity_format,
10439 gomp_display_string, gomp_display_affinity,
10440 gomp_display_affinity_thread): Declare.
10441 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
10442 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
10443 gomp_workshare_task_reduction_register): Declare.
10444 (gomp_team_start): Add taskgroup argument.
10445 (gomp_pause_host): Declare.
10446 (gomp_init_work_share, gomp_work_share_start): Change bool argument
10447 to size_t.
10448 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
10449 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
10450 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
10451 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
10452 GOMP_loop_ull_doacross_start,
10453 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
10454 GOMP_loop_maybe_nonmonotonic_runtime_next,
10455 GOMP_loop_maybe_nonmonotonic_runtime_start,
10456 GOMP_loop_nonmonotonic_runtime_next,
10457 GOMP_loop_nonmonotonic_runtime_start,
10458 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10459 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
10460 GOMP_loop_ull_nonmonotonic_runtime_next,
10461 GOMP_loop_ull_nonmonotonic_runtime_start,
10462 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10463 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
10464 GOMP_taskgroup_reduction_register,
10465 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10466 GOMP_teams_reg and GOMP_taskwait_depend.
10467 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
10468 omp_{capture,display}_affinity{,_}, and
10469 omp_[gs]et_affinity_format{,_}.
10470 * loop.c: Include string.h.
10471 (GOMP_loop_runtime_next): Add ialias.
10472 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10473 (gomp_loop_static_start, gomp_loop_dynamic_start,
10474 gomp_loop_guided_start, gomp_loop_ordered_static_start,
10475 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
10476 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
10477 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
10478 or gomp_doacross_init callers.
10479 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
10480 GOMP_loop_doacross_start): New functions.
10481 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
10482 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
10483 Mask off GFS_MONOTONIC bit.
10484 (GOMP_loop_maybe_nonmonotonic_runtime_next,
10485 GOMP_loop_maybe_nonmonotonic_runtime_start,
10486 GOMP_loop_nonmonotonic_runtime_next,
10487 GOMP_loop_nonmonotonic_runtime_start,
10488 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10489 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
10490 functions.
10491 (gomp_parallel_loop_start): Pass NULL as taskgroup to
10492 gomp_team_start.
10493 * loop_ull.c: Include string.h.
10494 (GOMP_loop_ull_runtime_next): Add ialias.
10495 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10496 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
10497 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
10498 gomp_loop_ull_ordered_dynamic_start,
10499 gomp_loop_ull_ordered_guided_start,
10500 gomp_loop_ull_doacross_static_start,
10501 gomp_loop_ull_doacross_dynamic_start,
10502 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
10503 and gomp_doacross_ull_init callers.
10504 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
10505 GOMP_loop_ull_doacross_start): New functions.
10506 (GOMP_loop_ull_runtime_start,
10507 GOMP_loop_ull_ordered_runtime_start,
10508 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
10509 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10510 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
10511 GOMP_loop_ull_nonmonotonic_runtime_next,
10512 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
10513 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
10514 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
10515 (omp_pause_resource_t, omp_depend_t): New typedefs.
10516 (enum omp_lock_hint_t): Renamed to ...
10517 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
10518 enumerators using numbers and omp_lock_hint_* as their aliases.
10519 (omp_lock_hint_t): New typedef. Rename to ...
10520 (omp_sync_hint_t): ... this.
10521 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
10522 omp_sync_hint_t instead of omp_lock_hint_t.
10523 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10524 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10525 Declare.
10526 (omp_target_is_present, omp_target_disassociate_ptr):
10527 Change first argument from void * to const void *.
10528 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
10529 from void * to const void *.
10530 (omp_target_associate_ptr): Change first and second arguments from
10531 void * to const void *.
10532 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
10533 omp_pause_hard): New parameters.
10534 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10535 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10536 New interfaces.
10537 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
10538 omp_pause_hard): New parameters.
10539 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10540 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10541 New externals.
10542 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
10543 EXTRA argument. If not needed to prepare array, if extra is 0,
10544 clear ws->doacross, otherwise allocate just doacross structure and
10545 extra payload. If array is needed, allocate also extra payload.
10546 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
10547 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
10548 doacross == NULL.
10549 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
10550 gomp_team_start.
10551 (GOMP_parallel): Likewise. Formatting fix.
10552 (GOMP_parallel_reductions): New function.
10553 (GOMP_cancellation_point): If taskgroup has workshare
10554 flag set, check cancelled of prev taskgroup if any.
10555 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
10556 on prev taskgroup if any.
10557 * sections.c: Include string.h.
10558 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10559 (GOMP_sections_start): Adjust gomp_work_share_start caller.
10560 (GOMP_sections2_start): New function.
10561 (GOMP_parallel_sections_start, GOMP_parallel_sections):
10562 Pass NULL as taskgroup to gomp_team_start.
10563 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
10564 gomp_work_share_start callers.
10565 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
10566 If taskgroup has workshare flag set, check cancelled on prev
10567 taskgroup if any. Guard all cancellation tests with
10568 gomp_cancel_var test.
10569 (omp_target_is_present, omp_target_disassociate_ptr):
10570 Change ptr argument from void * to const void *.
10571 (omp_target_memcpy): Change src argument from void * to const void *.
10572 (omp_target_memcpy_rect): Likewise.
10573 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
10574 instead of char * where needed.
10575 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
10576 from void * to const void *.
10577 (omp_pause_resource, omp_pause_resource_all): New functions.
10578 * task.c (gomp_task_handle_depend): Handle new depend array format
10579 in addition to the old. Handle mutexinoutset kinds the same as
10580 inout for now, handle unspecified kinds.
10581 (gomp_create_target_task): If taskgroup has workshare flag set, check
10582 cancelled on prev taskgroup if any. Guard all cancellation tests with
10583 gomp_cancel_var test. Handle new depend array format count in
10584 addition to the old.
10585 (GOMP_task): Likewise. Adjust function comment.
10586 (gomp_task_run_pre): If taskgroup has workshare flag set, check
10587 cancelled on prev taskgroup if any. Guard all cancellation tests with
10588 gomp_cancel_var test.
10589 (GOMP_taskwait_depend): New function.
10590 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
10591 format in addition to the old. Handle mutexinoutset kinds the same as
10592 inout for now, handle unspecified kinds. Fix a function comment typo.
10593 (gomp_taskgroup_init): New function.
10594 (GOMP_taskgroup_start): Use it.
10595 (gomp_reduction_register, gomp_create_artificial_team,
10596 GOMP_taskgroup_reduction_register,
10597 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10598 gomp_parallel_reduction_register,
10599 gomp_workshare_task_reduction_register,
10600 gomp_workshare_taskgroup_start,
10601 GOMP_workshare_task_reduction_unregister): New functions.
10602 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
10603 check cancelled on prev taskgroup if any. Guard all cancellation
10604 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
10605 by calling GOMP_taskgroup_reduction_register.
10606 * team.c (gomp_thread_attr): Remove comment.
10607 (struct gomp_thread_start_data): Add handle field.
10608 (gomp_thread_start): Call pthread_detach.
10609 (gomp_new_team): Adjust gomp_init_work_share caller.
10610 (gomp_free_pool_helper): Call pthread_detach.
10611 (gomp_team_start): Add taskgroup argument, initialize implicit
10612 tasks' taskgroup field to that. Don't call
10613 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
10614 (gomp_team_end): Determine nesting by thr->ts.level != 0
10615 rather than thr->ts.team != NULL.
10616 (gomp_pause_pool_helper, gomp_pause_host): New functions.
10617 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
10618 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
10619 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
10620 if more than 1 allocate also extra payload at the end of array. Never
10621 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
10622 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
10623 return true instead of ws.
10624 * Makefile.in: Regenerated.
10625 * configure: Regenerated.
10626 * config.h.in: Regenerated.
10627 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
10628 in some cases.
10629 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
10630 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
10631 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
10632 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
10633 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
10634 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
10635 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
10636 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
10637 * testsuite/libgomp.c-c++-common/for-10.c: New test.
10638 * testsuite/libgomp.c-c++-common/for-11.c: New test.
10639 * testsuite/libgomp.c-c++-common/for-12.c: New test.
10640 * testsuite/libgomp.c-c++-common/for-13.c: New test.
10641 * testsuite/libgomp.c-c++-common/for-14.c: New test.
10642 * testsuite/libgomp.c-c++-common/for-15.c: New test.
10643 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
10644 define a different N(test), don't define N(f0) to N(f14), but instead
10645 define N(f20) to N(f34) using != comparisons.
10646 * testsuite/libgomp.c-c++-common/for-7.c: New test.
10647 * testsuite/libgomp.c-c++-common/for-8.c: New test.
10648 * testsuite/libgomp.c-c++-common/for-9.c: New test.
10649 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
10650 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
10651 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
10652 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
10653 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
10654 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
10655 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
10656 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
10657 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
10658 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
10659 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
10660 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
10661 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
10662 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
10663 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
10664 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
10665 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
10666 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
10667 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
10668 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
10669 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
10670 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
10671 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
10672 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
10673 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
10674 * testsuite/libgomp.c++/depend-1.C: New test.
10675 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
10676 * testsuite/libgomp.c++/depobj-1.C: New test.
10677 * testsuite/libgomp.c++/for-16.C: New test.
10678 * testsuite/libgomp.c++/for-21.C: New test.
10679 * testsuite/libgomp.c++/for-22.C: New test.
10680 * testsuite/libgomp.c++/for-23.C: New test.
10681 * testsuite/libgomp.c++/for-24.C: New test.
10682 * testsuite/libgomp.c++/for-25.C: New test.
10683 * testsuite/libgomp.c++/for-26.C: New test.
10684 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
10685 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
10686 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
10687 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
10688 * testsuite/libgomp.c++/task-reduction-10.C: New test.
10689 * testsuite/libgomp.c++/task-reduction-11.C: New test.
10690 * testsuite/libgomp.c++/task-reduction-12.C: New test.
10691 * testsuite/libgomp.c++/task-reduction-13.C: New test.
10692 * testsuite/libgomp.c++/task-reduction-14.C: New test.
10693 * testsuite/libgomp.c++/task-reduction-15.C: New test.
10694 * testsuite/libgomp.c++/task-reduction-16.C: New test.
10695 * testsuite/libgomp.c++/task-reduction-17.C: New test.
10696 * testsuite/libgomp.c++/task-reduction-18.C: New test.
10697 * testsuite/libgomp.c++/task-reduction-19.C: New test.
10698 * testsuite/libgomp.c/task-reduction-1.c: New test.
10699 * testsuite/libgomp.c++/task-reduction-1.C: New test.
10700 * testsuite/libgomp.c/task-reduction-2.c: New test.
10701 * testsuite/libgomp.c++/task-reduction-2.C: New test.
10702 * testsuite/libgomp.c++/task-reduction-3.C: New test.
10703 * testsuite/libgomp.c++/task-reduction-4.C: New test.
10704 * testsuite/libgomp.c++/task-reduction-5.C: New test.
10705 * testsuite/libgomp.c++/task-reduction-6.C: New test.
10706 * testsuite/libgomp.c++/task-reduction-7.C: New test.
10707 * testsuite/libgomp.c++/task-reduction-8.C: New test.
10708 * testsuite/libgomp.c++/task-reduction-9.C: New test.
10709 * testsuite/libgomp.c/teams-1.c: New test.
10710 * testsuite/libgomp.c/teams-2.c: New test.
10711 * testsuite/libgomp.c/thread-limit-4.c: New test.
10712 * testsuite/libgomp.c/thread-limit-5.c: New test.
10713 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
10714
58168bbf
CLT
107152018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
10716
10717 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
10718 acc_memcpy_to/from_device functions, now with async parameter.
10719 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
10720 (acc_memcpy_from_device): Likewise.
10721 (acc_memcpy_to_device_async): New API function.
10722 (acc_memcpy_from_device_async): Likewise.
10723 (present_create_copy): Add async parameter and async setting/unsetting.
10724 (acc_create): Adjust present_create_copy call.
10725 (acc_copyin): Likewise.
10726 (acc_present_or_create): Likewise.
10727 (acc_present_or_copyin): Likewise.
10728 (acc_create_async): New API function.
10729 (acc_copyin_async): New API function.
10730 (delete_copyout): Add async parameter and async setting/unsetting.
10731 (acc_delete): Adjust delete_copyout call.
10732 (acc_copyout): Likewise.
10733 (acc_delete_async): New API function.
10734 (acc_copyout_async): Likewise.
10735 (update_dev_host): Add async parameter and async setting/unsetting.
10736 (acc_update_device): Adjust update_dev_host call.
10737 (acc_update_self): Likewise.
10738 (acc_update_device_async): New API function.
10739 (acc_update_self_async): Likewise.
10740 * openacc.h (acc_copyin_async): Declare new API function.
10741 (acc_create_async): Likewise.
10742 (acc_copyout_async): Likewise.
10743 (acc_delete_async): Likewise.
10744 (acc_update_device_async): Likewise.
10745 (acc_update_self_async): Likewise.
10746 (acc_memcpy_to_device_async): Likewise.
10747 (acc_memcpy_from_device_async): Likewise.
10748 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
10749 (acc_copyin_async_64_h): New subroutine.
10750 (acc_copyin_async_array_h): New subroutine.
10751 (acc_create_async_32_h): New subroutine.
10752 (acc_create_async_64_h): New subroutine.
10753 (acc_create_async_array_h): New subroutine.
10754 (acc_copyout_async_32_h): New subroutine.
10755 (acc_copyout_async_64_h): New subroutine.
10756 (acc_copyout_async_array_h): New subroutine.
10757 (acc_delete_async_32_h): New subroutine.
10758 (acc_delete_async_64_h): New subroutine.
10759 (acc_delete_async_array_h): New subroutine.
10760 (acc_update_device_async_32_h): New subroutine.
10761 (acc_update_device_async_64_h): New subroutine.
10762 (acc_update_device_async_array_h): New subroutine.
10763 (acc_update_self_async_32_h): New subroutine.
10764 (acc_update_self_async_64_h): New subroutine.
10765 (acc_update_self_async_array_h): New subroutine.
10766 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
10767 (acc_copyin_async_64_h): New subroutine.
10768 (acc_copyin_async_array_h): New subroutine.
10769 (acc_create_async_32_h): New subroutine.
10770 (acc_create_async_64_h): New subroutine.
10771 (acc_create_async_array_h): New subroutine.
10772 (acc_copyout_async_32_h): New subroutine.
10773 (acc_copyout_async_64_h): New subroutine.
10774 (acc_copyout_async_array_h): New subroutine.
10775 (acc_delete_async_32_h): New subroutine.
10776 (acc_delete_async_64_h): New subroutine.
10777 (acc_delete_async_array_h): New subroutine.
10778 (acc_update_device_async_32_h): New subroutine.
10779 (acc_update_device_async_64_h): New subroutine.
10780 (acc_update_device_async_array_h): New subroutine.
10781 (acc_update_self_async_32_h): New subroutine.
10782 (acc_update_self_async_64_h): New subroutine.
10783 (acc_update_self_async_array_h): New subroutine.
10784 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
10785 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
10786 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
10787 acc_memcpy_to_device_async*, acc_update_device_async*, and
10788 acc_update_self_async* entries.
10789 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
10790 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
10791 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
10792
22e05272
JM
107932018-10-31 Joseph Myers <joseph@codesourcery.com>
10794
10795 PR bootstrap/82856
10796 * Makefile.am: Include multilib.am
10797 (AUTOMAKE_OPTIONS): Add info-in-builddir.
10798 (CLEANFILES): Remove libgomp.info.
10799 * configure.ac: Remove AC_PREREQ.
10800 * testsuite/Makefile.am (RUNTEST): Remove quotes.
10801 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
10802 Regenerate.
10803
87a5ccfb
JM
108042018-10-29 Joseph Myers <joseph@codesourcery.com>
10805 Julian Brown <julian@codesourcery.com>
10806
10807 * testsuite/libgomp.oacc-c++/this.C: New.
10808
2049befd
CP
108092018-09-18 Cesar Philippidis <cesar@codesourcery.com>
10810
10811 * plugin/plugin-nvptx.c (struct cuda_map): New.
10812 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
10813 h_tail with (cuda_map *) map.
10814 (cuda_map_create): New function.
10815 (cuda_map_destroy): New function.
10816 (map_init): Update to use a linked list of cuda_map objects.
10817 (map_fini): Likewise.
10818 (map_pop): Likewise.
10819 (map_push): Likewise. Return CUdeviceptr instead of void.
10820 (init_streams_for_device): Remove stales references to ptx_stream
10821 members.
10822 (select_stream_for_async): Likewise.
10823 (nvptx_exec): Update call to map_init.
10824
8e36332c
CP
108252018-09-09 Cesar Philippidis <cesar@codesourcery.com>
10826 Julian Brown <julian@codesourcery.com>
10827
10828 PR middle-end/86336
10829 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
10830
2b4c9065
NK
108312018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
10832 Thomas Koenig <tkoenig@gcc.gnu.org>
10833
10834 PR fortran/25829
10835 * testsuite/libgomp.fortran/async_io_1.f90: New test.
10836 * testsuite/libgomp.fortran/async_io_2.f90: New test.
10837 * testsuite/libgomp.fortran/async_io_3.f90: New test.
10838 * testsuite/libgomp.fortran/async_io_4.f90: New test.
10839 * testsuite/libgomp.fortran/async_io_5.f90: New test.
10840 * testsuite/libgomp.fortran/async_io_6.f90: New test.
10841 * testsuite/libgomp.fortran/async_io_7.f90: New test.
10842
bd9b3d3d
CP
108432018-08-13 Cesar Philippidis <cesar@codesourcery.com>
10844 Tom de Vries <tdevries@suse.de>
10845
10846 PR target/85590
10847 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
10848 (cuOccupancyMaxPotentialBlockSize): Declare.
10849 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
10850 CUDA_ONE_CALL_MAYBE_NULL.
10851 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
10852 CUoccupancyB2DSize and declare
10853 cuOccupancyMaxPotentialBlockSize.
10854 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
10855 default num_gangs and num_workers when the driver supports it.
10856
8e09a12f
TV
108572018-08-08 Tom de Vries <tdevries@suse.de>
10858
10859 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
10860 CUDA_ONE_CALL_MAYBE_NULL.
10861 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
10862 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
10863 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
10864 are not found.
10865
cedd9bd0
TV
108662018-08-08 Tom de Vries <tdevries@suse.de>
10867
10868 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
10869 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
10870 present.
10871
b113af95
TV
108722018-08-08 Tom de Vries <tdevries@suse.de>
10873
10874 * plugin/plugin-nvptx.c
10875 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
10876 (nvptx_open_device): Use
10877 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
10878
94767dac
TV
108792018-08-08 Tom de Vries <tdevries@suse.de>
10880
10881 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
10882 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
10883
02150de8
TV
108842018-08-07 Tom de Vries <tdevries@suse.de>
10885
10886 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
10887 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
10888 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
10889 corresponding call in CUDA_ONE_CALL. Add def/undef of
10890 CUDA_ONE_CALL_MAYBE_NULL.
10891 (CUDA_CALL_EXISTS): Define.
10892
9e28b107
TV
108932018-08-07 Tom de Vries <tdevries@suse.de>
10894
10895 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
10896 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
10897 corresponding undefs right after.
10898
09940090
TV
108992018-08-04 Tom de Vries <tdevries@suse.de>
10900
10901 * plugin/configfrag.ac: For --without-cuda-driver, set
10902 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
10903 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
10904 * configure: Regenerate.
10905
77e0a97a
TV
109062018-08-02 Tom de Vries <tdevries@suse.de>
10907
10908 PR target/86660
10909 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
10910 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
10911 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
10912 Same.
10913 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
10914 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
10915 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
10916
701d080a
CP
109172018-08-01 Cesar Philippidis <cesar@codesourcery.com>
10918 Thomas Schwinge <thomas@codesourcery.com>
10919
10920 * config/nvptx/oacc-parallel.c: Truncate.
10921
094db6be
CP
109222018-08-01 Cesar Philippidis <cesar@codesourcery.com>
10923 James Norris <jnorris@codesourcery.com>
10924
10925 * plugin/plugin-nvptx.c (struct map): Removed.
701d080a
CP
10926 (map_init, map_pop): Remove use of struct map.
10927 (map_push): Likewise and change argument list.
094db6be
CP
10928 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
10929
8c6310a2
TV
109302018-08-01 Tom de Vries <tdevries@suse.de>
10931
10932 * plugin/cuda-lib.def: New file. Factor out of ...
10933 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
10934 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
10935 using CUDA_CALLS.
10936
1d4a51cf
AV
109372018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
10938
10939 Revert 'AsyncI/O patch committed'.
10940 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
10941 Thomas Koenig <tkoenig@gcc.gnu.org>
10942
10943 PR fortran/25829
10944 * testsuite/libgomp.fortran/async_io_1.f90: New test.
10945 * testsuite/libgomp.fortran/async_io_2.f90: New test.
10946 * testsuite/libgomp.fortran/async_io_3.f90: New test.
10947 * testsuite/libgomp.fortran/async_io_4.f90: New test.
10948 * testsuite/libgomp.fortran/async_io_5.f90: New test.
10949 * testsuite/libgomp.fortran/async_io_6.f90: New test.
10950 * testsuite/libgomp.fortran/async_io_7.f90: New test.
10951
4cdfee3f
TV
109522018-07-30 Tom de Vries <tdevries@suse.de>
10953
10954 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
10955 (nvptx_exec): Ensure worker and vector default dims don't exceed
10956 targ_fn->max_threads_per_block.
10957
0b210c43
TV
109582018-07-30 Tom de Vries <tdevries@suse.de>
10959
10960 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
10961 (nvptx_open_device): Init default_dims for device.
10962 (nvptx_exec): Use default_dims from device.
10963
5883c5cc
JJ
109642018-07-26 Jakub Jelinek <jakub@redhat.com>
10965
5d36384c
JJ
10966 PR testsuite/86660
10967 * testsuite/libgomp.c++/for-15.C (results): Include it in
10968 omp declare target region.
10969 (main): Use map (always, tofrom: results) instead of
10970 map (tofrom: results).
10971
5883c5cc
JJ
10972 PR middle-end/86660
10973 * testsuite/libgomp.c/pr86660.c: New test.
10974
88a4654d
CP
109752018-07-26 Cesar Philippidis <cesar@codesourcery.com>
10976 Tom de Vries <tdevries@suse.de>
10977
10978 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
10979 sufficient resources to launch a kernel, and give a hint on how to fix
10980 it.
10981
0c6c2f5f
CP
109822018-07-26 Cesar Philippidis <cesar@codesourcery.com>
10983 Tom de Vries <tdevries@suse.de>
10984
10985 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
10986 max_threads_per_block and max_threads_per_multiprocessor fields.
10987 (nvptx_open_device): Initialize new fields.
10988 (nvptx_exec): Use num_sms, and new fields.
10989
6dd58010
TV
109902018-07-26 Tom de Vries <tdevries@suse.de>
10991
10992 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
10993 to correct locations. Remove xfail.
10994
b2eb1779
TV
109952018-07-26 Tom de Vries <tdevries@suse.de>
10996
10997 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
10998 acc_wait. Move acc_async_test calls to correct locations. Remove
10999 xfail.
11000
b1f45884
NK
110012018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
11002 Thomas Koenig <tkoenig@gcc.gnu.org>
11003
11004 PR fortran/25829
11005 * testsuite/libgomp.fortran/async_io_1.f90: New test.
11006 * testsuite/libgomp.fortran/async_io_2.f90: New test.
11007 * testsuite/libgomp.fortran/async_io_3.f90: New test.
11008 * testsuite/libgomp.fortran/async_io_4.f90: New test.
11009 * testsuite/libgomp.fortran/async_io_5.f90: New test.
11010 * testsuite/libgomp.fortran/async_io_6.f90: New test.
11011 * testsuite/libgomp.fortran/async_io_7.f90: New test.
11012
3a106211
JJ
110132018-07-17 Jakub Jelinek <jakub@redhat.com>
11014
a3bccfa1
JJ
11015 PR middle-end/86542
11016 * testsuite/libgomp.c++/pr86542.C: New test.
11017
3a106211
JJ
11018 PR middle-end/86539
11019 * testsuite/libgomp.c++/pr86539.C: New test.
11020
2bae8b2f
JJ
110212018-07-11 Jakub Jelinek <jakub@redhat.com>
11022
11023 PR c++/86443
11024 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
11025 (results): Make sure the variable is not inside declare target region.
11026 (qux): Remove unused function.
11027
0b27c3ed
JJ
110282018-07-10 Jakub Jelinek <jakub@redhat.com>
11029
11030 PR c++/86443
11031 * testsuite/libgomp.c++/for-15.C: New test.
11032
f0391511
JJ
110332018-06-26 Jakub Jelinek <jakub@redhat.com>
11034
11035 PR c++/86291
11036 * testsuite/libgomp.c++/pr86291.C: New test.
11037
1a6d1d24
GP
110382018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
11039
11040 * libgomp.texi (Top): Move www.openmp.org to https.
11041 (Enabling OpenMP): Ditto.
11042 (omp_get_active_level): Ditto.
11043 (omp_get_ancestor_thread_num): Ditto.
11044 (omp_get_cancellation): Ditto.
11045 (omp_get_default_device): Ditto.
11046 (omp_get_dynamic): Ditto.
11047 (omp_get_level): Ditto.
11048 (omp_get_max_active_levels): Ditto.
11049 (omp_get_max_task_priority): Ditto.
11050 (omp_get_max_threads): Ditto.
11051 (omp_get_nested): Ditto.
11052 (omp_get_num_devices): Ditto.
11053 (omp_get_num_procs): Ditto.
11054 (omp_get_num_teams): Ditto.
11055 (omp_get_num_threads): Ditto.
11056 (omp_get_proc_bind): Ditto.
11057 (omp_get_schedule): Ditto.
11058 (omp_get_team_num): Ditto.
11059 (omp_get_team_size): Ditto.
11060 (omp_get_thread_limit): Ditto.
11061 (omp_get_thread_num): Ditto.
11062 (omp_in_parallel): Ditto.
11063 (omp_in_final): Ditto.
11064 (omp_is_initial_device): Ditto.
11065 (omp_set_default_device): Ditto.
11066 (omp_set_dynamic): Ditto.
11067 (omp_set_max_active_levels): Ditto.
11068 (omp_set_nested): Ditto.
11069 (omp_set_num_threads): Ditto.
11070 (omp_set_schedule): Ditto.
11071 (omp_init_lock): Ditto.
11072 (omp_set_lock): Ditto.
11073 (omp_test_lock): Ditto.
11074 (omp_unset_lock): Ditto.
11075 (omp_destroy_lock): Ditto.
11076 (omp_init_nest_lock): Ditto.
11077 (omp_set_nest_lock): Ditto.
11078 (omp_test_nest_lock): Ditto.
11079 (omp_unset_nest_lock): Ditto.
11080 (omp_destroy_nest_lock): Ditto.
11081 (omp_get_wtick): Ditto.
11082 (omp_get_wtime): Ditto.
11083 (OMP_CANCELLATION): Ditto.
11084 (OMP_DISPLAY_ENV): Ditto.
11085 (OMP_DEFAULT_DEVICE): Ditto.
11086 (OMP_DYNAMIC): Ditto.
11087 (OMP_MAX_ACTIVE_LEVELS): Ditto.
11088 (OMP_MAX_TASK_PRIORITY): Ditto.
11089 (OMP_NESTED): Ditto.
11090 (OMP_NUM_THREADS): Ditto.
11091 (OMP_PROC_BIND): Ditto.
11092 (OMP_PLACES): Ditto.
11093 (OMP_STACKSIZE): Ditto.
11094 (OMP_SCHEDULE): Ditto.
11095 (OMP_THREAD_LIMIT): Ditto.
11096 (OMP_WAIT_POLICY): Ditto.
11097
31dd69b7
CP
110982018-06-22 Cesar Philippidis <cesar@codesourcery.com>
11099 James Norris <jnorris@codesourcery.com>
11100 Julian Brown <julian@codesourcery.com>
11101 Thomas Schwinge <thomas@codesourcery.com>
11102 Tom de Vries <tom@codesourcery.com>
11103
11104 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
11105 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
11106 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
11107 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
11108 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11109 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11110 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
11111 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
11112 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
11113 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
11114 Likewise.
11115 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
11116 Likewise.
11117 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
11118 Likewise.
11119 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
11120 Likewise.
11121 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
11122 Likewise.
11123 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
11124 Likewise.
11125 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
11126 Likewise.
11127 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
11128 Likewise.
11129 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
11130 Likewise.
11131 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
11132 Likewise.
11133 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
11134 Likewise.
11135 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
11136 Likewise.
11137 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
11138 Likewise.
11139 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
11140 Likewise.
11141 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
11142 Likewise.
11143 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
11144 Likewise.
11145 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
11146 Likewise.
11147 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
11148 Likewise.
11149 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
11150 Likewise.
11151 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
11152 Likewise.
11153 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
11154 Likewise.
11155 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
11156 Likewise.
11157 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
11158 Likewise.
11159 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
11160 Likewise.
11161 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
11162 Likewise.
11163 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
11164 Likewise.
11165 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
11166 Likewise.
11167 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
11168 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
11169 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
11170 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
11171 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
11172 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
11173 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
11174 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
11175 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
11176 Likewise.
11177 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
11178 Likewise.
11179 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
11180 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
11181 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
11182 Likewise.
11183 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
11184 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
11185 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
11186 Likewise.
11187 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
11188 Likewise.
11189 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
11190 Likewise.
11191 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
11192 Likewise.
11193 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
11194 Likewise.
11195 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
11196 Likewise.
11197 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
11198 Likewise.
11199 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
11200 Likewise.
11201 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
11202 Likewise.
11203 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
11204 Likewise.
11205 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
11206 Likewise.
11207 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
11208 Likewise.
11209 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
11210 Likewise.
11211 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
11212 Likewise.
11213 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
11214 Likewise.
11215 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
11216 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
11217 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
11218 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
11219 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
11220 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
11221 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
11222
829c6349
CLT
112232018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
11224 Thomas Schwinge <thomas@codesourcery.com>
11225 Cesar Philippidis <cesar@codesourcery.com>
11226
11227 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
11228 (gomp_acc_remove_pointer): Update declaration.
11229 (gomp_acc_declare_allocate): Declare.
11230 (gomp_remove_var): Declare.
11231 * libgomp.map (OACC_2.5): Define.
11232 * oacc-mem.c (acc_map_data): Update refcount.
11233 (acc_unmap_data): Likewise.
11234 (present_create_copy): Likewise.
11235 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
11236 (acc_copyin): Likewise.
11237 (FLAG_FINALIZE): Define.
11238 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
11239 (acc_delete_finalize): New function.
11240 (acc_delete_finalize_async): New function.
11241 (acc_copyout_finalize): New function.
11242 (acc_copyout_finalize_async): New function.
11243 (gomp_acc_insert_pointer): Update refcounts.
11244 (gomp_acc_remove_pointer): Return if data is not present on the
11245 accelerator.
11246 * oacc-parallel.c (find_pset): Rename to find_pointer.
11247 (find_pointer): Add support for GOMP_MAP_POINTER.
11248 (handle_ftn_pointers): New function.
11249 (GOACC_parallel_keyed): Update refcounts of variables.
11250 (GOACC_enter_exit_data): Add support for finalized data mappings.
11251 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
11252 of fortran arrays.
11253 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
11254 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
11255 for GOMP_MAP_FORCE_FROM.
11256 * openacc.f90 (module openacc_internal): Add
11257 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
11258 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
11259 acc_copyout_finalize and acc_delete_finalize.
11260 (acc_copyout_finalize_32_h): New subroutine.
11261 (acc_copyout_finalize_64_h): New subroutine.
11262 (acc_copyout_finalize_array_h): New subroutine.
11263 (acc_delete_finalize_32_h): New subroutine.
11264 (acc_delete_finalize_64_h): New subroutine.
11265 (acc_delete_finalize_array_h): New subroutine.
11266 * openacc.h (acc_copyout_finalize): Declare.
11267 (acc_copyout_finalize_async): Declare.
11268 (acc_delete_finalize): Declare.
11269 (acc_delete_finalize_async): Declare.
11270 * openacc_lib.h (acc_copyout_finalize): New interface.
11271 (acc_delete_finalize): New interface.
11272 * target.c (gomp_map_vars): Update dynamic_refcount.
11273 (gomp_remove_var): New function.
11274 (gomp_unmap_vars): Use it.
11275 (gomp_unload_image_from_device): Likewise.
11276 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
11277 case to utilize OpenACC 2.5 data clause semantics.
11278 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11279 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
11280 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
11281 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
11282 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
11283 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
11284 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
11285 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11286 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11287 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
11288 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
11289 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
11290 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
11291 utilize OpenACC 2.5 data clause semantics.
11292 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
11293 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
11294 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
11295 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
11296 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
11297 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
11298 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
11299 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
11300 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11301
4358400b
JW
113022018-05-21 Janus Weil <janus@gcc.gnu.org>
11303
11304 PR fortran/85841
11305 PR testsuite/85865
11306 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
11307 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
11308 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
11309 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
11310 * testsuite/libgomp.fortran/task2.f90: Ditto.
11311 * testsuite/libgomp.fortran/vla1.f90: Ditto.
11312 * testsuite/libgomp.fortran/vla2.f90: Ditto.
11313 * testsuite/libgomp.fortran/vla3.f90: Ditto.
11314 * testsuite/libgomp.fortran/vla4.f90: Ditto.
11315 * testsuite/libgomp.fortran/vla5.f90: Ditto.
11316 * testsuite/libgomp.fortran/vla6.f90: Ditto.
11317 * testsuite/libgomp.fortran/vla8.f90: Ditto.
11318 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
11319 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
11320
950ad0ba
CP
113212018-05-18 Cesar Philippidis <cesar@codesourcery.com>
11322
11323 PR c++/85782
11324 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
11325
f5ad16f1
TV
113262018-05-09 Tom de Vries <tom@codesourcery.com>
11327
11328 PR libgomp/82901
11329 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
11330 to GOACC_enter_exit_data.
11331
edbd038a
TV
113322018-05-09 Tom de Vries <tom@codesourcery.com>
11333
11334 PR libgomp/83792
11335 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
11336 (async_synchronous_p): New function.
11337 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
11338 async_valid_p.
11339 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
11340 async_valid_stream_id_p.
11341 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
11342 * oacc-parallel.c (GOACC_parallel_keyed): Same.
11343
37d6c719
TV
113442018-05-07 Tom de Vries <tom@codesourcery.com>
11345
11346 PR testsuite/85677
11347 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
11348 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
11349
63f12215
TV
113502018-05-03 Tom de Vries <tom@codesourcery.com>
11351
11352 PR testsuite/85106
11353 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
11354 extra_tool_flags if it contains an -foffload=-fdump-* flag.
11355 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
11356 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
11357
ec00d3fa
TV
113582018-05-02 Tom de Vries <tom@codesourcery.com>
11359
11360 PR libgomp/85411
11361 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
11362 GOMP_OPENACC_DIM ...
11363 * env.c (parse_gomp_openacc_dim): ... here. New function.
11364 (initialize_env): Call parse_gomp_openacc_dim.
11365 (goacc_default_dims): Define.
11366 * libgomp.h (goacc_default_dims): Declare.
11367 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
11368 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
11369 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
11370 GOMP_PLUGIN_acc_default_dim.
11371 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
11372 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
11373
92243e7c
TV
113742018-05-02 Tom de Vries <tom@codesourcery.com>
11375
11376 PR testsuite/83791
11377 * testsuite/libgomp.c++/udr-9.C: Update.
11378 * testsuite/libgomp.c++/atomic-16.C: Remove.
11379 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
11380 * testsuite/libgomp.c++/loop-13.C: Remove.
11381 * testsuite/libgomp.c++/loop-14.C: Remove.
11382 * testsuite/libgomp.c++/loop-15.C: Remove.
11383 * testsuite/libgomp.c++/monotonic-1.C: Remove.
11384 * testsuite/libgomp.c++/monotonic-2.C: Remove.
11385 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
11386 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
11387 * testsuite/libgomp.c++/ordered-1.C: Remove.
11388 * testsuite/libgomp.c++/pr45784.C: Remove.
11389 * testsuite/libgomp.c++/pr64824.C: Remove.
11390 * testsuite/libgomp.c++/pr64868.C: Remove.
11391 * testsuite/libgomp.c++/pr66199-1.C: Remove.
11392 * testsuite/libgomp.c++/pr66199-2.C: Remove.
11393 * testsuite/libgomp.c++/pr66199-3.C: Remove.
11394 * testsuite/libgomp.c++/pr66199-4.C: Remove.
11395 * testsuite/libgomp.c++/pr66199-5.C: Remove.
11396 * testsuite/libgomp.c++/pr66199-6.C: Remove.
11397 * testsuite/libgomp.c++/pr66199-7.C: Remove.
11398 * testsuite/libgomp.c++/pr66199-8.C: Remove.
11399 * testsuite/libgomp.c++/pr66199-9.C: Remove.
11400 * testsuite/libgomp.c++/pr69389.C: Remove.
11401 * testsuite/libgomp.c++/simd10.C: Remove.
11402 * testsuite/libgomp.c++/simd11.C: Remove.
11403 * testsuite/libgomp.c++/simd12.C: Remove.
11404 * testsuite/libgomp.c++/simd13.C: Remove.
11405 * testsuite/libgomp.c++/target-1.C: Remove.
11406 * testsuite/libgomp.c++/target-3.C: Remove.
11407 * testsuite/libgomp.c++/target-4.C: Remove.
11408 * testsuite/libgomp.c++/target-5.C: Remove.
11409 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
11410 * testsuite/libgomp.c++/taskloop-1.C: Remove.
11411 * testsuite/libgomp.c++/taskloop-2.C: Remove.
11412 * testsuite/libgomp.c++/taskloop-3.C: Remove.
11413 * testsuite/libgomp.c++/taskloop-4.C: Remove.
11414 * testsuite/libgomp.c++/udr-9.C: Remove.
11415 * testsuite/libgomp.c++/for-10.C: Remove.
11416 * testsuite/libgomp.c++/for-11.C: Remove.
11417 * testsuite/libgomp.c++/for-12.C: Remove.
11418 * testsuite/libgomp.c++/for-13.C: Remove.
11419 * testsuite/libgomp.c++/for-14.C: Remove.
11420 * testsuite/libgomp.c++/for-9.C: Remove.
11421 * testsuite/libgomp.c/atomic-18.c: Move ...
11422 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
11423 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
11424 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
11425 * testsuite/libgomp.c/loop-13.c: Move ...
11426 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
11427 * testsuite/libgomp.c/loop-14.c: Move ...
11428 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
11429 * testsuite/libgomp.c/loop-15.c: Remove.
11430 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
11431 * testsuite/libgomp.c/monotonic-1.c: Move ...
11432 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
11433 * testsuite/libgomp.c/monotonic-2.c: Move ...
11434 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
11435 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
11436 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
11437 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
11438 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
11439 * testsuite/libgomp.c/ordered-4.c: Move ...
11440 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
11441 * testsuite/libgomp.c/pr45784.c: Move ...
11442 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
11443 * testsuite/libgomp.c/pr64824.c: Move ...
11444 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
11445 * testsuite/libgomp.c/pr64868.c: Move ...
11446 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
11447 * testsuite/libgomp.c/pr66199-1.c: Move ...
11448 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
11449 * testsuite/libgomp.c/pr66199-2.c: Move ...
11450 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
11451 * testsuite/libgomp.c/pr66199-3.c: Move ...
11452 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
11453 * testsuite/libgomp.c/pr66199-4.c: Move ...
11454 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
11455 * testsuite/libgomp.c/pr66199-5.c: Move ...
11456 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
11457 * testsuite/libgomp.c/pr66199-6.c: Move ...
11458 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
11459 * testsuite/libgomp.c/pr66199-7.c: Move ...
11460 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
11461 * testsuite/libgomp.c/pr66199-8.c: Move ...
11462 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
11463 * testsuite/libgomp.c/pr66199-9.c: Move ...
11464 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
11465 * testsuite/libgomp.c/pr69389.c: Move ...
11466 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
11467 * testsuite/libgomp.c/simd-14.c: Move ...
11468 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
11469 * testsuite/libgomp.c/simd-15.c: Move ...
11470 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
11471 * testsuite/libgomp.c/simd-16.c: Move ...
11472 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
11473 * testsuite/libgomp.c/simd-17.c: Move ...
11474 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
11475 * testsuite/libgomp.c/target-1.c: Move ...
11476 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
11477 * testsuite/libgomp.c/target-10.c: Move ...
11478 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
11479 * testsuite/libgomp.c/target-13.c: Move ...
11480 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
11481 * testsuite/libgomp.c/target-2.c: Move ...
11482 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
11483 * testsuite/libgomp.c/taskgroup-1.c: Move ...
11484 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
11485 * testsuite/libgomp.c/taskloop-1.c: Move ...
11486 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
11487 * testsuite/libgomp.c/taskloop-2.c: Move ...
11488 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
11489 * testsuite/libgomp.c/taskloop-3.c: Move ...
11490 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
11491 * testsuite/libgomp.c/taskloop-4.c: Move ...
11492 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
11493 * testsuite/libgomp.c/udr-1.c: Move ...
11494 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
11495 * testsuite/libgomp.c/for-1.c: Move ...
11496 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
11497 * testsuite/libgomp.c/for-1.h: Move ...
11498 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
11499 * testsuite/libgomp.c/for-2.c: Move ...
11500 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
11501 * testsuite/libgomp.c/for-2.h: Move ...
11502 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
11503 * testsuite/libgomp.c/for-3.c: Move ...
11504 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
11505 * testsuite/libgomp.c/for-4.c: Move ...
11506 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
11507 * testsuite/libgomp.c/for-5.c: Move ...
11508 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
11509 * testsuite/libgomp.c/for-6.c: Move ...
11510 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
11511
1f62d637
TV
115122018-05-02 Tom de Vries <tom@codesourcery.com>
11513
11514 PR libgomp/82428
11515 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
11516 __builtin_goacc_parlevel_{id,size}.
11517 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
11518 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
11519 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
11520 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
11521 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
11522 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
11523 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
11524 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
11525 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
11526 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
11527 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
11528 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
11529 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
11530 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
11531 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
11532 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
11533 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
11534 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
11535 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
11536 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
11537 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
11538 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
11539 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
11540
9220b511
TV
115412018-05-02 Tom de Vries <tom@codesourcery.com>
11542
11543 PR testsuite/85106
11544 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
11545
6c3c13c1
TV
115462018-05-02 Tom de Vries <tom@codesourcery.com>
11547
11548 PR testsuite/85106
11549 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
11550
8d70b61e
JB
115512018-04-29 Julian Brown <julian@codesourcery.com>
11552 Tom de Vries <tom@codesourcery.com>
11553
11554 PR testsuite/85527
11555 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
11556 arbitrary order for iterations of atomic subtract check.
11557
4a57a4b6
TV
115582018-04-28 Tom de Vries <tom@codesourcery.com>
11559
11560 PR testsuite/85527
11561 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
11562 atomic capture results obtained in parallel loop to an array, instead of
11563 to a scalar.
11564
df36a3d3
TV
115652018-04-26 Tom de Vries <tom@codesourcery.com>
11566
11567 PR libgomp/84020
11568 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
11569 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
11570 (process_GOMP_NVPTX_JIT): New function.
11571 (link_ptx): Use process_GOMP_NVPTX_JIT.
11572
d160ae78
RB
115732018-04-26 Richard Biener <rguenther@suse.de>
11574 Tom de Vries <tom@codesourcery.com>
11575
11576 PR lto/85422
11577 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
11578
ca9dc642
TV
115792018-04-26 Tom de Vries <tom@codesourcery.com>
11580
11581 PR target/85519
11582 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
11583 recursion depth from 25 to 23.
11584 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
11585
7b47ecf2
L
115862018-04-24 H.J. Lu <hongjiu.lu@intel.com>
11587
11588 * configure: Regenerated.
11589
e91eba31
NS
115902018-04-20 Nathan Sidwell <nathan@codesourcery.com>
11591 Tom de Vries <tom@codesourcery.com>
11592
11593 PR target/85445
11594 * testsuite/libgomp.oacc-c++/ref-1.C: New.
11595
6e0d40b6
TS
115962018-04-19 Thomas Schwinge <thomas@codesourcery.com>
11597
11598 PR libgomp/85463
11599 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
11600 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
11601 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
11602 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
11603 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
11604 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
11605
11606 PR libfortran/85166
11607 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
11608 abort".
11609 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11610
a0e1df88
JJ
116112018-04-19 Jakub Jelinek <jakub@redhat.com>
11612
11613 * configure: Regenerated.
11614
001ddaa8
DM
116152018-04-18 David Malcolm <dmalcolm@redhat.com>
11616
11617 PR jit/85384
11618 * configure: Regenerate.
11619
05e0af43
CP
116202018-04-16 Cesar Philippidis <cesar@codesourcery.com>
11621 Tom de Vries <tom@codesourcery.com>
11622
11623 PR middle-end/84955
11624 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11625 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11626
bc436e10
TK
116272018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
11628
11629 PR fortran/83064
11630 PR testsuite/85346
11631 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
11632 test from gfortran.dg to here.
11633
ffb164c7
JJ
116342018-04-12 Cesar Philippidis <cesar@codesourcery.com>
11635
11636 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
11637 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
11638
116392018-04-12 Cesar Philippidis <cesar@codesourcery.com>
11640
11641 PR middle-end/84955
11642 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11643 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11644
2ba16fd2
TV
116452018-04-05 Tom de Vries <tom@codesourcery.com>
11646
11647 PR target/85204
11648 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
11649
46dbeb40
TV
116502018-03-26 Tom de Vries <tom@codesourcery.com>
11651
11652 PR tree-optimization/85063
11653 * testsuite/libgomp.c/switch-conversion-2.c: New test.
11654 * testsuite/libgomp.c/switch-conversion.c: New test.
11655 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
11656 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
11657
bfc24e32
TK
116582018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
11659
11660 PR fortran/84381
11661 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
11662 call abort by STOP n.
11663 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
11664 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
11665 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
11666 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
11667 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
11668 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
11669 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
11670 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
11671 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
11672 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
11673 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
11674 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
11675 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
11676 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
11677 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
11678 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
11679 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
11680 * testsuite/libgomp.fortran/associate1.f90: Likewise.
11681 * testsuite/libgomp.fortran/associate2.f90: Likewise.
11682 * testsuite/libgomp.fortran/associate3.f90: Likewise.
11683 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
11684 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
11685 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
11686 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
11687 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
11688 * testsuite/libgomp.fortran/character1.f90: Likewise.
11689 * testsuite/libgomp.fortran/character2.f90: Likewise.
11690 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
11691 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
11692 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
11693 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
11694 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
11695 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
11696 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
11697 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
11698 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
11699 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
11700 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
11701 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
11702 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
11703 * testsuite/libgomp.fortran/do1.f90: Likewise.
11704 * testsuite/libgomp.fortran/do2.f90: Likewise.
11705 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
11706 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
11707 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
11708 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
11709 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
11710 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
11711 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
11712 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
11713 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
11714 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
11715 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
11716 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
11717 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
11718 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
11719 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
11720 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
11721 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
11722 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
11723 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
11724 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
11725 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
11726 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
11727 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
11728 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
11729 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
11730 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
11731 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
11732 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
11733 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
11734 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
11735 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
11736 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
11737 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
11738 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
11739 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
11740 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
11741 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
11742 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
11743 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
11744 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
11745 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
11746 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
11747 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
11748 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
11749 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
11750 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
11751 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
11752 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
11753 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
11754 * testsuite/libgomp.fortran/lib1.f90: Likewise.
11755 * testsuite/libgomp.fortran/lib2.f: Likewise.
11756 * testsuite/libgomp.fortran/lib3.f: Likewise.
11757 * testsuite/libgomp.fortran/lib4.f90: Likewise.
11758 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
11759 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
11760 * testsuite/libgomp.fortran/nested1.f90: Likewise.
11761 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
11762 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
11763 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
11764 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
11765 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
11766 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
11767 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
11768 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
11769 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
11770 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
11771 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
11772 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
11773 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
11774 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
11775 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
11776 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
11777 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
11778 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
11779 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
11780 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
11781 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
11782 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
11783 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
11784 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
11785 * testsuite/libgomp.fortran/pr25162.f: Likewise.
11786 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
11787 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
11788 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
11789 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
11790 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
11791 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
11792 * testsuite/libgomp.fortran/pr28390.f: Likewise.
11793 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
11794 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
11795 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
11796 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
11797 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
11798 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
11799 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
11800 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
11801 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
11802 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
11803 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
11804 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
11805 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
11806 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
11807 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
11808 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
11809 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
11810 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
11811 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
11812 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
11813 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
11814 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
11815 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
11816 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
11817 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
11818 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
11819 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
11820 * testsuite/libgomp.fortran/reference1.f90: Likewise.
11821 * testsuite/libgomp.fortran/reference2.f90: Likewise.
11822 * testsuite/libgomp.fortran/retval1.f90: Likewise.
11823 * testsuite/libgomp.fortran/retval2.f90: Likewise.
11824 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
11825 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
11826 * testsuite/libgomp.fortran/simd1.f90: Likewise.
11827 * testsuite/libgomp.fortran/simd2.f90: Likewise.
11828 * testsuite/libgomp.fortran/simd3.f90: Likewise.
11829 * testsuite/libgomp.fortran/simd4.f90: Likewise.
11830 * testsuite/libgomp.fortran/simd5.f90: Likewise.
11831 * testsuite/libgomp.fortran/simd6.f90: Likewise.
11832 * testsuite/libgomp.fortran/simd7.f90: Likewise.
11833 * testsuite/libgomp.fortran/stack.f90: Likewise.
11834 * testsuite/libgomp.fortran/strassen.f90: Likewise.
11835 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
11836 * testsuite/libgomp.fortran/tabs2.f: Likewise.
11837 * testsuite/libgomp.fortran/target1.f90: Likewise.
11838 * testsuite/libgomp.fortran/target2.f90: Likewise.
11839 * testsuite/libgomp.fortran/target3.f90: Likewise.
11840 * testsuite/libgomp.fortran/target4.f90: Likewise.
11841 * testsuite/libgomp.fortran/target5.f90: Likewise.
11842 * testsuite/libgomp.fortran/target6.f90: Likewise.
11843 * testsuite/libgomp.fortran/target7.f90: Likewise.
11844 * testsuite/libgomp.fortran/target8.f90: Likewise.
11845 * testsuite/libgomp.fortran/task1.f90: Likewise.
11846 * testsuite/libgomp.fortran/task2.f90: Likewise.
11847 * testsuite/libgomp.fortran/task3.f90: Likewise.
11848 * testsuite/libgomp.fortran/task4.f90: Likewise.
11849 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
11850 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
11851 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
11852 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
11853 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
11854 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
11855 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
11856 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
11857 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
11858 * testsuite/libgomp.fortran/udr1.f90: Likewise.
11859 * testsuite/libgomp.fortran/udr10.f90: Likewise.
11860 * testsuite/libgomp.fortran/udr11.f90: Likewise.
11861 * testsuite/libgomp.fortran/udr12.f90: Likewise.
11862 * testsuite/libgomp.fortran/udr13.f90: Likewise.
11863 * testsuite/libgomp.fortran/udr14.f90: Likewise.
11864 * testsuite/libgomp.fortran/udr15.f90: Likewise.
11865 * testsuite/libgomp.fortran/udr2.f90: Likewise.
11866 * testsuite/libgomp.fortran/udr3.f90: Likewise.
11867 * testsuite/libgomp.fortran/udr4.f90: Likewise.
11868 * testsuite/libgomp.fortran/udr5.f90: Likewise.
11869 * testsuite/libgomp.fortran/udr6.f90: Likewise.
11870 * testsuite/libgomp.fortran/udr7.f90: Likewise.
11871 * testsuite/libgomp.fortran/udr8.f90: Likewise.
11872 * testsuite/libgomp.fortran/udr9.f90: Likewise.
11873 * testsuite/libgomp.fortran/vla1.f90: Likewise.
11874 * testsuite/libgomp.fortran/vla2.f90: Likewise.
11875 * testsuite/libgomp.fortran/vla3.f90: Likewise.
11876 * testsuite/libgomp.fortran/vla4.f90: Likewise.
11877 * testsuite/libgomp.fortran/vla5.f90: Likewise.
11878 * testsuite/libgomp.fortran/vla6.f90: Likewise.
11879 * testsuite/libgomp.fortran/vla7.f90: Likewise.
11880 * testsuite/libgomp.fortran/vla8.f90: Likewise.
11881 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
11882 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
11883 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
11884 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11885 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
11886 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
11887 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
11888 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
11889 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
11890 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
11891 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
11892 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
11893 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
11894 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
11895 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
11896 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
11897 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
11898 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
11899 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
11900 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
11901 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
11902 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
11903 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
11904 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
11905 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
11906 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11907 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11908 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
11909 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11910 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
11911 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
11912 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11913 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11914 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11915 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11916 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11917 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
11918 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
11919 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
11920 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
11921 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
11922 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
11923 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
11924 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
11925 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
11926 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
11927 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
11928 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
11929 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
11930 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
11931 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
11932 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
11933 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
11934 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11935 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
11936 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
11937 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
11938 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
11939 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
11940 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
11941 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
11942 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
11943 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
11944 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
11945 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
11946 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
11947 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
11948 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
11949 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
11950 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
11951 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
11952 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
11953 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
11954 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
11955 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
11956 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
11957 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
11958 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11959 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11960 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11961 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
11962 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11963 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
11964 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
11965 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
11966 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
11967 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
11968 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
11969 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
11970 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
11971 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
11972 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
11973 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
11974 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
11975
79cf14ae
RB
119762018-03-20 Richard Biener <rguenther@suse.de>
11977
11978 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
11979 parallelizable loop.
11980
14e335ed
IT
119812018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
11982
11983 PR target/84148
11984 * configure: Regenerate.
11985
83d9be55
JJ
119862018-02-16 Jakub Jelinek <jakub@redhat.com>
11987
11988 PR fortran/84418
11989 * libgomp.fortran/pr84418-1.f90: New test.
11990 * libgomp.fortran/pr84418-2.f90: New test.
11991
d1fe6124
JJ
119922018-02-14 Jakub Jelinek <jakub@redhat.com>
11993
11994 PR fortran/84313
11995 * testsuite/libgomp.fortran/threadprivate4.f90: Add
11996 -std=f2003 -fall-intrinsics into dg-additional-options.
11997
3d224921
MJ
119982018-02-08 Martin Jambor <mjambor@suse.cz>
11999
12000 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
12001 clonable.
12002
c7c30edd
MJ
120032018-02-08 Martin Jambor <mjambor@suse.cz>
12004
12005 * testsuite/libgomp.hsa.c/staticvar.c: New test.
12006
f320fdfd
RO
120072018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12008
12009 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
12010 [__cplusplus]: Declare extern "C".
12011
c31bc4ac
TV
120122018-02-07 Tom de Vries <tom@codesourcery.com>
12013
12014 PR libgomp/84217
12015 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
12016
99ae7ce5
CS
120172018-01-29 Christoph Spiel <cspiel@freenet.de>
12018 Jakub Jelinek <jakub@redhat.com>
12019
12020 PR libgomp/84096
12021 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
12022 instead of omp_lock_t.
12023
e77a1236
TV
120242018-01-25 Tom de Vries <tom@codesourcery.com>
12025
12026 PR target/84028
12027 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
12028
3dede32b
TV
120292018-01-24 Tom de Vries <tom@codesourcery.com>
12030
12031 PR target/83589
12032 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
12033
be606483
TV
120342018-01-24 Tom de Vries <tom@codesourcery.com>
12035
12036 PR target/81352
12037 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
12038
8c8e9a6b
TV
120392018-01-19 Tom de Vries <tom@codesourcery.com>
12040 Cesar Philippidis <cesar@codesourcery.com>
12041
12042 PR target/83920
12043 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
12044 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
12045
65e6aea3
JJ
120462018-01-03 Jakub Jelinek <jakub@redhat.com>
12047
85ec4feb
JJ
12048 Update copyright years.
12049
65e6aea3
JJ
12050 * libgomp.texi: Bump @copying's copyright year.
12051
60bf575c
TV
120522017-12-30 Tom de Vries <tom@codesourcery.com>
12053
12054 PR libgomp/83046
12055 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
12056 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
12057
7ec16b79
TV
120582017-12-27 Tom de Vries <tom@codesourcery.com>
12059
12060 PR c++/83046
12061 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
12062 (test_nonstatic): Fix return type to workaround PR83046.
12063
ac550b9a
JJ
120642017-12-05 Jakub Jelinek <jakub@redhat.com>
12065
12066 PR testsuite/83281
12067 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
12068 j suffix instead of i.
12069 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
12070 Likewise.
12071
ebdc83f0
CP
120722017-12-01 Cesar Philippidis <cesar@codesourcery.com>
12073
12074 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
12075 call to acc_wait (1).
12076
3b3e6283
JJ
120772017-11-24 Jakub Jelinek <jakub@redhat.com>
12078
12079 PR fortran/81304
12080 * testsuite/libgomp.fortran/pr81304.f90: New test.
12081
3b575376
JJ
120822017-11-23 Jakub Jelinek <jakub@redhat.com>
12083
12084 PR fortran/81841
12085 * libgomp.fortran/pr81841.f90: New test.
12086
b13547d8
JJ
120872017-11-22 Jakub Jelinek <jakub@redhat.com>
12088
12089 PR libgomp/83106
12090 * target.c (gomp_target_init): Compute lengths just once and
12091 use them in both malloc size and subsequent copying.
12092
efe33ced
IT
120932017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
12094
12095 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
12096 * acinclude.m4: Add cet.m4.
12097 * configure: Regenerate.
12098 * Makefile.in: Likewise.
12099 * testsuite/Makefile.in: Likewise.
12100
a7cf2612
TV
121012017-11-15 Tom de Vries <tom@codesourcery.com>
12102
12103 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
12104 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
12105 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
12106 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
12107 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
12108 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
12109
dde76623
TV
121102017-11-14 Tom de Vries <tom@codesourcery.com>
12111
12112 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
12113 non-nvidia devices.
12114
4dbeb716
JJ
121152017-11-07 Jakub Jelinek <jakub@redhat.com>
12116
12117 PR c++/82835
12118 * testsuite/libgomp.c++/pr82835.C: New test.
12119
454f8b2b
ML
121202017-11-06 Martin Liska <mliska@suse.cz>
12121
12122 * testsuite/libgomp.c++/loop-2.C: Return a value
12123 for functions with non-void return type, or change type to void,
12124 or add -Wno-return-type for test.
12125 * testsuite/libgomp.c++/loop-4.C: Likewise.
12126 * testsuite/libgomp.c++/parallel-1.C: Likewise.
12127 * testsuite/libgomp.c++/shared-1.C: Likewise.
12128 * testsuite/libgomp.c++/single-1.C: Likewise.
12129 * testsuite/libgomp.c++/single-2.C: Likewise.
12130
12e9c8ce
TV
121312017-10-31 Tom de Vries <tom@codesourcery.com>
12132
12133 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
12134 "do {} while (false)".
12135 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
12136 after HSA_DEBUG call.
12137
7324369a
JJ
121382017-10-28 Jakub Jelinek <jakub@redhat.com>
12139
12140 * target.c (struct gomp_coalesce_buf): New type.
12141 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
12142 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
12143 (gomp_copy_host2dev): Add CBUF argument, if copying into
12144 the cached ranges, memcpy into buffer instead of copying
12145 into device.
12146 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
12147 Add CBUF argument, pass it through to other calls.
12148 (gomp_map_vars): Aggregate copies from host to device if small enough
12149 and with small enough gaps in between into memcpy into a buffer and
12150 fewer host to device copies from the buffer.
12151 (gomp_update): Adjust gomp_copy_host2dev caller.
12152
933ab0e6
TS
121532017-10-17 Thomas Schwinge <thomas@codesourcery.com>
12154
12155 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
12156 run" directive.
12157 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
12158 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
12159 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
12160 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
12161
92d5d01a
TV
121622017-10-16 Tom de Vries <tom@codesourcery.com>
12163
12164 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
12165 openacc_nvidia_accel_selected.
12166 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
12167 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
12168 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
12169 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
12170 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
12171 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
12172 openacc_nvidia_accel_selected. Skip for shared memory device.
12173 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
12174 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
12175
191411e4
MJ
121762017-10-09 Martin Jambor <mjambor@suse.cz>
12177
12178 PR hsa/82416
12179 * testsuite/libgomp.hsa.c/pr82416.c: New test.
12180
e923330e
TV
121812017-10-07 Tom de Vries <tom@codesourcery.com>
12182
12183 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
12184 Remove acc_device_nvidia references.
12185 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
12186 Same.
12187
8fe3ed4c
TV
121882017-10-05 Tom de Vries <tom@codesourcery.com>
12189
12190 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
12191 vector_length(32) clause from acc parallel directive.
12192 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
12193
26596ee5
TV
121942017-10-04 Tom de Vries <tom@codesourcery.com>
12195
12196 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
12197 (main): Reduce sum of arr elements. Assert that hres is exactly
12198 representable in 32-bit floating point.
12199 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
12200 (main): Reduce sum of arr elements. Assert that hres and hmres are
12201 exactly representable in 32-bit floating point.
12202 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
12203
5c561fa9
TV
122042017-09-28 Tom de Vries <tom@codesourcery.com>
12205
12206 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
12207 setting.
12208 * testsuite/libgomp.c++/pr69393.C: Same.
12209 * testsuite/libgomp.c++/taskloop-1.C: Same.
12210 * testsuite/libgomp.c++/taskloop-3.C: Same.
12211 * testsuite/libgomp.c++/taskloop-4.C: Same.
12212 * testsuite/libgomp.c/for-4.c: Same.
12213 * testsuite/libgomp.c/pr66199-3.c: Same.
12214 * testsuite/libgomp.c/pr66199-4.c: Same.
12215 * testsuite/libgomp.c/pr66199-6.c: Same.
12216 * testsuite/libgomp.c/taskloop-1.c: Same.
12217 * testsuite/libgomp.c/taskloop-3.c: Same.
12218 * testsuite/libgomp.c/taskloop-4.c: Same.
12219 * testsuite/libgomp.fortran/aligned1.f03: Same.
12220 * testsuite/libgomp.fortran/condinc1.f: Same.
12221 * testsuite/libgomp.fortran/condinc3.f90: Same.
12222 * testsuite/libgomp.fortran/crayptr1.f90: Same.
12223 * testsuite/libgomp.fortran/crayptr2.f90: Same.
12224 * testsuite/libgomp.fortran/crayptr3.f90: Same.
12225 * testsuite/libgomp.fortran/omp_cond1.f: Same.
12226 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
12227 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
12228 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
12229 * testsuite/libgomp.fortran/recursion1.f90: Same.
12230 * testsuite/libgomp.fortran/target2.f90: Same.
12231 * testsuite/libgomp.fortran/target5.f90: Same.
12232 * testsuite/libgomp.fortran/task3.f90: Same.
12233
7d6206fe
TV
122342017-09-28 Tom de Vries <tom@codesourcery.com>
12235
12236 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
12237 vector_length(32) clause from acc parallel directive.
12238 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
12239
84c8627c
TV
122402017-09-27 Tom de Vries <tom@codesourcery.com>
12241
12242 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
12243 Remove acc_device_nvidia references.
12244
ebc6a85e
TV
122452017-09-16 Tom de Vries <tom@codesourcery.com>
12246
12247 PR c/81875
12248 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
12249
82419efb
TV
122502017-09-14 Tom de Vries <tom@codesourcery.com>
12251
12252 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
12253 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
12254 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
12255 * testsuite/libgomp.c/c.exp: Include test-cases from
12256 libgomp.c-c++-common.
12257 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
12258 files.
12259
8b586510
JJ
122602017-09-14 Jakub Jelinek <jakub@redhat.com>
12261
12262 PR c++/81314
12263 * testsuite/libgomp.c++/pr81314.C: New test.
12264
9651fbaf
GP
122652017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
12266
12267 * libgomp.texi (Top): www.openacc.org now uses https.
12268 (Enabling OpenACC): Ditto.
12269 (acc_get_num_devices): Ditto.
12270 (acc_set_device_type): Ditto.
12271 (acc_get_device_type): Ditto.
12272 (acc_set_device_num): Ditto.
12273 (acc_get_device_num): Ditto.
12274 (acc_async_test): Ditto.
12275 (acc_async_test_all): Ditto.
12276 (acc_wait): Ditto.
12277 (acc_wait_all): Ditto.
12278 (acc_wait_all_async): Ditto.
12279 (acc_wait_async): Ditto.
12280 (acc_init): Ditto.
12281 (acc_shutdown): Ditto.
12282 (acc_on_device): Ditto.
12283 (acc_malloc): Ditto.
12284 (acc_free): Ditto.
12285 (acc_copyin): Ditto.
12286 (acc_present_or_copyin): Ditto.
12287 (acc_create): Ditto.
12288 (acc_present_or_create): Ditto.
12289 (acc_copyout): Ditto.
12290 (acc_delete): Ditto.
12291 (acc_update_device): Ditto.
12292 (acc_update_self): Ditto.
12293 (acc_map_data): Ditto.
12294 (acc_unmap_data): Ditto.
12295 (acc_deviceptr): Ditto.
12296 (acc_hostptr): Ditto.
12297 (acc_is_present): Ditto.
12298 (acc_memcpy_to_device): Ditto.
12299 (acc_memcpy_from_device): Ditto.
12300 (acc_get_current_cuda_device): Ditto.
12301 (acc_get_current_cuda_context): Ditto.
12302 (acc_get_cuda_stream): Ditto.
12303 (acc_set_cuda_stream): Ditto.
12304 (ACC_DEVICE_TYPE): Ditto.
12305 (ACC_DEVICE_NUM): Ditto.
12306 (OpenACC Library Interoperability): Ditto.
12307
50aa16c3
JJ
123082017-08-09 Jakub Jelinek <jakub@redhat.com>
12309
12310 PR c/81687
12311 * testsuite/libgomp.c/pr81687-1.c: New test.
12312 * testsuite/libgomp.c/pr81687-2.c: New test.
12313
56b5041c
JJ
123142017-08-07 Jakub Jelinek <jakub@redhat.com>
12315
12316 PR c/69389
12317 * testsuite/libgomp.c/pr69389.c: New test.
12318 * testsuite/libgomp.c++/pr69389.C: New test.
12319
f4c222c0
TV
123202017-08-07 Tom de Vries <tom@codesourcery.com>
12321
12322 PR middle-end/78266
12323 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
12324 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
12325
a40ff0ae
JJ
123262017-07-27 Jakub Jelinek <jakub@redhat.com>
12327
12328 PR c/45784
12329 * testsuite/libgomp.c/pr45784.c: New test.
12330 * testsuite/libgomp.c++/pr45784.C: New test.
12331
3717fbe3
TV
123322017-07-19 Tom de Vries <tom@codesourcery.com>
12333
12334 * testsuite/libgomp.oacc-c/vec.c: New test.
12335
9607b014
TV
123362017-07-03 Tom de Vries <tom@codesourcery.com>
12337
12338 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
12339
dfb15f6b
TV
123402017-06-27 Tom de Vries <tom@codesourcery.com>
12341
12342 * plugin/plugin-nvptx.c (notify_var): New function.
12343 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
12344
22f1a037
TV
123452017-06-27 Tom de Vries <tom@codesourcery.com>
12346
12347 * env.c (parse_unsigned_long_1): Factor out of ...
12348 (parse_unsigned_long): ... here.
12349 (parse_int_1): Factor out of ...
12350 (parse_int): ... here.
12351 (parse_int_secure): New function.
12352 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
12353 * secure_getenv.h: Factor out of ...
12354 * plugin/plugin-hsa.c: ... here.
12355 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
12356
d54d1fc3
JJ
123572017-06-21 Jakub Jelinek <jakub@redhat.com>
12358
12359 PR c++/81130
12360 * testsuite/libgomp.c++/pr81130.C: New test.
12361
4f4b0ab8
RO
123622017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12363
12364 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
12365 default args.
12366 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
12367 dg-xfail-run-if default args.
12368
40ffd95f
BE
123692017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
12370
12371 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
12372 * testsuite/libgomp.c/pr39591-3.c: Likewise.
12373
01275e1e
JJ
123742017-05-30 Jakub Jelinek <jakub@redhat.com>
12375
12376 PR libgomp/80822
12377 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
12378 (gomp_affinity_init_level): Use it. Always analyze the core and thread
12379 sibling lists, depending on level just pick up what CPUs to put
12380 together into a place vs. whether add multiple ordered places.
12381
78672bd8
TS
123822017-05-24 Thomas Schwinge <thomas@codesourcery.com>
12383
7ce64403
TS
12384 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
12385 * libgomp.map (OACC_2.0.1): Add these.
12386 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
12387 for "acc_wait", and "acc_wait_all", respectively.
12388 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
12389 for "acc_wait", and "acc_wait_all", respectively.
12390 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
12391 * libgomp.texi (acc_wait, acc_wait_all): Update.
12392 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
12393 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
12394 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
12395
318686c2
TS
12396 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
12397 acc_present_or_copyin and acc_present_or_create procedures,
12398 respectively.
12399 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
12400 generally different variants of OpenACC Runtime Library functions.
12401 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
12402
a6745534
TS
12403 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
12404 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
12405
9b94fbc7
TS
12406 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
12407 of preprocessor definitions.
12408 * libgomp.h (strong_alias): Guard by "#ifdef
12409 HAVE_ATTRIBUTE_ALIAS".
12410 * oacc-mem.c: Provide "acc_pcreate" as alias for
12411 "acc_present_or_create", and "acc_pcopyin" as alias for
12412 "acc_present_or_copyin".
12413 * libgomp.map: New version "OACC_2.0.1".
12414 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
12415 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
12416 its content into...
12417 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
12418 Extend testing.
12419
78672bd8
TS
12420 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
12421 when disabling nvptx offloading.
12422
0c36d0d5
TS
124232017-05-23 Thomas Schwinge <thomas@codesourcery.com>
12424
fd71a9a2
TS
12425 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
12426 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
12427 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
12428
0c36d0d5
TS
12429 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
12430 * testsuite/lib/libgomp.exp
12431 (check_effective_target_openacc_nvidia_accel_configured): New
12432 proc.
12433 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
12434 (check_effective_target_c++): New procs.
12435 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
12436 (check_effective_target_c++): Likewise.
12437
c24783c4
JJ
124382017-05-22 Jakub Jelinek <jakub@redhat.com>
12439
655e5265
JJ
12440 PR middle-end/80809
12441 * testsuite/libgomp.c/pr80809-2.c: New test.
12442 * testsuite/libgomp.c/pr80809-3.c: New test.
12443
e9e2ef9f
JJ
12444 PR middle-end/80809
12445 * testsuite/libgomp.c/pr80809-1.c: New test.
12446
c24783c4
JJ
12447 PR middle-end/80853
12448 * testsuite/libgomp.c/pr80853.c: New test.
12449
0da2f96a
TS
124502017-05-19 Thomas Schwinge <thomas@codesourcery.com>
12451
7fd549d2
TS
12452 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
12453 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
12454 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
12455 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
12456 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
12457
0da2f96a
TS
12458 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
12459 Debug output for failure.
12460
62ffe920
RO
124612017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12462
12463 * testsuite/lib/libgomp.exp: Load scanlang.exp.
12464
f49215b1
JJ
124652017-04-27 Jakub Jelinek <jakub@redhat.com>
12466
12467 PR bootstrap/80531
12468 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
12469 bootstrap compare failures.
12470
2260d19d
AM
124712017-04-20 Alexander Monakov <amonakov@ispras.ru>
12472
12473 * testsuite/libgomp.c/target-36.c: New testcase.
12474
19929ba9
JJ
124752017-04-13 Jakub Jelinek <jakub@redhat.com>
12476
12477 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
12478 instead of char.
12479
fbc698e0
JJ
124802017-04-11 Jakub Jelinek <jakub@redhat.com>
12481
12482 PR libgomp/80394
12483 * testsuite/libgomp.c/pr80394.c: New test.
12484
c4060df4
JJ
124852017-04-04 Jakub Jelinek <jakub@redhat.com>
12486
12487 PR libgomp/79876
12488 * config/posix/thread-stacksize.h: New file.
12489 * config/darwin/thread-stacksize.h: New file.
12490 * config/nvptx/thread-stacksize.h: New file.
12491 * env.c: Include thread-stacksize.h.
12492 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
12493 instead of 0. Call pthread_attr_setstacksize even if
12494 GOMP_DEFAULT_STACKSIZE is non-zero.
12495
e02d868a
JJ
124962017-03-30 Jakub Jelinek <jakub@redhat.com>
12497
12498 * env.c (initialize_env): Initialize stacksize to 0.
12499
7ba8651e
CP
125002017-03-22 Cesar Philippidis <cesar@codesourcery.com>
12501
12502 PR c++/80029
12503 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
12504
eebc5e2d
JJ
125052017-03-08 Jakub Jelinek <jakub@redhat.com>
12506
12507 PR c/79940
12508 * testsuite/libgomp.c/pr79940.c: New test.
12509
1eb08f52
RO
125102017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12511
12512 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
12513 targets.
12514 Add __float128 options.
12515
b0f78ff3
JDA
125162017-02-11 John David Anglin <danglin@gcc.gnu.org>
12517
12518 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
12519 hppa*-*-* dg-skip-if directive.
12520
1bbe0d8f
JJ
125212017-02-09 Jakub Jelinek <jakub@redhat.com>
12522
12523 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
12524 dg-skip-if directive into a comment.
12525
02889d23
CLT
125262017-02-09 Nathan Sidwell <nathan@codesourcery.com>
12527 Chung-Lin Tang <cltang@codesourcery.com>
12528
12529 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
12530 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
12531 add additional case.
12532 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
12533 "openacc_nvidia_accel_selected".
12534 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
12535 Add num_workers(8) clause.
12536
5896a41d
JDA
125372017-02-08 John David Anglin <danglin@gcc.gnu.org>
12538
12539 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
12540 hppa*-*-*.
12541 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
12542 include complex.h on hppa*-*-hpux*.
12543 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
12544
345a8c17
TS
125452017-02-02 Thomas Schwinge <thomas@codesourcery.com>
12546
e70ab10d
TS
12547 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
12548
345a8c17
TS
12549 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
12550 GOMP_OFFLOAD_openacc_exec. Adjust all users.
12551 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
12552 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
12553 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
12554 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
12555 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
12556 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
12557 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
12558 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
12559
dced339c
TS
125602017-01-31 Thomas Schwinge <thomas@codesourcery.com>
12561
12562 * libgomp-plugin.h: #include <stdbool.h>.
12563 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
12564 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
12565 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
12566 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
12567 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
12568 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
12569 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
12570 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
12571 (GOMP_OFFLOAD_openacc_register_async_cleanup)
12572 (GOMP_OFFLOAD_openacc_async_test)
12573 (GOMP_OFFLOAD_openacc_async_test_all)
12574 (GOMP_OFFLOAD_openacc_async_wait)
12575 (GOMP_OFFLOAD_openacc_async_wait_async)
12576 (GOMP_OFFLOAD_openacc_async_wait_all)
12577 (GOMP_OFFLOAD_openacc_async_wait_all_async)
12578 (GOMP_OFFLOAD_openacc_async_set_async)
12579 (GOMP_OFFLOAD_openacc_create_thread_data)
12580 (GOMP_OFFLOAD_openacc_destroy_thread_data)
12581 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
12582 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
12583 (GOMP_OFFLOAD_openacc_get_cuda_stream)
12584 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
12585 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
12586 these.
12587 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
12588 (GOMP_OFFLOAD_unload_image): Fix argument types.
12589
23749904
JJ
125902017-01-26 Jakub Jelinek <jakub@redhat.com>
12591
c1cadde1
JJ
12592 * testsuite/lib/libgomp.exp
12593 (check_effective_target_hsa_offloading_selected_nocache): Fix up
12594 check_compile invocation. Fix up removal of executable. Drop
12595 bogus "2>&1" argument.
12596
23749904
JJ
12597 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
12598 directive.
12599
126002017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
5fd1486c
PJ
12601 Martin Jambor <mjambor@suse.cz>
12602
12603 * plugin/hsa.h: Moved to top level include.
12604 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
12605
73aa401e
JJ
126062017-01-21 Jakub Jelinek <jakub@redhat.com>
12607
12608 PR other/79046
12609 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
12610 of cat to get version from BASE-VER file.
12611 * testsuite/Makefile.in: Regenerated.
12612
b32e85fa
JJ
126132017-01-19 Jakub Jelinek <jakub@redhat.com>
12614
12615 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
12616 for _WIN64.
12617
3c36aa6b
JJ
126182017-01-17 Jakub Jelinek <jakub@redhat.com>
12619
d190d5c0
JJ
12620 * plugin/hsa.h: Add GCC runtime library exception.
12621 * plugin/hsa_ext_finalize.h: Likewise.
12622
2393d337
JJ
12623 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
12624 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
12625 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
12626 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
12627 plugin/include/cuda as include dir and -ldl instead of -lcuda as
12628 library to link ptx plugin against.
12629 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
12630 (CUDA_CALLS): Define.
12631 (cuda_lib, cuda_lib_inited): New variables.
12632 (init_cuda_lib): New function.
12633 (CUDA_CALL_PREFIX): Define.
12634 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
12635 (CUDA_CALL): Use FN instead of (FN).
12636 (CUDA_CALL_NOCHECK): Define.
12637 (cuda_error, fini_streams_for_device, select_stream_for_async,
12638 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
12639 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
12640 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
12641 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
12642 CUDA_CALL_NOCHECK.
12643 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
12644 CUDA_CALL_NOCHECK.
12645 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
12646 Use CUDA_CALL_NOCHECK.
12647 * plugin/cuda/cuda.h: New file.
12648 * config.h.in: Regenerated.
12649 * configure: Regenerated.
12650
3c36aa6b
JJ
12651 PR other/79046
12652 * configure.ac: Add GCC_BASE_VER.
12653 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
12654 get version from BASE-VER file.
12655 * testsuite/Makefile.in: Regenerated.
12656 * configure: Regenerated.
12657 * Makefile.in: Regenerated.
12658
c508bc2d
FXC
126592017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12660
12661 PR libgomp/60670
12662 * Makefile.am: Make fincludedir multilib-aware.
12663 * Makefile.in: Regenerate.
12664
c1a9c369
JJ
126652017-01-01 Jakub Jelinek <jakub@redhat.com>
12666
cbe34bb5
JJ
12667 Update copyright years.
12668
c1a9c369
JJ
12669 * libgomp.texi: Bump @copying's copyright year.
12670
e7a7f4be
SH
126712016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
12672
12673 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
12674 pthread_spinlock_t instead of gomp_mutex_t lock.
12675 (gomp_get_thread_pool): Likewise.
12676 (gomp_release_thread_pool): Likewise.
12677 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
12678 Likewise.
12679
d313d52c
SH
126802016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
12681
12682 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
12683 thread pool in case nthreads == 1.
12684
630e3c3a
AM
126852016-11-30 Alexander Monakov <amonakov@ispras.ru>
12686
12687 * config/nvptx/env.c: Delete.
12688 * icv.c: Move definitions of ICV variables back ...
12689 * env.c: ...here. Do not compile environment-related functionality if
12690 LIBGOMP_OFFLOADED_ONLY is set.
12691
9e38af5c
AM
126922016-11-30 Alexander Monakov <amonakov@ispras.ru>
12693
12694 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
12695 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
12696 * configure: Regenerate.
12697 * config.h.in: Likewise.
12698
f96b7f1f
AM
126992016-11-30 Alexander Monakov <amonakov@ispras.ru>
12700
12701 * Makefile.in: Regenerate with automake-1.11.6.
12702 * aclocal.m4: Likewise.
12703 * configure: Likewise.
12704 * testsuite/Makefile.in: Likewise.
12705
6a6951b1
AM
127062016-11-28 Alexander Monakov <amonakov@ispras.ru>
12707
12708 * config/nvptx/critical.c: Delete to use generic implementation.
12709
c7ac071f
JH
127102016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
12711
12712 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
12713 ../../affinity.c as fallback.
12714 * config/nvptx/affinity.c: Delete to use fallback implementation.
12715
6103184e 127162016-11-23 Alexander Monakov <amonakov@ispras.ru>
92a285c1 12717 Jakub Jelinek <jakub@redhat.com>
6103184e
AM
12718 Dmitry Melnik <dm@ispras.ru>
12719
12720 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
12721 * Makefile.in. Regenerate.
12722 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
12723 (LIBGOMP_USE_PTHREADS): ...here; new define.
12724 * configure: Regenerate.
12725 * config.h.in: Likewise.
12726 * config/posix/affinity.c: Move to...
12727 * affinity.c: ...here (new file). Guard use of Pthreads-specific
12728 interface by LIBGOMP_USE_PTHREADS.
12729 * critical.c: Split out GOMP_atomic_{start,end} into...
12730 * atomic.c: ...here (new file).
12731 * env.c: Split out ICV definitions into...
12732 * icv.c: ...here (new file) and...
12733 * icv-device.c: ...here. New file.
12734 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
12735 (gomp_destroy_lock_30): Ditto.
12736 (gomp_set_lock_30): Ditto.
12737 (gomp_unset_lock_30): Ditto.
12738 (gomp_test_lock_30): Ditto.
12739 (gomp_init_nest_lock_30): Ditto.
12740 (gomp_destroy_nest_lock_30): Ditto.
12741 (gomp_set_nest_lock_30): Ditto.
12742 (gomp_unset_nest_lock_30): Ditto.
12743 (gomp_test_nest_lock_30): Ditto.
12744 * lock.c: New.
12745 * config/nvptx/lock.c: New.
12746 * config/nvptx/bar.c: New.
12747 * config/nvptx/bar.h: New.
12748 * config/nvptx/doacross.h: New.
12749 * config/nvptx/error.c: New.
12750 * config/nvptx/icv-device.c: New.
12751 * config/nvptx/mutex.h: New.
12752 * config/nvptx/pool.h: New.
12753 * config/nvptx/proc.c: New.
12754 * config/nvptx/ptrlock.h: New.
12755 * config/nvptx/sem.h: New.
12756 * config/nvptx/simple-bar.h: New.
12757 * config/nvptx/target.c: New.
12758 * config/nvptx/task.c: New.
12759 * config/nvptx/team.c: New.
12760 * config/nvptx/time.c: New.
12761 * config/posix/simple-bar.h: New.
12762 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
12763 (gomp_num_teams_var): Declare.
12764 (struct gomp_thread_pool): Change threads_dock member to
12765 gomp_simple_barrier_t.
12766 [__nvptx__] (gomp_thread): New implementation.
12767 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
12768 (gomp_thread_destructor): Ditto.
12769 (gomp_init_thread_affinity): Ditto.
12770 * team.c: Guard uses of Pthreads-specific interfaces by
12771 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
12772 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
12773 * config/nvptx/alloc.c: Delete.
12774 * config/nvptx/barrier.c: Ditto.
12775 * config/nvptx/fortran.c: Ditto.
12776 * config/nvptx/iter.c: Ditto.
12777 * config/nvptx/iter_ull.c: Ditto.
12778 * config/nvptx/loop.c: Ditto.
12779 * config/nvptx/loop_ull.c: Ditto.
12780 * config/nvptx/ordered.c: Ditto.
12781 * config/nvptx/parallel.c: Ditto.
12782 * config/nvptx/priority_queue.c: Ditto.
12783 * config/nvptx/sections.c: Ditto.
12784 * config/nvptx/single.c: Ditto.
12785 * config/nvptx/splay-tree.c: Ditto.
12786 * config/nvptx/work.c: Ditto.
12787 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
12788 -foffload=-lgfortran in addition to -lgfortran.
12789 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
12790 * plugin/plugin-nvptx.c: Include <limits.h>.
12791 (struct targ_fn_descriptor): Add new fields.
12792 (struct ptx_device): Ditto. Set them...
12793 (nvptx_open_device): ...here.
12794 (nvptx_adjust_launch_bounds): New.
12795 (nvptx_host2dev): Allow NULL 'nvthd'.
12796 (nvptx_dev2host): Ditto.
12797 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
12798 (link_ptx): Adjust log sizes.
12799 (nvptx_host2dev): Allow NULL 'nvthd'.
12800 (nvptx_dev2host): Ditto.
12801 (nvptx_set_clocktick): New. Use it...
12802 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
12803 fields.
12804 (GOMP_OFFLOAD_dev2dev): New.
12805 (nvptx_adjust_launch_bounds): New.
12806 (nvptx_stacks_size): New.
12807 (nvptx_stacks_alloc): New.
12808 (nvptx_stacks_free): New.
12809 (GOMP_OFFLOAD_run): New.
12810 (GOMP_OFFLOAD_async_run): New (stub).
12811
56b1c60e
MJ
128122016-11-23 Martin Jambor <mjambor@suse.cz>
12813
12814 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
12815 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
12816 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
12817
b8d89b03 128182016-11-23 Martin Liska <mliska@suse.cz>
92a285c1 12819 Martin Jambor <mjambor@suse.cz>
b8d89b03
ML
12820
12821 * plugin/hsa.h: New file.
12822 * plugin/hsa_ext_finalize.h: New file.
12823 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
12824 header file unistd.h, and functions secure_getenv, __secure_getenv,
12825 getuid, geteuid, getgid and getegid.
12826 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
12827 -D_GNU_SOURCE.
12828 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
12829 Handle various cases of secure_getenv presence, add an implementation
12830 when we can test effective UID and GID.
12831 (struct hsa_runtime_fn_info): New structure.
12832 (hsa_runtime_fn_info hsa_fns): New variable.
12833 (hsa_runtime_lib): Likewise.
12834 (support_cpu_devices): Likewise.
12835 (init_enviroment_variables): Load newly introduced ENV
12836 variables.
12837 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
12838 (hsa_fatal): Likewise.
12839 (DLSYM_FN): New macro.
12840 (init_hsa_runtime_functions): New function.
12841 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
12842 structure. Depending on environment, also allow CPU devices.
12843 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
12844 (get_kernarg_memory_region): Likewise.
12845 (GOMP_OFFLOAD_init_device): Likewise.
12846 (destroy_hsa_program): Likewise.
12847 (init_basic_kernel_info): New function.
12848 (GOMP_OFFLOAD_load_image): Use it.
12849 (create_and_finalize_hsa_program): Call hsa run-time functions via
12850 hsa_fns structure.
12851 (create_single_kernel_dispatch): Likewise.
12852 (release_kernel_dispatch): Likewise.
12853 (init_single_kernel): Likewise.
12854 (parse_target_attributes): Allow up multiple HSA grid dimensions.
12855 (get_group_size): New function.
12856 (run_kernel): Likewise.
12857 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
12858 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
12859 structure.
12860 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
12861 * testsuite/libgomp-test-support.exp.in: Likewise.
12862 * Makefile.in: Regenerated.
12863 * aclocal.m4: Likewise.
12864 * config.h.in: Likewise.
12865 * configure: Likewise.
12866 * testsuite/Makefile.in: Likewise.
12867
18d2ada8 128682016-11-15 Martin Jambor <mjambor@suse.cz>
92a285c1 12869 Alexander Monakov <amonakov@ispras.ru>
18d2ada8
MJ
12870
12871 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
12872 mapping clauses to target constructs.
12873 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
12874
84c1b9d3
MK
128752016-11-15 Matthias Klose <doko@ubuntu.com>
12876
12877 * configure: Regenerate.
12878
b4c3a85b
JJ
128792016-11-10 Jakub Jelinek <jakub@redhat.com>
12880
8ebd1b31
JJ
12881 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
12882 * omp_lib.h.in (openmp_version): Likewise.
12883 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
12884 of 201307.
12885 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12886
b4c3a85b
JJ
12887 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
12888 (fib_wrapper): Add map(from: x) clause.
12889 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
12890 (e_53_2): Likewise.
12891 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
12892 (accum): Add map(tmp) clause.
12893 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
12894 (accum): Add map(tofrom: tmp) clause.
12895 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
12896 (gramSchmidt): Likewise.
12897 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
12898 map(tofrom: sum) clause.
12899 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
12900 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
12901 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
12902 only allowed on the loop iterator.
12903 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
12904 * testsuite/libgomp.fortran/taskloop2.f90: New test.
12905 * testsuite/libgomp.fortran/taskloop4.f90: New test.
12906 * testsuite/libgomp.fortran/doacross1.f90: New test.
12907 * testsuite/libgomp.fortran/doacross3.f90: New test.
12908 * testsuite/libgomp.fortran/taskloop1.f90: New test.
12909 * testsuite/libgomp.fortran/taskloop3.f90: New test.
12910 * testsuite/libgomp.fortran/doacross2.f90: New test.
12911 * testsuite/libgomp.c/doacross-1.c (main): Add missing
12912 #pragma omp atomic read.
12913 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
12914 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
12915
6668eb45
CP
129162016-11-02 Cesar Philippidis <cesar@codesourcery.com>
12917 Nathan Sidwell <nathan@acm.org>
12918
12919 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
12920 to determine default geometry.
12921 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
12922 dimension.
12923
f10e37a1
JJ
129242016-11-01 Jakub Jelinek <jakub@redhat.com>
12925
12926 * hashtab.h: Use standard GPLv3 with runtime exception
12927 boilerplate.
12928
015c7760
AH
129292016-10-27 Aldy Hernandez <aldyh@redhat.com>
12930
12931 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
12932 size when allocating new thread.
12933
20a1e5b8
MP
129342016-09-14 Marek Polacek <polacek@redhat.com>
12935
12936 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
12937
1cad9284
JJ
129382016-08-19 Jakub Jelinek <jakub@redhat.com>
12939
12940 PR fortran/71014
12941 * testsuite/libgomp.fortran/pr71014.f90: New test.
12942
2c71d454
CLT
129432016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
12944
12945 PR middle-end/70895
12946 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
12947 firstprivate clauses.
12948 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
12949 copy clauses.
12950 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
12951 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
12952 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
12953 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
12954 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
12955 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
12956 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12957 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
12958 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12959 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12960 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12961 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
12962
7c713714
CLT
129632016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
12964
12965 PR fortran/70598
12966 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
12967
5c934396
JJ
129682016-08-08 Jakub Jelinek <jakub@redhat.com>
12969
12970 PR c++/58706
12971 * testsuite/libgomp.c++/pr58706.C: New test.
12972
9ef64248
TS
129732016-08-04 Thomas Schwinge <thomas@codesourcery.com>
12974
bbc79c0e
TS
12975 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
12976 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
12977 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
12978 Likewise.
12979 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
12980 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
12981 Likewise.
12982 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
12983
9ef64248
TS
12984 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
12985 test, and don't hardcode -O0.
12986
c1311c86
NS
129872016-08-03 Nathan Sidwell <nathan@codesourcery.com>
12988
12989 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
12990
b1c9c068
CP
129912016-07-15 Cesar Philippidis <cesar@codesourcery.com>
12992
12993 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
12994 test.
12995
b4410f63
L
129962016-07-03 H.J. Lu <hongjiu.lu@intel.com>
12997
12998 PR middle-end/71734
12999 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
13000 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
13001
a8dbab92
JJ
130022016-07-01 Jakub Jelinek <jakub@redhat.com>
13003
13004 PR fortran/71717
13005 * testsuite/libgomp.fortran/associate3.f90: New test.
13006
9b6a8d0f
JJ
130072016-06-17 Jakub Jelinek <jakub@redhat.com>
13008
13009 * testsuite/libgomp.c++/target-21.C: New test.
13010
283635f9
JJ
130112016-06-16 Jakub Jelinek <jakub@redhat.com>
13012
13013 * testsuite/libgomp.c++/target-20.C: New test.
13014
27d6ba88
TS
130152016-06-10 Thomas Schwinge <thomas@codesourcery.com>
13016 Cesar Philippidis <cesar@codesourcery.com>
13017
13018 PR middle-end/71373
13019 * libgomp.oacc-c/nested-function-1.c: New file.
13020 * libgomp.oacc-c/nested-function-2.c: Likewise.
13021 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
13022 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
13023 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
13024
4b1ffdb1
TS
130252016-06-10 Thomas Schwinge <thomas@codesourcery.com>
13026
13027 PR c/71381
13028 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
13029 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
13030 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
13031
d821b794
CLT
130322016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
13033
13034 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
13035 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
13036
3616a8c5
CP
130372016-06-01 Cesar Philippidis <cesar@codesourcery.com>
13038
13039 PR c/70688
5eed9a88 13040 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
3616a8c5 13041
7211a097
JJ
130422016-05-26 Jakub Jelinek <jakub@redhat.com>
13043
13044 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
13045 instead of invalid schedule(static, 0).
13046 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
13047
b4557008
CLT
130482016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
13049
13050 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
13051 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
13052 parameter, use to set async stream around call to gomp_unmap_vars,
13053 call gomp_unmap_vars() with 'do_copyfrom' set to true.
13054 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
13055 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
13056 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
13057 (event_add): Add int parameter, initialize 'val' field when
13058 adding new ptx_event struct.
13059 (nvptx_evec): Adjust event_add() call arguments.
13060 (nvptx_host2dev): Likewise.
13061 (nvptx_dev2host): Likewise.
13062 (nvptx_wait_async): Likewise.
13063 (nvptx_wait_all_async): Likewise.
13064 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
13065 pass to event_add() call.
13066 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
13067 parameter.
13068 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
13069 call openacc.register_async_cleanup_func() hook.
13070 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
13071 * target.c (gomp_copy_from_async): Delete function.
13072 (gomp_map_vars): Remove async_refcount.
13073 (gomp_unmap_vars): Likewise.
13074 (gomp_load_image_to_device): Likewise.
13075 (omp_target_associate_ptr): Likewise.
13076 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
13077 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
13078 (gomp_copy_from_async): Remove.
13079
6ce13072
CLT
130802016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
13081
13082 * target.c (gomp_device_copy): New function.
13083 (gomp_copy_host2dev): Likewise.
13084 (gomp_copy_dev2host): Likewise.
13085 (gomp_free_device_memory): Likewise.
13086 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
13087 (gomp_map_pointer): Likewise.
13088 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
13089 NULL value from alloc_func plugin hook.
13090 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
13091 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
13092 (gomp_unmap_vars): Likewise.
13093 (gomp_update): Adjust to call gomp_copy_dev2host and
13094 gomp_copy_host2dev functions.
13095 (gomp_unload_image_from_device): Handle false value from
13096 unload_image_func plugin hook.
13097 (gomp_init_device): Handle false value from init_device_func
13098 plugin hook.
13099 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
13100 (omp_target_free): Adjust to call gomp_free_device_memory.
13101 (omp_target_memcpy): Handle return values from host2dev_func,
13102 dev2host_func, and dev2dev_func plugin hooks.
13103 (omp_target_memcpy_rect_worker): Likewise.
13104 (gomp_target_fini): Handle false value from fini_device_func
13105 plugin hook.
13106 * libgomp.h (struct gomp_device_descr): Adjust return type of
13107 init_device_func, fini_device_func, unload_image_func, free_func,
13108 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
13109 * oacc-init.c (acc_shutdown_1): Handle false value from
13110 fini_device_func plugin hook.
13111 * oacc-host.c (host_init_device): Change return type to bool.
13112 (host_fini_device): Likewise.
13113 (host_unload_image): Likewise.
13114 (host_free): Likewise.
13115 (host_dev2host): Likewise.
13116 (host_host2dev): Likewise.
13117 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
13118 (acc_memcpy_to_device): Likewise.
13119 (acc_memcpy_from_device): Likewise.
13120 (delete_copyout): Add libfnname parameter, handle free_func
13121 hook fatal error case.
13122 (acc_delete): Adjust delete_copyout call.
13123 (acc_copyout): Likewise.
13124 (update_dev_host): Move gomp_mutex_unlock to after
13125 host2dev/dev2host hook calls.
13126
13127 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
13128 to 'hsa_error_msg', for clarity.
13129 (hsa_fatal): Likewise.
13130 (hsa_error): New function.
13131 (init_hsa_context): Change return type to bool, adjust to return
13132 false on error.
13133 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
13134 return value.
13135 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
13136 return false on error.
13137 (get_agent_info): Adjust to return NULL on error.
13138 (destroy_hsa_program): Change return type to bool, adjust to
13139 return false on error.
13140 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
13141 (destroy_module): Change return type to bool, adjust to
13142 return false on error.
13143 (GOMP_OFFLOAD_unload_image): Likewise.
13144 (GOMP_OFFLOAD_fini_device): Likewise.
13145 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
13146 (GOMP_OFFLOAD_free): Change to return false when called.
13147 (GOMP_OFFLOAD_dev2host): Likewise.
13148 (GOMP_OFFLOAD_host2dev): Likewise.
13149 (GOMP_OFFLOAD_dev2dev): Likewise.
13150
13151 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
13152 (CUDA_CALL): Likewise.
13153 (CUDA_CALL_ASSERT): Likewise.
13154 (map_init): Change return type to bool, use CUDA_CALL* macros.
13155 (map_fini): Likewise.
13156 (init_streams_for_device): Change return type to bool, adjust
13157 call to map_init.
13158 (fini_streams_for_device): Change return type to bool, adjust
13159 call to map_fini.
13160 (select_stream_for_async): Release stream_lock before calls to
13161 GOMP_PLUGIN_fatal, adjust call to map_init.
13162 (nvptx_init): Use CUDA_CALL* macros.
13163 (nvptx_attach_host_thread_to_device): Change return type to bool,
13164 use CUDA_CALL* macros.
13165 (nvptx_open_device): Use CUDA_CALL* macros.
13166 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
13167 macros.
13168 (nvptx_get_num_devices): Use CUDA_CALL* macros.
13169 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
13170 (nvptx_exec): Use CUDA_CALL* macros.
13171 (nvptx_alloc): Use CUDA_CALL* macros.
13172 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
13173 (nvptx_host2dev): Likewise.
13174 (nvptx_dev2host): Likewise.
13175 (nvptx_wait): Use CUDA_CALL* macros.
13176 (nvptx_wait_async): Likewise.
13177 (nvptx_wait_all): Likewise.
13178 (nvptx_wait_all_async): Likewise.
13179 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
13180 use CUDA_CALL* macros, adjust call to map_fini.
13181 (GOMP_OFFLOAD_init_device): Change return type to bool,
13182 adjust code accordingly.
13183 (GOMP_OFFLOAD_fini_device): Likewise.
13184 (GOMP_OFFLOAD_load_image): Adjust calls to
13185 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
13186 use CUDA_CALL* macros.
13187 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
13188 return code.
13189 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
13190 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
13191 handle error return.
13192 (GOMP_OFFLOAD_dev2host): Likewise.
13193 (GOMP_OFFLOAD_host2dev): Likewise.
13194 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
13195 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
13196
e46c7770
CP
131972016-05-24 Cesar Philippidis <cesar@codesourcery.com>
13198
13199 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
13200 (acc_free): Likewise.
13201 (acc_memcpy_to_device): Likewise.
13202 (acc_memcpy_from_device): Likewise.
13203 (acc_deviceptr): Likewise.
13204 (acc_hostptr): Likewise.
13205 (acc_is_present): Likewise.
13206 (acc_map_data): Likewise.
13207 (acc_unmap_data): Likewise.
13208 (present_create_copy): Likewise.
13209 (delete_copyout): Likewise.
13210 (update_dev_host): Likewise.
13211 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
13212 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
13213 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
13214 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
13215 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
13216 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
13217 it only runs on nvptx targets.
13218 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
13219 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
13220 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
13221 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
13222 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
13223 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
13224 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
13225 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
13226 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
13227 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
13228 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
13229 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
13230 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
13231 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
13232 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
13233 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
13234 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
13235 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
13236 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
13237 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
13238 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
13239 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
13240 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
13241
a5057543
MJ
132422016-05-23 Martin Jambor <mjambor@suse.cz>
13243
13244 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
13245
e37288a6
CLT
132462016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
13247
13248 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
13249 to gomp_init_targets_once.
13250 (acc_set_device_type): Remove !cached_base_dev condition on call to
13251 gomp_init_targets_once, move call to before acc_device_lock acquire,
13252 to avoid deadlock.
13253 (acc_get_device_num): Remove !cached_base_dev condition on call to
13254 gomp_init_targets_once.
13255 (acc_set_device_num): Likewise.
13256
51d9ed48
MJ
132572016-05-16 Martin Jambor <mjambor@suse.cz>
13258
92a285c1 13259 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
51d9ed48 13260
5b37e866
NS
132612016-05-02 Nathan Sidwell <nathan@codesourcery.com>
13262
13263 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
13264 expected partitioning.
13265
e7ff0319
CP
132662016-04-29 Cesar Philippidis <cesar@codesourcery.com>
13267
13268 PR middle-end/70626
13269 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
13270 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
13271 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
13272
c2bd3b69
AM
132732016-04-21 Alexander Monakov <amonakov@ispras.ru>
13274
13275 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
13276 non-fatal.
13277
84311083
JJ
132782016-04-19 Jakub Jelinek <jakub@redhat.com>
13279
13280 PR middle-end/70680
13281 * testsuite/libgomp.c/pr70680-1.c: New test.
13282 * testsuite/libgomp.c/pr70680-2.c: New test.
13283
aadc043f
CP
132842016-04-14 Cesar Philippidis <cesar@codesourcery.com>
13285
13286 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
13287 pass parameter variables to subroutines.
13288
e387fc64
CP
132892016-04-14 Cesar Philippidis <cesar@codesourcery.com>
13290
13291 PR middle-end/70643
13292 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
13293
10c3c424
CP
132942016-04-13 Cesar Philippidis <cesar@codesourcery.com>
13295
13296 PR testsuite/68242
13297 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
13298 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13299
27f9add3
TS
133002016-04-12 Thomas Schwinge <thomas@codesourcery.com>
13301
58d32aeb
TS
13302 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
13303 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
13304 GOACC_declare prototype.
13305
d97633ef
TS
13306 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
13307 Merge this file, and...
13308 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
13309 ... this file, and...
13310 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
13311 ... this file, and...
13312 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
13313 ... this file, and...
13314 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
13315 ... this file, and...
13316 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
13317 ... this file, and...
13318 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
13319 ... this file, and...
13320 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
13321 ... this file, and...
13322 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
13323 ... this file, and...
13324 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
13325 ... this file, and...
13326 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
13327 ... this file, and...
13328 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
13329 ... this file, and...
13330 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
13331 ... this file into...
13332 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
13333 file.
13334
27f9add3
TS
13335 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
13336 Make failure observable.
13337
21f3a236
JJ
133382016-04-12 Jakub Jelinek <jakub@redhat.com>
13339
13340 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
13341 field.
13342 * target.c (gomp_target_fallback_firstprivate,
13343 gomp_target_unshare_firstprivate): Removed.
13344 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
13345 before waiting for dependencies.
13346 (gomp_target_task_fn): Don't copy firstprivate vars here.
13347 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
13348 firstprivate_copies here.
13349 (gomp_create_target_task): Don't initialize firstprivate_copies field.
13350 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
13351 explicit/implicit firstprivate.
13352
c42cfb5c
CP
133532016-04-08 Cesar Philippidis <cesar@codesourcery.com>
13354
13355 PR lto/70289
13356 PR ipa/70348
13357 PR tree-optimization/70373
13358 PR middle-end/70533
13359 PR middle-end/70534
13360 PR middle-end/70535
13361 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
13362 test.
13363 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
13364 test.
13365 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
13366 test.
13367 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
13368 test.
13369 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
13370 test.
13371 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
13372 test.
13373 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
13374 test.
13375 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
13376 test.
13377 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
13378 test.
13379 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
13380 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
13381 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
13382 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
13383 test.
13384 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
13385 test.
13386 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
13387 test.
13388 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
13389 test.
13390 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
13391 coverage.
13392 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13393 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
13394 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
13395 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
13396 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
13397 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
13398 coverage.
13399 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13400 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13401 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13402 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
13403 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
13404 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
13405 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
13406 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
13407 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
13408 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
13409 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
13410 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
13411 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
13412 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13413 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
13414
2620c80d
TS
134152016-03-30 Thomas Schwinge <thomas@codesourcery.com>
13416 James Norris <jnorris@codesourcery.com>
13417 Nathan Sidwell <nathan@codesourcery.com>
13418 Julian Brown <julian@codesourcery.com>
13419 Cesar Philippidis <cesar@codesourcery.com>
13420 Chung-Lin Tang <cltang@codesourcery.com>
13421 Tom de Vries <tom@codesourcery.com>
13422
13423 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
13424 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
13425 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
13426 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
13427 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
13428 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
13429 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
13430 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
13431 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
13432 XFAIL.
13433 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
13434 Incorporate...
13435 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
13436 file.
13437 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
13438 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
13439 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
13440 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
13441 Likewise.
13442 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
13443 Likewise.
13444 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
13445 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
13446 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
13447 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
13448 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
13449 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
13450 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
13451 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
13452 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
13453 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
13454 Likewise.
13455 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
13456 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
13457 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
13458 file...
13459 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
13460 file into...
13461 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
13462 file. Update.
13463 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
13464 file.
13465 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
13466 Likewise.
13467 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
13468 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
13469 ... this new file. Update.
13470 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
13471 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
13472 ... this new file. Update.
13473 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
13474 file. Incorporate...
13475 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
13476 file, and...
13477 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
13478 file, and...
13479 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
13480 file.
13481 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
13482
ce83104b
TS
134832016-03-29 Thomas Schwinge <thomas@codesourcery.com>
13484
13485 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
13486 set-torture-options.
13487
6e0df3b7
TS
134882016-03-24 Thomas Schwinge <thomas@codesourcery.com>
13489
13490 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
13491 gcc-dg-runtest.
13492 * testsuite/libgomp.oacc-c/c.exp: Likewise.
13493 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
13494 -fno-builtin-acc_on_device instead of -O0.
13495 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
13496 -O0.
13497 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
13498 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
13499 Likewise.
13500 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
13501 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
13502 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
13503 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13504 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13505 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13506 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
13507 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13508 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
13509 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
13510 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
13511 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
13512 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
13513 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
13514 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
13515 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
13516 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
13517 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
13518 Don't specify -O2.
13519 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
13520 Likewise.
13521 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
13522 Likewise.
13523
f9c8babb
ML
135242016-03-24 Martin Liska <mliska@suse.cz>
13525
13526 * plugin/plugin-hsa.c (packet_store_release): New function
13527 that is taken from the HSA runtime manual.
13528 (GOMP_OFFLOAD_run): Use the function.
13529
04833609
JJ
135302016-03-23 Jakub Jelinek <jakub@redhat.com>
13531
13532 PR c++/70376
13533 * testsuite/libgomp.c++/pr70376.C: New test.
13534
d79ee524
TV
135352016-03-23 Tom de Vries <tom@codesourcery.com>
13536
13537 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
13538 initialization of lresult and lvresult.
13539 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
13540
b6d1f2b5
JN
135412016-03-23 James Norris <jnorris@codesourcery.com>
13542 Daichi Fukuoka <dc-fukuoka@sgi.com>
13543
13544 PR libgomp/69414
13545 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
13546 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
13547 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
13548 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
13549
7397fce2
ML
135502016-03-23 Martin Liska <mliska@suse.cz>
13551
13552 PR hsa/70337
13553 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
13554 argument just in case a dispatched kernel uses that argument.
13555
ee2e7d51
TS
135562016-03-16 Thomas Schwinge <thomas@codesourcery.com>
13557
13558 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
13559 -ftree-parallelize-loops/-fopenacc changes.
13560 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
13561 Likewise.
13562 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13563 Likewise.
13564 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
13565 Likewise.
13566 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
13567 Likewise.
13568 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
13569 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
13570
be9f7143
TS
135712016-03-13 Thomas Schwinge <thomas@codesourcery.com>
13572
13573 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
13574 always_ld_library_path the path to libgcc_s.
13575
f6c1032d
CP
135762016-03-10 Cesar Philippidis <cesar@codesourcery.com>
13577
13578 PR testsuite/70009
13579 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
13580
5a6452e6
TV
135812016-03-09 Tom de Vries <tom@codesourcery.com>
13582
13583 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
13584 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
13585 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13586 Same.
13587 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
13588 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
13589 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
13590 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
13591
96a71bd5
MJ
135922016-03-07 Martin Jambor <mjambor@suse.cz>
13593
13594 * testsuite/lib/libgomp.exp
13595 (check_effective_target_hsa_offloading_selected_nocache): New.
13596 (check_effective_target_hsa_offloading_selected): Likewise.
13597 * testsuite/libgomp.hsa.c/c.exp: Likewise.
13598 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
13599 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
13600 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
13601 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
13602 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
13603 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
13604 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
13605 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
13606 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
13607 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
13608 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
13609 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
13610 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
13611 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
13612 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
13613 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
13614
02e0b5b2
MJ
136152016-03-07 Martin Jambor <mjambor@suse.cz>
13616
13617 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
13618 non-shared memory accelerators.
13619 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
13620 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
13621 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
13622 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
13623 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
13624 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
13625 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
13626 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
13627 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
13628
45548f30
MJ
136292016-03-07 Martin Jambor <mjambor@suse.cz>
13630
13631 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
13632 ALWAYS_CFLAGS.
13633
da3d46cb
JJ
136342016-03-02 Jakub Jelinek <jakub@redhat.com>
13635
13636 PR libgomp/69555
13637 * testsuite/libgomp.c++/pr69555-1.C: New test.
13638 * testsuite/libgomp.c++/pr69555-2.C: New test.
13639
622174b2
KM
136402016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
13641 Martin Jambor <mjambor@suse.cz>
13642
13643 * testsuite/lib/libgomp.exp
13644 (check_effective_target_offload_device_shared_as): New proc.
13645 * testsuite/libgomp.c++/declare_target-1.C: New test.
13646
e6861a99
IV
136472016-02-25 Ilya Verbin <ilya.verbin@intel.com>
13648
13649 PR driver/68463
13650 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
13651
f99c3557
TS
136522016-02-23 Thomas Schwinge <thomas@codesourcery.com>
13653
13654 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
13655 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
13656 dims.
13657 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
13658 -ftree-parallelize-loops/-fopenacc changes.
13659 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
13660 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
13661 Likewise.
13662 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
13663 Likewise.
13664 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
13665 Likewise.
13666 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
13667 Likewise.
13668 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
13669 Likewise.
13670 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
13671 Likewise.
13672 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
13673 Likewise.
13674 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
13675 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
13676 Likewise.
13677 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
13678 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
13679 Likewise.
13680 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
13681 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
13682 Likewise.
13683
d5ace3b5
CP
136842016-02-22 Cesar Philippidis <cesar@codesourcery.com>
13685
13686 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
13687
f3609a89
JJ
136882016-02-19 Jakub Jelinek <jakub@redhat.com>
13689
13690 PR driver/69805
13691 * testsuite/libgomp.c/pr69805.c: New test.
13692
2175df99
TV
136932016-02-16 Tom de Vries <tom@codesourcery.com>
13694
13695 PR lto/67709
13696 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
13697
17b6426c
TV
136982016-02-09 Tom de Vries <tom@codesourcery.com>
13699
13700 PR tree-optimization/69599
13701 * testsuite/libgomp.c/omp-nested-3.c: New test.
13702 * testsuite/libgomp.c/pr46032-2.c: New test.
13703 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
13704 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
13705
34df756c
TV
137062016-02-09 Tom de Vries <tom@codesourcery.com>
13707
13708 PR lto/69707
13709 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
13710
5854ee30
AM
137112016-02-02 Alexander Monakov <amonakov@ispras.ru>
13712
13713 * testsuite/libgomp.c/target-31.c: Fix testcase.
13714
e70b6ad7
AM
137152016-02-02 Alexander Monakov <amonakov@ispras.ru>
13716
13717 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
13718 clause.
13719 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
13720 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
13721 reduction and map clauses.
13722 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
13723
bd78a45f
JN
137242016-02-02 James Norris <jnorris@codesourcery.com>
13725
13726 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
13727
41d809d3
TS
137282016-02-02 Thomas Schwinge <thomas@codesourcery.com>
13729
18f60146
TS
13730 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
13731 * oacc-parallel.c (GOACC_host_data): Remove function definition.
13732
1a06f5e6
TS
13733 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
13734 cases.
13735
033ff3d1
TS
13736 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
13737 variables.
13738 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
13739 (hsa_kmt_lib): Set variables.
13740 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
13741 always_ld_library_path.
13742 * Makefile.in: Regenerate.
13743 * configure: Likewise.
13744 * testsuite/Makefile.in: Likewise.
13745
4a88d9b7
TS
13746 * plugin/configfrag.ac (offload_additional_options)
13747 (offload_additional_lib_paths): Don't amend for hsa offloading.
13748 * configure: Regenerate.
13749
41d809d3
TS
13750 * plugin/configfrag.ac: Don't configure for offloading target if
13751 we don't build the corresponding plugin.
13752 * configure: Regenerate.
13753
b6adbb9f
NS
137542016-02-01 Nathan Sidwell <nathan@codesourcery.com>
13755
13756 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
13757 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
13758
8dfdb419
TV
137592016-01-26 Tom de Vries <tom@codesourcery.com>
13760
13761 PR tree-optimization/69110
13762 * testsuite/libgomp.c/pr69110.c: New test.
13763
02ef53f2
RB
137642016-01-25 Richard Biener <rguenther@suse.de>
13765
13766 PR lto/69393
13767 * testsuite/libgomp.c++/pr69393.C: New testcase.
13768
eb4048f2
IV
137692016-01-22 Ilya Verbin <ilya.verbin@intel.com>
13770
13771 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
13772 function wasn't mapped to the device with non-shared memory.
13773
b235cdd5
IV
137742016-01-20 Ilya Verbin <ilya.verbin@intel.com>
13775
13776 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
13777
b2b40051
MJ
137782016-01-19 Martin Jambor <mjambor@suse.cz>
13779 Martin Liska <mliska@suse.cz>
13780
13781 * plugin/Makefrag.am: Add HSA plugin requirements.
13782 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
13783 (HSA_RUNTIME_LIB): Likewise.
13784 (HSA_RUNTIME_CPPFLAGS): Likewise.
13785 (HSA_RUNTIME_INCLUDE): New substitution.
13786 (HSA_RUNTIME_LIB): Likewise.
13787 (HSA_RUNTIME_LDFLAGS): Likewise.
13788 (hsa-runtime): New configure option.
13789 (hsa-runtime-include): Likewise.
13790 (hsa-runtime-lib): Likewise.
13791 (PLUGIN_HSA): New substitution variable.
13792 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
13793 configure options.
13794 (PLUGIN_HSA_CPPFLAGS): Likewise.
13795 (PLUGIN_HSA_LDFLAGS): Likewise.
13796 (PLUGIN_HSA_LIBS): Likewise.
13797 Check that we have access to HSA run-time.
13798 * libgomp-plugin.h (offload_target_type): New element
13799 OFFLOAD_TARGET_TYPE_HSA.
13800 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
13801 args.
13802 (bool gomp_create_target_task): Updated.
13803 (gomp_device_descr): Extra parameter of run_func and async_run_func,
13804 new field can_run_func.
13805 * libgomp_g.h (GOMP_target_ext): Update prototype.
13806 * oacc-host.c (host_run): Added a new parameter args.
13807 * target.c (calculate_firstprivate_requirements): New function.
13808 (copy_firstprivate_data): Likewise.
13809 (gomp_target_fallback_firstprivate): Use them.
13810 (gomp_target_unshare_firstprivate): New function.
13811 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
13812 devices.
13813 (GOMP_target): Do host fallback for all shared memory devices. Do not
13814 pass any args to plugins.
13815 (GOMP_target_ext): Introduce device-specific argument parameter args.
13816 Allow host fallback if device shares memory. Do not remap data if
13817 device has shared memory.
13818 (gomp_target_task_fn): Likewise. Also treat shared memory devices
13819 like host fallback for mappings.
13820 (GOMP_target_data): Treat shared memory devices like host fallback.
13821 (GOMP_target_data_ext): Likewise.
13822 (GOMP_target_update): Likewise.
13823 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
13824 gomp_create_target_task.
13825 (GOMP_target_enter_exit_data): Likewise.
13826 (omp_target_alloc): Treat shared memory devices like host fallback.
13827 (omp_target_free): Likewise.
13828 (omp_target_is_present): Likewise.
13829 (omp_target_memcpy): Likewise.
13830 (omp_target_memcpy_rect): Likewise.
13831 (omp_target_associate_ptr): Likewise.
13832 (gomp_load_plugin_for_device): Also load can_run.
13833 * task.c (GOMP_PLUGIN_target_task_completion): Free
13834 firstprivate_copies.
13835 (gomp_create_target_task): Accept new argument args and store it to
13836 ttask.
13837 * plugin/plugin-hsa.c: New file.
13838
5d7804a9
TV
138392016-01-18 Tom de Vries <tom@codesourcery.com>
13840
13841 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
13842 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
13843 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
13844 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
13845 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
13846 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
13847 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
13848 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
13849 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
13850 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
13851 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
13852 Same.
13853 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
13854 Same.
13855 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
13856 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
13857 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
13858 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
13859 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
13860 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
13861 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
13862 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
13863 Same.
13864 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
13865
cb11f3cf
JJ
138662016-01-15 Jakub Jelinek <jakub@redhat.com>
13867
13868 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
13869
33a126a6
CP
138702016-01-15 Cesar Philippidis <cesar@codesourcery.com>
13871
13872 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
13873
cdf6119d
JN
138742016-01-12 James Norris <jnorris@codesourcery.com>
13875
13876 * libgomp.texi: Updates for OpenACC.
13877
0d58938e
AM
138782016-01-11 Alexander Monakov <amonakov@ispras.ru>
13879
13880 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
13881
95918b49
L
138822016-01-07 H.J. Lu <hongjiu.lu@intel.com>
13883
13884 PR fortran/66680
13885 * testsuite/libgomp.fortran/pr66680.f90: New test.
13886
8fc708b7
JJ
138872016-01-07 Jakub Jelinek <jakub@redhat.com>
13888
13889 PR middle-end/68960
13890 * testsuite/libgomp.c/pr68960.c: New test.
13891
e9b596c1
NS
138922016-01-06 Nathan Sidwell <nathan@acm.org>
13893
1a14faf2 13894 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
e9b596c1
NS
13895 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
13896
21fa2a29
JJ
138972016-01-04 Jakub Jelinek <jakub@redhat.com>
13898
818ab71a
JJ
13899 Update copyright years.
13900
21fa2a29
JJ
13901 * libgomp.texi: Bump @copying's copyright year.
13902
9310efbc
NS
139032015-12-31 Nathan Sidwell <nathan@acm.org>
13904
13905 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
13906 dg-additional-options syntax.
13907 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
13908 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
13909 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
13910 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13911 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
13912 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
13913 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
13914 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
13915 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
13916 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
13917 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13918 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
13919 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
13920 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
13921 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
13922 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
13923 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13924 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13925
4a38b02b
IV
139262015-12-15 Ilya Verbin <ilya.verbin@intel.com>
13927
13928 * libgomp.h (REFCOUNT_LINK): Define.
13929 (struct splay_tree_key_s): Add link_key.
13930 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
13931 Replace target address of the pointer with target address of newly
13932 mapped object in the splay tree. Set link pointer on target to the
13933 device address of the mapped object.
13934 (gomp_unmap_vars): Restore target address of the pointer in the splay
13935 tree for REFCOUNT_LINK objects after unmapping.
13936 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
13937 declare target link" objects.
13938 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
13939 "omp declare target link" objects, which were mapped for the image.
13940 (gomp_exit_data): Restore target address of the pointer in the splay
13941 tree for REFCOUNT_LINK objects after unmapping.
13942 * testsuite/libgomp.c/target-link-1.c: New file.
13943
d84ffc0a
IV
139442015-12-14 Ilya Verbin <ilya.verbin@intel.com>
13945
13946 * libgomp.h (gomp_device_state): New enum.
13947 (struct gomp_device_descr): Replace is_initialized with state.
13948 (gomp_fini_device): Remove declaration.
13949 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
13950 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
13951 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
13952 (acc_set_device_type): Use state instead of is_initialized.
13953 (acc_set_device_num): Likewise.
13954 * target.c (resolve_device): Use state instead of is_initialized.
13955 Do not initialize finalized device.
13956 (gomp_map_vars): Do nothing if device is finalized.
13957 (gomp_unmap_vars): Likewise.
13958 (gomp_update): Likewise.
13959 (GOMP_offload_register_ver): Use state instead of is_initialized.
13960 (GOMP_offload_unregister_ver): Likewise.
13961 (gomp_init_device): Likewise.
13962 (gomp_unload_device): Likewise.
13963 (gomp_fini_device): Remove.
13964 (gomp_get_target_fn_addr): Do nothing if device is finalized.
13965 (GOMP_target): Go to host fallback if device is finalized.
13966 (GOMP_target_ext): Likewise.
13967 (gomp_exit_data): Do nothing if device is finalized.
13968 (gomp_target_task_fn): Go to host fallback if device is finalized.
13969 (gomp_target_fini): New static function.
13970 (gomp_target_init): Use state instead of is_initialized.
13971 Call gomp_target_fini at exit.
13972
76680678
TV
139732015-12-09 Tom de Vries <tom@codesourcery.com>
13974
13975 PR tree-optimization/68716
13976 * testsuite/libgomp.c/omp-nested-2.c: New test.
13977
ff7a55bf
TS
139782015-12-02 Thomas Schwinge <thomas@codesourcery.com>
13979
13980 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
13981 target openacc_nvidia_accel_selected.
13982 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
13983 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
13984 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
13985 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
13986
37d5ad46
JB
139872015-12-01 Julian Brown <julian@codesourcery.com>
13988 James Norris <James_Norris@mentor.com>
13989
13990 * oacc-parallel.c (GOACC_host_data): New function.
13991 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
13992 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
13993 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
13994 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
13995 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
13996 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
13997 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
13998
db941d7e
CP
139992015-11-30 James Norris <jnorris@codesourcery.com>
14000 Cesar Philippidis <cesar@codesourcery.com>
14001
14002 libgomp/
14003 * libgomp.oacc-fortran/routine-5.f90: New test.
14004 * libgomp.oacc-fortran/routine-7.f90: New test.
14005 * libgomp.oacc-fortran/routine-9.f90: New test.
14006
e0ca27c5
TV
140072015-11-30 Tom de Vries <tom@codesourcery.com>
14008
14009 PR tree-optimization/46032
14010 * testsuite/libgomp.c/pr46032.c: New test.
14011
aec17bfe
JJ
140122015-11-27 Jakub Jelinek <jakub@redhat.com>
14013
8e4e4719
JJ
14014 PR libgomp/68579
14015 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
14016 (gomp_create_target_task): Call it before freeing
14017 GOMP_TARGET_TASK_DATA tasks.
14018
aec17bfe
JJ
14019 PR c/63326
14020 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
14021 in between case label and OpenMP standalone directives.
14022 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
14023
6cfe90e6
DE
140242015-11-26 David Edelsohn <dje.gcc@gmail.com>
14025
14026 * configure: Regenerate.
14027
0e65fd7d
JJ
140282015-11-26 Jakub Jelinek <jakub@redhat.com>
14029
14030 * testsuite/libgomp.c/target-35.c: New test.
14031
dc7a8b4b
JN
140322015-11-22 James Norris <jnorris@codesourcery.com>
14033 Cesar Philippidis <cesar@codesourcery.com>
14034
14035 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
14036 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
14037 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
14038 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
14039 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
14040
48a78aee
JJ
140412015-11-20 Jakub Jelinek <jakub@redhat.com>
14042
14043 PR middle-end/68221
14044 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
14045 * testsuite/libgomp.c/reduction-12.c: Likewise.
14046 * testsuite/libgomp.c++/reduction-11.C: Likewise.
14047 * testsuite/libgomp.c++/reduction-12.C: Likewise.
14048
2d256816
NS
140492015-11-19 Nathan Sidwell <nathan@codesourcery.com>
14050
14051 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
14052 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
14053 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
14054 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
14055 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
14056 and fix.
14057 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
14058 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
14059
33f47f42
NS
140602015-11-18 Nathan Sidwell <nathan@codesourcery.com>
14061
14062 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
14063 worker & gang cases.
14064 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
14065
3d7bfee0
CP
140662015-11-17 Cesar Philippidis <cesar@codesourcery.com>
14067
14068 * config/nvptx/priority_queue.c: New file.
14069
00b9bd52
JJ
140702015-11-14 Jakub Jelinek <jakub@redhat.com>
14071
14072 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
14073 sections.
14074
e4606348
JJ
140752015-11-14 Jakub Jelinek <jakub@redhat.com>
14076 Aldy Hernandez <aldyh@redhat.com>
14077 Ilya Verbin <ilya.verbin@intel.com>
14078
14079 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
14080 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
14081 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
14082 iterators or IV by chunk size.
14083 * parallel.c (gomp_resolve_num_threads): Don't assume that
14084 if thr->ts.team is non-NULL, then pool must be non-NULL.
14085 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
14086 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
14087 GOMP_PLUGIN_target_task_completion.
14088 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
14089 * Makefile.in: Regenerate.
14090 * libgomp.h: Shuffle prototypes and forward definitions around so
14091 priority queues can be defined.
14092 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
14093 (enum gomp_target_task_state): New enum.
14094 (struct gomp_target_task): Add state, tgt, task and team fields.
14095 (gomp_create_target_task): Change return type to bool, add
14096 state argument.
14097 (gomp_target_task_fn): Change return type to bool.
14098 (struct gomp_device_descr): Add async_run_func.
14099 (struct gomp_task): Remove children, next_child, prev_child,
14100 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
14101 Add pnode field.
14102 (struct gomp_taskgroup): Remove children.
14103 Add taskgroup_queue.
14104 (struct gomp_team): Change task_queue type to a priority queue.
14105 (splay_compare): Define inline.
14106 (priority_queue_offset): New.
14107 (priority_node_to_task): New.
14108 (task_to_priority_node): New.
14109 * oacc-mem.c: Do not include splay-tree.h.
14110 * priority_queue.c: New file.
14111 * priority_queue.h: New file.
14112 * splay-tree.c: Do not include splay-tree.h.
14113 (splay_tree_foreach_internal): New.
14114 (splay_tree_foreach): New.
14115 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
14116 (splay_tree_callback): Define typedef.
14117 * target.c (splay_compare): Move to libgomp.h.
14118 (GOMP_target): Don't adjust *thr in any way around running offloaded
14119 task.
14120 (GOMP_target_ext): Likewise. Handle target nowait.
14121 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
14122 return value from gomp_create_target_task, if false, fallthrough
14123 as if no dependencies exist.
14124 (gomp_target_task_fn): Change return type to bool, return true
14125 if the task should have another part scheduled later. Handle
14126 target nowait.
14127 (gomp_load_plugin_for_device): Initialize async_run.
14128 * task.c (gomp_init_task): Initialize children_queue.
14129 (gomp_clear_parent_in_list): New.
14130 (gomp_clear_parent_in_tree): New.
14131 (gomp_clear_parent): Handle priorities.
14132 (GOMP_task): Likewise.
14133 (priority_queue_move_task_first,
14134 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
14135 New functions.
14136 (gomp_create_target_task): Use priority queues. Change return type
14137 to bool, add state argument, return false if for async
14138 {{enter,exit} data,update} constructs no dependencies need to be
14139 waited for, handle target nowait. Set task->fn to NULL instead of
14140 gomp_target_task_fn.
14141 (verify_children_queue): Remove.
14142 (priority_list_upgrade_task): New.
14143 (priority_queue_upgrade_task): New.
14144 (verify_task_queue): Remove.
14145 (priority_list_downgrade_task): New.
14146 (priority_queue_downgrade_task): New.
14147 (gomp_task_run_pre): Use priority queues.
14148 Abstract code out to priority_queue_downgrade_task.
14149 (gomp_task_run_post_handle_dependers): Use priority queues.
14150 (gomp_task_run_post_remove_parent): Likewise.
14151 (gomp_task_run_post_remove_taskgroup): Likewise.
14152 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
14153 tasks specially.
14154 (GOMP_taskwait): Likewise.
14155 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
14156 priority-queue_upgrade_task.
14157 (GOMP_taskgroup_start): Use priority queues.
14158 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
14159 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
14160 barrier.
14161 * taskloop.c (GOMP_taskloop): Handle priorities.
14162 * team.c (gomp_new_team): Call priority_queue_init.
14163 (free_team): Call priority_queue_free.
14164 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
14165 team created for target nowait in implicit parallel region.
14166 (gomp_team_start): For nested check, test thr->ts.level instead of
14167 thr->ts.team != NULL.
14168 * testsuite/libgomp.c/doacross-3.c: New test.
14169 * testsuite/libgomp.c/ordered-5.c: New test.
14170 * testsuite/libgomp.c/priority.c: New test.
14171 * testsuite/libgomp.c/target-31.c: New test.
14172 * testsuite/libgomp.c/target-32.c: New test.
14173 * testsuite/libgomp.c/target-33.c: New test.
14174 * testsuite/libgomp.c/target-34.c: New test.
14175
1d1ab74f
NS
141762015-11-13 Nathan Sidwell <nathan@codesourcery.com>
14177
c5a64cfe
NS
14178 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
14179
1d1ab74f
NS
14180 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
14181 loop is sequential.
14182
dd3c1b14
NS
141832015-11-13 Nathan Sidwell <nathan@codesourcery.com>
14184
14185 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
14186 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
14187
6e232ba4
JN
141882015-11-12 James Norris <jnorris@codesourcery.com>
14189 Joseph Myers <joseph@codesourcery.com>
14190
14191 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
14192 * oacc-parallel.c (GOACC_declare): New function.
14193 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
14194 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
14195 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
14196 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
14197 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
14198
fffeedeb
NS
141992015-11-12 Nathan Sidwell <nathan@codesourcery.com>
14200
14201 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
14202
182190f2
NS
142032015-11-1 Nathan Sidwell <nathan@codesourcery.com>
14204
14205 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
14206 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
14207
36fa0f5f
NS
142082015-11-09 Nathan Sidwell <nathan@codesourcery.com>
14209
d350c40c
NS
14210 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
14211 inadvertent commit.
14212
142132015-11-09 Nathan Sidwell <nathan@codesourcery.com>
14214
36fa0f5f
NS
14215 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
14216 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
14217 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
14218 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
14219 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
14220
66a5f0b4
TS
142212015-11-06 Thomas Schwinge <thomas@codesourcery.com>
14222
14223 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
14224 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
14225
e01d41e5
JJ
142262015-11-05 Jakub Jelinek <jakub@redhat.com>
14227 Ilya Verbin <ilya.verbin@intel.com>
14228
14229 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
14230 GOMP_loop_nonmonotonic_dynamic_start,
14231 GOMP_loop_nonmonotonic_guided_next,
14232 GOMP_loop_nonmonotonic_guided_start,
14233 GOMP_loop_ull_nonmonotonic_dynamic_next,
14234 GOMP_loop_ull_nonmonotonic_dynamic_start,
14235 GOMP_loop_ull_nonmonotonic_guided_next,
14236 GOMP_loop_ull_nonmonotonic_guided_start,
14237 GOMP_parallel_loop_nonmonotonic_dynamic,
14238 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
14239 (GOMP_target_41): Renamed to ...
14240 (GOMP_target_ext): ... this. Add num_teams and thread_limit
14241 arguments.
14242 (GOMP_target_data_41): Renamed to ...
14243 (GOMP_target_data_ext): ... this.
14244 (GOMP_target_update_41): Renamed to ...
14245 (GOMP_target_update_ext): ... this.
14246 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
14247 GOMP_target_data_ext and GOMP_target_update_ext instead of
14248 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
14249 Export GOMP_loop_nonmonotonic_dynamic_next,
14250 GOMP_loop_nonmonotonic_dynamic_start,
14251 GOMP_loop_nonmonotonic_guided_next,
14252 GOMP_loop_nonmonotonic_guided_start,
14253 GOMP_loop_ull_nonmonotonic_dynamic_next,
14254 GOMP_loop_ull_nonmonotonic_dynamic_start,
14255 GOMP_loop_ull_nonmonotonic_guided_next,
14256 GOMP_loop_ull_nonmonotonic_guided_start,
14257 GOMP_parallel_loop_nonmonotonic_dynamic and
14258 GOMP_parallel_loop_nonmonotonic_guided.
14259 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
14260 GOMP_parallel_loop_nonmonotonic_guided,
14261 GOMP_loop_nonmonotonic_dynamic_start,
14262 GOMP_loop_nonmonotonic_guided_start,
14263 GOMP_loop_nonmonotonic_dynamic_next,
14264 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
14265 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
14266 GOMP_loop_ull_nonmonotonic_guided_start,
14267 GOMP_loop_ull_nonmonotonic_dynamic_next,
14268 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
14269 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
14270 functions.
14271 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
14272 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
14273 Use gomp_map_val function.
14274 (gomp_target_fallback_firstprivate): New static function.
14275 (GOMP_target_41): Renamed to ...
14276 (GOMP_target_ext): ... this. Add num_teams and thread_limit
14277 arguments. Move firstprivate fallback handling into a new
14278 function.
14279 (GOMP_target_data_41): Renamed to ...
14280 (GOMP_target_data_ext): ... this.
14281 (GOMP_target_update_41): Renamed to ...
14282 (GOMP_target_update_ext): ... this.
14283 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
14284 gomp_map_0len_lookup instead of gomp_map_lookup.
14285 (omp_target_is_present): Use gomp_map_0len_lookup instead of
14286 gomp_map_lookup.
14287 * testsuite/libgomp.c/target-28.c: Likewise.
14288 * testsuite/libgomp.c/monotonic-1.c: New test.
14289 * testsuite/libgomp.c/monotonic-2.c: New test.
14290 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
14291 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
14292 * testsuite/libgomp.c/pr66199-5.c: New test.
14293 * testsuite/libgomp.c/pr66199-6.c: New test.
14294 * testsuite/libgomp.c/pr66199-7.c: New test.
14295 * testsuite/libgomp.c/pr66199-8.c: New test.
14296 * testsuite/libgomp.c/pr66199-9.c: New test.
14297 * testsuite/libgomp.c/reduction-11.c: New test.
14298 * testsuite/libgomp.c/reduction-12.c: New test.
14299 * testsuite/libgomp.c/reduction-13.c: New test.
14300 * testsuite/libgomp.c/reduction-14.c: New test.
14301 * testsuite/libgomp.c/reduction-15.c: New test.
14302 * testsuite/libgomp.c/target-12.c (main): Adjust for
14303 omp_target_is_present change for one-past-last element.
14304 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
14305 the same var is both mapped and privatized.
14306 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
14307 handling of zero-length array sections.
14308 * testsuite/libgomp.c/target-28.c: New test.
14309 * testsuite/libgomp.c/target-29.c: New test.
14310 * testsuite/libgomp.c/target-30.c: New test.
14311 * testsuite/libgomp.c/target-teams-1.c: New test.
14312 * testsuite/libgomp.c++/member-6.C: New test.
14313 * testsuite/libgomp.c++/member-7.C: New test.
14314 * testsuite/libgomp.c++/monotonic-1.C: New test.
14315 * testsuite/libgomp.c++/monotonic-2.C: New test.
14316 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
14317 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
14318 * testsuite/libgomp.c++/pr66199-3.C: New test.
14319 * testsuite/libgomp.c++/pr66199-4.C: New test.
14320 * testsuite/libgomp.c++/pr66199-5.C: New test.
14321 * testsuite/libgomp.c++/pr66199-6.C: New test.
14322 * testsuite/libgomp.c++/pr66199-7.C: New test.
14323 * testsuite/libgomp.c++/pr66199-8.C: New test.
14324 * testsuite/libgomp.c++/pr66199-9.C: New test.
14325 * testsuite/libgomp.c++/reduction-11.C: New test.
14326 * testsuite/libgomp.c++/reduction-12.C: New test.
14327 * testsuite/libgomp.c++/target-13.C: New test.
14328 * testsuite/libgomp.c++/target-14.C: New test.
14329 * testsuite/libgomp.c++/target-15.C: New test.
14330 * testsuite/libgomp.c++/target-16.C: New test.
14331 * testsuite/libgomp.c++/target-17.C: New test.
14332 * testsuite/libgomp.c++/target-18.C: New test.
14333 * testsuite/libgomp.c++/target-19.C: New test.
14334
ccc8282b
NS
143352015-11-04 Nathan Sidwell <nathan@codesourcery.com>
14336
14337 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
14338 and reduction copy.
14339 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
14340 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
14341 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
14342 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
14343 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
14344 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
14345 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
14346 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
14347 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
14348 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
14349 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
14350 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
14351 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
14352 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
14353
5d6823a2
NS
143542015-11-04 Nathan Sidwell <nathan@codesourcery.com>
14355
14356 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
14357 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
14358 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
14359 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
14360 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
14361 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
14362 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
14363 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
14364
5c06742f
NS
143652015-11-03 Nathan Sidwell <nathan@codesourcery.com>
14366
14367 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
14368 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
14369 (GOMP_OFFLOAD_openacc_parallel): Likewise.
14370 * oacc-host.c (host_openacc_exec): Likewise.
14371 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
14372
4bf9e5a8
TS
143732015-11-03 Julian Brown <julian@codesourcery.com>
14374 Thomas Schwinge <thomas@codesourcery.com>
14375
14376 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
14377 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
14378 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
14379 Likewise.
14380 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
14381 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
14382
143832015-11-03 James Norris <jnorris@codesourcery.com>
14384
14385 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
14386 file.
14387 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
14388 Likewise.
14389 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
14390 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
14391 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
14392 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
14393 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
14394
a0e701d8
NS
143952015-10-29 Nathan Sidwell <nathan@codesourcery.com>
14396
14397 * openacc.h (enum acc_device_t): Reformat. Ensure layout
14398 compatibility.
14399 (enum acc_async_t): Reformat.
14400 (acc_on_device): Declare compatible with builtin and provide C++
14401 wrapper.
14402 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
14403
41e977ac
TS
144042015-10-29 Thomas Schwinge <thomas@codesourcery.com>
14405 Cesar Philippidis <cesar@codesourcery.com>
14406
14407 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
14408 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
14409 ... this. Add a description of the test at the top of the file.
14410 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
14411 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
14412 ... this. Add a description of the test at the top of the file.
14413
e3091406
NS
144142015-10-28 Nathan Sidwell <nathan@codesourcery.com>
14415
14416 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
14417 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
14418 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
14419 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
14420 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
14421 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
14422
a1c1908b
NS
144232015-10-27 Nathan Sidwell <nathan@codesourcery.com>
14424
14425 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
14426 dimensions.
14427
b3962a4a
TS
144282015-10-27 Thomas Schwinge <thomas@codesourcery.com>
14429
14430 PR testsuite/68063
14431 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
14432
88bae6f4
TS
144332015-10-27 James Norris <jnorris@codesourcery.com>
14434
14435 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
14436 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
14437
8baa7864
TS
144382015-10-26 Thomas Schwinge <thomas@codesourcery.com>
14439
bdeb752c
TS
14440 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
14441 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14442
ecd4fd43
TS
14443 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
14444 acc_device_nvidia usage.
14445 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
14446 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14447 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
14448
aa8b7d30
TS
14449 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
14450 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
14451
7c8f138d
TS
14452 PR libgomp/66518
14453 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
14454
8baa7864
TS
14455 PR libgomp/65437
14456 PR libgomp/66518
14457 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
14458 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
14459
88ebcde5
TV
144602015-10-23 Tom de Vries <tom@codesourcery.com>
14461
14462 PR testsuite/68063
14463 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
14464
9ef83c04
NS
144652015-10-20 Nathan Sidwell <nathan@codesourcery.com>
14466
14467 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
14468 vector_length.
14469 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
14470
3837c6d6
IV
144712015-10-14 Ilya Verbin <ilya.verbin@intel.com>
14472 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
14473
14474 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
14475 to 0 when mapnum is 0.
14476
ac8a1965
SH
144772015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
14478
14479 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
14480 Cast to int from int32_t.
14481
d9a6bd32
JJ
144822015-10-13 Jakub Jelinek <jakub@redhat.com>
14483 Aldy Hernandez <aldyh@redhat.com>
14484 Ilya Verbin <ilya.verbin@intel.com>
14485
14486 * config/linux/affinity.c (omp_get_place_num_procs,
14487 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
14488 * config/linux/doacross.h: New file.
14489 * config/posix/affinity.c (omp_get_place_num_procs,
14490 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
14491 * config/posix/doacross.h: New file.
14492 * env.c: Include gomp-constants.h.
14493 (struct gomp_task_icv): Rename run_sched_modifier to
14494 run_sched_chunk_size.
14495 (gomp_max_task_priority_var): New variable.
14496 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
14497 (handle_omp_display_env): Change _OPENMP value from 201307 to
14498 201511. Print OMP_MAX_TASK_PRIORITY.
14499 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
14500 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
14501 chunk_size and run_sched_modifier to run_sched_chunk_size.
14502 (omp_get_max_task_priority, omp_get_initial_device,
14503 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
14504 omp_get_partition_place_nums): New functions.
14505 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
14506 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
14507 to chunk_size.
14508 (omp_get_num_places_, omp_get_place_num_procs_,
14509 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
14510 omp_get_place_proc_ids_8_, omp_get_place_num_,
14511 omp_get_partition_num_places_, omp_get_partition_place_nums_,
14512 omp_get_partition_place_nums_8_, omp_get_initial_device_,
14513 omp_get_max_task_priority_): New functions.
14514 * libgomp_g.h (GOMP_loop_doacross_static_start,
14515 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
14516 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
14517 GOMP_loop_ull_doacross_dynamic_start,
14518 GOMP_loop_ull_doacross_guided_start,
14519 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
14520 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
14521 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
14522 GOMP_target_data_41, GOMP_target_update_41,
14523 GOMP_target_enter_exit_data): New prototypes.
14524 (GOMP_task): Add prototype argument.
14525 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
14526 (struct gomp_doacross_work_share): New type.
14527 (struct gomp_work_share): Add doacross field.
14528 (struct gomp_task_icv): Rename run_sched_modifier to
14529 run_sched_chunk_size.
14530 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
14531 GOMP_TASK_UNDEFERRED. Add comments.
14532 (struct gomp_task_depend_entry): Add comments.
14533 (struct gomp_task): Likewise.
14534 (struct gomp_taskgroup): Likewise.
14535 (struct gomp_target_task): New type.
14536 (struct gomp_team): Add comment.
14537 (gomp_get_place_proc_ids_8, gomp_doacross_init,
14538 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
14539 gomp_create_target_task, gomp_target_task_fn): New prototypes.
14540 (struct target_var_desc): New type.
14541 (struct target_mem_desc): Adjust comment. Use struct
14542 target_var_desc instead of splay_tree_key for list.
14543 (REFCOUNT_INFINITY): Define.
14544 (struct splay_tree_key_s): Remove copy_from field.
14545 (struct gomp_device_descr): Add dev2dev_func field.
14546 (enum gomp_map_vars_kind): New enum.
14547 (gomp_map_vars): Add one argument.
14548 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
14549 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
14550 omp_get_place_num_procs, omp_get_place_num_procs_,
14551 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
14552 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
14553 omp_get_place_num_, omp_get_partition_num_places,
14554 omp_get_partition_num_places_, omp_get_partition_place_nums,
14555 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
14556 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
14557 omp_target_free, omp_target_is_present, omp_target_memcpy,
14558 omp_target_memcpy_rect, omp_target_associate_ptr and
14559 omp_target_disassociate_ptr.
14560 (GOMP_4.0.2): Renamed to ...
14561 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
14562 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
14563 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
14564 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14565 GOMP_loop_doacross_static_start, GOMP_doacross_post,
14566 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
14567 GOMP_loop_ull_doacross_guided_start,
14568 GOMP_loop_ull_doacross_runtime_start,
14569 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
14570 GOMP_doacross_ull_wait.
14571 * libgomp.texi: Document omp_get_max_task_priority.
14572 Rename modifier argument to chunk_size for omp_set_schedule and
14573 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
14574 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
14575 to run_sched_chunk_size renaming.
14576 (GOMP_loop_ordered_runtime_start): Likewise.
14577 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
14578 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14579 GOMP_parallel_loop_runtime_start): New functions.
14580 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
14581 to run_sched_chunk_size renaming.
14582 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
14583 GOMP_loop_doacross_guided_start): New functions or aliases.
14584 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
14585 run_sched_modifier to run_sched_chunk_size renaming.
14586 (GOMP_loop_ull_ordered_runtime_start): Likewise.
14587 (gomp_loop_ull_doacross_static_start,
14588 gomp_loop_ull_doacross_dynamic_start,
14589 gomp_loop_ull_doacross_guided_start,
14590 GOMP_loop_ull_doacross_runtime_start): New functions.
14591 (GOMP_loop_ull_doacross_static_start,
14592 GOMP_loop_ull_doacross_dynamic_start,
14593 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
14594 * oacc-mem.c (acc_map_data, present_create_copy,
14595 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
14596 to gomp_map_vars.
14597 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
14598 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
14599 instead of false to gomp_map_vars.
14600 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
14601 * omp.h.in (omp_lock_hint_t): New type.
14602 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14603 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14604 omp_get_place_num, omp_get_partition_num_places,
14605 omp_get_partition_place_nums, omp_get_initial_device,
14606 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
14607 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
14608 omp_target_associate_ptr, omp_target_disassociate_ptr): New
14609 prototypes.
14610 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
14611 (omp_lock_hint_none, omp_lock_hint_uncontended,
14612 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14613 omp_lock_hint_speculative): New parameters.
14614 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14615 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14616 omp_get_place_num, omp_get_partition_num_places,
14617 omp_get_partition_place_nums, omp_get_initial_device,
14618 omp_get_max_task_priority): New interfaces.
14619 (omp_set_schedule, omp_get_schedule): Rename modifier argument
14620 to chunk_size.
14621 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
14622 (omp_lock_hint_none, omp_lock_hint_uncontended,
14623 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14624 omp_lock_hint_speculative): New parameters.
14625 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14626 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14627 omp_get_place_num, omp_get_partition_num_places,
14628 omp_get_partition_place_nums, omp_get_initial_device,
14629 omp_get_max_task_priority): New functions and subroutines.
14630 * ordered.c: Include stdarg.h and string.h.
14631 (MAX_COLLAPSED_BITS): Define.
14632 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
14633 gomp_doacross_ull_init, GOMP_doacross_ull_post,
14634 GOMP_doacross_ull_wait): New functions.
14635 * target.c: Include errno.h.
14636 (resolve_device): If device is not initialized, call
14637 gomp_init_device on it.
14638 (gomp_map_lookup): New function.
14639 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
14640 Don't bump refcount if REFCOUNT_INFINITY. Handle
14641 GOMP_MAP_ALWAYS_TO_P.
14642 (get_kind): Rename is_openacc argument to short_mapkind.
14643 (gomp_map_pointer): Use gomp_map_lookup.
14644 (gomp_map_fields_existing): New function.
14645 (gomp_map_vars): Rename is_openacc argument to short_mapkind
14646 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
14647 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
14648 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
14649 Adjust for tgt->list changed type and copy_from living in there.
14650 (gomp_copy_from_async): Adjust for tgt->list changed type and
14651 copy_from living in there.
14652 (gomp_unmap_vars): Likewise.
14653 (gomp_update): Likewise. Rename is_openacc argument to
14654 short_mapkind. Don't fail if object is not mapped.
14655 (gomp_load_image_to_device): Initialize refcount to
14656 REFCOUNT_INFINITY.
14657 (gomp_target_fallback): New function.
14658 (gomp_get_target_fn_addr): Likewise.
14659 (GOMP_target): Adjust gomp_map_vars caller, use
14660 gomp_get_target_fn_addr and gomp_target_fallback.
14661 (GOMP_target_41): New function.
14662 (gomp_target_data_fallback): New function.
14663 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
14664 (GOMP_target_data_41): New function.
14665 (GOMP_target_update): Adjust gomp_update caller.
14666 (GOMP_target_update_41): New function.
14667 (gomp_exit_data, GOMP_target_enter_exit_data,
14668 gomp_target_task_fn, omp_target_alloc, omp_target_free,
14669 omp_target_is_present, omp_target_memcpy,
14670 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
14671 omp_target_associate_ptr, omp_target_disassociate_ptr,
14672 gomp_load_plugin_for_device): New functions.
14673 * task.c: Include gomp-constants.h. Include taskloop.c
14674 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
14675 (gomp_task_handle_depend): New function.
14676 (GOMP_task): Use it. Add priority argument. Use
14677 gomp-constant.h constants instead of hardcoded numbers.
14678 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
14679 (gomp_create_target_task): New function.
14680 (verify_children_queue, verify_taskgroup_queue,
14681 verify_task_queue): New functions.
14682 (gomp_task_run_pre): Call verify_*_queue functions.
14683 If an upcoming tied task is about to leave the sibling or
14684 taskgroup queues in an invalid state, adjust appropriately.
14685 Remove taskgroup argument. Add comments.
14686 (gomp_task_run_post_handle_dependers): Add comments.
14687 (gomp_task_run_post_remove_parent): Likewise.
14688 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
14689 (GOMP_taskwait): Likewise. Add comments.
14690 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
14691 problem such that the first non parent_depends_on task does not
14692 end up at the end of the children queue.
14693 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
14694 GOMP_TASK_UNDEFERRED.
14695 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
14696 * taskloop.c: New file.
14697 * testsuite/lib/libgomp.exp
14698 (check_effective_target_offload_device_nonshared_as): New proc.
14699 * testsuite/libgomp.c/affinity-2.c: New test.
14700 * testsuite/libgomp.c/doacross-1.c: New test.
14701 * testsuite/libgomp.c/doacross-2.c: New test.
14702 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
14703 Add map clause to target.
14704 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
14705 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
14706 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
14707 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
14708 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
14709 Likewise.
14710 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
14711 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
14712 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
14713 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
14714 not defined. Use those where needed.
14715 * testsuite/libgomp.c/for-4.c: New test.
14716 * testsuite/libgomp.c/for-5.c: New test.
14717 * testsuite/libgomp.c/for-6.c: New test.
14718 * testsuite/libgomp.c/linear-1.c: New test.
14719 * testsuite/libgomp.c/ordered-4.c: New test.
14720 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
14721 only allowed on the loop iterator.
14722 * testsuite/libgomp.c/pr66199-3.c: New test.
14723 * testsuite/libgomp.c/pr66199-4.c: New test.
14724 * testsuite/libgomp.c/reduction-7.c: New test.
14725 * testsuite/libgomp.c/reduction-8.c: New test.
14726 * testsuite/libgomp.c/reduction-9.c: New test.
14727 * testsuite/libgomp.c/reduction-10.c: New test.
14728 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
14729 map(tofrom:s).
14730 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
14731 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
14732 * testsuite/libgomp.c/target-11.c: New test.
14733 * testsuite/libgomp.c/target-12.c: New test.
14734 * testsuite/libgomp.c/target-13.c: New test.
14735 * testsuite/libgomp.c/target-14.c: New test.
14736 * testsuite/libgomp.c/target-15.c: New test.
14737 * testsuite/libgomp.c/target-16.c: New test.
14738 * testsuite/libgomp.c/target-17.c: New test.
14739 * testsuite/libgomp.c/target-18.c: New test.
14740 * testsuite/libgomp.c/target-19.c: New test.
14741 * testsuite/libgomp.c/target-20.c: New test.
14742 * testsuite/libgomp.c/target-21.c: New test.
14743 * testsuite/libgomp.c/target-22.c: New test.
14744 * testsuite/libgomp.c/target-23.c: New test.
14745 * testsuite/libgomp.c/target-24.c: New test.
14746 * testsuite/libgomp.c/target-25.c: New test.
14747 * testsuite/libgomp.c/target-26.c: New test.
14748 * testsuite/libgomp.c/target-27.c: New test.
14749 * testsuite/libgomp.c/taskloop-1.c: New test.
14750 * testsuite/libgomp.c/taskloop-2.c: New test.
14751 * testsuite/libgomp.c/taskloop-3.c: New test.
14752 * testsuite/libgomp.c/taskloop-4.c: New test.
14753 * testsuite/libgomp.c++/ctor-13.C: New test.
14754 * testsuite/libgomp.c++/doacross-1.C: New test.
14755 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
14756 Replace offload_device with offload_device_nonshared_as.
14757 * testsuite/libgomp.c++/for-12.C: New test.
14758 * testsuite/libgomp.c++/for-13.C: New test.
14759 * testsuite/libgomp.c++/for-14.C: New test.
14760 * testsuite/libgomp.c++/linear-1.C: New test.
14761 * testsuite/libgomp.c++/member-1.C: New test.
14762 * testsuite/libgomp.c++/member-2.C: New test.
14763 * testsuite/libgomp.c++/member-3.C: New test.
14764 * testsuite/libgomp.c++/member-4.C: New test.
14765 * testsuite/libgomp.c++/member-5.C: New test.
14766 * testsuite/libgomp.c++/ordered-1.C: New test.
14767 * testsuite/libgomp.c++/reduction-5.C: New test.
14768 * testsuite/libgomp.c++/reduction-6.C: New test.
14769 * testsuite/libgomp.c++/reduction-7.C: New test.
14770 * testsuite/libgomp.c++/reduction-8.C: New test.
14771 * testsuite/libgomp.c++/reduction-9.C: New test.
14772 * testsuite/libgomp.c++/reduction-10.C: New test.
14773 * testsuite/libgomp.c++/reference-1.C: New test.
14774 * testsuite/libgomp.c++/simd14.C: New test.
14775 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
14776 * testsuite/libgomp.c++/target-5.C: New test.
14777 * testsuite/libgomp.c++/target-6.C: New test.
14778 * testsuite/libgomp.c++/target-7.C: New test.
14779 * testsuite/libgomp.c++/target-8.C: New test.
14780 * testsuite/libgomp.c++/target-9.C: New test.
14781 * testsuite/libgomp.c++/target-10.C: New test.
14782 * testsuite/libgomp.c++/target-11.C: New test.
14783 * testsuite/libgomp.c++/target-12.C: New test.
14784 * testsuite/libgomp.c++/taskloop-1.C: New test.
14785 * testsuite/libgomp.c++/taskloop-2.C: New test.
14786 * testsuite/libgomp.c++/taskloop-3.C: New test.
14787 * testsuite/libgomp.c++/taskloop-4.C: New test.
14788 * testsuite/libgomp.c++/taskloop-5.C: New test.
14789 * testsuite/libgomp.c++/taskloop-6.C: New test.
14790 * testsuite/libgomp.c++/taskloop-7.C: New test.
14791 * testsuite/libgomp.c++/taskloop-8.C: New test.
14792 * testsuite/libgomp.c++/taskloop-9.C: New test.
14793 * testsuite/libgomp.fortran/affinity1.f90: New test.
14794 * testsuite/libgomp.fortran/affinity2.f90: New test.
14795
1f600fea
TV
147962015-10-13 Tom de Vries <tom@codesourcery.com>
14797
14798 PR tree-optimization/67476
14799 * testsuite/libgomp.c/autopar-3.c: New test.
14800 * testsuite/libgomp.c/autopar-4.c: New test.
14801 * testsuite/libgomp.c/autopar-5.c: New test.
14802 * testsuite/libgomp.c/autopar-6.c: New test.
14803 * testsuite/libgomp.c/autopar-7.c: New test.
14804 * testsuite/libgomp.c/autopar-8.c: New test.
14805
058a654b
JN
148062015-10-12 James Norris <jnorris@codesourcery.com>
14807
14808 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
14809 initializer.
14810
9e531d37
DM
148112015-10-09 David Malcolm <dmalcolm@redhat.com>
14812
14813 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
14814 using load_gcc_lib.
14815
113020dc
TS
148162015-10-02 Thomas Schwinge <thomas@codesourcery.com>
14817
14818 * oacc-ptx.h: Remove file, moving its content into...
14819 * config/nvptx/fortran.c: ... here...
14820 * config/nvptx/oacc-init.c: ..., here...
14821 * config/nvptx/oacc-parallel.c: ..., and here.
14822 * config/nvptx/openacc.f90: New file.
14823 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
14824 (link_ptx): Don't link in predefined bits of PTX code.
14825
cc3cd79b
NS
148262015-09-30 Nathan Sidwell <nathan@codesourcery.com>
14827 Bernd Schmidt <bernds@codesourcery.com>
14828
14829 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
14830 (struct targ_ptx_obj): New.
14831 (nvptx_tdata): Move earlier, change data format.
14832 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
14833 objects.
14834 (GOMP_OFFLOAD_load_image): Adjust.
14835
4e2a5450
TS
148362015-09-30 Thomas Schwinge <thomas@codesourcery.com>
14837
14838 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
14839 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14840 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
14841 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
14842 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14843 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
14844 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
14845 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
14846 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
14847 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
14848 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14849 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14850 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14851 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14852 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14853 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14854 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14855 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14856 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14857 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14858 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14859 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14860 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14861 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14862 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14863 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14864 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
14865 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14866 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14867 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14868 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14869 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14870 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
14871 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14872 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14873 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14874 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14875 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14876 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14877 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14878 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14879 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14880 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14881 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14882 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
14883 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
14884 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
14885 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
14886 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
14887 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
14888 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
14889 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
14890 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
14891 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
14892 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
14893 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
14894 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
14895 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
14896 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
14897 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
14898 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
14899 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
14900 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
14901
164453bb
NS
149022015-09-29 Nathan Sidwell <nathan@codesourcery.com>
14903
14904 * oacc-init.c (acc_on_device): Force optimization level.
14905
a12a0437
NS
149062015-09-29 Nathan Sidwell <nathan@codesourcery.com>
14907
14908 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
14909 (cuda_errlist): Delete.
14910 (cuda_error): Reimplement.
14911
3e32ee19
NS
149122015-09-28 Nathan Sidwell <nathan@codesourcery.com>
14913
14914 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
14915 array.
14916 * libgomp.map (GOACC_parallel_keyed): New.
14917 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
14918 all callers.
14919 (GOACC_parallel_keyed): New interface. Lose geometry arguments
14920 and take keyed varargs list. Adjust call to exec_func.
14921 (GOACC_parallel): Force host fallback.
14922 * libgomp_g.h (GOACC_parallel): Remove.
14923 (GOACC_parallel_keyed): Declare.
14924 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
93d90219 14925 (struct targ_gn_descriptor): Replace name field with launch field.
3e32ee19
NS
14926 (nvptx_exec): Lose separate geometry args, take array. Process
14927 dynamic dimensions and adjust.
14928 (struct nvptx_tdata): Replace fn_names field with fn_descs.
14929 (GOMP_OFFLOAD_load_image): Adjust for change in function table
14930 data.
14931 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
14932 passing.
14933 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
14934 passing.
14935
6bb4c3e2
CLT
149362015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
14937
14938 PR libgomp/67141
14939 * oacc-int.h (goacc_host_init): Add declaration.
14940 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
14941 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
14942
74032f47 149432015-09-08 Aditya Kumar <hiraditya@msn.com>
34b18169 14944 Sebastian Pop <s.pop@samsung.com>
74032f47 14945
93d90219 14946 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
74032f47
AK
14947 match o/p.
14948 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
14949 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
14950 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
14951 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
14952 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
14953
97875f4a
JJ
149542015-09-03 Jakub Jelinek <jakub@redhat.com>
14955
14956 * configure.tgt: Add missing ;; in between nvptx and rtems
14957 snippets.
14958
06441dd5
SH
149592015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14960
14961 * config/posix/pool.h (gomp_adjust_thread_attr): New.
14962 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
14963 (gomp_thread_pool_reservoir): Add priority member.
14964 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
14965 priority.
14966 (parse_thread_pools): Likewise.
14967 * team.c (gomp_team_start): Call configuration provided
14968 gomp_adjust_thread_attr(). Destroy thread attributes if
14969 necessary.
14970 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
14971
66c59f92
SH
149722015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14973
14974 * config/posix/pool.h: New.
14975 * config/rtems/pool.h: Likewise.
14976 * config/rtems/proc.c: Likewise.
14977 * libgomp.h (gomp_thread_destructor): Declare.
14978 * team.c: Include configuration provided "pool.h".
14979 (gomp_get_thread_pool): Define in configuration.
14980 (gomp_team_end): Call configuration defined
14981 gomp_release_thread_pool().
14982
13c41b2e
SH
149832015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14984
14985 * config/rtems/bar.c: New.
14986 * config/rtems/bar.h: Likewise.
14987 * config/rtems/mutex.c: Likewise.
14988 * config/rtems/mutex.h: Likewise.
14989 * config/rtems/sem.c: Likewise.
14990 * config/rtems/sem.h: Likewise.
14991 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
14992 <sys/lock.h> header file.
14993 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
14994 supported by Newlib.
14995 * configure: Regenerate.
14996
7892ec67
SH
149972015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14998
14999 * team.c (gomp_new_thread_pool): Delete and move content to ...
15000 (gomp_get_thread_pool): ... new function. Allocate and
15001 initialize thread pool on demand.
15002 (get_last_team): Use gomp_get_thread_pool().
15003 (gomp_team_start): Delete thread pool initialization.
15004
1b96e9a4
TV
150052015-09-03 Tom de Vries <tom@codesourcery.com>
15006
15007 PR tree-optimization/65637
15008 * testsuite/libgomp.c/autopar-2.c: New test.
15009
3ff2d74e
TV
150102015-08-29 Tom de Vries <tom@codesourcery.com>
15011
15012 PR tree-optimization/46193
15013 * testsuite/libgomp.c/pr46193.c: New test.
15014
2a21ff19
NS
150152015-08-24 Nathan Sidwell <nathan@codesourcery.com>
15016
15017 libgomp/
15018 * libgomp.map: Add 4.0.2 version.
15019 * target.c (offload_image_descr): Add version field.
15020 (gomp_load_image_to_device): Add version argument. Adjust plugin
15021 call. Improve load mismatch diagnostic.
15022 (gomp_unload_image_from_device): Add version argument. Adjust plugin
15023 call.
15024 (GOMP_offload_regster): Make stub function, move bulk to ...
15025 (GOMP_offload_register_ver): ... here. Process version argument.
15026 (GOMP_offload_unregister): Make stub function, move bulk to ...
15027 (GOMP_offload_unregister_ver): ... here. Process version argument.
15028 (gomp_init_device): Process version field.
15029 (gomp_unload_device): Process version field.
15030 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
15031 macros. Check plugin version.
15032 * libgomp.h (gomp_device_descr): Add version function field. Adjust
15033 loader and unloader types.
15034 * oacc-host.c: Include gomp-constants.h.
15035 (host_version): New.
15036 (host_load_image, host_unload_image): Adjust.
15037 (host_dispatch): Add host_version.
15038 * plugin/plugin-nvptx.c: Include gomp-constants.h.
15039 (GOMP_OFFLOAD_version): New.
15040 (GOMP_OFFLOAD_load_image): Add version arg and check it.
15041 (GOMP_OFFLOAD_unload_image): Likewise.
15042 * plugin/plugin-host.c: Include gomp-constants.h.
15043 (GOMP_OFFLOAD_version): New.
15044 (GOMP_OFFLOAD_load_image): Add version arg.
15045 (GOMP_OFFLOAD_unload_image): Likewise.
15046
1358a747
TV
150472015-08-24 Tom de Vries <tom@codesourcery.com>
15048
15049 PR tree-optimization/65468
15050 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
15051
6be5c241
TV
150522015-08-24 Tom de Vries <tom@codesourcery.com>
15053
15054 PR tree-optimization/65468
15055 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
15056
bfe7ac89
JV
150572015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
15058
15059 PR libgomp/66761
15060 PR libgomp/67303
15061 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
15062 (gomp_iter_guided_next): Idem.
15063 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
15064 (gomp_iter_ull_guided_next): Idem.
15065 * config/linux/wait.h (do_spin): Idem.
15066
b97e78b7
TS
150672015-08-10 Thomas Schwinge <thomas@codesourcery.com>
15068
15069 * libgomp-plugin.h (enum offload_target_type): Remove
15070 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
15071 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
15072 * openacc.h (enum acc_device_t): Likewise.
15073 * openacc_lib.h: Likewise.
15074 * oacc-init.c (name_of_acc_device_t): Don't handle it.
15075 (acc_on_device): Just use __builtin_acc_on_device.
15076 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
15077 of acc_on_device builtin.
15078 * plugin/plugin-host.h: Remove file.
15079 * plugin/plugin-host.c: Likewise, but salvage some content into...
15080 * oacc-host.c: ... this file.
15081 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
15082 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
15083 * Makefile.in: Regenerate.
15084 * configure: Likewise.
15085 * testsuite/lib/libgomp.exp
15086 (check_effective_target_openacc_host_nonshm_selected): Remove.
15087 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
15088 ACC_DEVICE_TYPE=host_nonshm.
15089 * testsuite/libgomp.oacc-c/c.exp: Likewise.
15090 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15091 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
15092 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
15093 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
15094 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
15095
44a7d18d
TS
150962015-08-10 Thomas Schwinge <thomas@codesourcery.com>
15097 Jakub Jelinek <jakub@redhat.com>
15098
15099 * config/nvptx/affinity.c: New file.
15100 * config/nvptx/alloc.c: Likewise.
15101 * config/nvptx/bar.c: Likewise.
15102 * config/nvptx/barrier.c: Likewise.
15103 * config/nvptx/critical.c: Likewise.
15104 * config/nvptx/env.c: Likewise.
15105 * config/nvptx/error.c: Likewise.
15106 * config/nvptx/fortran.c: Likewise.
15107 * config/nvptx/iter.c: Likewise.
15108 * config/nvptx/iter_ull.c: Likewise.
15109 * config/nvptx/libgomp-plugin.c: Likewise.
15110 * config/nvptx/lock.c: Likewise.
15111 * config/nvptx/loop.c: Likewise.
15112 * config/nvptx/loop_ull.c: Likewise.
15113 * config/nvptx/mutex.c: Likewise.
15114 * config/nvptx/oacc-async.c: Likewise.
15115 * config/nvptx/oacc-cuda.c: Likewise.
15116 * config/nvptx/oacc-host.c: Likewise.
15117 * config/nvptx/oacc-init.c: Likewise.
15118 * config/nvptx/oacc-mem.c: Likewise.
15119 * config/nvptx/oacc-parallel.c: Likewise.
15120 * config/nvptx/oacc-plugin.c: Likewise.
15121 * config/nvptx/omp-lock.h: Likewise.
15122 * config/nvptx/ordered.c: Likewise.
15123 * config/nvptx/parallel.c: Likewise.
15124 * config/nvptx/proc.c: Likewise.
15125 * config/nvptx/ptrlock.c: Likewise.
15126 * config/nvptx/sections.c: Likewise.
15127 * config/nvptx/sem.c: Likewise.
15128 * config/nvptx/single.c: Likewise.
15129 * config/nvptx/splay-tree.c: Likewise.
15130 * config/nvptx/target.c: Likewise.
15131 * config/nvptx/task.c: Likewise.
15132 * config/nvptx/team.c: Likewise.
15133 * config/nvptx/time.c: Likewise.
15134 * config/nvptx/work.c: Likewise.
15135 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
15136 * configure: Regenerate.
15137 * configure.tgt (config_path): Set to "nvptx" for target
15138 nvptx*-*-*.
15139
96a2d174
TS
151402015-08-10 Thomas Schwinge <thomas@codesourcery.com>
15141
15142 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
15143
9ebddeb0
NS
151442015-08-03 Nathan Sidwell <nathan@codesourcery.com>
15145
15146 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
15147 (cuda_errlist): Constify.
15148 (errmsg): Move into ...
15149 (cuda_error): ... here. Make smaller.
15150 (_XSTR, _STR): Delete.
15151 (cuda_synames): Delete.
15152 (verify_device_library): Delete.
15153 (nvptx_init): Don't call it.
15154
12efb1d7
TV
151552015-07-28 Tom de Vries <tom@codesourcery.com>
15156
15157 * testsuite/libgomp.c/uns-outer-4.c: New test.
15158
710ee218
CP
151592015-07-24 Cesar Philippidis <cesar@codesourcery.com>
15160
15161 * testsuite/libgomp.c/pr66714.c: New test.
15162
27c4ac7d
MB
151632015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
15164
15165 PR libgomp/66950
15166 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
15167 (fib_ref): New function.
15168 (fib): Correct corner cases in the recursion.
15169 (main): Replace the non-simd loop with fib_ref call.
15170 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
15171 subroutine.
15172 (fibonacci): Lower the parameter N to 30. Correct accordingly check
15173 for the last array element value. Replace the non-simd loop with
15174 fib_ref call. Remove redundant b_ref array. Remove the comparison
15175 of the last array element with according Fibonacci sequence element.
15176 (fib): Correct corner cases in the recursion.
15177
22be2349
NS
151782015-07-21 Nathan Sidwell <nathan@codesourcery.com>
15179
15180 * target.c (gomp_offload_image_to_device): Rename to ...
15181 (gomp_load_image_to_device): ... here.
15182 (GOMP_offload_register): Adjust call.
15183 (gomp_init_device): Likewise.
15184 (gomp_unload_image_from_device): New. Broken out of ...
15185 (GOMP_offload_unregister): ... here. Call it.
15186 (gomp_unload_device): New.
15187 * libgomp.h (gomp_unload_device): Declare.
15188 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
15189 mem maps.
15190
f3e9a059
NS
151912015-07-20 Nathan Sidwell <nathan@codesourcery.com>
15192
a091118d
NS
15193 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
15194 wait=-specific if.
15195 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
15196 !=0 condition.
15197 (goacc_waits): Move !num_waits handling to ...
15198 (GOACC_wait): ... here, the only caller that might have zero waits.
15199
f3e9a059
NS
15200 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
15201 (struct ptx_image_data): Move earlier, add fns field.
15202 (struct ptx_device): Add images and image_lock fields.
15203 (ptx_images, ptx_image_lock): Delete.
15204 (nvptx_open_device): Initialize images and image_lock fields.
15205 (nvptx_close_device): Destroy image_lock.
15206 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
15207 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
15208 fields.
15209
afb2d80b
NS
152102015-07-17 Nathan Sidwell <nathan@codesourcery.com>
15211
896c28a7
NS
15212 * target.c (GOMP_offload_register): Use int for device type arg.
15213 (GOMP_offload_unregister): Likewise.
15214
ebe4a560
NS
15215 * target.c (struct_offload_image_descr): Constify host_table.
15216 (gomp_offload_image_to_device): Likewise.
15217 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
15218
afb2d80b
NS
15219 * libgomp.h (gomp_device_descr): Constify target data arguments.
15220 * target.c (struct offload_image_descr): Constify target_data.
15221 (gomp_offload_image_to_device): Likewise.
15222 (GOMP_offload_register): Likewise.
93d90219 15223 (GOMP_offload_unregister): Likewise.
afb2d80b
NS
15224 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
15225 GOMP_OFFLOAD_unload_image): Constify target data.
15226 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
15227 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
15228
a4cb876d
NS
152292015-07-16 Nathan Sidwell <nathan@codesourcery.com>
15230
15231 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
15232 Workaround driver library const error.
15233 (struct nvptx_tdata, nvptx_tdata_t): New.
15234 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
15235 type.
15236
28ef6a27
MB
152372015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
15238
15239 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
15240 of EPS parameter from integer to real.
15241 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
15242 type of EPS parameter from integer to real.
15243
6dba0113
SH
152442015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
15245
15246 * team.c (get_last_team): New.
15247 (gomp_new_team): Recycle last non-nested team if possible.
15248 (gomp_team_end): Move team work share list free lock destruction
15249 to ...
15250 (free_team): ... here.
15251
4c1cb4da
MB
152522015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
15253
15254 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
15255 and ref from int to double. Replaced their comparison with
15256 an inequality of their difference and EPS.
15257 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
15258 comparison of pri and a reference number with an inequality of their
15259 difference and EPS.
15260 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
15261 the comparison of sum and sum_ref with an inequality of their
15262 difference and EPS.
15263 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
15264 the comparison of pri and a reference number with an inequality of
15265 their difference and EPS.
15266
343587dc
MB
152672015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
15268
15269 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
15270 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
15271 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
15272 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
15273 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
15274 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
15275 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
15276 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
15277 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
15278 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
15279 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
15280 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
15281 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
15282 variables.
15283 (vec_mult): Likewise. Add #pragma omp taskwait.
15284 (main): Adjust caller.
15285 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
15286 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
15287 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
15288 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
15289 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
15290 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
15291 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
15292 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
15293 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
15294 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
15295 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
15296 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
15297 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
15298 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
15299 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
15300 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
15301 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
15302 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
15303 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
15304 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
15305 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
15306 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
15307 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
15308 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
15309 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
15310 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
15311 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
15312 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
15313 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
15314 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
15315 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
15316 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
15317 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
15318 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
15319 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
15320 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
15321 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
15322 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
15323 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
15324 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
15325 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
15326 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
15327 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
15328 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
15329 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
15330 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
15331 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
15332 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
15333 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
15334 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
15335 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
15336 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
15337 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
15338 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
15339 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
15340 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
15341 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
15342 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
15343 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
15344 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
15345 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
15346 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
15347 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
15348 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
15349 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
15350 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
15351 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
15352 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
15353 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
15354 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
15355 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
15356 (vec_mult): Add !$omp taskwait.
15357 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
15358 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
15359 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
15360 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
15361 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
15362 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
15363 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
15364 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
15365 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
15366 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
15367 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
15368 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
15369 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
15370 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
15371 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
15372 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
15373 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
15374 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
15375 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
15376 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
15377 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
15378 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
15379 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
15380 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
15381 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
15382 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
15383 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
15384 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
15385 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
15386 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
15387 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
15388 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
15389 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
15390 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
15391 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
15392 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
15393 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
15394 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
15395 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
15396 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
15397 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
15398 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
15399 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
15400 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
15401 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
15402 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
15403 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
15404 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
15405 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
15406 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
15407 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
15408 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
15409 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
15410 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
15411 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
15412 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
15413 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
15414 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
15415 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
15416 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
15417 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
15418 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
15419 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
15420 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
15421 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
15422 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
15423 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
15424
9f620bf1
TV
154252015-07-10 Tom de Vries <tom@codesourcery.com>
15426
15427 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
15428 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
15429
a92defda
TS
154302015-07-08 Thomas Schwinge <thomas@codesourcery.com>
15431
15432 PR libgomp/65099
15433 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
15434 in a 64-bit configuration.
15435 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
15436 offloading testing if no such device is available.
15437 * testsuite/libgomp.oacc-c/c.exp: Likewise.
15438 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15439
cadb53a5
TV
154402015-07-08 Tom de Vries <tom@codesourcery.com>
15441
15442 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
15443 second call to f.
15444 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15445
712cb0bb
TV
154462015-07-07 Tom de Vries <tom@codesourcery.com>
15447
15448 PR tree-optimization/66642
15449 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
15450 iteration count case.
15451 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
15452 function, factor out of ...
15453 (main): ... here. Test low iteration count case.
15454
e5210c77
SH
154552015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
15456
15457 * libgomp.h (gomp_thread_pool): Comment last_team field.
15458
f70360e7
UB
154592015-07-02 Uros Bizjak <ubizjak@gmail.com>
15460
15461 * testsuite/libgomp.c++/pr66702-1.C: Require
15462 vect_simd_clones effective target.
15463 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
15464
b451c271
TV
154652015-06-30 Tom de Vries <tom@codesourcery.com>
15466
15467 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
15468 already set. Use DEFAULT_CFLAGS in dg-runtest.
15469 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
15470 "-O2".
15471
f8e89d9f
TV
154722015-06-30 Tom de Vries <tom@codesourcery.com>
15473
15474 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
15475 already set. Use DEFAULT_CFLAGS in dg-runtest.
15476 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
15477 * testsuite/libgomp.c++/pr64824.C: Same.
15478 * testsuite/libgomp.c++/pr64868.C: Same.
15479 * testsuite/libgomp.c++/pr66199-1.C: Same.
15480 * testsuite/libgomp.c++/pr66199-2.C: Same.
15481 * testsuite/libgomp.c++/target-2.C: Same.
15482 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
15483 -std=<standard> option.
15484 * testsuite/libgomp.c++/udr-11.C: Same.
15485 * testsuite/libgomp.c++/udr-12.C: Same.
15486 * testsuite/libgomp.c++/udr-13.C: Same.
15487 * testsuite/libgomp.c++/udr-14.C: Same.
15488 * testsuite/libgomp.c++/udr-15.C: Same.
15489 * testsuite/libgomp.c++/udr-16.C: Same.
15490 * testsuite/libgomp.c++/udr-17.C: Same.
15491 * testsuite/libgomp.c++/udr-18.C: Same.
15492 * testsuite/libgomp.c++/udr-19.C: Same.
15493 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
15494 * testsuite/libgomp.c++/simd-1.C: Same.
15495 * testsuite/libgomp.c++/simd-2.C: Same.
15496 * testsuite/libgomp.c++/simd-3.C: Same.
15497 * testsuite/libgomp.c++/simd-4.C: Same.
15498 * testsuite/libgomp.c++/simd-5.C: Same.
15499 * testsuite/libgomp.c++/simd-6.C: Same.
15500 * testsuite/libgomp.c++/simd-7.C: Same.
15501 * testsuite/libgomp.c++/simd-8.C: Same.
15502 * testsuite/libgomp.c++/simd-9.C: Same.
15503 * testsuite/libgomp.c++/simd10.C: Same.
15504 * testsuite/libgomp.c++/simd11.C: Same.
15505 * testsuite/libgomp.c++/simd12.C: Same.
15506 * testsuite/libgomp.c++/simd13.C: Same.
15507
3446fe48
JJ
155082015-06-30 Jakub Jelinek <jakub@redhat.com>
15509
15510 PR middle-end/66702
15511 * testsuite/libgomp.c++/pr66702-1.C: New test.
15512 * testsuite/libgomp.c++/pr66702-2.C: New test.
15513
8a36714a
TV
155142015-06-30 Tom de Vries <tom@codesourcery.com>
15515
15516 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
15517 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
15518 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
15519 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
15520
4f75d608
TV
155212015-06-30 Tom de Vries <tom@codesourcery.com>
15522
15523 PR tree-optimization/66652
15524 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
15525 using restrict pointers.
15526 (main): Add arguments to calls to f.
15527 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15528
6d9d1eeb
AT
155292015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
15530
15531 * configure.ac: Fix check for header <sys/sysctl.h>.
15532 * configure: Regenerate.
15533 * config.h.in: Likewise.
15534
1222f22b
TV
155352015-06-23 Tom de Vries <tom@codesourcery.com>
15536
15537 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
15538 abort.
15539 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
15540
d7efbbf6
TS
155412015-06-19 Thomas Schwinge <thomas@codesourcery.com>
15542
bfcd036f
TS
15543 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
15544 acc_device_nvidia.
15545
d7efbbf6
TS
15546 PR libgomp/66518
15547 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
15548 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15549
d7bfc710
TV
155502015-06-15 Tom de Vries <tom@codesourcery.com>
15551
15552 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
15553 dg-additional-options for any remaining options.
15554 * testsuite/libgomp.c/atomic-2.c: Same.
15555 * testsuite/libgomp.c/atomic-4.c: Same.
15556 * testsuite/libgomp.c/atomic-5.c: Same.
15557 * testsuite/libgomp.c/atomic-6.c: Same.
15558 * testsuite/libgomp.c/autopar-1.c: Same.
15559 * testsuite/libgomp.c/copyin-1.c: Same.
15560 * testsuite/libgomp.c/copyin-2.c: Same.
15561 * testsuite/libgomp.c/copyin-3.c: Same.
15562 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
15563 * testsuite/libgomp.c/nestedfn-5.c: Same.
15564 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
15565 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
15566 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
15567 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15568 * testsuite/libgomp.c/pr32362-1.c: Same.
15569 * testsuite/libgomp.c/pr32362-2.c: Same.
15570 * testsuite/libgomp.c/pr32362-3.c: Same.
15571 * testsuite/libgomp.c/pr39591-1.c: Same.
15572 * testsuite/libgomp.c/pr39591-2.c: Same.
15573 * testsuite/libgomp.c/pr39591-3.c: Same.
15574 * testsuite/libgomp.c/pr58392.c: Same.
15575 * testsuite/libgomp.c/pr58756.c: Same.
15576 * testsuite/libgomp.c/simd-1.c: Same.
15577 * testsuite/libgomp.c/simd-10.c: Same.
15578 * testsuite/libgomp.c/simd-11.c: Same.
15579 * testsuite/libgomp.c/simd-12.c: Same.
15580 * testsuite/libgomp.c/simd-13.c: Same.
15581 * testsuite/libgomp.c/simd-14.c: Same.
15582 * testsuite/libgomp.c/simd-15.c: Same.
15583 * testsuite/libgomp.c/simd-2.c: Same.
15584 * testsuite/libgomp.c/simd-3.c: Same.
15585 * testsuite/libgomp.c/simd-4.c: Same.
15586 * testsuite/libgomp.c/simd-5.c: Same.
15587 * testsuite/libgomp.c/simd-6.c: Same.
15588 * testsuite/libgomp.c/simd-7.c: Same.
15589 * testsuite/libgomp.c/simd-8.c: Same.
15590 * testsuite/libgomp.c/simd-9.c: Same.
15591
fb5b5352
TV
155922015-06-15 Tom de Vries <tom@codesourcery.com>
15593
15594 * testsuite/libgomp.c/pr35625.c: Fix typo.
15595
ca431bef
TV
155962015-06-15 Tom de Vries <tom@codesourcery.com>
15597
15598 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
15599 in dg-options.
15600 * testsuite/libgomp.c/atomic-3.c: Same.
15601 * testsuite/libgomp.c/debug-1.c: Same.
15602 * testsuite/libgomp.c/nqueens-1.c: Same.
15603 * testsuite/libgomp.c/pr26171.c: Same.
15604 * testsuite/libgomp.c/pr48591.c: Same.
15605 * testsuite/libgomp.c/pr64824.c: Same.
15606 * testsuite/libgomp.c/pr64868.c: Same.
15607 * testsuite/libgomp.c/pr66133.c: Same.
15608 * testsuite/libgomp.c/pr66199-1.c: Same.
15609 * testsuite/libgomp.c/pr66199-2.c: Same.
15610 * testsuite/libgomp.c/target-8.c: Same.
15611
0d8a9e20
TV
156122015-06-15 Tom de Vries <tom@codesourcery.com>
15613
15614 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
15615 -std={gnu99,c99}.
15616 * testsuite/libgomp.c/for-1.c: Same.
15617 * testsuite/libgomp.c/for-2.c: Same.
15618 * testsuite/libgomp.c/for-3.c: Same.
15619 * testsuite/libgomp.c/pr35625.c: Same.
15620 * testsuite/libgomp.c/pr39154.c: Same.
15621 * testsuite/libgomp.c/simd-16.c: Same.
15622 * testsuite/libgomp.c/simd-17.c: Same.
15623
a6860be9
TV
156242015-06-13 Tom de Vries <tom@codesourcery.com>
15625
15626 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
15627
ab3306d2
TV
156282015-06-13 Tom de Vries <tom@codesourcery.com>
15629
15630 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
15631 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15632 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
15633 (N): Define.
15634 (main): Use N instead of hardcoded constants.
15635
7c82d827
TV
156362015-06-05 Tom de Vries <tom@codesourcery.com>
15637
15638 merge from gomp4 branch:
15639 2015-05-28 Tom de Vries <tom@codesourcery.com>
15640
15641 PR tree-optimization/65443
15642 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
15643 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
15644 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
15645
c469078d
BRF
156462015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15647
15648 * testsuite/libgomp.graphite/bounds.c: Adjust for
15649 cleanup-tree-dump removal.
15650 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
15651 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
15652 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
15653 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
15654 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
15655 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
15656 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
15657 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
15658 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
15659 * testsuite/libgomp.graphite/pr41118.c: Likewise.
15660
bb3caa35
UB
156612015-05-28 Uros Bizjak <ubizjak@gmail.com>
15662
15663 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
15664 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
15665 (futex_wake) [!__x86_64__]: Ditto.
15666
9fb5fd44
JB
156672015-05-28 Julian Brown <julian@codesourcery.com>
15668
15669 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
15670 function comment. Only call gomp_fatal if new argument is true.
15671 (acc_dev_num_out_of_range): New function.
15672 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
15673 acc_dev_num_out_of_range as appropriate.
15674 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
bb3caa35
UB
15675 (acc_get_device_num, acc_set_device_num): Update calls to
15676 resolve_device.
9fb5fd44
JB
15677 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
15678 output.
15679
32eaed93
JB
156802015-05-28 Julian Brown <julian@codesourcery.com>
15681
15682 PR libgomp/65742
32eaed93
JB
15683 * oacc-init.c (plugin/plugin-host.h): Include.
15684 (acc_on_device): Check whether we're in an offloaded region for
15685 host_nonshm
15686 plugin. Don't use __builtin_acc_on_device.
15687 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
15688 nonshm_exec flag in thread-local data.
15689 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
15690 data for host_nonshm plugin.
15691 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
15692 for host_nonshm plugin.
15693 * plugin/plugin-host.h: New.
15694
ea023bcf
UB
156952015-05-27 Uros Bizjak <ubizjak@gmail.com>
15696
8ed501f1
UB
15697 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
15698
156992015-05-27 Uros Bizjak <ubizjak@gmail.com>
15700
15701 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
15702 Declare as int.
15703 (FUTEX_PRIVATE_FLAG): Remove L suffix.
15704 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
15705 Declare as int.
15706
157072015-05-27 Uros Bizjak <ubizjak@gmail.com>
15708
bb3caa35 15709 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
ea023bcf 15710
1716efeb
CLT
157112015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
15712
15713 * target.c (gomp_map_pointer): New function abstracting out
15714 GOMP_MAP_POINTER handling.
15715 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
15716 gomp_map_pointer().
15717
41b37d5e
JJ
157182015-05-19 Jakub Jelinek <jakub@redhat.com>
15719
15720 PR middle-end/66199
15721 * testsuite/libgomp.c/pr66199-1.c: New test.
15722 * testsuite/libgomp.c/pr66199-2.c: New test.
15723 * testsuite/libgomp.c++/pr66199-1.C: New test.
15724 * testsuite/libgomp.c++/pr66199-2.C: New test.
15725 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
15726 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
15727
c8319826
JB
157282015-05-19 Julian Brown <julian@codesourcery.com>
15729
15730 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
15731 on cuInit failure.
15732
b37dddbc
JJ
157332015-05-13 Jakub Jelinek <jakub@redhat.com>
15734
15735 PR middle-end/66133
15736 * testsuite/libgomp.c/pr66133.c: New test.
15737
55fba601
MH
157382015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
15739
15740 * Makefile.in: Regenerated with automake-1.11.6.
15741 * aclocal.m4: Likewise.
15742 * config.h.in: Likewise.
15743 * configure: Likewise.
15744 * testsuite/Makefile.in: Likewise.
15745
1be0899d
JM
157462015-05-08 Jason Merrill <jason@redhat.com>
15747
15748 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
15749 _Complex.
15750
15751 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
15752
d2463960
JB
157532015-05-06 Julian Brown <julian@codesourcery.com>
15754
15755 * oacc-init.c (acc_device_lock): Add explanatory comment.
15756 (resolve_device): Add comment about locking requirement.
15757 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
15758 gomp_init_device and gomp_fini_device calls.
15759 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15760 (acc_get_device_num, acc_set_device_num): Add locking around
15761 resolve_device and gomp_init_device calls.
15762
e38fdba4
JB
157632015-05-06 Julian Brown <julian@codesourcery.com>
15764
15765 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
15766 goacc_thread_lock on error paths.
15767 * oacc-mem.c (lookup_host): Remove locking from function. Note
15768 locking requirement for caller in function comment.
15769 (lookup_dev): Likewise.
15770 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
15771 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
15772 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
15773 Add locking.
15774
ae8ffbbb
TS
157752015-05-05 Thomas Schwinge <thomas@codesourcery.com>
15776
15777 PR testsuite/65205
15778 PR libgomp/65993
15779 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
15780 don't expect "0x" prefix for "%p" format specifier, don't expect
15781 "(nil)" for NULL pointer.
15782 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15783 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15784 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15785 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15786 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15787 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15788 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15789 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15790 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15791 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15792 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15793 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15794 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15795 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15796 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15797 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15798 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15799 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15800 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15801 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15802 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15803 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15804 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15805 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15806 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15807 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15808 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15809 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15810 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
15811 accurately specify what we're looking for.
15812 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15813 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15814 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
15815 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
15816 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
15817
1309f1d2
JN
158182015-04-30 James Norris <jnorris@codesourcery.com>
15819
15820 PR testsuite/65205
15821 * testsuite/lib/libgomp.exp
15822 (check_effective_target_openacc_host_selected)
15823 (check_effective_target_openacc_host_nonshm_selected): New
15824 procedures.
15825 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
15826 dg-shouldfail.
15827 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15828 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15829 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15830 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15831 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15832 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15833 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15834 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15835 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15836 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15837 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15838 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15839 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15840 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15841 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15842 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15843 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15844 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15845 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15846 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15847 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15848 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15849 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15850 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15851 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15852 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15853 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15854 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15855 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15856 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15857 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15858 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15859 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15860 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15861 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15862 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15863 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15864 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15865 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15866 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15867 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15868 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15869 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15870
d93bdab5
JB
158712015-04-08 Julian Brown <julian@codesourcery.com>
15872
15873 * libgomp.h (target_mem_desc: Remove mem_map field.
15874 (acc_dispatch_t): Remove open_device_func, close_device_func,
15875 get_device_num_func, set_device_num_func, target_data members.
15876 Change create_thread_data_func argument to device number instead of
15877 generic pointer.
15878 * oacc-async.c (assert.h): Include.
15879 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
15880 (acc_wait_all, acc_wait_all_async): Use current host thread's
15881 active device, not base_dev.
15882 * oacc-cuda.c (acc_get_current_cuda_device)
15883 (acc_get_current_cuda_context, acc_get_cuda_stream)
15884 (acc_set_cuda_stream): Likewise.
15885 * oacc-host.c (host_dispatch): Don't set open_device_func,
15886 close_device_func, get_device_num_func or set_device_num_func.
15887 * oacc-init.c (base_dev, init_key): Remove.
15888 (cached_base_dev): New.
15889 (name_of_acc_device_t): New.
15890 (acc_init_1): Initialise default-numbered device, not zeroth.
15891 (acc_shutdown_1): Close all devices of a given type.
15892 (goacc_destroy_thread): Don't use base_dev.
15893 (lazy_open, lazy_init, lazy_init_and_open): Remove.
15894 (goacc_attach_host_thread_to_device): New.
15895 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
15896 (acc_get_num_devices): Don't use base_dev.
15897 (acc_set_device_type): Reimplement.
15898 (acc_get_device_type): Don't use base_dev.
15899 (acc_get_device_num): Tweak logic.
15900 (acc_set_device_num): Likewise.
15901 (acc_on_device): Use acc_get_device_type.
15902 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
15903 (goacc_lazy_initialize): Reimplement with acc_init and
15904 goacc_attach_host_thread_to_device.
15905 * oacc-int.h (goacc_thread): Add base_dev field.
15906 (base_dev): Remove extern declaration.
15907 (goacc_attach_host_thread_to_device): Add prototype.
15908 * oacc-mem.c (acc_malloc): Use current thread's device instead of
15909 base_dev.
15910 (acc_free): Likewise.
15911 (acc_memcpy_to_device): Likewise.
15912 (acc_memcpy_from_device): Likewise.
15913 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
15914 goacc_lazy_initialize (throughout).
15915 (GOACC_parallel): Use tgt_offset to locate target functions.
15916 * target.c (gomp_map_vars): Don't set tgt->mem_map.
15917 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
15918 (gomp_load_plugin_for_device): Remove open_device, close_device,
15919 get_device_num, set_device_num openacc hook initialisation. Don't set
15920 openacc.target_data.
15921 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
15922 (GOMP_OFFLOAD_openacc_close_device)
15923 (GOMP_OFFLOAD_openacc_get_device_num)
15924 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
15925 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
15926 to int.
15927 * plugin/plugin-nvptx.c (ptx_inited): Remove.
15928 (instantiated_devices, ptx_dev_lock): New.
15929 (struct ptx_image_data): New.
15930 (ptx_devices, ptx_images, ptx_image_lock): New.
15931 (fini_streams_for_device): Reorder cuStreamDestroy call.
15932 (nvptx_get_num_devices): Remove forward declaration.
15933 (nvptx_init): Change return type to bool.
15934 (nvptx_fini): Remove.
15935 (nvptx_attach_host_thread_to_device): New.
15936 (nvptx_open_device): Return struct ptx_device* instead of void*.
15937 (nvptx_close_device): Change argument type to struct ptx_device*,
15938 return type to void.
15939 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
15940 (kernel_target_data, kernel_host_table): Remove static globals.
15941 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
15942 (GOMP_OFFLOAD_init_device): Reimplement.
15943 (GOMP_OFFLOAD_fini_device): Likewise.
15944 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
15945 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
15946 (GOMP_OFFLOAD_host2dev): Use ORD argument.
15947 (GOMP_OFFLOAD_openacc_open_device)
15948 (GOMP_OFFLOAD_openacc_close_device)
15949 (GOMP_OFFLOAD_openacc_set_device_num)
15950 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
15951 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
15952 (device number).
15953
15954 testsuite/
15955 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
15956
a51df54e
IV
159572015-04-06 Ilya Verbin <ilya.verbin@intel.com>
15958
15959 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
15960 * libgomp.h (struct gomp_memory_mapping): Remove.
15961 (struct target_mem_desc): Change type of mem_map from
15962 gomp_memory_mapping * to splay_tree_s *.
15963 (struct gomp_device_descr): Remove register_image_func, get_table_func.
15964 Add load_image_func, unload_image_func.
15965 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
15966 Remove offload_regions_registered.
15967 (gomp_init_tables): Remove.
15968 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15969 to splay_tree_s *.
15970 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
15971 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
15972 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
15973 offload_regions_registered.
15974 Initialize load_image_func, unload_image_func, mem_map.root.
15975 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
15976 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
15977 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
15978 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
15979 gomp_memory_mapping *. Use dev's lock and splay_tree.
15980 (lookup_dev): Use dev's lock.
15981 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
15982 (acc_is_present): Likewise.
15983 (acc_map_data): Likewise.
15984 (acc_unmap_data): Likewise. Use dev's lock.
15985 (present_create_copy): Likewise.
15986 (delete_copyout): Pass dev to lookup_host instead of mem_map.
15987 (update_dev_host): Likewise.
15988 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
15989 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
15990 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
15991 (GOMP_OFFLOAD_get_table): Remove
15992 (GOMP_OFFLOAD_load_image): New function.
15993 (GOMP_OFFLOAD_unload_image): New function.
15994 * target.c (register_lock): New mutex for offload image registration.
15995 (num_devices): Do not guard with PLUGIN_SUPPORT.
15996 (gomp_realloc_unlock): New static function.
15997 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
15998 before gomp_fatal.
15999 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
16000 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
16001 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
16002 mem_map's.
16003 (gomp_unmap_vars): Likewise.
16004 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
16005 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
16006 (gomp_offload_image_to_device): New static function.
16007 (GOMP_offload_register): Add mutex lock.
16008 Call gomp_offload_image_to_device for all initialized devices.
16009 Replace gomp_realloc with gomp_realloc_unlock.
16010 (GOMP_offload_unregister): New function.
16011 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
16012 get_table_func from the plugin with calls to init_device_func and
16013 gomp_offload_image_to_device.
16014 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
16015 to splay_tree_s *.
16016 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
16017 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
16018 (GOMP_target_data): Do not call gomp_init_tables.
16019 (GOMP_target_update): Likewise. Remove argument from gomp_update.
16020 (gomp_load_plugin_for_device): Replace register_image and get_table
16021 with load_image and unload_image in DLSYM ().
16022 (gomp_register_images_for_device): Remove function.
16023 (gomp_target_init): Do not initialize current_device.mem_map.*,
16024 current_device.offload_regions_registered.
16025 Remove call to gomp_register_images_for_device.
16026 Do not free offload_images and num_offload_images.
16027
6c384511
JJ
160282015-03-30 Jakub Jelinek <jakub@redhat.com>
16029
16030 PR fortran/65597
16031 * testsuite/libgomp.fortran/pr65597.f90: New test.
16032
3e8165a5
TV
160332015-03-27 Tom de Vries <tom@codesourcery.com>
16034
16035 PR testsuite/65594
16036 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
16037 (init, check): New function.
16038 (foo): Change return type to void.
16039 (main): Call init and check.
16040
4d688c9a
TV
160412015-03-27 Tom de Vries <tom@codesourcery.com>
16042
16043 PR testsuite/65594
16044 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
16045 (foo): Use M for non-inner loops to scale down test-case.
16046
01c0b3b0
KT
160472015-03-25 Kai Tietz <ktietz@redhat.com>
16048
16049 PR libgomp/64972
16050 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
16051 (GOACC_data_start): Likewise.
16052 * target.c (gomp_map_vars): Likewise.
16053
844d9a76
JDA
160542015-03-21 John David Anglin <danglin@gcc.gnu.org>
16055
16056 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
16057 hppa*-*-hpux*.
16058
9b65e171
JJ
160592015-03-19 Jakub Jelinek <jakub@redhat.com>
16060
16061 * testsuite/libgomp.c/target-10.c: New test.
16062 * testsuite/libgomp.c++/target-4.C: New test.
16063
db397e2e
IV
160642015-03-13 Ilya Verbin <ilya.verbin@intel.com>
16065
16066 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
16067 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
16068
cd93945d
SH
160692015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
16070
16071 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
16072 * configure.ac (*-*-rtems*): Assume Pthread is supported.
16073 (pthread.h): Check for this header file.
16074 * configure: Regenerate.
16075
05deba9f
TV
160762015-02-25 Tom de Vries <tom@codesourcery.com>
16077
16078 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
16079 (check_reduction_op, check_reduction_macro, max, min):
16080 Declare.
16081 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
16082 function.
16083 (main): Use new functions.
16084
196904d8
IT
160852015-02-18 Ilya Tocar <ilya.tocar@intel.com>
16086
16087 * target.c (gomp_load_plugin_for_device): Use const char * instead of
16088 char * for variables holding dlerror return values.
16089 (DLSYM_OPT): Ditto.
16090
a2818955
TS
160912015-02-17 Thomas Schwinge <thomas@codesourcery.com>
16092
16093 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
16094
26f93312
TS
160952015-02-17 Thomas Schwinge <thomas@codesourcery.com>
16096 Cesar Philippidis <cesar@codesourcery.com>
16097
16098 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
16099 GOACC_ctaid, and GOACC_nctaid routines.
16100
fa01ffcc
JJ
161012015-02-11 Jakub Jelinek <jakub@redhat.com>
16102
16103 PR c/64824
16104 * testsuite/libgomp.c/atomic-18.c: New test.
16105 * testsuite/libgomp.c++/atomic-16.C: New test.
16106
4886ec8e
JJ
161072015-02-04 Jakub Jelinek <jakub@redhat.com>
16108
16109 PR c/64824
16110 PR c/64868
16111 * testsuite/libgomp.c/pr64824.c: New test.
16112 * testsuite/libgomp.c/pr64868.c: New test.
16113 * testsuite/libgomp.c++/pr64824.C: New test.
16114 * testsuite/libgomp.c++/pr64868.C: New test.
16115
02d3e45e
DE
161162015-02-01 David Edelsohn <dje.gcc@gmail.com>
16117
16118 PR libgomp/64635
16119 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
16120 Link with -lpthread.
16121 * config/aix/plugin-suffix.h: Delete.
16122
b5f7a6ca
JH
161232015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
16124
16125 PR libgomp/64635
16126 * configure.tgt (*-*-aix*): Use config_path "aix posix".
16127 (*-*-darwin*): Use config_path "bsd darwin posix".
16128 (*-*-hpux*): Use config_path "hpux posix".
16129 * target.c: Add include of plugin-suffix.h and use
16130 SONAME_SUFFIX macro.
16131 * config/aix/plugin-suffix.h: New file.
16132 * config/darwin/plugin-suffix.h: New file.
16133 * config/hpux/plugin-suffix.h: New file.
16134 * config/posix/plugin-suffix.h: New file.
16135
b8910447
JJ
161362015-01-23 Jakub Jelinek <jakub@redhat.com>
16137
16138 PR middle-end/64734
16139 * libgomp.c/pr64734.c: New test.
16140
a0c88d06
TV
161412015-01-23 Tom de Vries <tom@codesourcery.com>
16142
16143 PR libgomp/64672
16144 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
16145
1506ae0e
TV
161462015-01-23 Tom de Vries <tom@codesourcery.com>
16147
16148 PR libgomp/64707
16149 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
16150 dg-options.
16151
128b26dc
TS
161522015-01-19 Thomas Schwinge <thomas@codesourcery.com>
16153
bed62c21 16154 PR libgomp/64625
128b26dc
TS
16155 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
16156 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
16157 formal parameter. Update all users.
16158 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
16159 Document unused formal parameter.
16160
6e36114c
TS
161612015-01-16 Thomas Schwinge <thomas@codesourcery.com>
16162
16163 * oacc-parallel.c: Don't include <alloca.h>.
16164 (GOACC_parallel): Use gomp_alloca instead of alloca.
16165
973e9808
GP
161662015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
16167
16168 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
16169
41dbbb37
TS
161702015-01-15 Thomas Schwinge <thomas@codesourcery.com>
16171 James Norris <jnorris@codesourcery.com>
16172 Tom de Vries <tom@codesourcery.com>
16173 Julian Brown <julian@codesourcery.com>
16174 Cesar Philippidis <cesar@codesourcery.com>
16175 Nathan Sidwell <nathan@codesourcery.com>
16176 Tobias Burnus <burnus@net-b.de>
16177
16178 * Makefile.am (search_path): Add $(top_srcdir)/../include.
16179 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
16180 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
16181 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
16182 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
16183 Include $(top_srcdir)/plugin/Makefrag.am.
16184 (nodist_libsubinclude_HEADERS): Add openacc.h.
16185 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
16186 openacc.f90, openacc.mod, openacc_kinds.mod.
16187 (omp_lib.mod): Generalize into...
16188 (%.mod): ... this new rule.
16189 (openacc_kinds.mod, openacc.mod): New rules.
16190 * plugin/configfrag.ac: New file.
16191 * configure.ac: Move plugin/offloading support into it. Include
16192 it. Instantiate testsuite/libgomp-test-support.pt.exp.
16193 * plugin/Makefrag.am: New file.
16194 * testsuite/Makefile.am (OFFLOAD_TARGETS)
16195 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
16196 export.
16197 (libgomp-test-support.exp): New rule.
16198 (all-local): Depend on it.
16199 * Makefile.in: Regenerate.
16200 * testsuite/Makefile.in: Regenerate.
16201 * config.h.in: Likewise.
16202 * configure: Likewise.
16203 * configure.tgt: Harden shell syntax.
16204 * env.c: Include "oacc-int.h".
16205 (parse_acc_device_type): New function.
16206 (gomp_debug_var, goacc_device_type, goacc_device_num): New
16207 variables.
16208 (initialize_env): Initialize those. Call
16209 goacc_runtime_initialize.
16210 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
16211 (gomp_fatal): Call gomp_vfatal.
16212 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
16213 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
16214 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
16215 (splay_tree_node, splay_tree, splay_tree_key)
16216 (struct target_mem_desc, struct splay_tree_key_s)
16217 (struct gomp_memory_mapping, struct acc_dispatch_t)
16218 (struct gomp_device_descr, gomp_acc_insert_pointer)
16219 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
16220 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
16221 (gomp_free_memmap, gomp_fini_device): New declarations.
16222 (gomp_vdebug, gomp_debug): New macros.
16223 Include "splay-tree.h".
16224 * libgomp.map (OACC_2.0): New symbol version. Use for
16225 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
16226 acc_set_device_type_h_, acc_get_device_type,
16227 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
16228 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
16229 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
16230 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
16231 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
16232 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
16233 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
16234 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
16235 acc_copyin_array_h_, acc_present_or_copyin,
16236 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
16237 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
16238 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
16239 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
16240 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
16241 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
16242 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
16243 acc_update_device, acc_update_device_32_h_,
16244 acc_update_device_64_h_, acc_update_device_array_h_,
16245 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
16246 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
16247 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
16248 acc_is_present_64_h_, acc_is_present_array_h_,
16249 acc_memcpy_to_device, acc_memcpy_from_device,
16250 acc_get_current_cuda_device, acc_get_current_cuda_context,
16251 acc_get_cuda_stream, acc_set_cuda_stream.
16252 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
16253 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
16254 GOACC_update, GOACC_wait, GOACC_get_thread_num,
16255 GOACC_get_num_threads.
16256 (GOMP_PLUGIN_1.0): New symbol version. Use for
16257 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
16258 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
16259 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
16260 GOMP_PLUGIN_acc_thread.
16261 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
16262 environment variable.
16263 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
16264 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
16265 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
16266 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
16267 (splay_tree_remove): New declarations.
16268 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
16269 (splay_tree_remove, splay_tree_lookup): Move into...
16270 * splay-tree.c: ... this new file.
16271 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
16272 (splay_tree_node, splay_tree, splay_tree_key)
16273 (struct target_mem_desc, struct splay_tree_key_s)
16274 (struct gomp_device_descr): Don't declare.
16275 (num_devices_openmp): New variable.
16276 (gomp_get_num_devices ): Use it.
16277 (gomp_init_targets_once): New function.
16278 (gomp_get_num_devices ): Use it.
16279 (get_kind, gomp_copy_from_async, gomp_free_memmap)
16280 (gomp_fini_device, gomp_register_image_for_device): New functions.
16281 (gomp_map_vars): Add devaddrs parameter.
16282 (gomp_update): Add mm parameter.
16283 (gomp_init_device): Move most of it into...
16284 (gomp_init_tables): ... this new function.
16285 (gomp_register_images_for_device): Remove function.
16286 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
16287 Make them hidden instead of static.
16288 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
16289 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
16290 (GOMP_target_end_data, GOMP_target_update)
16291 (gomp_load_plugin_for_device, gomp_target_init): Update for
16292 OpenACC changes.
16293 * oacc-async.c: New file.
16294 * oacc-cuda.c: Likewise.
16295 * oacc-host.c: Likewise.
16296 * oacc-init.c: Likewise.
16297 * oacc-int.h: Likewise.
16298 * oacc-mem.c: Likewise.
16299 * oacc-parallel.c: Likewise.
16300 * oacc-plugin.c: Likewise.
16301 * oacc-plugin.h: Likewise.
16302 * oacc-ptx.h: Likewise.
16303 * openacc.f90: Likewise.
16304 * openacc.h: Likewise.
16305 * openacc_lib.h: Likewise.
16306 * plugin/plugin-host.c: Likewise.
16307 * plugin/plugin-nvptx.c: Likewise.
16308 * libgomp-plugin.c: Likewise.
16309 * libgomp-plugin.h: Likewise.
16310 * libgomp_target.h: Remove file after merging content into the
16311 former file. Update all users.
16312 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
16313 (offload_targets_s, offload_targets_s_openacc): New variables.
16314 (check_effective_target_openacc_nvidia_accel_present)
16315 (check_effective_target_openacc_nvidia_accel_selected): New
16316 procedures.
16317 (libgomp_init): Update for OpenACC changes.
16318 * testsuite/libgomp-test-support.exp.in: New file.
16319 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
16320 * testsuite/libgomp.oacc-c/c.exp: Likewise.
16321 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
16322 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
16323 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
16324 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
16325 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
16326 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
16327 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
16328 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
16329 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
16330 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
16331 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
16332 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
16333 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
16334 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
16335 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
16336 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
16337 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
16338 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
16339 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
16340 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
16341 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
16342 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
16343 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
16344 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
16345 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
16346 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
16347 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
16348 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
16349 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
16350 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
16351 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
16352 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
16353 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
16354 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
16355 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
16356 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
16357 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
16358 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
16359 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
16360 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
16361 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
16362 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
16363 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
16364 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
16365 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
16366 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
16367 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
16368 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
16369 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
16370 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
16371 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
16372 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
16373 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
16374 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
16375 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
16376 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
16377 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
16378 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
16379 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
16380 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
16381 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
16382 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
16383 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
16384 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
16385 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
16386 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
16387 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
16388 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
16389 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
16390 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
16391 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
16392 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
16393 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
16394 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
16395 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
16396 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
16397 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
16398 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
16399 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
16400 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
16401 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
16402 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
16403 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
16404 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
16405 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
16406 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
16407 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
16408 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
16409 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
16410 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
16411 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
16412 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
16413 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
16414 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
16415 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
16416 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
16417 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
16418 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
16419 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
16420 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
16421 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
16422 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
16423 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
16424 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
16425 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
16426 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
16427 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
16428 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
16429 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
16430 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
16431 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
16432 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
16433 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
16434 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
16435 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
16436 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
16437 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
16438 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
16439 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
16440 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
16441 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
16442 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
16443 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
16444 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
16445 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
16446 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
16447 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
16448 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
16449 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
16450 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
16451 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
16452 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
16453 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
16454 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
16455 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
16456 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
16457 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
16458 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
16459 Likewise.
16460 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
16461 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
16462 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
16463 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
16464 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
16465 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
16466 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
16467 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
16468 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
16469 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
16470 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
16471 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
16472 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
16473 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
16474 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
16475 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
16476 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
16477 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
16478 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
16479 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
16480 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
16481 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
16482 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
16483 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
16484 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
16485 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
16486 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
16487 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
16488 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
16489 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
16490 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
16491 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
16492 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
16493 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
16494 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
16495 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
16496 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
16497 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
16498 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
16499 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
16500 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
16501 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
16502 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
16503 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
16504 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
16505 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
16506 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
16507 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
16508 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
16509 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
16510 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
16511 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
16512 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
16513 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
16514 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
16515 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
16516 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
16517 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
16518 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
16519 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
16520
f1f3453e
TS
165212015-01-10 Thomas Schwinge <thomas@codesourcery.com>
16522 Julian Brown <julian@codesourcery.com>
16523 David Malcolm <dmalcolm@redhat.com>
16524
16525 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
16526 to "GNU Offloading and Multi Processing Runtime Library". Change
16527 all users.
16528 * configure: Regenerate.
16529 * libgomp.texi: Update.
16530
f9a0eca4
TS
165312015-01-08 Thomas Schwinge <thomas@codesourcery.com>
16532
b335ef4e
TS
16533 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
16534 "$tgt_dir/lib32".
16535 * configure: Regenerate.
16536
f9a0eca4
TS
16537 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
16538 "intelmic" in $offload_targets.
16539
b67cd4e3
JJ
165402015-01-05 Jakub Jelinek <jakub@redhat.com>
16541
5624e564
JJ
16542 Update copyright years.
16543
b67cd4e3
JJ
16544 * libgomp.texi: Bump @copying's copyright year.
16545
3b41b583
KT
165462014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16547
16548 * testsuite/lib/libgomp.exp: Load target-utils.exp.
93d90219 16549 Move load of target-supports.exp earlier.
3b41b583 16550
2354caec
IV
165512014-12-10 Ilya Verbin <ilya.verbin@intel.com>
16552
16553 * testsuite/libgomp.c/target-9.c: New test.
16554
f50eecba
VR
165552014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
16556
16557 * config.h.in: Regenerate.
16558 * configure: Regenerate.
16559 * configure.ac: Add GCC_CHECK_EMUTLS.
16560 * libgomp.h: Add check for USE_EMUTLS: this case
16561 is equal to HAVE_TLS.
16562 * team.c: Likewise.
16563
68bc9270
UB
165642014-12-03 Uros Bizjak <ubizjak@gmail.com>
16565
16566 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
16567
476ff787
AT
165682014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
16569 Ilya Verbin <ilya.verbin@intel.com>
16570
16571 * testsuite/libgomp.c/target-critical-1.c: New test.
16572
31a30e62
JJ
165732014-11-26 Jakub Jelinek <jakub@redhat.com>
16574
16575 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
68bc9270 16576 to dg-options unless expensive testing is on.
31a30e62
JJ
16577 (TESTITERS): Define to N if not defined.
16578 (main): Use TESTITERS instead of N.
16579 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
16580 dg-additional-options depending on whether expensive testing is on.
16581 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
16582 Decrease N to 100000 and CHUNKSZ to 10000.
16583
3f9e8f13
JJ
165842014-11-24 Jakub Jelinek <jakub@redhat.com>
16585
16586 PR fortran/63938
31a30e62
JJ
16587 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
16588 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
3f9e8f13 16589
c8451a46
SE
165902014-11-21 Steve Ellcey <sellcey@imgtec.com>
16591
16592 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
16593
a699d672
L
165942014-11-21 H.J. Lu <hongjiu.lu@intel.com>
16595
16596 PR bootstrap/63784
16597 * configure: Regenerated.
16598
4a19f719
UB
165992014-11-19 Uros Bizjak <ubizjak@gmail.com>
16600
16601 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
16602 vect_simd_clones effective target.
16603 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16604
b1bf6c52
JJ
166052014-11-14 Jakub Jelinek <jakub@redhat.com>
16606
16607 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
16608 of 32 as block_size.
16609 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
16610 instead of 32 as block_size.
16611
d64ae614
AT
166122014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
16613 Ilya Verbin <ilya.verbin@intel.com>
16614
16615 * Makefile.in: Regenerate.
16616 * configure: Regenerate.
16617 * configure.ac: Set up offload_additional_options,
16618 offload_additional_lib_paths and offload_targets.
16619 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
16620 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
16621 * testsuite/Makefile.in: Regenerate.
16622 * testsuite/lib/libgomp.exp (libgomp_init): Append
16623 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
16624 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
16625 build directory to LD_LIBRARY_PATH for intelmic offload targets.
16626
122d7303
AT
166272014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
16628 Ilya Verbin <ilya.verbin@intel.com>
16629 Kirill Yukhin <kirill.yukhin@intel.com>
16630 Ilya Tocar <ilya.tocar@intel.com>
16631
16632 * testsuite/lib/libgomp.exp
16633 (check_effective_target_offload_device): New.
16634 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
16635 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
16636 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
16637 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
16638 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
16639 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
16640 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
16641 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
16642 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
16643 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
16644 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
16645 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
16646 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
16647 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
16648 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
16649 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
16650 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
16651 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
16652 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
16653 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
16654 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
16655 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
16656 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
16657 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
16658 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
16659 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
16660 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
16661 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
16662 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
16663 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
16664 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
16665 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
16666 * testsuite/libgomp.c/target-7.c: Fix test.
16667 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
16668 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
16669 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
16670 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
16671 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
16672 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
16673 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
16674 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
16675 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
16676 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
16677 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
16678 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
16679 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
16680 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
16681 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
16682 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
16683 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
16684 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
16685 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16686 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
16687 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
16688 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
16689 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
16690 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
16691 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
16692 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
16693 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
16694 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
16695 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
16696 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
16697 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
16698
1df3f842
JJ
166992014-11-13 Jakub Jelinek <jakub@redhat.com>
16700 Ilya Verbin <ilya.verbin@intel.com>
16701 Thomas Schwinge <thomas@codesourcery.com>
16702 Andrey Turetskiy <andrey.turetskiy@intel.com>
16703
16704 * libgomp.map (GOMP_4.0.1): New symbol version.
16705 Add GOMP_offload_register.
16706 * libgomp_target.h: New file.
16707 * splay-tree.h: New file.
16708 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
16709 (gomp_target_init): New forward declaration.
16710 (gomp_is_initialized): New static variable.
16711 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
16712 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
16713 New structures.
16714 (offload_images, num_offload_images, devices, num_devices): New static
16715 variables.
16716 (splay_compare): New static function.
16717 (struct gomp_device_descr): New structure.
16718 (gomp_get_num_devices): Call gomp_target_init.
16719 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
16720 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
16721 (GOMP_offload_register): New function.
16722 (GOMP_target): Arrange for host callback to be performed in a separate
16723 initial thread and contention group, inheriting ICVs from
16724 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
16725 Add device initialization and lookup for target function in splay tree.
16726 (GOMP_target_data): Add device initialization and call gomp_map_vars.
16727 (GOMP_target_end_data): Call gomp_unmap_vars.
16728 (GOMP_target_update): Add device initialization and call gomp_update.
16729 (gomp_load_plugin_for_device, gomp_register_images_for_device)
16730 (gomp_target_init): New static functions.
16731
85c64bbe
BS
167322014-11-13 Bernd Schmidt <bernds@codesourcery.com>
16733 Thomas Schwinge <thomas@codesourcery.com>
16734 Ilya Verbin <ilya.verbin@intel.com>
16735 Andrey Turetskiy <andrey.turetskiy@intel.com>
16736
16737 * config.h.in: Regenerate.
16738 * configure: Regenerate.
16739 * configure.ac: Check for libdl, required for plugin support.
16740 (PLUGIN_SUPPORT): Define if plugins are supported.
16741 (enable_offload_targets): Support Intel MIC targets.
16742 (OFFLOAD_TARGETS): List of target names suitable for offloading.
16743
ebf6d33b
FXC
167442014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16745
16746 PR target/63610
16747 * configure: Regenerate.
16748
8c768629
RO
167492014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16750
16751 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
16752
c1d62412
MP
167532014-10-06 Marek Polacek <polacek@redhat.com>
16754
16755 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
16756 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
16757 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
16758 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16759
44a0c6cb
MP
167602014-10-06 Marek Polacek <polacek@redhat.com>
16761
16762 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
16763 * testsuite/libgomp.c/nqueens-1.c: Likewise.
16764 * testsuite/libgomp.c/pr26943-3.c: Likewise.
16765 * testsuite/libgomp.c/pr26943-4.c: Likewise.
16766 * testsuite/libgomp.c/pr36802-2.c: Likewise.
16767 * testsuite/libgomp.c/pr36802-3.c: Likewise.
16768 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
16769 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16770 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
16771 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
16772 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
16773 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
16774 * testsuite/libgomp.c/omp-single-1.c: Likewise.
16775 * testsuite/libgomp.c/omp-single-2.c: Likewise.
16776 * testsuite/libgomp.c/omp_matvec.c: Likewise.
16777 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
16778 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
16779 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
16780 declarations.
16781
5771c391
JJ
167822014-10-03 Jakub Jelinek <jakub@redhat.com>
16783
16784 PR libgomp/61200
16785 * testsuite/libgomp.c/pr61200.c: New test.
16786
bce16b88
JJ
167872014-09-18 Jakub Jelinek <jakub@redhat.com>
16788
16789 PR c++/63248
16790 * testsuite/libgomp.c++/pr63248.C: New test.
16791
3696163c
JJ
167922014-08-04 Jakub Jelinek <jakub@redhat.com>
16793
16794 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
16795 is not zero, but taskgroup->children is NULL and there are
16796 any task->children, schedule those instead of waiting.
16797 * testsuite/libgomp.c/depend-6.c: New test.
16798 * testsuite/libgomp.c/depend-7.c: New test.
16799 * testsuite/libgomp.c/depend-8.c: New test.
16800 * testsuite/libgomp.c/depend-9.c: New test.
16801 * testsuite/libgomp.c/depend-10.c: New test.
16802
0494285a
JJ
168032014-08-01 Jakub Jelinek <jakub@redhat.com>
16804
16805 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
16806 (struct gomp_taskwait): New type.
16807 (struct gomp_task): Add taskwait and parent_depends_on, remove
16808 in_taskwait and taskwait_sem fields.
16809 (gomp_finish_task): Don't destroy taskwait_sem.
16810 * task.c (gomp_init_task): Don't init in_taskwait, instead init
16811 taskwait and parent_depends_on.
16812 (GOMP_task): For if (0) tasks with depend clause that depend on
16813 earlier tasks don't defer them, instead call
16814 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
16815 Initialize redundant_out field, for redundant out entries just
16816 move them at the end of linked list instead of removing them
16817 completely, and set redundant_out flag instead of redundant.
16818 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
16819 that task.
16820 (gomp_task_run_post_handle_dependers): If parent is in
16821 gomp_task_maybe_wait_for_dependencies and newly runnable task
16822 is not parent_depends_on, queue it in parent->children linked
16823 list after all runnable tasks with parent_depends_on set.
16824 Adjust for addition of taskwait indirection.
16825 (gomp_task_run_post_remove_parent): If parent is in
16826 gomp_task_maybe_wait_for_dependencies and task to be removed
16827 is parent_depends_on, decrement n_depend and if needed awake
16828 parent. Adjust for addition of taskwait indirection.
16829 (GOMP_taskwait): Adjust for addition of taskwait indirection.
16830 (gomp_task_maybe_wait_for_dependencies): New function.
16831 * testsuite/libgomp.c/depend-5.c: New test.
16832
60ab4b44
TB
168332014-07-13 Tobias Burnus <burnus@net-b.de>
16834
16835 * testsuite/libgomp.fortran/pr34020.f90: Make compile
0494285a 16836 with TS 18508/Fortran 2015.
60ab4b44 16837
773ec47f
MP
168382014-07-06 Marek Polacek <polacek@redhat.com>
16839
16840 PR c/6940
16841 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
16842
f707da16
JJ
168432014-07-03 Jakub Jelinek <jakub@redhat.com>
16844
16845 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
16846 matches regex $lang_source_re, add $lang_include_flags to options.
16847 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
16848 * testsuite/libgomp.c++/c++.exp: Likewise.
16849 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
16850 and lang_include_flags instead of adding -fintrinsic-modules-path= to
16851 ALWAYS_CFLAGS.
16852 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
16853
07b6c044
TS
168542014-07-03 Thomas Schwinge <thomas@codesourcery.com>
16855
16856 * testsuite/libgomp.fortran/fortran.exp: Explain
16857 gfortran-dg-runtest usage.
16858
da6f124d
JJ
168592014-06-25 Jakub Jelinek <jakub@redhat.com>
16860
16861 * testsuite/libgomp.fortran/simd5.f90: New test.
16862 * testsuite/libgomp.fortran/simd6.f90: New test.
16863 * testsuite/libgomp.fortran/simd7.f90: New test.
16864
b46ebd6c
JJ
168652014-06-24 Jakub Jelinek <jakub@redhat.com>
16866
56ad0e38
JJ
16867 * testsuite/libgomp.c/for-2.c: Define SC to static for
16868 #pragma omp for simd testing.
16869 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
16870 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
16871 SC macro.
16872 * testsuite/libgomp.c/simd-14.c: New test.
16873 * testsuite/libgomp.c/simd-15.c: New test.
16874 * testsuite/libgomp.c/simd-16.c: New test.
16875 * testsuite/libgomp.c/simd-17.c: New test.
16876 * testsuite/libgomp.c++/for-10.C: Define SC to static for
16877 #pragma omp for simd testing.
16878 * testsuite/libgomp.c++/simd10.C: New test.
16879 * testsuite/libgomp.c++/simd11.C: New test.
16880 * testsuite/libgomp.c++/simd12.C: New test.
16881 * testsuite/libgomp.c++/simd13.C: New test.
16882
b46ebd6c
JJ
16883 * testsuite/libgomp.fortran/aligned1.f03: New test.
16884 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
16885 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
16886 tasks with !$omp parallel !$omp single.
16887 * testsuite/libgomp.fortran/target8.f90: New test.
16888 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
16889 not to use trim in the combiner, instead call elemental function.
16890 (fn): New elemental function.
16891 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
16892 Make elemental.
16893 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
16894 omp_in): Likewise.
16895 * testsuite/libgomp.fortran/udr12.f90: New test.
16896 * testsuite/libgomp.fortran/udr13.f90: New test.
16897 * testsuite/libgomp.fortran/udr14.f90: New test.
16898 * testsuite/libgomp.fortran/udr15.f90: New test.
16899
f014c653
JJ
169002014-06-18 Jakub Jelinek <jakub@redhat.com>
16901
16902 * omp_lib.f90.in (openmp_version): Set to 201307.
16903 * omp_lib.h.in (openmp_version): Likewise.
16904 * testsuite/libgomp.c/target-8.c: New test.
16905 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
16906 and inbranch clauses.
16907 * testsuite/libgomp.fortran/depend-3.f90: New test.
16908 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
16909 openmp_version.
16910 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
16911 * testsuite/libgomp.fortran/target1.f90: New test.
16912 * testsuite/libgomp.fortran/target2.f90: New test.
16913 * testsuite/libgomp.fortran/target3.f90: New test.
16914 * testsuite/libgomp.fortran/target4.f90: New test.
16915 * testsuite/libgomp.fortran/target5.f90: New test.
16916 * testsuite/libgomp.fortran/target6.f90: New test.
16917 * testsuite/libgomp.fortran/target7.f90: New test.
16918
92d28cbb
JJ
169192014-06-10 Jakub Jelinek <jakub@redhat.com>
16920
16921 PR fortran/60928
16922 * testsuite/libgomp.fortran/allocatable9.f90: New test.
16923 * testsuite/libgomp.fortran/allocatable10.f90: New test.
16924 * testsuite/libgomp.fortran/allocatable11.f90: New test.
16925 * testsuite/libgomp.fortran/allocatable12.f90: New test.
16926 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
16927 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
16928 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
16929 * testsuite/libgomp.fortran/associate1.f90: New test.
16930 * testsuite/libgomp.fortran/associate2.f90: New test.
16931 * testsuite/libgomp.fortran/procptr1.f90: New test.
16932
5f23671d
JJ
169332014-06-06 Jakub Jelinek <jakub@redhat.com>
16934
16935 * testsuite/libgomp.fortran/simd1.f90: New test.
16936 * testsuite/libgomp.fortran/udr1.f90: New test.
16937 * testsuite/libgomp.fortran/udr2.f90: New test.
16938 * testsuite/libgomp.fortran/udr3.f90: New test.
16939 * testsuite/libgomp.fortran/udr4.f90: New test.
16940 * testsuite/libgomp.fortran/udr5.f90: New test.
16941 * testsuite/libgomp.fortran/udr6.f90: New test.
16942 * testsuite/libgomp.fortran/udr7.f90: New test.
16943 * testsuite/libgomp.fortran/udr8.f90: New test.
16944 * testsuite/libgomp.fortran/udr9.f90: New test.
16945 * testsuite/libgomp.fortran/udr10.f90: New test.
16946 * testsuite/libgomp.fortran/udr11.f90: New test.
16947
0389fbb5
UB
169482014-05-27 Uros Bizjak <ubizjak@gmail.com>
16949
16950 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
16951 vect_simd_clones effective target.
16952 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
16953
decaaec8
JJ
169542014-05-21 Jakub Jelinek <jakub@redhat.com>
16955
16956 PR middle-end/61252
16957 * testsuite/libgomp.c++/simd-9.C: New test.
16958
72832460
UB
169592014-05-18 Uros Bizjak <ubizjak@gmail.com>
16960
16961 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
16962 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
16963 texts according to their @menu entry positions.
16964
dd2fc525
JJ
169652014-05-11 Jakub Jelinek <jakub@redhat.com>
16966
16967 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
16968 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
16969 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
16970 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
16971 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
16972 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
16973 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
16974 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
16975 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
16976 * testsuite/libgomp.fortran/depend-1.f90: New test.
16977 * testsuite/libgomp.fortran/depend-2.f90: New test.
16978 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
16979 * testsuite/libgomp.fortran/simd1.f90: New test.
16980 * testsuite/libgomp.fortran/simd2.f90: New test.
16981 * testsuite/libgomp.fortran/simd3.f90: New test.
16982 * testsuite/libgomp.fortran/simd4.f90: New test.
16983 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
16984
95782571
JJ
169852014-05-02 Jakub Jelinek <jakub@redhat.com>
16986
16987 * testsuite/libgomp.c/simd-10.c: New test.
16988 * testsuite/libgomp.c/simd-11.c: New test.
16989 * testsuite/libgomp.c/simd-12.c: New test.
16990 * testsuite/libgomp.c/simd-13.c: New test.
16991
f7468577
JJ
169922014-04-24 Jakub Jelinek <jakub@redhat.com>
16993
42056eac
JJ
16994 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
16995 atomic type clauses in any order and optional comma in between.
16996 * testsuite/libgomp.c++/atomic-15.C: Likewise.
16997 * testsuite/libgomp.c/atomic-17.c: Likewise.
16998
f7468577
JJ
16999 * testsuite/libgomp.c/simd-7.c: New test.
17000 * testsuite/libgomp.c/simd-8.c: New test.
17001 * testsuite/libgomp.c/simd-9.c: New test.
17002 * testsuite/libgomp.c/loop-16.c: New test.
17003
ab18f2f5
RH
170042014-04-02 Richard Henderson <rth@redhat.com>
17005
17006 * config/linux/futex.h (futex_wait): Get error value from errno.
17007 (futex_wake): Likewise.
17008
8bcc90b0
JJ
170092014-03-25 Jakub Jelinek <jakub@redhat.com>
17010
17011 PR c++/60331
17012 * testsuite/libgomp.c++/udr-11.C: New test.
17013 * testsuite/libgomp.c++/udr-12.C: New test.
17014 * testsuite/libgomp.c++/udr-13.C: New test.
17015 * testsuite/libgomp.c++/udr-14.C: New test.
17016 * testsuite/libgomp.c++/udr-15.C: New test.
17017 * testsuite/libgomp.c++/udr-16.C: New test.
17018 * testsuite/libgomp.c++/udr-17.C: New test.
17019 * testsuite/libgomp.c++/udr-18.C: New test.
17020 * testsuite/libgomp.c++/udr-19.C: New test.
17021
18d73c7f
RS
170222014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
17023
17024 Update copyright years
17025
f9030485
RS
170262014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
17027
17028 * hashtab.h: Use the standard form for the copyright notice.
17029
98db73df
TB
170302014-01-02 Tobias Burnus <burnus@net-b.de>
17031
17032 * libgomp.texi: Bump @copying's copyright year.
17033
ae246f7f
AT
170342013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
17035
93d90219 17036 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
ae246f7f
AT
17037 alloca () with __builtin_alloca ().
17038 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
17039 * testsuite/libgomp.c/lock-3.c: Likewise.
17040 * testsuite/libgomp.c/pr48591.c: Likewise.
17041
fa00a5fe
JJ
170422013-12-17 Jakub Jelinek <jakub@redhat.com>
17043
17044 PR testsuite/59534
17045 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
17046 comparisons.
17047
e9792e1d
JJ
170482013-12-16 Jakub Jelinek <jakub@redhat.com>
17049
17050 PR libgomp/58756
17051 * testsuite/libgomp.c/pr58756.c: New test.
17052
cab37c89
JJ
170532013-12-12 Jakub Jelinek <jakub@redhat.com>
17054
17055 PR libgomp/59467
17056 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
17057 !$omp parallel.
17058
de14871c
TS
170592013-11-07 Thomas Schwinge <thomas@codesourcery.com>
17060
1707a5de
TS
17061 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
17062 ALWAYS_CFLAGS.
17063 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
17064 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
17065 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
17066 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
17067 Likewise.
17068
70f05c43
TS
17069 * libgomp_g.h: Include <stddef.h> for size_t.
17070
de14871c
TS
17071 * libgomp.spec.in: Update comment about libgomp's dependencies.
17072 * configure.ac: Likewise.
17073 * configure: Regenerate.
17074
83fd6c5b
TB
170752013-10-16 Tobias Burnus <burnus@net-b.de>
17076
17077 * libgomp.texi: (Runtime Library Routines): Update references for
17078 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
17079 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
17080 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
17081 (Environment Variables): Update references for OpenMP 4.0. Add
17082 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
17083 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
17084 order.
17085
c8673881
JJ
170862013-10-14 Jakub Jelinek <jakub@redhat.com>
17087
17088 * env.c (parse_bind_var): Initialize value to avoid
17089 (false positive) warning.
17090
f89163fd
JJ
170912013-10-12 Jakub Jelinek <jakub@redhat.com>
17092
17093 PR libgomp/58691
17094 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
17095 to check variable.
17096 (gomp_init_num_threads): Move i variable declaration into
17097 #ifdef CPU_ALLOC_SIZE block.
17098 * config/linux/affinity.c (gomp_affinity_init_level): Test
17099 gomp_places_list_len == 0 rather than gomp_places_list == 0
17100 when checking for topology reading error.
17101 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
17102 * env.c (parse_affinity): Add ignore argument, if true, don't populate
17103 gomp_places_list, only parse env var and always return false.
17104 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
17105 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
17106 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
17107 and either of these variables were parsed correctly into a places
17108 list.
17109
1d340638
TS
171102013-10-11 Thomas Schwinge <thomas@codesourcery.com>
17111 Jakub Jelinek <jakub@redhat.com>
17112
17113 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
17114 of 5 loopfn matches.
17115 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
17116 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
17117 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
17118 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
17119 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
17120 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17121 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17122 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
17123
71a81c21
TS
171242013-10-11 Thomas Schwinge <thomas@codesourcery.com>
17125
bd87f731
TS
17126 * Makefile.am (omp_lib.mod): Streamline rule.
17127 * Makefile.in: Regenerate.
17128
f5745bed
TS
17129 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
17130 exceptions.
17131
b5512c66
TS
17132 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
17133 * testsuite/libgomp.fortran/lib1.f90: Likewise.
17134 * testsuite/libgomp.fortran/lib2.f: Likewise.
17135 * testsuite/libgomp.fortran/lib3.f: Likewise.
17136
451c19c4
TS
17137 * configure.ac: Typo fix.
17138 * configure: Regenerate.
17139
86a6016d
TS
17140 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
17141 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
17142
71a81c21
TS
17143 * omp.h.in: Don't touch the user's namespace.
17144
acf0174b
JJ
171452013-10-11 Jakub Jelinek <jakub@redhat.com>
17146 Tobias Burnus <burnus@net-b.de>
17147 Richard Henderson <rth@redhat.com>
17148
17149 * target.c: New file.
17150 * Makefile.am (libgomp_la_SOURCES): Add target.c.
17151 * Makefile.in: Regenerated.
17152 * libgomp_g.h (GOMP_task): Add depend argument.
17153 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
17154 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
17155 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
17156 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
17157 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
17158 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
17159 GOMP_taskgroup_start, GOMP_taskgroup_end,
17160 GOMP_parallel_sections): New prototypes.
17161 * fortran.c (omp_is_initial_device): Add ialias_redirect.
17162 (omp_is_initial_device_): New function.
17163 (ULP, STR1, STR2, ialias_redirect): Removed.
17164 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
17165 omp_set_default_device_8_, omp_get_default_device_,
17166 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
17167 functions.
17168 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
17169 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
17170 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
17171 @@GOMP_4.0.
17172 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
17173 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
17174 omp_set_default_device, omp_set_default_device_,
17175 omp_set_default_device_8_, omp_get_default_device,
17176 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
17177 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
17178 omp_get_team_num_): Export @@OMP_4.0.
17179 * team.c (struct gomp_thread_start_data): Add place field.
17180 (gomp_thread_start): Clear thr->thread_pool and
17181 thr->task before returning. Use gomp_team_barrier_wait_final
17182 instead of gomp_team_barrier_wait. Initialize thr->place.
17183 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
17184 team_cancelled and task_queued_count fields.
17185 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
17186 before calling pthread_exit.
17187 (gomp_free_thread): No longer static. Use
17188 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
17189 (gomp_team_start): Add flags argument. Set
17190 thr->thread_pool->threads_busy to nthreads immediately after creating
17191 new pool. Use gomp_managed_threads_lock instead of
17192 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
17193 (gomp_team_end): Use gomp_managed_threads_lock instead of
17194 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
17195 of gomp_team_barrier_wait. If team->team_cancelled, call
93d90219 17196 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
acf0174b
JJ
17197 rather than thr->ts.work_share.
17198 (initialize_team): Don't call gomp_sem_init here.
17199 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
17200 caller.
17201 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
17202 * env.c (gomp_global_icv): Add default_device_var, target_data and
17203 bind_var initializers.
17204 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
17205 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
17206 gomp_places_list_len): New variables.
17207 (parse_bind_var, parse_one_place, parse_places_var): New functions.
17208 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
17209 sized places.
17210 (gomp_cancel_var): New global variable.
17211 (parse_int): New function.
17212 (handle_omp_display_env): New function.
17213 (initialize_env): Use it. Initialize default_device_var.
17214 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
17215 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
17216 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
17217 been successfully parsed (and call gomp_init_affinity in that case).
17218 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17219 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17220 omp_get_team_num, omp_is_initial_device): New functions.
17221 * libgomp.h: Include stdlib.h.
17222 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
17223 Define.
17224 (struct target_mem_desc): Forward declare.
17225 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
17226 and thread_limit_var fields.
17227 (gomp_get_num_devices): New prototype.
17228 (gomp_cancel_var): New extern decl.
17229 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
17230 team_cancelled and task_queued_count fields. Add comments about
17231 task_{,queued_,running_}count.
17232 (gomp_cancel_kind): New enum.
17233 (gomp_work_share_end_cancel): New prototype.
17234 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
17235 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
17236 and depend fields.
17237 (struct gomp_taskgroup): New type.
17238 (struct gomp_task_depend_entry,
17239 struct gomp_dependers_vec): New types.
17240 (gomp_finish_task): Free depend_hash if non-NULL.
17241 (struct gomp_team_state): Add place_partition_off
17242 and place_partition_len fields.
17243 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
17244 gomp_places_list_len): New extern decls.
17245 (struct gomp_thread): Add place field.
17246 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
17247 (gomp_init_thread_affinity): Add place argument.
17248 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
17249 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
17250 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
17251 gomp_affinity_init_level, gomp_affinity_print_place): New
17252 prototypes.
17253 (gomp_team_start): Add flags argument.
17254 (gomp_thread_limit_var, gomp_remaining_threads_count,
17255 gomp_remaining_threads_lock): Remove.
17256 (gomp_managed_threads_lock): New variable.
17257 (struct gomp_thread_pool): Add threads_busy field.
17258 (gomp_free_thread): New prototype.
17259 * task.c: Include hashtab.h.
17260 (hash_entry_type): New typedef.
17261 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
17262 (gomp_init_task): Clear dependers, depend_hash, depend_count,
17263 copy_ctors_done and taskgroup fields.
17264 (GOMP_task): Add depend argument, handle depend clauses. If
17265 gomp_team_barrier_cancelled or if it's taskgroup has been
17266 cancelled, don't queue or start new tasks. Set copy_ctors_done
17267 field if needed. Initialize taskgroup field. If copy_ctors_done
17268 and already cancelled, don't discard the task. If taskgroup is
17269 non-NULL, enqueue the task into taskgroup queue. Increment
17270 num_children field in taskgroup. Increment task_queued_count.
17271 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
17272 gomp_task_run_post_remove_taskgroup): New inline functions.
17273 (gomp_task_run_post_handle_depend_hash,
17274 gomp_task_run_post_handle_dependers,
17275 gomp_task_run_post_handle_depend): New functions.
17276 (GOMP_taskwait): Use them. If more than one new tasks
17277 have been queued, wake other threads if needed.
17278 (gomp_barrier_handle_tasks): Likewise. If
17279 gomp_team_barrier_cancelled, don't start any new tasks, just free
17280 all tasks.
17281 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
17282 * omp_lib.f90.in
17283 (omp_proc_bind_kind, omp_proc_bind_false,
17284 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
17285 omp_proc_bind_spread): New params.
17286 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17287 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17288 omp_get_team_num, omp_is_initial_device): New interfaces.
17289 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
17290 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
17291 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
17292 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
17293 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
17294 useless use omp_lib_kinds.
17295 * omp.h.in (omp_proc_bind_t): New typedef.
17296 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17297 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17298 omp_get_team_num, omp_is_initial_device): New prototypes.
17299 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
17300 through to gomp_team_start.
17301 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
17302 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
17303 Adjust gomp_parallel_loop_start callers.
17304 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
17305 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
17306 GOMP_loop_end_cancel): New functions.
17307 (GOMP_parallel_end): Add ialias_redirect.
17308 * hashtab.h: New file.
17309 * libgomp.texi (Environment Variables): Minor cleanup,
17310 update section refs to OpenMP 4.0rc2.
17311 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
17312 environment variables.
17313 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
17314 team->work_shares_to_free to thr->ts.work_share before calling
17315 free_work_share.
17316 (gomp_work_share_end_cancel): New function.
17317 * config/linux/proc.c: Include errno.h.
17318 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
17319 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
17320 sizeof (cpu_set_t) to determine number of iterations. Fix up check
17321 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
17322 gomp_cpuset_size is sizeof (cpu_set_t).
17323 (gomp_init_num_threads): Initialize gomp_cpuset_size,
17324 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
17325 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
17326 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
17327 contain any logical CPUs.
17328 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
17329 is NULL. Use gomp_cpusetp instead of &cpuset and pass
17330 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
17331 pthread_getaffinity_np. Check gomp_places_list instead of
17332 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
17333 * config/linux/bar.c (gomp_barrier_wait_end,
17334 gomp_barrier_wait_last): Use BAR_* defines.
17335 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
17336 from state where needed. Set work_share_cancelled to 0 on last
17337 thread.
17338 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
17339 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
17340 functions.
17341 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
17342 Add cpusetsize argument.
17343 (gomp_cpuset_size, gomp_cpusetp): Declare.
17344 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
17345 (affinity_counter): Remove.
17346 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
17347 if CPU_ALLOC_SIZE isn't defined.
17348 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
17349 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
17350 bind current thread to the first place.
17351 (gomp_init_thread_affinity): Rewritten. Add place argument, just
17352 pthread_setaffinity_np to gomp_places_list[place].
17353 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
17354 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
17355 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
17356 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
17357 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
17358 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
17359 (gomp_barrier_t): Add awaited_final field.
17360 (gomp_barrier_init): Initialize awaited_final field.
17361 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
17362 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
17363 prototypes.
17364 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
17365 defines.
17366 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
17367 gomp_team_barrier_cancelled): New inline functions.
17368 (gomp_barrier_last_thread,
17369 gomp_team_barrier_set_task_pending,
17370 gomp_team_barrier_clear_task_pending,
17371 gomp_team_barrier_set_waiting_for_tasks,
17372 gomp_team_barrier_waiting_for_tasks,
17373 gomp_team_barrier_done): Use BAR_* defines.
17374 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
17375 (gomp_barrier_wait_end): Use BAR_* defines.
17376 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
17377 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
17378 Use BAR_* defines.
17379 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
17380 gomp_team_barrier_cancel): New functions.
17381 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
17382 argument.
17383 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
17384 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
17385 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
17386 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
17387 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
17388 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
17389 (gomp_barrier_t): Add cancellable field.
17390 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
17391 gomp_team_barrier_cancel): New prototypes.
17392 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
17393 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
17394 gomp_team_barrier_cancelled): New inline functions.
17395 (gomp_barrier_wait_start, gomp_barrier_last_thread,
17396 gomp_team_barrier_set_task_pending,
17397 gomp_team_barrier_clear_task_pending,
17398 gomp_team_barrier_set_waiting_for_tasks,
17399 gomp_team_barrier_waiting_for_tasks,
17400 gomp_team_barrier_done): Use BAR_* defines.
17401 * barrier.c (GOMP_barrier_cancel): New function.
17402 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
17403 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
17404 omp_proc_bind_spread): New params.
17405 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17406 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17407 omp_get_team_num, omp_is_initial_device): New externals.
17408 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
17409 New functions.
17410 (gomp_resolve_num_threads): Adjust for thread_limit now being in
17411 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
17412 infinity. If not nested, just return minimum of max_num_threads
17413 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
17414 to the returned value. Otherwise, don't update atomically
17415 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
17416 (GOMP_parallel_end): Adjust for thread_limit now being in
17417 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
17418 infinity. Adjust threads_busy in the pool rather than
17419 gomp_remaining_threads_count. Remember team->nthreads and call
17420 gomp_team_end before adjusting threads_busy, if not nested
17421 afterwards, just set it to 1 non-atomically. Add ialias.
17422 (GOMP_parallel_start): Adjust gomp_team_start caller.
17423 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
17424 * testsuite/libgomp.c/affinity-1.c: New test.
17425 * testsuite/libgomp.c/atomic-15.c: New test.
17426 * testsuite/libgomp.c/atomic-16.c: New test.
17427 * testsuite/libgomp.c/atomic-17.c: New test.
17428 * testsuite/libgomp.c/cancel-for-1.c: New test.
17429 * testsuite/libgomp.c/cancel-for-2.c: New test.
17430 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
17431 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
17432 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
17433 * testsuite/libgomp.c/cancel-sections-1.c: New test.
17434 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
17435 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
17436 * testsuite/libgomp.c/depend-1.c: New test.
17437 * testsuite/libgomp.c/depend-2.c: New test.
17438 * testsuite/libgomp.c/depend-3.c: New test.
17439 * testsuite/libgomp.c/depend-4.c: New test.
17440 * testsuite/libgomp.c/for-1.c: New test.
17441 * testsuite/libgomp.c/for-1.h: New file.
17442 * testsuite/libgomp.c/for-2.c: New test.
17443 * testsuite/libgomp.c/for-2.h: New file.
17444 * testsuite/libgomp.c/for-3.c: New test.
17445 * testsuite/libgomp.c/pr58392.c: New test.
17446 * testsuite/libgomp.c/simd-1.c: New test.
17447 * testsuite/libgomp.c/simd-2.c: New test.
17448 * testsuite/libgomp.c/simd-3.c: New test.
17449 * testsuite/libgomp.c/simd-4.c: New test.
17450 * testsuite/libgomp.c/simd-5.c: New test.
17451 * testsuite/libgomp.c/simd-6.c: New test.
17452 * testsuite/libgomp.c/target-1.c: New test.
17453 * testsuite/libgomp.c/target-2.c: New test.
17454 * testsuite/libgomp.c/target-3.c: New test.
17455 * testsuite/libgomp.c/target-4.c: New test.
17456 * testsuite/libgomp.c/target-5.c: New test.
17457 * testsuite/libgomp.c/target-6.c: New test.
17458 * testsuite/libgomp.c/target-7.c: New test.
17459 * testsuite/libgomp.c/taskgroup-1.c: New test.
17460 * testsuite/libgomp.c/thread-limit-1.c: New test.
17461 * testsuite/libgomp.c/thread-limit-2.c: New test.
17462 * testsuite/libgomp.c/thread-limit-3.c: New test.
17463 * testsuite/libgomp.c/udr-1.c: New test.
17464 * testsuite/libgomp.c/udr-2.c: New test.
17465 * testsuite/libgomp.c/udr-3.c: New test.
17466 * testsuite/libgomp.c++/affinity-1.C: New test.
17467 * testsuite/libgomp.c++/atomic-10.C: New test.
17468 * testsuite/libgomp.c++/atomic-11.C: New test.
17469 * testsuite/libgomp.c++/atomic-12.C: New test.
17470 * testsuite/libgomp.c++/atomic-13.C: New test.
17471 * testsuite/libgomp.c++/atomic-14.C: New test.
17472 * testsuite/libgomp.c++/atomic-15.C: New test.
17473 * testsuite/libgomp.c++/cancel-for-1.C: New test.
17474 * testsuite/libgomp.c++/cancel-for-2.C: New test.
17475 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
17476 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
17477 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
17478 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
17479 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
17480 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
17481 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
17482 * testsuite/libgomp.c++/cancel-test.h: New file.
17483 * testsuite/libgomp.c++/for-9.C: New test.
17484 * testsuite/libgomp.c++/for-10.C: New test.
17485 * testsuite/libgomp.c++/for-11.C: New test.
17486 * testsuite/libgomp.c++/simd-1.C: New test.
17487 * testsuite/libgomp.c++/simd-2.C: New test.
17488 * testsuite/libgomp.c++/simd-3.C: New test.
17489 * testsuite/libgomp.c++/simd-4.C: New test.
17490 * testsuite/libgomp.c++/simd-5.C: New test.
17491 * testsuite/libgomp.c++/simd-6.C: New test.
17492 * testsuite/libgomp.c++/simd-7.C: New test.
17493 * testsuite/libgomp.c++/simd-8.C: New test.
17494 * testsuite/libgomp.c++/target-1.C: New test.
17495 * testsuite/libgomp.c++/target-2.C: New test.
17496 * testsuite/libgomp.c++/target-2-aux.cc: New file.
17497 * testsuite/libgomp.c++/target-3.C: New test.
17498 * testsuite/libgomp.c++/taskgroup-1.C: New test.
17499 * testsuite/libgomp.c++/udr-1.C: New test.
17500 * testsuite/libgomp.c++/udr-2.C: New test.
17501 * testsuite/libgomp.c++/udr-3.C: New test.
17502 * testsuite/libgomp.c++/udr-4.C: New test.
17503 * testsuite/libgomp.c++/udr-5.C: New test.
17504 * testsuite/libgomp.c++/udr-6.C: New test.
17505 * testsuite/libgomp.c++/udr-7.C: New test.
17506 * testsuite/libgomp.c++/udr-8.C: New test.
17507 * testsuite/libgomp.c++/udr-9.C: New test.
17508
bd599dea
JJ
175092013-09-20 Jakub Jelinek <jakub@redhat.com>
17510
17511 PR testsuite/57605
17512 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
17513 ALWAYS_CFLAGS.
17514
3cbe17f7
AM
175152013-09-20 Alan Modra <amodra@gmail.com>
17516
17517 * configure: Regenerate.
17518
4befd127
JJ
175192013-09-19 Jakub Jelinek <jakub@redhat.com>
17520
17521 * testsuite/libgomp.c/sections-2.c: New test.
17522
946c8f7b
MS
175232013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
17524
17525 * testsuite/libgomp.fortran/strassen.f90:
17526 Add dg-skip-if aarch64_tiny.
17527
1ef3b58e
IS
175282013-06-20 Iain Sandoe <iain@codesourcery.com>
17529 Cesar Philippidis <cesar@codesourcery.com>
17530
17531 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
17532 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
17533 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
17534 * testsuite/libgomp.fortran/fortran.exp: Likewise.
17535 * testsuite/libgomp.graphite/graphite.exp: Likewise.
17536 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
17537 Use dg-runtest rather than gfortran-dg-runtest.
17538
9275f73a
TS
175392013-06-10 Thomas Schwinge <thomas@codesourcery.com>
17540
17541 * testsuite/libgomp.c/icv-2.c: Extend current handling of
17542 Linux-based x86 systems to cover all GNU systems.
17543 * testsuite/libgomp.c/lock-3.c: Likewise.
17544 * testsuite/libgomp.c/pr48591.c: Likewise.
17545
492992e2
TS
175462013-06-06 Thomas Schwinge <thomas@codesourcery.com>
17547
48df3acb
TS
17548 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
17549 GNU/Hurd, as done for Linux-based systems.
17550
492992e2
TS
17551 * config/posix/ptrlock.h: Fix comment.
17552
4fed6b25
TB
175532013-05-27 Tobias Burnus <burnus@net-b.de>
17554
17555 PR fortran/57423
17556 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
17557 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
17558 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
17559 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
17560 omp_destroy_nest_lock): Correct arguments to match the one in
17561 the OpenMP spec.
17562 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
17563 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
17564 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
17565 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
17566
5a0f4dd3
JJ
175672013-05-16 Jakub Jelinek <jakub@redhat.com>
17568
17569 * testsuite/libgomp.c/loop-13.c: New test.
17570 * testsuite/libgomp.c/loop-14.c: New test.
17571 * testsuite/libgomp.c/loop-15.c: New test.
17572 * testsuite/libgomp.c++/loop-13.C: New test.
17573 * testsuite/libgomp.c++/loop-14.C: New test.
17574 * testsuite/libgomp.c++/loop-15.C: New test.
17575
6d840d99
JJ
175762013-02-06 Jakub Jelinek <jakub@redhat.com>
17577
17578 PR middle-end/56217
17579 * testsuite/libgomp.c++/pr56217.C: New test.
17580
bed8d8a6
AM
175812013-02-01 Alan Modra <amodra@gmail.com>
17582
17583 * task.c (GOMP_task, GOMP_taskwait): Comment.
17584
3b35cd04
DV
175852013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
17586 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
17587
17588 PR libgomp/55561
17589 * config/linux/wait.h (do_spin): Use atomic load for addr.
17590 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
17591 for intptr and ptrlock.
17592 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
17593 for ptrlock.
17594
9a647288
AM
175952013-01-22 Alan Modra <amodra@gmail.com>
17596
17597 PR libgomp/51376
17598 PR libgomp/56073
17599 * task.c (GOMP_task): Revert 2011-12-09 change.
17600 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
17601 barrier to read task->children..
17602 (gomp_barrier_handle_tasks): ..and matching atomic store with
17603 release barrier here when setting parent->children to NULL.
17604
f34dea03
JJ
176052013-01-16 Jakub Jelinek <jakub@redhat.com>
17606 Tobias Burnus <burnus@net-b.de>
17607
17608 PR driver/55884
17609 * testsuite/libgomp.fortran/fortran.exp: Use
17610 -fintrinsic-modules-path= instead of
17611 -fintrinsic-modules-path.
17612
8129609c
RS
176132013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
17614
17615 Update copyright years.
17616
aa86bf1e
TB
176172012-12-19 Tobias Burnus <burnus@net-b.de>
17618
17619 * testsuite/libgomp.fortran/fortran.exp: Set
17620 -fintrinsic-modules-path.
17621
2865ea66
TB
176222012-12-19 Tobias Burnus <burnus@net-b.de>
17623
17624 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
17625 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
17626
4c5ba8d0
JJ
176272012-11-21 Jakub Jelinek <jakub@redhat.com>
17628
17629 PR libgomp/55411
17630 * team.c (gomp_free_thread): Decrease gomp_managed_threads
17631 if pool had any threads_used.
17632
e9f958c2
JH
176332012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
17634
17635 * testsuite/libgomp.c++/pr24455.C: Use
17636 -Wl,-undefined,dynamic_lookup on darwin.
17637
a57d75dc
DE
176382012-11-07 David Edelsohn <dje.gcc@gmail.com>
17639
17640 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
17641
c6c08485
DH
176422012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
17643
17644 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
17645
c1f37c00
IB
176462012-10-23 Ian Bolton <ian.bolton@arm.com>
17647 Jim MacArthur <jim.macarthur@arm.com>
17648 Marcus Shawcroft <marcus.shawcroft@arm.com>
17649 Nigel Stephens <nigel.stephens@arm.com>
17650 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17651 Richard Earnshaw <rearnsha@arm.com>
17652 Sofiane Naci <sofiane.naci@arm.com>
17653 Stephen Thomas <stephen.thomas@arm.com>
17654 Tejas Belagod <tejas.belagod@arm.com>
17655 Yufeng Zhang <yufeng.zhang@arm.com>
17656
17657 * configure.tgt: Add AArch64.
17658
7c424acd
JM
176592012-10-04 Jason Merrill <jason@redhat.com>
17660
17661 * testsuite/libgomp.c++/tls-init1.C: New.
17662
6608378b
DE
176632012-09-14 David Edelsohn <dje.gcc@gmail.com>
17664
17665 * configure: Regenerated.
17666
c24dbebb
CLT
176672012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
17668
17669 * config/linux/mips/futex.h (sys_futex0): Change to static
17670 function with noinline, nomips16 attributes under MIPS16. Adjust
17671 asm statement to place 'li v0,SYS_futex' immediately before
17672 syscall insn.
17673
3d3949df
SL
176742012-07-04 Sandra Loosemore <sandra@codesourcery.com>
17675
17676 * libgomp.texi (Library Index): Renamed from "Index" to prevent
17677 conflict with index.html on case-insensitive file systems.
17678
68a12ef3
UB
176792012-07-03 Uros Bizjak <ubizjak@gmail.com>
17680
17681 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
17682 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
17683
33ad93b9 176842012-07-02 Richard Guenther <rguenther@suse.de>
68a12ef3
UB
17685 Michael Matz <matz@suse.de>
17686 Tobias Grosser <tobias@grosser.es>
17687 Sebastian Pop <sebpop@gmail.com>
33ad93b9
RG
17688
17689 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
17690 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
17691 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17692 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17693
e6fdc918
AS
176942012-06-28 Andreas Schwab <schwab@linux-m68k.org>
17695
17696 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
17697
62e0a1ed
RG
176982012-06-22 Richard Guenther <rguenther@suse.de>
17699
17700 Merge from graphite branch
17701 2012-01-13 Tobias Grosser <tobias@grosser.es>
17702
17703 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17704 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
17705
26127932
JJ
177062012-06-07 Jakub Jelinek <jakub@redhat.com>
17707
17708 PR middle-end/53580
17709 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
17710 use GOMP_barrier () call instead.
17711 * testsuite/libgomp.c/pr26943-3.c: Likewise.
17712 * testsuite/libgomp.c/pr26943-4.c: Likewise.
17713 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
17714 call GOMP_barrier instead.
17715 * testsuite/libgomp.fortran/vla5.f90: Likewise.
17716
43fa5db5
JJ
177172012-06-06 Jakub Jelinek <jakub@redhat.com>
17718
17719 PR libgomp/52993
17720 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
17721 argument to memset call.
17722
e6d5f8c9
L
177232012-05-16 H.J. Lu <hongjiu.lu@intel.com>
17724
17725 * configure: Regenerated.
17726
559d990c
MLI
177272012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
17728
17729 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
17730
b9c23a61
L
177312012-03-31 H.J. Lu <hongjiu.lu@intel.com>
17732
17733 PR bootstrap/52812
17734 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
17735
c140ddf3
JJ
177362012-03-22 Jakub Jelinek <jakub@redhat.com>
17737
17738 PR middle-end/52547
17739 * testsuite/libgomp.c/pr52547.c: New test.
17740
6a26a74d
BRF
177412012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17742
17743 * testsuite/lib/libgomp.exp: load fortran-modules.exp
17744
b24513a1
RO
177452012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17746
17747 * configure.tgt (mips-sgi-irix6*): Remove.
17748
5c30094f
RO
177492012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17750
17751 * configure.tgt (alpha*-dec-osf*): Remove.
17752
17753 * config/osf/sem.h: Remove.
17754 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
17755
a339c9d6
EB
177562012-02-29 Eric Botcazou <ebotcazou@adacore.com>
17757
17758 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
17759
cc2de92d
RO
177602012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17761
17762 PR libstdc++/52188
17763 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
17764 Remove ENABLE_SYMVERS_SOL2.
17765 * configure: Regenerate.
17766 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
17767 (PREPROCESS): New variable.
17768 (libgomp.ver): New target.
17769 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
17770 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
17771 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
17772 Use libgomp.ver.
17773 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
17774 * Makefile.in: Regenerate.
17775
dd552284
WL
177762012-02-14 Walter Lee <walt@tilera.com>
17777
17778 * configure.tgt: Handle tilegx and tilepro.
17779 * config/linux/tile/futex.h: New file.
17780
31432e21
RG
177812012-02-08 Richard Guenther <rguenther@suse.de>
17782
17783 PR tree-optimization/46886
17784 * testsuite/libgomp.c/pr46886.c: New testcase.
17785
b9264b5f
MK
177862012-01-25 Matthias Klose <doko@ubuntu.com>
17787
17788 * config/linux/arm: Remove empty directory.
17789 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
17790
fbf7be80
AM
177912011-12-09 Alan Modra <amodra@gmail.com>
17792
17793 PR libgomp/51376
17794 * task.c (GOMP_taskwait): Don't access task->children outside of
17795 task_lock mutex region.
17796 (GOMP_task): Likewise.
17797
5de62d00
JJ
177982011-12-06 Jakub Jelinek <jakub@redhat.com>
17799
17800 PR libgomp/51132
17801 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
17802 to file scope.
17803 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
17804 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
17805 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17806 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17807 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
17808
45608a43
AM
178092011-12-02 Alan Modra <amodra@gmail.com>
17810
17811 * config/linux/affinity.c: Use atomic rather than sync builtin.
17812 * config/linux/lock.c: Likewise.
17813 * config/linux/ptrlock.h: Likewise.
17814 * config/linux/ptrlock.c: Likewise.
17815 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
17816 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
17817 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
17818 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
17819 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
17820 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
17821 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
17822 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
17823 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
17824 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
17825
ab6dd406
AM
178262011-11-30 Alan Modra <amodra@gmail.com>
17827
17828 PR libgomp/51298
17829 * config/linux/bar.h: Use atomic rather than sync builtins.
17830 * config/linux/bar.c: Likewise. Add missing acquire
17831 synchronisation on generation field.
17832 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
17833 double unlock.
17834
b40c885f
AM
178352011-11-30 Alan Modra <amodra@gmail.com>
17836
17837 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
17838 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
17839 * config/linux/mutex.h: Use atomic rather than sync builtins.
17840 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
17841 * config/linux/omp-lock.h: Comment fix.
17842 * config/linux/arm/mutex.h: Delete.
17843 * config/linux/powerpc/mutex.h: Delete.
17844 * config/linux/ia64/mutex.h: Delete.
17845 * config/linux/mips/mutex.h: Delete.
17846
3e348fcc
AM
178472011-11-30 Alan Modra <amodra@gmail.com>
17848
17849 PR libgomp/51249
17850 * config/linux/sem.h: Rewrite.
17851 * config/linux/sem.c: Rewrite.
17852
cef86eb2
RH
178532011-11-28 Richard Henderson <rth@redhat.com>
17854
17855 * libgomp.h (enum memmodel): New.
17856
c6084f68
AT
178572011-11-21 Andreas Tobler <andreast@fgznet.ch>
17858
17859 * configure: Regenerate.
17860
06fe026c
MK
178612011-10-10 Matthias Klose <doko@ubuntu.com>
17862
17863 * config/posix95: Remove empty directory.
17864
a6c975bd
JJ
178652011-08-26 Jakub Jelinek <jakub@redhat.com>
17866
17867 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
17868
c26dffff
JJ
178692011-08-19 Jakub Jelinek <jakub@redhat.com>
17870
17871 PR fortran/49792
17872 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
17873 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
17874
ddaad3c8
RO
178752011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17876
17877 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
17878
98d03683
RO
178792011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17880
17881 PR libgomp/49965
17882 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
17883
e0b23d9f
UB
178842011-08-03 Uros Bizjak <ubizjak@gmail.com>
17885
17886 * config/linux/proc.h: New.
17887 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
17888 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
17889 (gomp_init_num_threads): Update call to cpuset_popcount.
17890 (get_num_procs): Ditto.
17891 * config/linux/affinity.c (gomp_init_affinity): Call
17892 gomp_cpuset_popcount.
17893
20906c66
JJ
178942011-08-02 Jakub Jelinek <jakub@redhat.com>
17895
17896 PR fortran/42041
17897 PR fortran/46752
17898 * omp.h.in (omp_in_final): New prototype.
17899 * omp_lib.f90.in (omp_in_final): New interface.
17900 (omp_integer_kind, omp_logical_kind): Remove
17901 and replace all its uses in the module with 4.
17902 (openmp_version): Change to 201107.
17903 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
17904 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
17905 kind for the parameters.
17906 (omp_in_final): New external.
17907 (openmp_version): Change to 201107.
17908 * task.c (omp_in_final): New function.
17909 (gomp_init_task): Initialize final_task.
17910 (GOMP_task): Remove unused attribute from flags. Handle final
17911 tasks.
17912 (GOMP_taskyield): New function.
17913 (omp_in_final): Return true if if (false) or final (true) task
17914 or descendant of final (true).
17915 * fortran.c (omp_in_final_): New function.
17916 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
17917 (GOMP_3.0): Export GOMP_taskyield.
17918 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
17919 variables.
17920 (parse_unsigned_long_list): New function.
17921 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
17922 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
17923 even if parse_affinity returned false.
17924 * config/linux/affinity.c (gomp_init_affinity): Handle
17925 gomp_cpu_affinity_len == 0.
17926 * libgomp_g.h (GOMP_taskyield): New prototype.
17927 * libgomp.h (struct gomp_task): Add final_task field.
17928 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
17929 * team.c (gomp_team_start): Override new task's nthreads_var icv
17930 if list form OMP_NUM_THREADS has been used and it has value for
17931 the new nesting level.
17932
17933 * testsuite/libgomp.c/atomic-11.c: New test.
17934 * testsuite/libgomp.c/atomic-12.c: New test.
17935 * testsuite/libgomp.c/atomic-13.c: New test.
17936 * testsuite/libgomp.c/atomic-14.c: New test.
17937 * testsuite/libgomp.c/reduction-6.c: New test.
17938 * testsuite/libgomp.c/task-5.c: New test.
17939 * testsuite/libgomp.c++/atomic-2.C: New test.
17940 * testsuite/libgomp.c++/atomic-3.C: New test.
17941 * testsuite/libgomp.c++/atomic-4.C: New test.
17942 * testsuite/libgomp.c++/atomic-5.C: New test.
17943 * testsuite/libgomp.c++/atomic-6.C: New test.
17944 * testsuite/libgomp.c++/atomic-7.C: New test.
17945 * testsuite/libgomp.c++/atomic-8.C: New test.
17946 * testsuite/libgomp.c++/atomic-9.C: New test.
17947 * testsuite/libgomp.c++/task-8.C: New test.
17948 * testsuite/libgomp.c++/reduction-4.C: New test.
17949 * testsuite/libgomp.fortran/allocatable7.f90: New test.
17950 * testsuite/libgomp.fortran/allocatable8.f90: New test.
17951 * testsuite/libgomp.fortran/crayptr3.f90: New test.
17952 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
17953 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
17954 * testsuite/libgomp.fortran/pointer1.f90: New test.
17955 * testsuite/libgomp.fortran/pointer2.f90: New test.
17956 * testsuite/libgomp.fortran/task4.f90: New test.
17957
179582011-08-02 Tobias Burnus <burnus@net-b.de>
17959
17960 * libgomp.texi: Update OpenMP spec references to 3.1.
17961 (omp_in_final,OMP_PROC_BIND): New sections.
17962 (OMP_NUM_THREADS): Document that the value can be now a list.
17963 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
17964
c01ecafc
L
179652011-08-02 H.J. Lu <hongjiu.lu@intel.com>
17966
17967 * config/linux/x86/futex.h: Check __x86_64__ instead of
17968 __LP64__.
17969
25142650
JJ
179702011-07-29 Jakub Jelinek <jakub@redhat.com>
17971
17972 PR middle-end/49897
17973 PR middle-end/49898
17974 * testsuite/libgomp.c/pr49897-1.c: New test.
17975 * testsuite/libgomp.c/pr49897-2.c: New test.
17976 * testsuite/libgomp.c/pr49898-1.c: New test.
17977 * testsuite/libgomp.c/pr49898-2.c: New test.
17978
f53d712f
L
179792011-07-28 H.J. Lu <hongjiu.lu@intel.com>
17980
17981 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
17982 for ia32 instead of ilp32.
17983
17984 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
17985 * testsuite/libgomp.c/atomic-6.c: Likewise.
17986
3689198d
SP
179872011-07-23 Sebastian Pop <sebastian.pop@amd.com>
17988
17989 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
17990 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
17991
1a79cb73
RO
179922011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17993
17994 PR libgomp/45351
17995 * config/osf/sem.h: New file.
17996 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
17997
c1f51484
RO
179982011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17999
18000 PR target/49541
18001 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
18002 ldflags.
18003
bfee0724
JJ
180042011-07-15 Jakub Jelinek <jakub@redhat.com>
18005
18006 * config/linux/wait.h (do_spin): New inline, largely copied
18007 from do_wait, just don't do futex_wait here, instead return true if
18008 it should be done.
18009 (do_wait): Implement using do_spin.
18010 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
18011 to prototype.
18012 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
18013 __sync_bool_compare_and_swap, pass the oldval to
18014 gomp_mutex_lock_slow.
18015 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
18016 If all mutex contenders are just spinning and not sleeping, don't
18017 change state to 2 unnecessarily. Optimize the loop when state has
18018 already become 2 to use just one atomic operation per loop instead
18019 of two.
18020 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
18021 to prototype.
18022 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
18023 __sync_bool_compare_and_swap, pass the oldval to
18024 gomp_mutex_lock_slow.
18025
fb79f500
JJ
180262011-06-22 Jakub Jelinek <jakub@redhat.com>
18027
18028 PR libgomp/49490
18029 * iter.c (gomp_iter_static_next): For chunk size 0
18030 only use n ceil/ nthreads size for the first
18031 n % nthreads threads in the team instead of
18032 all threads except for the last few ones which
18033 get less work or none at all.
18034 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
18035 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
18036 chunk argument, set run_sched_modifier to 0 for static
18037 resp. 1 for other kinds. If chunk argument is 0
18038 and not static, set value to 1.
18039
4577f730
JJ
180402011-05-19 Jakub Jelinek <jakub@redhat.com>
18041
ea93a47b
JJ
18042 PR c++/49043
18043 * testsuite/libgomp.c++/pr49043.C: New test.
18044
4577f730
JJ
18045 PR c++/48869
18046 * testsuite/libgomp.c++/pr48869.C: New test.
18047
e7385332
JJ
180482011-05-06 Jakub Jelinek <jakub@redhat.com>
18049
18050 PR fortran/48894
18051 * fortran.c: Include limits.h.
18052 (TO_INT): Define.
18053 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
18054 *set.
18055 (omp_set_num_threads_8_, omp_set_schedule_8_,
18056 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
18057 omp_get_team_size_8_): Use TO_INT macro.
18058 * testsuite/libgomp.fortran/pr48894.f90: New test.
18059
20790697
JJ
180602011-04-13 Jakub Jelinek <jakub@redhat.com>
18061
18062 PR middle-end/48591
18063 * testsuite/libgomp.c/pr48591.c: New test.
18064
bf382f5f
RO
180652011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18066
18067 PR bootstrap/48135
18068 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
18069 * configure: Regenerate.
18070
113a53c1
JJ
180712011-02-27 Jakub Jelinek <jakub@redhat.com>
18072
18073 PR fortran/47886
18074 * testsuite/libgomp.fortran/task3.f90: New test.
18075
0024f1af
TB
180762011-02-24 Tobias Burnus <burnus@net-b.de>
18077
18078 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
18079
21e1e594
JJ
180802011-02-23 Jakub Jelinek <jakub@redhat.com>
18081
18082 PR libgomp/47854
18083 * libgomp.texi (omp_get_wtime): Don't say time in the past
18084 must be Unix Epoch.
18085
67962076
JJ
180862011-02-18 Jakub Jelinek <jakub@redhat.com>
18087
18088 PR libgomp/47804
18089 * testsuite/libgomp.fortran/fortran.exp: Check for both
18090 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
18091 but $blddir != "", still append ${blddir}/${lang_library_path}
18092 to ld_library_path.
18093
3808007c
TB
180942011-02-16 Tobias Burnus <burnus@net-b.de>
18095
18096 PR libgomp/47758
18097 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
18098 of libquadmath.a before adding its libpath to ldflags.
18099
53b4d41d
JJ
181002011-02-14 Jakub Jelinek <jakub@redhat.com>
18101
18102 PR libgomp/47731
18103 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
18104 to FUTEX_WAIT futex syscall.
18105 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
18106
029c8f3e
RW
181072011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18108
18109 * configure: Regenerate.
18110
bddd6626
BK
181112011-01-20 Benjamin Kosnik <bkoz@redhat.com>
18112
18113 PR libstdc++/36104
18114 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
18115
f1d4ab26
GP
181162011-01-16 Gerald Pfeifer
18117
18118 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
18119
2b503136
JJ
181202010-12-14 Jakub Jelinek <jakub@redhat.com>
18121
18122 PR fortran/46874
18123 * libgomp.fortran/allocatable6.f90: New test.
18124
c0f9d583
RO
181252010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18126
18127 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
18128 * configure: Regenerate.
18129
7de6ba7a
DK
181302010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
18131
18132 PR target/40125
18133 PR lto/46695
18134 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
18135 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
18136 * aclocal.m4: Regenerate.
18137 * configure: Regenerate.
18138 * Makefile.in: Regenerate.
18139 * testsuite/Makefile.in: Regenerate.
18140
b7516041
JJ
181412010-12-02 Jakub Jelinek <jakub@redhat.com>
18142
edaadf74
JJ
18143 PR fortran/46753
18144 * libgomp.fortran/pr46753.f90: New test.
18145
4c698cf8
JJ
18146 PR libgomp/43706
18147 * env.c (initialize_env): Default to spin count 300000
18148 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
18149 is specified.
18150
b7516041
JJ
18151 PR libgomp/45240
18152 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
18153 at the end if sync builtins aren't supported.
18154
6b43a34c
RO
181552010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18156
18157 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
18158
950691fa
RO
181592010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18160
18161 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
18162
fb9041ea
IS
181632010-11-24 Iain Sandoe <iains@gcc.gnu.org>
18164
18165 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
18166
1ec601bf
FXC
181672010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18168 Tobias Burnus <burnus@net-b.de>
18169
18170 PR fortran/32049
3e348fcc 18171 * configure.ac:
1ec601bf
FXC
18172 * configure: Regenerate.
18173
d213e92e
MS
181742010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
18175
18176 * config/linux/futex.h: New.
18177 * config/linux/arm/mutex.h: New.
18178 * configure.tgt (arm*-*-linux*): Add config path.
18179
89d5c66f
SP
181802010-09-30 Sebastian Pop <sebastian.pop@amd.com>
18181
18182 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
18183
87350d4a
TB
181842010-09-23 Tobias Burnus <burnus@net-b.de>
18185
18186 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
18187 Change Fortran datatype to LOGICAL.
18188 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
18189 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
18190
75bc9e5e
RW
181912010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18192
18193 * configure: Regenerate.
18194
acb5c916
JJ
181952010-07-26 Jakub Jelinek <jakub@redhat.com>
18196
18197 * libgomp.texi: Add function keyword to a couple of Fortran
18198 interfaces, use integer instead of int for Fortran.
18199
6a2ba183
AH
182002010-07-26 Aldy Hernandez <aldyh@redhat.com>
18201
18202 * libgomp.texi: Fix spelling and pasto problems throughout.
18203 Adjust prototypes to match code.
18204
df161b69
TB
182052010-07-24 Tobias Burnus <burnus@net-b.de>
18206
18207 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
18208 silence -fwhole-file warning.
18209
16c9d3b1
RO
182102010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18211
18212 * configure.tgt (*-*-solaris2.[56]*): Removed.
18213
6d28b933
RO
182142010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18215
18216 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
18217 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
18218 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
18219 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
18220 targetting solaris2*.
18221 * configure: Regenerate.
18222 * config.h.in: Regenerate.
18223
18224 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
18225 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
18226 Add libgomp_version_dep.
18227 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
18228 versioning.
18229 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
18230 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
18231 * Makefile.in: Regenerate.
18232
18233 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
18234 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
18235 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
18236 to common block, protected by
18237 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
18238
07a67d6a
GP
182392010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
18240
18241 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
18242
dbd34b89
IS
182432010-06-09 Iain Sandoe <iains@gcc.gnu.org>
18244
18245 PR bootstrap/43170
18246 * configure: Regenerate.
18247
13917ae3
RW
182482010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18249
18250 PR other/43620
18251 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
18252 * configure: Regenerate.
18253 * Makefile.in: Regenerate.
18254 * testsuite/Makefile.in: Regenerate.
18255
b83a701b
JJ
182562010-04-26 Jakub Jelinek <jakub@redhat.com>
18257
18258 PR c/43893
18259 * testsuite/libgomp.c/pr43893.c: New test.
18260 * testsuite/libgomp.c++/pr43893.C: New test.
18261
78db7d92
JJ
182622010-04-21 Jakub Jelinek <jakub@redhat.com>
18263
18264 PR middle-end/43570
18265 * testsuite/libgomp.fortran/vla8.f90: New test.
18266
5221d7a9
JJ
182672010-04-20 Jakub Jelinek <jakub@redhat.com>
18268
e4ba7a60
JJ
18269 PR libgomp/43706
18270 * config/linux/affinity.c (gomp_init_affinity): Decrease
18271 gomp_available_cpus if affinity mask confines the process to fewer
18272 CPUs.
18273 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
18274 non-NULL, just return gomp_available_cpus.
18275
5221d7a9
JJ
18276 PR libgomp/43569
18277 * sections.c (gomp_sections_init): Initialize ws->mode.
18278
289a9f86
UB
182792010-04-14 Uros Bizjak <ubizjak@gmail.com>
18280
18281 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
18282 not unused bar variable.
18283 * configure: Regenerate.
18284
4d9e8446
RW
182852010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18286
18287 * Makefile.in: Regenerate.
18288 * aclocal.m4: Regenerate.
18289 * testsuite/Makefile.in: Regenerate.
18290
80f046cc
JJ
182912010-03-22 Jakub Jelinek <jakub@redhat.com>
18292
18293 PR libgomp/42942
18294 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
18295 (initialize_env): Adjust callers.
18296 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
18297 when the argument is 0.
18298
18299 * testsuite/libgomp.c/pr42942.c: New test.
18300
b58543c3
SP
183012010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
18302
18303 PR middle-end/42644
18304 PR middle-end/42130
18305 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
18306 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
18307
41d1138f
RO
183082010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18309
18310 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
18311 * testsuite/libgomp.c++/task-6.C: Likewise.
18312
6684eb28
SE
183132010-01-28 Steve Ellcey <sje@cup.hp.com>
18314
18315 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
18316
2122aa97
PB
183172010-01-26 Paolo Bonzini <bonzini@gnu.org>
18318
18319 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
18320 * configure: Regenerate.
18321
057dd91d
JJ
183222010-01-26 Jakub Jelinek <jakub@redhat.com>
18323
18324 PR fortran/42866
18325 * testsuite/libgomp.fortran/allocatable5.f90: New test.
18326
d0709b6a
PB
183272010-01-20 Paolo Bonzini <bonzini@gnu.org>
18328
18329 * configure.ac: Test for executability of GFORTRAN.
18330 * configure: Regenerate.
18331
b9497ab5
RO
183322010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18333
18334 * configure: Regenerate.
18335
45de5648
L
183362010-01-04 H.J. Lu <hongjiu.lu@intel.com>
18337
18338 PR libgomp/42602
18339 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
18340
e74003a1
RG
183412010-01-03 Richard Guenther <rguenther@suse.de>
18342
18343 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
18344
1b3abda8
SP
183452009-12-23 Sebastian Pop <sebpop@gmail.com>
18346
18347 * testsuite/libgomp.graphite/pr4118.c: New.
18348
e19977d3
IS
183492009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
18350
18351 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
18352 for darwin, protect the test with require-effective-target tls_runtime.
18353 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
18354
1d32a772
IS
183552009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
18356
18357 PR target/41605
18358 * testsuite/lib/libgomp.exp: Provide -B options to allow for
18359 link spec %s substitutions for static libraries.
18360
deb109b2
JH
183612009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
18362
18363 PR testsuite/42135
18364 * libgomp.graphite/force-parallel-2.c: Reduce array size.
18365
43e02a8a
RW
183662009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18367
18368 * Makefile.in: Regenerate.
18369 * configure: Regenerate.
18370 * testsuite/Makefile.in: Regenerate.
18371
17f35e23
DK
183722009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
18373
18374 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
18375 settings for LC_ALL and LANG.
18376
281e33e1
JJ
183772009-11-25 Jakub Jelinek <jakub@redhat.com>
18378
18379 PR fortran/42162
18380 * testsuite/libgomp.fortran/pr42162.f90: New test.
18381
2b32c27d
JJ
183822009-11-13 Jakub Jelinek <jakub@redhat.com>
18383
18384 PR middle-end/42029
281e33e1 18385 * testsuite/libgomp.c/pr42029.c: New test.
2b32c27d 18386
89c74f4a
JJ
183872009-10-26 Jakub Jelinek <jakub@redhat.com>
18388
18389 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
18390 *s. Accept ld version without text in ()s.
18391 * configure: Regenerated.
18392
7e06c3d6
EB
183932009-10-22 Razya Ladelsky <razya@il.ibm.com>
18394
18395 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
18396
0046b1a7
RW
183972009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18398
18399 PR libgomp/41418
18400 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
18401 or a hyphen (happens with fortran language disabled).
18402 * configure: Regenerate.
18403
c82852f7
RW
184042009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18405
18406 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
18407 use sed script portable to Solaris /bin/sed for extracting ld
18408 version.
18409 * configure: Regenerate.
18410
98f3eb1f
AM
184112009-09-17 Alexander Monakov <amonakov@ispras.ru>
18412
18413 * testsuite/libgomp.graphite/bounds.c: New test.
18414
878f62e5
RW
184152009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18416
18417 * Makefile.am (libgomp_la_LINK): New.
18418 * Makefile.in: Regenerate.
18419
df58e648
RW
184202009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18421
18422 * configure.ac (AC_PREREQ): Bump to 2.64.
18423
5213506e
RW
184242009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18425
70fa0efa
RW
18426 * Makefile.am (install-html, install-pdf): Remove.
18427 * Makefile.in: Regenerate.
18428
5213506e
RW
18429 * Makefile.in: Regenerate.
18430 * aclocal.m4: Regenerate.
18431 * config.h.in: Regenerate.
18432 * configure: Regenerate.
18433 * testsuite/Makefile.in: Regenerate.
18434
84fec8a5
RW
184352009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18436
18437 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
18438 * Makefile.in: Regenerate.
18439
197c68cc
DK
184402009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
18441
18442 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
18443 * Makefile.in: Regenerate.
18444
693d54f2
TB
184452009-08-19 Tobias Burnus <burnus@net-b.de>
18446
18447 PR fortran/41102
18448 omp_lib.h.in: Fix -std=f95 errors.
18449
8cac884c
DE
184502009-08-14 David Edelsohn <edelsohn@gnu.org>
18451
18452 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
18453 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
18454 * testsuite/libgomp.graphite/graphite.exp: New.
18455
78729ee2
AT
184562009-08-05 Andreas Tobler <a.tobler@schweiz.org>
18457
18458 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
18459 only build.
18460
b13b7f39
DD
184612009-08-04 David Daney <ddaney@caviumnetworks.com>
18462
18463 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
18464 needed memory barrier semantics.
18465 * config/linux/mips/mutex.h: New file.
18466
1b3b24c2
RW
184672009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18468
18469 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
18470
396b7fa4
JM
184712009-07-16 Joseph Myers <joseph@codesourcery.com>
18472
18473 * configure: Regenerate.
18474
33cde516
RS
184752009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
18476
18477 PR testsuite/40699
18478 PR testsuite/40707
18479 PR testsuite/40709
18480 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
18481 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
18482 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
18483
bc21bfa5
RS
184842009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
18485
18486 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
18487 options when choosing a multilib.
18488
b30bfd40
RS
184892009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
18490
18491 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
18492 ld_library_path. Use add_path. Add just find_libgcc_s to
18493 ld_library_path, not every libgcc multilib directory.
18494 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
18495 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
18496 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
18497 Use add_path.
18498 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
18499
479c15c2
NF
185002009-06-09 Nathan Froyd <froydnj@codesourcery.com>
18501
18502 * Makefile.am (LTLDFLAGS): Define.
18503 (LINK): Define.
18504 * Makefile.in: Regenerate.
18505
667e6f89
JB
185062009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
18507
18508 PR fortran/39718
18509 * testsuite/libgomp.fortran/fortran.exp: Don't link with
18510 libgfortranbegin, check existence of libgfortran.a instead of
18511 libgfortranbegin.a.
18512
6dea8e99
JJ
185132009-05-20 Jakub Jelinek <jakub@redhat.com>
18514
18515 PR libgomp/40174
18516 * team.c (gomp_thread_start): Destroy thr->release semaphore.
18517 (gomp_free_pool_helper): Likewise.
18518
34d01e1d
VL
185192009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
18520 Jakub Jelinek <jakub@redhat.com>
18521
18522 PR fortran/35423
18523 * testsuite/libgomp.fortran/workshare2.f90: New test.
18524
748086b7
JJ
185252009-04-09 Nick Clifton <nickc@redhat.com>
18526
18527 * iter.c: Change copyright header to refer to version 3 of the
18528 GNU General Public License with version 3.1 of the GCC Runtime
18529 Library Exception and to point readers at the COPYING3 and
18530 COPYING3.RUNTIME files and the FSF's license web page.
18531 * alloc.c: Likewise.
18532 * barrier.c: Likewise.
18533 * config/bsd/proc.c: Likewise.
18534 * config/linux/affinity.c: Likewise.
18535 * config/linux/alpha/futex.h: Likewise.
18536 * config/linux/bar.c: Likewise.
18537 * config/linux/bar.h: Likewise.
18538 * config/linux/ia64/futex.h: Likewise.
18539 * config/linux/ia64/mutex.h: Likewise.
18540 * config/linux/lock.c: Likewise.
18541 * config/linux/mips/futex.h: Likewise.
18542 * config/linux/mutex.c: Likewise.
18543 * config/linux/mutex.h: Likewise.
18544 * config/linux/powerpc/futex.h: Likewise.
18545 * config/linux/proc.c: Likewise.
18546 * config/linux/ptrlock.c: Likewise.
18547 * config/linux/ptrlock.h: Likewise.
18548 * config/linux/s390/futex.h: Likewise.
18549 * config/linux/sem.c: Likewise.
18550 * config/linux/sem.h: Likewise.
18551 * config/linux/sparc/futex.h: Likewise.
18552 * config/linux/wait.h: Likewise.
18553 * config/linux/x86/futex.h: Likewise.
18554 * config/mingw32/proc.c: Likewise.
18555 * config/mingw32/time.c: Likewise.
18556 * config/posix/affinity.c: Likewise.
18557 * config/posix/bar.c: Likewise.
18558 * config/posix/bar.h: Likewise.
18559 * config/posix/lock.c: Likewise.
18560 * config/posix/mutex.h: Likewise.
18561 * config/posix/proc.c: Likewise.
18562 * config/posix/ptrlock.h: Likewise.
18563 * config/posix/sem.c: Likewise.
18564 * config/posix/sem.h: Likewise.
18565 * config/posix/time.c: Likewise.
18566 * config/posix95/lock.c: Likewise.
18567 * critical.c: Likewise.
18568 * env.c: Likewise.
18569 * error.c: Likewise.
18570 * fortran.c: Likewise.
18571 * iter_ull.c: Likewise.
18572 * libgomp.h: Likewise.
18573 * libgomp_f.h.in: Likewise.
18574 * libgomp_g.h: Likewise.
18575 * loop.c: Likewise.
18576 * loop_ull.c: Likewise.
18577 * omp.h.in: Likewise.
18578 * omp_lib.f90.in: Likewise.
18579 * omp_lib.h.in: Likewise.
18580 * ordered.c: Likewise.
18581 * parallel.c: Likewise.
18582 * sections.c: Likewise.
18583 * single.c: Likewise.
18584 * task.c: Likewise.
18585 * team.c: Likewise.
18586 * work.c: Likewise.
18587
185882009-04-09 Jakub Jelinek <jakub@redhat.com>
18589
18590 * testsuite/config/default.exp: Change copyright header to refer to
18591 version 3 of the GNU General Public License and to point readers
18592 at the COPYING3 file and the FSF's license web page.
18593
4f0ae266
JJ
185942009-04-08 Jakub Jelinek <jakub@redhat.com>
18595
18596 PR middle-end/39573
18597 * libgomp.c++/pr39573.C: New test.
18598
03742a9b
JJ
185992009-04-01 Jakub Jelinek <jakub@redhat.com>
18600
18601 PR other/39591
18602 * testsuite/libgomp.c/pr39591-1.c: New test.
18603 * testsuite/libgomp.c/pr39591-2.c: New test.
18604 * testsuite/libgomp.c/pr39591-3.c: New test.
18605
e50ea10b
UB
186062009-03-25 Uros Bizjak <ubizjak@gmail.com>
18607
18608 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
18609 * testsuite/libgomp.c/atomic-6.c: Ditto.
18610
c5cdb03f
JJ
186112009-03-23 Jakub Jelinek <jakub@redhat.com>
18612
18613 PR c/39495
18614 * testsuite/libgomp.c/loop-12.c: New test.
18615 * testsuite/libgomp.c/loop-11.c: New test.
18616 * testsuite/libgomp.c++/loop-11.C: New test.
18617 * testsuite/libgomp.c++/loop-12.C: New test.
18618 * testsuite/libgomp.c++/for-8.C: New test.
18619
7a9d3fe8
RW
186202009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18621
18622 * configure: Regenerate.
18623
3ad6b266
JJ
186242009-02-11 Jakub Jelinek <jakub@redhat.com>
18625
18626 PR middle-end/39154
18627 * testsuite/libgomp.c/pr39154.c: New test.
18628
b39dea08
ILT
186292009-01-30 Ian Lance Taylor <iant@google.com>
18630
18631 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
18632 libgomp_ld_is_gold. Get gold version number.
18633 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
18634 * configure: Rebuild.
18635
72c66596
IS
186362009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
18637
e50ea10b 18638 * testsuite/lib/libgomp.exp: Add -B option for targets that
72c66596
IS
18639 use libgfortran.a%s in their specs.
18640
876080ff
JJ
186412009-01-07 Jakub Jelinek <jakub@redhat.com>
18642
18643 PR libgomp/38086
18644 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
18645 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
18646 HAVE_AS_SYMVER_DIRECTIVE is not defined.
18647 * configure: Regenerated.
18648 * config.h.in: Likewise.
18649
e4ebaef3
JJ
186502008-12-28 Jakub Jelinek <jakub@redhat.com>
18651
18652 PR c++/38650
18653 * testsuite/libgomp.c/pr38650.c: New test.
18654 * testsuite/libgomp.c++/pr38650.C: New test.
18655
382017a6
JJ
186562008-12-27 Jakub Jelinek <jakub@redhat.com>
18657
18658 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
18659
79644b27
UB
186602008-12-26 Uros Bizjak <ubizjak@gmail.com>
18661
18662 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
18663
baafc534
RW
186642008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18665
18666 * configure: Regenerate.
18667
d9c194cb
JJ
186682008-12-08 Jakub Jelinek <jakub@redhat.com>
18669
18670 PR middle-end/36802
18671 * testsuite/libgomp.c/pr36802-1.c: New test.
18672 * testsuite/libgomp.c/pr36802-2.c: New test.
18673 * testsuite/libgomp.c/pr36802-3.c: New test.
18674
86a182bf
JJ
186752008-12-01 Janis Johnson <janis187@us.ibm.com>
18676
18677 PR libgomp/38270
18678 * config/linux/powerpc/mutex.h: New.
18679
956adfaf
JJ
186802008-12-01 Jakub Jelinek <jakub@redhat.com>
18681
a2d4cdc9
JJ
18682 PR c++/38257
18683 * testsuite/libgomp.c++/for-7.C: New test.
18684
956adfaf
JJ
18685 PR c++/38348
18686 * testsuite/libgomp.c++/for-6.C: New test.
18687
d4038ca2
JJ
186882008-11-26 Janis Johnson <janis187@us.ibm.com>
18689
18690 PR testsuite/28870
18691 * testsuite/lib/libgomp.exp: Include new timeout library files.
18692 (libgomp_target_compile): Set timeout value from new proc.
18693
8b159eea
SE
186942008-11-13 Steve Ellcey <sje@cup.hp.com>
18695
18696 PR libgomp/37938
18697 * config/linux/ia64/mutex.h: New.
18698
5c6ed53a
TB
186992008-11-04 Tobias Burnus <burnus@net-b.de>
18700
18701 PR libgomp/37935
18702 * libgomp.texi (Runtime library routines, environment variables):
18703 Update for OpenMP version 3.0.
18704
6b4a97ed
PG
187052008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
18706 Steve Ellcey <sje@cup.hp.com>
18707
18708 * configure: Regenerate for new libtool.
18709 * Makefile.in: Ditto.
18710 * testsuite/Makefile.in: Ditto.
18711
e2b34106
JJ
187122008-09-19 Jakub Jelinek <jakub@redhat.com>
18713 Andreas Tobler <a.tobler@schweiz.org>
18714
18715 * config/bsd/proc.c: New file.
8c3b3600 18716 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
e2b34106
JJ
18717 * configure.ac: Check for header <sys/sysctl.h>
18718 * configure: Regenerate.
18719 * config.h.in: Likewise.
18720
3606b8bf
JJ
187212008-09-05 Janis Johnson <janis187@us.ibm.com>
18722
18723 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
18724
6528b88d
AL
187252008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
18726
18727 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
18728 * Makefile.in: Regenerated.
18729 * testsuite/Makefile.in: Regenerated.
18730
d9b14b12 187312008-08-21 Nathan Froyd <froydnj@codesourcery.com>
8c9570df 18732
a16b68bb 18733 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
8c9570df
NF
18734 depend on blddir if blddir exists.
18735 (libgomp_target_compile): Likewise.
18736 * testsuite/libgomp.c++/c++.exp: Likewise.
18737 * testsuite/libgomp.fortran/fortran.exp: Likewise.
18738
70b1e376
RW
187392008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18740
18741 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
18742 Do not list GPL as Invariant Section.
18743
318e8c3f
IG
187442008-07-28 Ilie Garbacea <ilie@mips.com>
18745 Chao-ying Fu <fu@mips.com>
18746
18747 * configure.tgt: Enable futex for MIPS.
18748 * config/linux/mips/futex.h: New file.
18749
4db72361
JJ
187502008-07-16 Jakub Jelinek <jakub@redhat.com>
18751
18752 * team.c (gomp_team_end): Free team immediately if it has
18753 just one thread.
18754
87bd23b8
DE
187552008-07-08 David Edelsohn <edelsohn@gnu.org>
18756
18757 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
18758 * testsuite/libgomp.fortran/fortran.exp: Same.
18759 * testsuite/libgomp.c/c.exp: Same.
18760 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
18761 directory to library path first.
18762
323ff903
KW
187632008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
18764
18765 * env.c (parse_stacksize): Add cast to avoid warning.
18766 (parse_spincount): Likewise.
18767
b357f682
JJ
187682008-06-27 Jakub Jelinek <jakub@redhat.com>
18769
ca2b1311
JJ
18770 * testsuite/libgomp.c/loop-10.c: New test.
18771 * libgomp.c/loop-3.c (main): Add lastprivate clause.
18772 * libgomp.c++/loop-6.C (main): Likewise.
18773
b357f682
JJ
18774 PR debug/36617
18775 * testsuite/libgomp.c/debug-1.c: New test.
18776
09a46078
JJ
187772008-06-19 Jakub Jelinek <jakub@redhat.com>
18778
18779 * testsuite/libgomp.c/nqueens-1.c: New test.
18780
2368a460
JJ
18781 PR c++/36523
18782 * testsuite/libgomp.c++/task-7.C: New function.
18783
18c04407
RW
187842008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18785
18786 * configure: Regenerate.
18787
9c4e59e0
JDA
187882008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18789
18790 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
18791 mutex when HAVE_SYNC_BUILTINS isn't defined.
18792
6ccde948
RW
187932008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18794
18795 * libgomp.texi (omp_test_lock): Fix typo.
18796
b896f9fd
TB
187972008-06-12 Tobias Burnus <burnus@net-b.de>
18798
18799 * omp_lib.f90.in: Add "implicit none".
18800
c34938a8
JJ
188012008-06-12 Jakub Jelinek <jakub@redhat.com>
18802
18803 PR middle-end/36506
18804 * testsuite/libgomp.c/reduction-5.c: New test.
18805
976e44e3
JJ
188062008-06-11 Jakub Jelinek <jakub@redhat.com>
18807
5f836cbb
JJ
18808 * libgomp.h (struct gomp_task): Add in_tied_task field.
18809 * task.c (gomp_init_task): Initialize it.
18810 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
18811 unconditionally. Don't call gomp_team_barrier_wake if
18812 current task is implicit or if(0) from implicit and number of
18813 running tasks is equal to nthreads - 1.
18814
01501fc8
JJ
18815 PR libgomp/36471
18816 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
18817 omp_get_team_size_8): Fix pastos.
18818
976e44e3
JJ
18819 PR libgomp/36469
18820 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
18821 * configure: Regenerated.
18822 * config.h.in: Regenerated.
18823 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
18824 defined.
18825
e919209b
AT
188262008-06-06 Andreas Tobler <a.tobler@schweiz.org>
18827
18828 PR bootstrap/36452
18829 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
18830 (GOMP_loop_ull_dynamic_start): Likewise.
18831 (GOMP_loop_ull_guided_start): Likewise.
18832 (GOMP_loop_ull_ordered_static_start): Likewise.
18833 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
18834 (GOMP_loop_ull_ordered_guided_start): Likewise.
18835
a68ab351
JJ
188362008-06-06 Jakub Jelinek <jakub@redhat.com>
18837 Richard Henderson <rth@redhat.com>
18838 Ulrich Drepper <drepper@redhat.com>
18839 Jakob Blomer <jakob.blomer@ira.uka.de>
18840
18841 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
18842 Substitute also OMP_*LOCK_25*.
18843 * configure: Regenerated.
18844 * config.h.in: Regenerated.
18845 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
18846 ptrlock.c and task.c.
18847 * Makefile.in: Regenerated.
18848 * testsuite/Makefile.in: Regenerated.
18849 * task.c: New file.
18850 * loop_ull.c: New file.
18851 * iter_ull.c: New file.
18852 * libgomp.h: Include ptrlock.h.
18853 (enum gomp_task_kind): New type.
18854 (struct gomp_team): Add task_lock, task_queue, task_count,
18855 task_running_count, single_count fields. Add
18856 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
18857 Remove work_share_lock, generation_mask,
18858 oldest_live_gen, num_live_gen and init_work_shares fields, add
18859 work work_share_list_alloc, work_share_list_free and work_share_chunk
18860 fields. Change work_shares from pointer to pointers into an array.
18861 Change ordered_release field into gomp_sem_t ** from flexible array
18862 member. Add implicit_task and initial_work_shares fields.
18863 Move close to the end of the struct.
18864 (struct gomp_team_state): Add single_count, last_work_share,
18865 active_level and level fields, remove work_share_generation.
18866 (gomp_barrier_handle_tasks): New prototype.
18867 (gomp_finish_task): New inline function.
18868 (struct gomp_work_share): Move chunk_size, end, incr into
18869 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
18870 next_ll fields. Reshuffle fields. Add next_alloc,
18871 next_ws, next_free and inline_ordered_team_ids fields, change
18872 ordered_team_ids into pointer from flexible array member.
18873 Add mode field. Put lock and next into a different cache line
18874 from most of the write-once fields.
18875 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
18876 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
18877 gomp_iter_ull_guided_next): New prototypes.
18878 (gomp_new_icv): New prototype.
18879 (struct gomp_thread): Add thread_pool and task fields.
18880 (struct gomp_thread_pool): New type.
18881 (gomp_new_team): New prototype.
18882 (gomp_team_start): Change type of last argument.
18883 (gomp_new_work_share): Removed.
18884 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
18885 (gomp_work_share_init_done): New static inline.
18886 (gomp_throttled_spin_count_var, gomp_available_cpus,
18887 gomp_managed_threads): New extern decls.
18888 (gomp_init_task): New prototype.
18889 (gomp_spin_count_var): New extern var decl.
18890 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
18891 or no alias support, or if not PIC.
18892 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
18893 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
18894 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
18895 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
18896 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
18897 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
18898 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
18899 gomp_test_nest_lock_25): New prototypes.
18900 (omp_lock_symver, strong_alias): Define.
18901 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
18902 decls.
18903 (gomp_end_task): New.
18904 (struct gomp_task_icv, gomp_global_icv): New.
18905 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
18906 (struct gomp_task): New.
18907 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
18908 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
18909 (gomp_icv): New.
18910 (gomp_schedule_type): Reorder enum to match
18911 omp_sched_t.
18912 * team.c (struct gomp_thread_start_data): Add thread_pool and task
18913 fields.
18914 (gomp_thread_start): Add gomp_team_barrier_wait call.
18915 For non-nested case remove clearing of docked thread thr fields.
18916 Use pool fields instead of global gomp_* variables. Use
18917 gomp_barrier_wait_last when needed. Initialize ts.active_level.
18918 Create tasks for each member thread.
18919 (free_team): Only destroy team barrier, task_lock here and free it.
18920 (gomp_free_thread): Free last_team if non-NULL.
18921 (gomp_team_end): Call gomp_team_barrier_wait instead of
18922 gomp_barrier_wait. For nested case call one extra
18923 gomp_barrier_wait. Move here some destruction from free_team.
18924 Call free_team on pool->last_team if any, rather than freeing
18925 current team. Destroy work_share_list_free_lock ifndef
18926 HAVE_SYNC_BUILTINS.
18927 (gomp_new_icv): New function.
18928 (gomp_threads, gomp_threads_size, gomp_threads_used,
18929 gomp_threads_dock): Removed.
18930 (gomp_thread_destructor): New variable.
18931 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
18932 functions.
18933 (gomp_team_start): Create new pool if current thread doesn't have
3e348fcc 18934 one. Use pool fields instead of global gomp_* variables.
a68ab351
JJ
18935 Initialize thread_pool field for new threads. Clear single_count.
18936 Change last argument from ws to team, don't create
18937 new team, set ts.work_share to &team->work_shares[0] and clear
18938 ts.last_work_share. Don't clear ts.work_share_generation.
18939 If number of threads changed, adjust atomically gomp_managed_threads.
18940 Use gomp_init_task instead of gomp_new_task,
18941 set thr->task to the corresponding implicit_task array entry.
18942 Create tasks for each member thread. Initialize ts.level.
18943 (initialize_team): Call pthread_key_create on
18944 gomp_thread_destructor.
18945 (team_destructor): New function.
18946 (new_team): Removed.
18947 (gomp_new_team): New function.
18948 (free_team): Free gomp_work_share blocks chained through next_alloc,
18949 instead of freeing work_shares and destroying work_share_lock.
18950 (gomp_team_end): Call gomp_fini_work_share. If number of threads
18951 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
18952 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
18953 of gomp_barrier_wait.
18954 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
18955 instead of gomp_barrier_wait. Call gomp_work_share_init_done
18956 if gomp_work_share_start returned true. Don't unlock ws->lock.
18957 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
18958 of gomp_barrier_wait.
18959 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
18960 gomp_work_share_init_done if gomp_work_share_start returned true.
18961 Don't unlock ws->lock.
18962 * work.c: Include stddef.h.
18963 (free_work_share): Use work_share_list_free_lock instead
18964 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
18965 Call gomp_fini_work_share and then either free ws if orphaned, or
18966 put it into work_share_list_free list of the current team.
18967 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
18968 functions.
18969 (gomp_work_share_start, gomp_work_share_end,
18970 gomp_work_share_end_nowait): Rewritten.
18971 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
18972 (openmp_version): Set to 200805.
18973 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18974 omp_sched_guided, omp_sched_auto): New parameters.
18975 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18976 omp_set_max_active_levels, omp_get_max_active_levels,
18977 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18978 omp_get_active_level): New interfaces.
18979 * omp_lib.h.in (openmp_version): Set to 200805.
18980 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18981 omp_sched_guided, omp_sched_auto): New parameters.
18982 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18983 omp_set_max_active_levels, omp_get_max_active_levels,
18984 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18985 omp_get_active_level): New externals.
18986 * loop.c: Include limits.h.
18987 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
18988 GFS_AUTO.
18989 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
18990 Likewise. Use gomp_icv.
18991 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
18992 ts.static_trip here.
18993 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
18994 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
18995 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
18996 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
18997 don't unlock ws->lock, otherwise lock it.
18998 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
18999 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
19000 (gomp_parallel_loop_start): Call gomp_new_team instead of
19001 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
19002 Adjust gomp_team_start caller. Pass 0 as second argument to
19003 gomp_resolve_num_threads.
19004 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
19005 If adding ws->chunk_size nthreads + 1 times after end won't
19006 overflow, set ws->mode to 1.
19007 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
19008 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
19009 GOMP_loop_ull_ordered_static_start,
19010 GOMP_loop_ull_ordered_dynamic_start,
19011 GOMP_loop_ull_ordered_guided_start,
19012 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
19013 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
19014 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
19015 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
19016 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
19017 prototypes.
19018 * libgomp.map: Export lock routines also @@OMP_2.0.
19019 (GOMP_loop_ordered_dynamic_first,
19020 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
19021 GOMP_loop_ordered_static_first): Remove.
19022 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
19023 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
19024 GOMP_loop_ull_ordered_dynamic_next,
19025 GOMP_loop_ull_ordered_dynamic_start,
19026 GOMP_loop_ull_ordered_guided_next,
19027 GOMP_loop_ull_ordered_guided_start,
19028 GOMP_loop_ull_ordered_runtime_next,
19029 GOMP_loop_ull_ordered_runtime_start,
19030 GOMP_loop_ull_ordered_static_next,
19031 GOMP_loop_ull_ordered_static_start,
19032 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
19033 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
19034 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
19035 (omp_set_schedule, omp_get_schedule,
19036 omp_get_thread_limit, omp_set_max_active_levels,
19037 omp_get_max_active_levels, omp_get_level,
19038 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
19039 omp_set_schedule_, omp_set_schedule_8_,
19040 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
19041 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
19042 omp_get_max_active_levels_, omp_get_level_,
19043 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
19044 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
19045 New exports @@OMP_3.0.
19046 * omp.h.in (omp_sched_t): New type.
19047 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
19048 omp_set_max_active_levels, omp_get_max_active_levels,
19049 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
19050 omp_get_active_level): New prototypes.
19051 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
19052 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
19053 gomp_thread_limit_var, gomp_remaining_threads_count,
19054 gomp_remaining_threads_lock): New variables.
19055 (parse_spincount): New function.
19056 (initialize_env): Call gomp_init_num_threads unconditionally.
19057 Initialize gomp_available_cpus. Call parse_spincount,
19058 initialize gomp_{,throttled_}spin_count_var
19059 depending on presence and value of OMP_WAIT_POLICY and
19060 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
19061 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
19062 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
19063 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
19064 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
19065 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
19066 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
19067 (gomp_global_icv): New.
19068 (parse_schedule): Use it. Parse "auto".
19069 (omp_set_num_threads): Use gomp_icv.
19070 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
19071 Likewise.
19072 (omp_get_max_threads): Move from parallel.c.
19073 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
19074 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
19075 add ialias.
19076 (parse_stacksize, parse_wait_policy): New functions.
19077 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
19078 both wrappers for compatibility and new locks.
19079 (omp_set_schedule, omp_get_schedule,
19080 omp_get_thread_limit, omp_set_max_active_levels,
19081 omp_get_max_active_levels, omp_get_level,
19082 omp_get_ancestor_thread_num, omp_get_team_size,
19083 omp_get_active_level): New ialias_redirect.
19084 (omp_set_schedule_, omp_set_schedule_8_,
19085 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
19086 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
19087 omp_get_max_active_levels_, omp_get_level_,
19088 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
19089 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
19090 New functions.
19091 * parallel.c: Include limits.h.
19092 (gomp_resolve_num_threads): Add count argument. Rewritten.
19093 (GOMP_parallel_start): Call gomp_new_team and pass that as last
19094 argument to gomp_team_start. Pass 0 as second argument to
19095 gomp_resolve_num_threads.
19096 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
19097 if gomp_thread_limit_var != ULONG_MAX.
19098 (omp_in_parallel): Implement using ts.active_level.
19099 (omp_get_max_threads): Move to env.c.
19100 (omp_get_level, omp_get_ancestor_thread_num,
19101 omp_get_team_size, omp_get_active_level): New functions,
19102 add ialias.
19103 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
19104 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
19105 gomp_iter_dynamic_next instead of the _locked variant and don't take
19106 lock around it, otherwise acquire it before calling
19107 gomp_iter_dynamic_next_locked.
19108 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
19109 gomp_iter_dynamic_next instead of the _locked variant and don't take
19110 lock around it.
19111 (GOMP_parallel_sections_start): Call gomp_new_team instead of
19112 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
19113 Adjust gomp_team_start caller. Pass count as second argument to
19114 gomp_resolve_num_threads, don't adjust num_threads after the call.
19115 Use gomp_icv.
19116 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
19117 ws->chunk_size by incr.
19118 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
19119 code.
19120 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
19121 types.
19122 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
19123 (omp_check_defines): Check even the compat defines.
19124 * config/linux/ptrlock.c: New file.
19125 * config/linux/ptrlock.h: New file.
19126 * config/linux/wait.h: New file.
19127 * config/posix/ptrlock.c: New file.
19128 * config/posix/ptrlock.h: New file.
19129 * config/linux/bar.h (gomp_team_barrier_wait,
19130 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
19131 (gomp_team_barrier_set_task_pending,
19132 gomp_team_barrier_clear_task_pending,
19133 gomp_team_barrier_set_waiting_for_tasks,
19134 gomp_team_barrier_waiting_for_tasks,
19135 gomp_team_barrier_done): New inlines.
19136 (gomp_barrier_t): Rewritten.
19137 (gomp_barrier_state_t): New typedef.
19138 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
19139 gomp_barrier_wait_start): Rewritten.
19140 (gomp_barrier_wait_end): Change second argument to
19141 gomp_barrier_state_t.
19142 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
19143 inlines.
19144 * config/linux/bar.c: Include wait.h instead of libgomp.h and
19145 futex.h.
19146 (gomp_barrier_wait_end): Rewritten.
19147 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
19148 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
19149 * config/posix/bar.h (gomp_barrier_t): Add generation field.
19150 (gomp_barrier_state_t): New typedef.
19151 (gomp_team_barrier_wait,
19152 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
19153 (gomp_barrier_wait_start): Or all but low 2 bits from generation
19154 into the return value. Return gomp_barrier_state_t.
19155 (gomp_team_barrier_set_task_pending,
19156 gomp_team_barrier_clear_task_pending,
19157 gomp_team_barrier_set_waiting_for_tasks,
19158 gomp_team_barrier_waiting_for_tasks,
19159 gomp_team_barrier_done): New inlines.
19160 (gomp_barrier_wait_end): Change second argument to
19161 gomp_barrier_state_t.
19162 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
19163 inlines.
19164 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
19165 (gomp_barrier_wait_end): Change second argument to
3e348fcc 19166 gomp_barrier_state_t.
a68ab351
JJ
19167 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
19168 gomp_team_barrier_wake): New functions.
19169 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
19170 futex.h.
19171 (gomp_futex_wake, gomp_futex_wait): New variables.
19172 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
19173 * config/linux/lock.c: Rewrite to make locks task owned,
19174 for backwards compatibility provide the old entrypoints
19175 if symbol versioning. Include wait.h instead of libgomp.h and
19176 futex.h.
19177 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
19178 * config/posix95/lock.c: Rewrite to make locks task owned,
19179 for backwards compatibility provide the old entrypoints
19180 if symbol versioning.
19181 * config/posix/lock.c: Rewrite to make locks task owned,
19182 for backwards compatibility provide the old entrypoints
19183 if symbol versioning.
19184 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
19185 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
19186 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
19187 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19188 (sys_futex0): Return error code.
19189 (futex_wake, futex_wait): If ENOSYS was returned, clear
19190 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19191 (cpu_relax, atomic_write_barrier): New static inlines.
19192 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19193 (futex_wake, futex_wait): If ENOSYS was returned, clear
19194 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19195 (cpu_relax, atomic_write_barrier): New static inlines.
19196 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19197 (sys_futex0): Return error code.
19198 (futex_wake, futex_wait): If ENOSYS was returned, clear
19199 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19200 (cpu_relax, atomic_write_barrier): New static inlines.
19201 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19202 (sys_futex0): Return error code.
19203 (futex_wake, futex_wait): If ENOSYS was returned, clear
19204 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19205 (cpu_relax, atomic_write_barrier): New static inlines.
19206 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19207 (sys_futex0): Return error code.
19208 (futex_wake, futex_wait): If ENOSYS was returned, clear
19209 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19210 (cpu_relax, atomic_write_barrier): New static inlines.
19211 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19212 (sys_futex0): Return error code.
19213 (futex_wake, futex_wait): If ENOSYS was returned, clear
19214 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19215 (cpu_relax, atomic_write_barrier): New static inlines.
19216 * config/linux/sem.c: Include wait.h instead of libgomp.h and
19217 futex.h.
19218 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
19219 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
19220 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
19221 types.
19222 (omp_nest_lock_t): Change owner into void *, add lock field.
19223 * config/posix95/omp-lock.h: Include semaphore.h.
19224 (omp_lock_25_t, omp_nest_lock_25_t): New types.
19225 (omp_lock_t): Use sem_t instead of mutex if semaphores
19226 aren't broken.
19227 (omp_nest_lock_t): Likewise. Change owner to void *.
19228 * config/posix/omp-lock.h: Include semaphore.h.
19229 (omp_lock_25_t, omp_nest_lock_25_t): New types.
19230 (omp_lock_t): Use sem_t instead of mutex if semaphores
19231 aren't broken.
19232 (omp_nest_lock_t): Likewise. Add owner field.
19233
192342008-06-06 Jakub Jelinek <jakub@redhat.com>
19235
19236 * testsuite/libgomp.c/collapse-1.c: New test.
19237 * testsuite/libgomp.c/collapse-2.c: New test.
19238 * testsuite/libgomp.c/collapse-3.c: New test.
19239 * testsuite/libgomp.c/icv-1.c: New test.
19240 * testsuite/libgomp.c/icv-2.c: New test.
19241 * testsuite/libgomp.c/lib-2.c: New test.
19242 * testsuite/libgomp.c/lock-1.c: New test.
19243 * testsuite/libgomp.c/lock-2.c: New test.
19244 * testsuite/libgomp.c/lock-3.c: New test.
19245 * testsuite/libgomp.c/loop-4.c: New test.
19246 * testsuite/libgomp.c/loop-5.c: New test.
19247 * testsuite/libgomp.c/loop-6.c: New test.
19248 * testsuite/libgomp.c/loop-7.c: New test.
19249 * testsuite/libgomp.c/loop-8.c: New test.
19250 * testsuite/libgomp.c/loop-9.c: New test.
19251 * testsuite/libgomp.c/nested-3.c: New test.
19252 * testsuite/libgomp.c/nestedfn-6.c: New test.
19253 * testsuite/libgomp.c/sort-1.c: New test.
19254 * testsuite/libgomp.c/task-1.c: New test.
19255 * testsuite/libgomp.c/task-2.c: New test.
19256 * testsuite/libgomp.c/task-3.c: New test.
19257 * testsuite/libgomp.c/task-4.c: New test.
19258 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
19259 to C++ testsuite default compiler options.
19260 * testsuite/libgomp.c++/collapse-1.C: New test.
19261 * testsuite/libgomp.c++/collapse-2.C: New test.
19262 * testsuite/libgomp.c++/ctor-10.C: New test.
19263 * testsuite/libgomp.c++/for-1.C: New test.
19264 * testsuite/libgomp.c++/for-2.C: New test.
19265 * testsuite/libgomp.c++/for-3.C: New test.
19266 * testsuite/libgomp.c++/for-4.C: New test.
19267 * testsuite/libgomp.c++/for-5.C: New test.
19268 * testsuite/libgomp.c++/loop-8.C: New test.
19269 * testsuite/libgomp.c++/loop-9.C: New test.
19270 * testsuite/libgomp.c++/loop-10.C: New test.
19271 * testsuite/libgomp.c++/task-1.C: New test.
19272 * testsuite/libgomp.c++/task-2.C: New test.
19273 * testsuite/libgomp.c++/task-3.C: New test.
19274 * testsuite/libgomp.c++/task-4.C: New test.
19275 * testsuite/libgomp.c++/task-5.C: New test.
19276 * testsuite/libgomp.c++/task-6.C: New test.
19277 * testsuite/libgomp.fortran/allocatable1.f90: New test.
19278 * testsuite/libgomp.fortran/allocatable2.f90: New test.
19279 * testsuite/libgomp.fortran/allocatable3.f90: New test.
19280 * testsuite/libgomp.fortran/allocatable4.f90: New test.
19281 * testsuite/libgomp.fortran/collapse1.f90: New test.
19282 * testsuite/libgomp.fortran/collapse2.f90: New test.
19283 * testsuite/libgomp.fortran/collapse3.f90: New test.
19284 * testsuite/libgomp.fortran/collapse4.f90: New test.
19285 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
19286 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
19287 * testsuite/libgomp.fortran/lib4.f90: New test.
19288 * testsuite/libgomp.fortran/lock-1.f90: New test.
19289 * testsuite/libgomp.fortran/lock-2.f90: New test.
19290 * testsuite/libgomp.fortran/nested1.f90: New test.
19291 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
19292 * testsuite/libgomp.fortran/strassen.f90: New test.
19293 * testsuite/libgomp.fortran/tabs1.f90: New test.
19294 * testsuite/libgomp.fortran/tabs2.f: New test.
19295 * testsuite/libgomp.fortran/task1.f90: New test.
19296 * testsuite/libgomp.fortran/task2.f90: New test.
19297 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
19298 * testsuite/libgomp.fortran/vla5.f90: Likewise.
19299 * testsuite/libgomp.c/pr26943-2.c: Likewise.
19300 * testsuite/libgomp.c/pr26943-3.c: Likewise.
19301 * testsuite/libgomp.c/pr26943-4.c: Likewise.
19302
7a0112e7
JJ
193032008-05-23 Jakub Jelinek <jakub@redhat.com>
19304
19305 PR c++/36308
19306 * testsuite/libgomp.c++/ctor-11.C: New test.
19307 * testsuite/libgomp.c++/ctor-12.C: New test.
19308
91a5b394
JJ
193092008-05-15 Janis Johnson <janis187@us.ibm.com>
19310
19311 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
19312
c18c98c0
JJ
193132008-05-07 Jakub Jelinek <jakub@redhat.com>
19314
19315 PR middle-end/36106
19316 * testsuite/libgomp.c/atomic-5.c: New test.
19317 * testsuite/libgomp.c/atomic-6.c: New test.
19318 * testsuite/libgomp.c/autopar-1.c: New test.
19319
6d26724a
RW
193202008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19321
19322 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
19323 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
19324 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
19325 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
19326 * configure: Regenerate.
19327 * Makefile.in, testsuite/Makefile.in: Likewise.
19328
deb984e6
PB
193292008-04-18 Paolo Bonzini <bonzini@gnu.org>
19330
19331 PR bootstrap/35457
19332 * aclocal.m4: Regenerate.
19333 * configure: Regenerate.
19334
9e775963
JJ
193352008-03-18 Jakub Jelinek <jakub@redhat.com>
19336
8119fc93
JJ
19337 PR middle-end/35611
19338 * testsuite/libgomp.c/atomic-4.c: New test.
19339
9e775963
JJ
19340 PR libgomp/35625
19341 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
19342 (gomp_iter_guided_next): Likewise.
19343 * testsuite/libgomp.c/pr35625.c: New test.
19344
38d24731
RW
193452008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19346
19347 * aclocal.m4: Regenerate.
19348 * configure: Likewise.
19349 * Makefile.in: Likewise.
19350 * testsuite/Makefile.in: Likewise.
19351
d0fb20be
JJ
193522008-03-13 Jakub Jelinek <jakub@redhat.com>
19353
19354 PR middle-end/35185
19355 * testsuite/libgomp.c++/pr35185.C: New test.
19356
7c8f7639
JJ
193572008-03-12 Jakub Jelinek <jakub@redhat.com>
19358
19359 PR middle-end/35549
19360 * testsuite/libgomp.c/pr35549.c: New test.
19361
251923f5
JJ
193622008-03-06 Jakub Jelinek <jakub@redhat.com>
19363
19364 * testsuite/libgomp.c/atomic-3.c: New test.
19365
f489fba1
FXC
193662008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
19367
19368 PR fortran/33197
251923f5 19369 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
f489fba1
FXC
19370 .F08 file suffixes.
19371
a1b25e49
PG
193722008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
19373
19374 PR libgomp/33131
19375 * configure.ac: Add ACX_HEADER_STRING.
19376 * env.c: Include strings.h.
19377 * aclocal.m4: Regenerate.
19378 * config.h.in: Regenerate.
19379 * configure: Regenerate.
19380 * Makefile.in: Regenerate.
19381 * testsuite/Makefile.in: Regenerate.
19382
6837b3b8
JJ
193832008-02-15 Jakub Jelinek <jakub@redhat.com>
19384
ac84c062
JJ
19385 PR middle-end/35196
19386 * testsuite/libgomp.c/pr35196.c: New test.
19387
6837b3b8
JJ
19388 PR middle-end/35130
19389 * testsuite/libgomp.fortran/pr35130.f90: New test.
19390 * testsuite/libgomp.c/pr35130.c: New test.
19391
c256730c
JJ
193922008-01-25 Jakub Jelinek <jakub@redhat.com>
19393
19394 PR middle-end/33880
19395 * testsuite/libgomp.c/pr33880.c: New test.
19396 * testsuite/libgomp.fortran/pr33880.f90: New test.
19397
c8e95542 193982008-01-24 David Edelsohn <edelsohn@gnu.org>
d653fdfb
DE
19399
19400 * configure: Regenerate.
19401
0f3e711e
JJ
194022008-01-08 Jakub Jelinek <jakub@redhat.com>
19403
19404 * configure.ac: Move futex checking into ../config/futex.m4.
19405 * configure: Rebuilt.
19406 * aclocal.m4: Rebuilt.
19407 * Makefile.in: Rebuilt.
19408
19409 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
19410 2007-10-15 ../config/tls.m4 change.
19411
5259c813
JJ
194122007-12-19 Jakub Jelinek <jakub@redhat.com>
19413
19414 PR c++/34513
19415 * testsuite/libgomp.c/pr34513.c: New test.
19416 * testsuite/libgomp.c++/pr34513.C: New test.
19417
ae8d8879
JH
194182007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
19419
19420 PR target/32765
19421 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
19422
2b4cf991
JJ
194232007-12-04 Jakub Jelinek <jakub@redhat.com>
19424
19425 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
19426
d2dda7fe
JJ
194272007-12-03 Jakub Jelinek <jakub@redhat.com>
19428
19429 * testsuite/libgomp.c/private-1.c: New test.
19430
d683ec81
PB
194312007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
19432 Paolo Bonzini <bonzini@gnu.org>
19433
19434 * Makefile.am: Use space as vpath separator. Use 'vpath %'
19435 instead of 'VPATH ='.
19436 * Makefile.in: Regenerate.
19437
a7415017
MK
194382007-11-23 Matthias Klose <doko@ubuntu.com>
19439
19440 * configure.ac: Adjust makeinfo version check.
19441 * configure: Regenerate.
19442
78e47463
JJ
194432007-11-10 Jakub Jelinek <jakub@redhat.com>
19444
19445 PR fortran/34020
19446 * testsuite/libgomp.fortran/pr34020.f90: New test.
19447
239371f9
JJ
194482007-11-06 Jakub Jelinek <jakub@redhat.com>
19449
19450 PR c++/33894
19451 * testsuite/libgomp.c++/atomic-1.C: New test.
19452
98a5fa94
JJ
194532007-10-25 Jakub Jelinek <jakub@redhat.com>
19454
19455 PR libgomp/33275
19456 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
19457 Make x and y integers rather than (implicit) reals. Add private (j)
19458 clause to the last omp parallel.
19459
3afcaaf4
MR
194602007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
19461
19462 * configure: Regenerate following changes to ../config/tls.m4.
19463
bd69daef
JJ
194642007-09-28 Jakub Jelinek <jakub@redhat.com>
19465
19466 * testsuite/libgomp.fortran/stack.f90: New test.
19467
1d0bd356
DS
194682007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
19469
19470 * config/mingw32/proc.c: New file.
19471
b3172cab
UB
194722007-09-05 Uros Bizjak <ubizjak@gmail.com>
19473
19474 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
19475 (main): Use __get_cpuid to get i386 target fetaures.
19476 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
19477 (main): Use __get_cpuid to get x86_64 target fetaures.
19478
6da17392
JH
194792007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
19480
19481 PR target/32765
19482 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
19483 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
19484
e1c82219
JJ
194852007-07-12 Jakub Jelinek <jakub@redhat.com>
19486
19487 PR fortran/32550
19488 * testsuite/libgomp.fortran/pr32550.f90: New test.
19489 * testsuite/libgomp.fortran/crayptr2.f90: New test.
19490
12a27363
L
194912007-07-05 H.J. Lu <hongjiu.lu@intel.com>
19492
19493 * aclocal.m4: Regenerated.
19494
5349080d
TB
194952007-07-05 Tobias Burnus <burnus@net-b.de>
19496
19497 PR fortran/32359
19498 * testsuite/libgomp.fortran/pr32359.f90: New.
19499
4f9c450c
JJ
195002007-07-02 Jakub Jelinek <jakub@redhat.com>
19501
19502 PR libgomp/32468
19503 * sections.c (GOMP_parallel_sections_start): Only decrease
19504 number of threads to COUNT if dyn_var is true.
19505 * testsuite/libgomp.c/pr32468.c: New test.
19506
28c67ed7
RO
195072007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
19508
19509 PR libgomp/26308
19510 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
19511
64964499
JJ
195122007-06-21 Jakub Jelinek <jakub@redhat.com>
19513
19514 PR middle-end/32362
19515 * testsuite/libgomp.c/pr32362-1.c: New test.
19516 * testsuite/libgomp.c/pr32362-2.c: New test.
19517 * testsuite/libgomp.c/pr32362-3.c: New test.
19518
46d8fbd1
JJ
195192007-06-07 Jakub Jelinek <jakub@redhat.com>
19520
19521 * team.c (gomp_team_start): Fix setting up thread_attr
19522 stack size.
19523
82a6cadf
PB
195242007-06-02 Paolo Bonzini <bonzini@gnu.org>
19525
19526 * configure: Regenerate.
19527
1cf3d07d
SE
195282007-05-23 Steve Ellcey <sje@cup.hp.com>
19529
19530 * Makefile.in: Regenerate.
19531 * configure: Regenerate.
19532 * aclocal.m4: Regenerate.
19533 * testsuite/Makefile.in: Regenerate.
19534
12aac30b
JJ
195352007-05-04 Jakub Jelinek <jakub@redhat.com>
19536
19537 * config/linux/proc.c: New file.
19538
f1028b02
JJ
19539 PR libgomp/28482
19540 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
19541
06785a48
DF
195422007-04-19 Daniel Franke <franke.daniel@gmail.com>
19543
19544 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
19545
b3b08ba0
MK
195462007-04-16 Matthias Klose <doko@debian.org>
19547
19548 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
19549 flags if not building with -m64.
19550 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
19551 flag for i?86-*-* targets, if current target matches -m64.
19552
6b2c5ce0
SE
195532007-04-14 Steve Ellcey <sje@cup.hp.com>
19554
19555 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
19556 * Makefile.in: Regenerate.
19557
dd56fe7c
JDA
195582007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19559
19560 PR testsuite/31369
19561 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
19562 ld_library_path.
19563 * testsuite/libgomp.fortran/fortran.exp: Likewise.
19564
a0884cf0
JJ
195652007-04-04 Jakub Jelinek <jakub@redhat.com>
19566
19567 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
19568 decls.
19569 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
19570 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
19571 (parse_affinity): New function.
19572 (initialize_env): Call it and gomp_init_affinity.
19573 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
19574 create new pthread_attr_t and call gomp_init_thread_affinity
19575 on it for each thread before passing the attribute to pthread_create.
19576 * config/linux/affinity.c: New file.
19577 * config/posix/affinity.c: New file.
19578 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
19579 * configure: Rebuilt.
19580 * config.h.in: Rebuilt.
19581 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
19582 * Makefile.in: Rebuilt.
19583
1850744b
AT
195842007-03-23 Andreas Tobler <a.tobler@schweiz.org>
19585
19586 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
19587 *-*-darwin*.
19588 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
19589 and use it if found.
19590
516f1ed8
UB
195912007-03-18 Uros Bizjak <ubizjak@gmail.com>
19592
19593 * testsuite/config/default.exp: New file.
19594 * testsuite/lib/libgomp.exp: New file.
19595 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
19596 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
19597 load_lib *, load_gcc_lib *): Move to libgomp.exp.
19598 (libgomp_load): Remove.
19599 * testsuite/lib/libgomp.exp (libgomp_init): Compute
19600 always_ld_library_path, not ld_library_path. Set additional_flags
19601 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
19602 (target_compile): Do not call libgomp_init. Append lang_library_path
19603 and lang_link_flags to options.
19604 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
19605 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
19606 here.
19607 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
19608 always_ld_library_path. Set LD_LIBRARY_PATH here.
19609 * testsuite/libgomp.fortran/fortran.exp: Ditto.
19610 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
19611 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
19612 CX8 flag.
19613 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
19614 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
19615 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
19616 * testsuite/libgomp.c/pr29947-1.c: Ditto.
19617 * testsuite/libgomp.c/atomic-10.c: Ditto.
19618
2ada56f5
JJ
196192007-03-21 Jakub Jelinek <jakub@redhat.com>
19620
19621 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
19622 dg-final cleanup-modules line.
19623 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
19624 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
19625 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
19626 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
19627 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
19628 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
19629 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
19630
f210f1cd
AS
196312007-03-18 Andreas Schwab <schwab@suse.de>
19632
19633 * acinclude.m4: Adjust regular expression for ld version
19634 extraction.
19635 * configure: Regenerate.
19636
c4dc950d
BM
196372007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
19638
19639 * Makefile.am: Add install-pdf target as copied from
19640 automake v1.10 rules.
19641 * Makefile.in: Regenerate
19642
e02a048f
JJ
196432007-02-07 Jakub Jelinek <jakub@redhat.com>
19644
78e075d4
JJ
19645 PR libgomp/28486
19646 * configure: Regenerate.
19647
e02a048f
JJ
19648 PR c++/30703
19649 * testsuite/libgomp.c++/pr30703.C: New test.
19650
60def7ed
JJ
196512007-02-02 Jakub Jelinek <jakub@redhat.com>
19652
19653 Revert:
19654 2006-07-05 Eric Christopher <echristo@apple.com>
19655 * configure.ac: Depend addition of -pthread on host OS.
19656 * configure: Regenerate.
19657
f1b0882e
RW
196582007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19659
19660 * libgomp.texi: Fix spacing after abbreviations.
19661
748b9d7c
DF
196622007-01-31 Daniel Franke <franke.daniel@gmail.com>
19663
19664 PR libgomp/30546
19665 * configure.ac: Add check for makeinfo
19666 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
a0221aee 19667 if an appropriate version of makeinfo is found.
748b9d7c
DF
19668 * aclocal.m4: Regenerated.
19669 * configure: Regenerated.
19670 * Makefile.in: Regenerated.
19671 * testsuite/Makefile.in: Regenerated.
19672
14734fc7
DF
196732007-01-29 Daniel Franke <franke.daniel@gmail.com>
19674
19675 PR libgomp/30540
19676 * libgomp.texi: More about implementation-dependent settings.
19677
7befd5d2
TB
196782007-01-26 Tobias Burnus <burnus@net-b.de>
19679
19680 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
19681
4288fea2
JJ
196822007-01-24 Jakub Jelinek <jakub@redhat.com>
19683
19684 PR middle-end/30494
19685 * testsuite/libgomp.c/pr30494.c: New test.
19686
627ab4b8
TT
196872007-01-15 Tom Tromey <tromey@redhat.com>
19688
19689 * configure: Rebuilt.
19690 * configure.ac: Fixed comment.
19691
7c2b7f45
DF
196922007-01-14 Daniel Franke <franke.daniel@gmail.com>
19693
19694 * libgomp.texi: Document implementation specific default values of
19695 environment variables.
19696
3721b9e1
DF
196972006-12-21 Daniel Franke <franke.daniel@gmail.com>
19698
19699 PR libgomp/28209
19700 * libgomp.texi: New file.
19701 * configure.ac: Add --enable-generated-files-in-srcdir option.
19702 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
19703 files to srcdir.
19704 * Makefile.in: Regenerated.
19705 * config.h.in: Regenerated.
19706 * testsuite/Makefile.in: Regenerated.
19707 * NOTES: Removed.
19708
62bd6216
DF
197092006-12-04 Daniel Franke <franke.daniel@gmail.com>
19710
19711 PR libgomp/29949
19712 * env.c (omp_set_num_threads): Set illegal thread count to 1.
19713
aad741f4
EB
197142006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
19715
19716 * configure: Regenerate.
19717
22568cc6
JJ
197182006-12-04 Jakub Jelinek <jakub@redhat.com>
19719
19720 PR libgomp/29947
19721 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
19722 start if there shouldn't be any loop iterations.
19723 (gomp_loop_ordered_static_start): Remove start == end test.
19724 * testsuite/libgomp.c/pr29947-1.c: New test.
19725 * testsuite/libgomp.c/pr29947-2.c: New test.
19726
a9690009
EB
197272006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
19728
19729 * configure.tgt: Force initial-exec TLS model on Linux only.
19730
597c25e6
DJ
197312006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
19732
19733 * configure: Regenerated.
19734
6acf0b38
UB
197352006-11-09 Uros Bizjak <ubizjak@gmail.com>
19736
19737 * env.c (parse_schedule): Reject out of range values.
19738 (parse_unsigned_long): Reject out of range, negative or zero values.
19739
a7a53ca5
JJ
197402006-10-29 Jakub Jelinek <jakub@redhat.com>
19741
19742 PR fortran/29629
19743 * testsuite/libgomp.fortran/pr29629.f90: New test.
19744
6d4d216a
EB
197452006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
19746
19747 PR libgomp/29494
19748 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
19749 * config/posix95: New directory.
19750 * config/posix95/omp-lock.h: New file.
19751 * config/posix95/lock.c: Likewise.
19752
5b043f08
GK
197532006-10-14 Geoffrey Keating <geoffk@apple.com>
19754
19755 * aclocal.m4: Regenerate.
19756 * configure: Regenerate.
19757
b50019f0
DS
197582006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
19759
19760 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
19761 '<' to '<='.
19762
8887708e
DS
197632006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
19764
19765 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
19766 test.
19767 * configure: Regenerate.
19768 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
19769
9b9e4cd6
JJ
197702006-09-26 Jakub Jelinek <jakub@redhat.com>
19771
a70ad3bb
JJ
19772 PR middle-end/25261
19773 PR middle-end/28790
19774 * testsuite/libgomp.c/nestedfn-4.c: New test.
19775 * testsuite/libgomp.c/nestedfn-5.c: New test.
19776 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
19777
9b9e4cd6
JJ
19778 PR fortran/29097
19779 * testsuite/libgomp.fortran/condinc1.f: New test.
19780 * testsuite/libgomp.fortran/condinc2.f: New test.
19781 * testsuite/libgomp.fortran/condinc3.f90: New test.
19782 * testsuite/libgomp.fortran/condinc4.f90: New test.
19783 * testsuite/libgomp.fortran/condinc1.inc: New file.
19784
2fb31455
TT
197852006-09-18 Tom Tromey <tromey@redhat.com>
19786
19787 * configure: Rebuilt.
19788
c663e301
JM
197892006-09-13 Joseph S. Myers <joseph@codesourcery.com>
19790
19791 PR c/28768
19792 PR preprocessor/14634
19793 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
19794 to AC_DEFINE.
19795 * configure: Regenerate.
19796
38371be9
SK
197972006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
19798
19799 * testsuite/libgomp.fortran/reduction3.f90: Change
19800 -2147483648 to -huge(i)-1 to avoid overflow.
19801 * testsuite/libgomp.fortran/reduction4.f90: Change
19802 Z'ffffffff' to not(0) to avoid overflow.
19803
571d5ac5
JM
198042006-08-26 Joseph S. Myers <joseph@codesourcery.com>
19805
19806 PR libgomp/25938
19807 * Makefile.am (libsubincludedir): New.
19808 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
19809 * Makefile.in: Regenerate.
19810
89b3e3cd
JJ
198112006-08-17 Jakub Jelinek <jakub@redhat.com>
19812
19813 PR libgomp/28725
19814 * env.c: Include ctype.h.
19815 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
19816 leading and/or trailing whitespace and compare strings case
19817 insensitively.
19818
742fae05
JJ
198192006-07-16 Jakub Jelinek <jakub@redhat.com>
19820
19821 PR fortran/28390
19822 * testsuite/libgomp.fortran/pr28390.f: New test.
19823
a1daed2d
EC
198242006-07-05 Eric Christopher <echristo@apple.com>
19825
19826 * configure.ac: Depend addition of -pthread on host OS.
19827 * configure: Regenerate.
19828
5d7b5199
JJ
198292006-06-21 Jakub Jelinek <jakub@redhat.com>
19830
19831 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
19832 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
19833 defined.
19834
fe5568e9
JJ
198352006-06-20 Jakub Jelinek <jakub@redhat.com>
19836
19837 PR libgomp/26175
19838 PR libgomp/26477
19839 * configure.ac: If neither --enable-linux-futex nor
19840 --disable-linux-futex is passed, determine the default by checking
19841 for compiling and/or running against NPTL. With --enable-linux-futex,
19842 check if SYS_gettid and SYS_futex are defined.
19843 * configure: Rebuilt.
19844
c3b11a40
RH
198452006-06-14 Richard Henderson <rth@redhat.com>
19846
19847 PR libgomp/28008
19848 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
19849 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
19850
d0d1b24d
RH
198512006-06-09 Richard Henderson <rth@redhat.com>
19852
19853 * env.c (gomp_nthreads_var): Change to unsigned long.
19854 (gomp_run_sched_chunk): Likewise.
19855 (parse_unsigned_long): Rename from parse_num_threads and generalize.
19856 (initialize_env): Initialize gomp_thread_attr.
19857 * libgomp.h (gomp_nthreads_var): Update decl.
19858 (gomp_run_sched_chunk): Likewise.
19859 (gomp_thread_attr): Declare.
19860 * team.c (gomp_thread_attr): Export.
19861 (initialize_team): Don't initialize it.
19862
cd75853e
JJ
198632006-06-09 Jakub Jelinek <jakub@redhat.com>
19864
19865 PR fortran/27916
19866 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
19867 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
19868
33815e0c
FXC
198692006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
19870
19871 * config/mingw32/time.c: New file.
19872 * configure.tgt: Use it.
19873
6667de0d
CD
198742006-05-23 Carlos O'Donell <carlos@codesourcery.com>
19875
19876 * Makefile.am: Add install-html target. Add install-html to .PHONY
19877 * Makefile.in: Regenerate.
19878
e962c46b
JDA
198792006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19880
19881 PR libgomp/27612
19882 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
19883 * testsuite/libgomp.c/critical-1.c: Likewise.
19884 * testsuite/libgomp.c/loop-1.c: Likewise.
19885 * testsuite/libgomp.c/loop-2.c: Likewise.
19886 * testsuite/libgomp.c/single-1.c: Likewise.
19887 * testsuite/libgomp.c/ordered-1.c: Likewise.
19888 * testsuite/libgomp.c/ordered-2.c: Likewise.
19889
eeb1d9e0
JJ
198902006-05-15 Jakub Jelinek <jakub@redhat.com>
19891
19892 PR middle-end/27416
19893 * libgomp.fortran/pr27416-1.f90: New test.
19894
693d710f
JJ
198952006-05-03 Jakub Jelinek <jakub@redhat.com>
19896
19897 PR fortran/27395
19898 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
19899 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
19900
8ca5b2a2
JJ
199012006-05-02 Jakub Jelinek <jakub@redhat.com>
19902
19903 PR c++/26943
19904 * testsuite/libgomp.c/pr26943-1.c: New test.
19905 * testsuite/libgomp.c/pr26943-2.c: New test.
19906 * testsuite/libgomp.c/pr26943-3.c: New test.
19907 * testsuite/libgomp.c/pr26943-4.c: New test.
19908 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
19909 * testsuite/libgomp.c++/pr26943.C: New test.
19910
077b0dfb
JJ
199112006-05-02 Jakub Jelinek <jakub@redhat.com>
19912
19913 PR middle-end/27337
19914 * testsuite/libgomp.c++/pr27337.C: New test.
19915
91b6c26d
JJ
199162006-04-26 Jakub Jelinek <jakub@redhat.com>
19917
19918 PR c/26171
19919 * testsuite/libgomp.c/pr26171.c: New test.
19920
60e1758f
RH
199212006-04-25 Richard Henderson <rth@redhat.com>
19922
19923 PR libgomp/25865
19924 * configure.ac: Use GCC_CHECK_TLS.
19925 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
19926 * Makefile.in, aclocal.m4, configure: Regenerate.
19927
615baed7
MK
199282006-04-10 Matthias Klose <doko@debian.org>
19929
19930 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
19931 directory names containing underscores.
19932
fae2b46b
JJ
199332006-03-21 Jakub Jelinek <jakub@redhat.com>
19934
19935 PR c++/26691
19936 * testsuite/libgomp.c++/pr26691.C: New test.
19937
11a5f608
JJ
199382006-03-13 Jakub Jelinek <jakub@redhat.com>
19939
19940 * testsuite/libgomp.fortran/retval2.f90: New test.
19941
1799e5d5
RH
199422006-03-09 Diego Novillo <dnovillo@redhat.com>
19943
19944 * testsuite/libgomp.c++: New directory.
19945
d349482e
AT
199462006-02-25 Shantonu Sen <ssen@opendarwin.org>
19947
19948 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
19949 * config/posix/sem.c: Implement the above.
19950
199512006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
19952
19953 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
19954 define HAVE_BROKEN_POSIX_SEMAPHORES.
19955 * configure: Rebuilt.
19956 * config.h.in: Rebuilt.
19957
124452c9
FXC
199582006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
19959
19960 PR bootstrap/26161
19961 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
19962 for the other pthread check.
19963 * configure: Regenerate.
19964 * config.h.in: Regenerate.
19965
dd8d6dfe
JJ
199662006-02-15 Jakub Jelinek <jakub@redhat.com>
19967
19968 PR libgomp/25938
19969 PR libgomp/25984
19970 * Makefile.am (fincludedir): New variable.
19971 (nodist_include_HEADERS): Remove Fortran files.
19972 (nodist_finclude_HEADERS): New variable.
19973 * Makefile.in: Regenerated.
19974
6c7a4dfd
JJ
199752006-02-13 Jakub Jelinek <jakub@redhat.com>
19976
19977 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
19978 Remove tests for returning assumed character length arrays.
19979
5142e08b
RS
199802006-02-12 Roger Sayle <roger@eyesopen.com>
19981 John David Anglin <dave@hiauly1.hia.nrc.ca>
19982
19983 PR libgomp/25936
19984 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
a1daed2d 19985
5821fba8
UW
199862006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
19987
19988 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
19989
cb2bbc67
EB
199902006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
19991
19992 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
19993 part of LD_LIBRARY_PATH manually.
19994
f05ee80c
L
199952006-02-03 H.J. Lu <hongjiu.lu@intel.com>
19996
19997 PR libgomp/25852
19998 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
19999 libgomp_init.
20000
03b8fe49
PB
200012005-01-25 Paolo Bonzini <bonzini@gnu.org>
20002
20003 PR libgomp/25884
f05ee80c
L
20004 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
20005 * configure.ac (PERL): Don't set.
20006 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
20007 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
20008 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
20009 * omp.h.in: Wrap the new configure substitutions with @ characters.
20010 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
20011 * aclocal.m4, configure, Makefile.in: Regenerate.
20012 * mkomp_h.pl: Delete.
03b8fe49 20013
18cbfd85
PB
200142005-01-24 Paolo Bonzini <bonzini@gnu.org>
20015
20016 PR libgomp/25259
20017 * configure.ac: Use GCC_HEADER_STDINT.
20018 * libgomp.h: Include gstdint.h.
20019 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
20020 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
20021
c41303c6
RH
200222006-01-24 Richard Henderson <rth@redhat.com>
20023
20024 PR libgomp/25942
20025 * configure.ac: Add AM_MAINTAINER_MODE.
20026 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
20027
149b9553
DN
200282006-01-24 Diego Novillo <dnovillo@redhat.com>
20029
20030 * Makefile.in: Regenerate.
20031 * testsuite/Makefile.in: Regenerate.
20032 * aclocal.m4: Regenerate.
20033
192a50ad
AT
200342006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
20035
20036 * config/posix/proc.c: Conditional include of sys/loadavg.h for
20037 Solaris.
20038 * configure.ac: Add check for loadavg.h.
20039 (link_gomp): Adjust comment.
20040 * configure: Regenerate.
20041 * config.h.in: Regenerate.
20042
a55b8e18
SE
200432006-01-21 Steve Ellcey <sje@cup.hp.com>
20044
20045 PR libgomp/25877
20046 * configure.ac: Remove check for alloca.h.
20047 * configure: Regenerate.
20048 * config.h.in: Regenerate.
20049 * libgomp.h: define gomp_alloca to be __builtin_alloca.
20050 * team.c: Remove use of alloca.h.
20051 Call gomp_alloca instead of alloca.
20052
692eeb34
SE
200532006-01-20 Steve Ellcey <sje@cup.hp.com>
20054
20055 PR libgomp/25877
20056 * team.c: Add include of alloca.h.
20057 * configure.ac: Add check for alloca.h.
20058 * configure: Regenerate.
20059 * config.h.in: Regenerate.
20060
953ff289
DN
200612006-01-17 Jakub Jelinek <jakub@redhat.com>
20062
20063 PR fortran/25219
20064 * testsuite/libgomp.fortran/pr25219.f90: New test.
20065
200662005-12-05 Uros Bizjak <uros@kss-loka.si>
20067
20068 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
20069 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
20070 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
20071 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
20072 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
20073 testsuite/libgomp.fortran/threadprivate1.f90,
20074 testsuite/libgomp.fortran/threadprivate2.f90,
20075 testsuite/libgomp.fortran/threadprivate3.f90,
20076 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
20077 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
20078 testsuite/libgomp.fortran/omp_parse3.f90: Change required
20079 effective-target to TLS runtime.
20080
20081 * testsuite/libgomp.fortran/pr25162.f: Require
20082 effective-target TLS runtime.
20083
200842005-12-01 Jakub Jelinek <jakub@redhat.com>
20085
20086 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
20087 * testsuite/libgomp.c/nestedfn-3.c: New test.
20088
200892005-11-30 Jakub Jelinek <jakub@redhat.com>
20090
20091 PR fortran/25162
20092 * testsuite/libgomp.fortran/pr25162.f: New test.
20093
200942005-11-28 Jakub Jelinek <jakub@redhat.com>
20095
20096 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
20097 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
20098
200992005-11-25 Jakub Jelinek <jakub@redhat.com>
20100
20101 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
20102 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
20103 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
20104 single.c, team.c, work.c, config/linux/alpha/futex.h,
20105 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
20106 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
20107 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
20108 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
20109 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
20110 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
20111 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
20112 FSF address.
20113
201142005-11-18 Jakub Jelinek <jakub@redhat.com>
20115
20116 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
20117 to nodist_noinst_HEADERS.
20118 * Makefile.in: Rebuilt.
20119
20120 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
20121 add integer count field.
20122 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
20123 omp_nest_lock_t type change.
20124 (omp_init_nest_lock): Likewise. Initialize count to 0.
20125 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
20126 Increment count.
20127 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
20128 Decrement count.
20129 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
20130 Increment count if successful and return the new nesting level.
20131 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
20132 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
20133 * testsuite/libgomp.c/lib-1.c: New test.
20134 * testsuite/libgomp.fortran/lib1.f90: New test.
20135 * testsuite/libgomp.fortran/lib2.f: New test.
20136 * testsuite/libgomp.fortran/lib3.f: New test.
20137
201382005-11-17 Richard Henderson <rth@redhat.com>
20139
20140 PR 24845
20141 * Makefile.am (nodist_toolexeclib_HEADERS): New.
20142 * configure.ac (link_gomp): New. Substitute it.
20143 (AC_CONFIG_FILES): Add libgomp.spec.
20144 * libgomp.spec.in: New file.
20145 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
20146 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
20147
201482005-11-18 Jakub Jelinek <jakub@redhat.com>
20149
20150 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
20151 reduction(-:var) behaving the same as reduction(+:var).
20152 * testsuite/libgomp.c/reduction-4.c: New test.
20153
201542005-11-15 Uros Bizjak <uros@kss-loka.si>
20155
20156 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
20157 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
20158 testsuite/libgomp.c/copyin-3.c,
20159 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
20160 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
20161 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
20162 testsuite/libgomp.c++/pr24455.C,
20163 testsuite/libgomp.fortran/threadprivate1.f90,
20164 testsuite/libgomp.fortran/threadprivate2.f90,
20165 testsuite/libgomp.fortran/threadprivate3.f90,
20166 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
20167 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
20168 testsuite/libgomp.fortran/omp_parse3.f90: Require
20169 effective-target TLS.
20170
201712005-11-14 Diego Novillo <dnovillo@redhat.com>
20172
20173 * HEADER: Remove.
20174
201752005-11-13 Jakub Jelinek <jakub@redhat.com>
20176
20177 PR libgomp/24797
20178 * team.c (initialize_team): Pass NULL rather than free as
20179 pthread_key_create destructor. Initialize thread specific data
20180 pointer in initial thread to a static local variable rather than
20181 malloced memory.
20182
201832005-11-11 Uros Bizjak <uros@kss-loka.si>
20184
20185 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
20186 its location to ld_library_path.
20187
201882005-11-10 Diego Novillo <dnovillo@redhat.com>
20189
20190 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
20191
201922005-11-10 Diego Novillo <dnovillo@redhat.com>
20193
20194 * testsuite/libgomp.c: Rename from libgomp.dg.
20195
201962005-11-09 Diego Novillo <dnovillo@redhat.com>
20197
20198 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
20199 threadprivate variable 'i'.
20200
202012005-11-09 Jakub Jelinek <jakub@redhat.com>
20202
20203 * config/linux/s390/futex.h: New file.
20204 * configure.tgt: Use it.
20205
20206 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
20207 before the parallel.
20208
202092005-11-08 Jakub Jelinek <jakub@redhat.com>
20210
20211 PR c++/24734
20212 * testsuite/libgomp.c++/master-1.C: New test.
20213
202142005-11-07 Jakub Jelinek <jakub@redhat.com>
20215
20216 * testsuite/libgomp.dg/copyin-3.c: New test.
20217
202182005-11-07 Jakub Jelinek <jakub@redhat.com>
20219
20220 * testsuite/libgomp.fortran/retval1.f90: New test.
20221 * testsuite/libgomp.fortran/vla7.f90: New test.
20222
202232005-11-06 Jakub Jelinek <jakub@redhat.com>
20224
20225 * testsuite/libgomp.fortran/vla2.f90: New test.
20226 * testsuite/libgomp.fortran/vla3.f90: New test.
20227 * testsuite/libgomp.fortran/vla4.f90: New test.
20228 * testsuite/libgomp.fortran/vla5.f90: New test.
20229 * testsuite/libgomp.fortran/vla6.f90: New test.
20230
202312005-11-01 Jakub Jelinek <jakub@redhat.com>
20232
20233 * config/linux/sparc/futex.h: New file.
20234 * configure.tgt: Use it.
20235 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
20236
20237 * critical.c: Include stdlib.h.
20238 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
20239 ignoring return value.
20240 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
20241 LIBGOMP_CHECK_SYNC_BUILTINS check.
20242 * configure: Rebuilt.
20243
202442005-10-31 Jakub Jelinek <jakub@redhat.com>
20245
20246 * testsuite/libgomp.fortran/vla1.f90: New test.
20247
202482005-10-31 Richard Henderson <rth@redhat.com>
20249
20250 * testsuite/libgomp.fortran/character2.f90: Fix race condition
20251 setting 's' in different threads.
20252
202532005-10-31 Jakub Jelinek <jakub@redhat.com>
20254
20255 * libgomp.h (attribute_hidden, ialias): Define.
20256 * config/posix/proc.c (omp_get_num_procs): Add ialias.
20257 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
20258 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
20259 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
20260 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
20261 omp_test_lock, omp_test_nest_lock): Likewise.
20262 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
20263 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
20264 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
20265 omp_test_lock, omp_test_nest_lock): Likewise.
20266 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
20267 omp_get_dynamic, omp_get_nested): Likewise.
20268 * parallel.c (omp_get_num_threads, omp_get_max_threads,
20269 omp_get_thread_num, omp_in_parallel): Likewise.
20270 * fortran.c (ialias_redirect): Define.
20271 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
20272 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
20273 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
20274 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
20275 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
20276 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
20277 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
20278 omp_get_wtime): Add ialias_redirect.
20279
202802005-10-30 Jakub Jelinek <jakub@redhat.com>
20281
20282 * fortran.c: Include stdlib.h.
20283
202842005-10-29 Jakub Jelinek <jakub@redhat.com>
20285
20286 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
20287 * Makefile.in: Regenerated.
20288
202892005-10-28 Jakub Jelinek <jakub@redhat.com>
20290
20291 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
20292 * libgomp_f.h.in (omp_check_defines): New function.
20293 * env.c: Include libgomp_f.h.
20294 (initialize_env): Call omp_check_defines.
20295
20296 * testsuite/libgomp.dg/copyin-2.c: New test.
20297 * testsuite/libgomp.c++/copyin-2.C: New test.
20298 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
20299
20300 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
20301 * testsuite/libgomp.fortran/sharing2.f90: New test.
20302
20303 * testsuite/libgomp.dg/copyin-1.c: New test.
20304 * testsuite/libgomp.c++/copyin-1.C: New test.
20305
203062005-10-26 Jakub Jelinek <jakub@redhat.com>
20307
20308 * testsuite/libgomp.fortran/crayptr1.f90: New test.
20309
20310 * testsuite/libgomp.fortran/workshare1.f90: New test.
20311
20312 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
20313 only test.
20314 * libgomp.fortran/sharing1.f90: New test.
20315
203162005-10-24 Jakub Jelinek <jakub@redhat.com>
20317
20318 PR c++/24502
20319 * testsuite/libgomp.c++/loop-7.C: New test.
20320
20321 * testsuite/libgomp.dg/nestedfn-2.c: New test.
20322
20323 * testsuite/libgomp.dg/nestedfn-1.c: New test.
20324 * testsuite/libgomp.fortran/reduction6.f90: New test.
20325 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
20326
203272005-10-23 Richard Henderson <rth@redhat.com>
20328
20329 * testsuite/libgomp.c++/ctor-1.C: New.
20330 * testsuite/libgomp.c++/ctor-2.C: New.
20331 * testsuite/libgomp.c++/ctor-3.C: New.
20332 * testsuite/libgomp.c++/ctor-4.C: New.
20333 * testsuite/libgomp.c++/ctor-5.C: New.
20334 * testsuite/libgomp.c++/ctor-6.C: New.
20335 * testsuite/libgomp.c++/ctor-7.C: New.
20336 * testsuite/libgomp.c++/ctor-8.C: New.
20337 * testsuite/libgomp.c++/ctor-9.C: New.
20338
203392005-10-21 Diego Novillo <dnovillo@redhat.com>
20340
20341 PR 24455
20342 * testsuite/libgomp.c++/pr24455-1.C: New test.
20343 * testsuite/libgomp.c++/pr24455.C: New test.
20344 * testsuite/libgomp.dg/pr24455-1.c: New test.
20345 * testsuite/libgomp.dg/pr24455.c: New test.
20346
203472005-10-20 Richard Henderson <rth@redhat.com>
20348
20349 * testsuite/libgomp.c++/loop-6.C: New.
20350 * testsuite/libgomp.dg/loop-3.c: New.
20351
203522005-10-20 Jakub Jelinek <jakub@redhat.com>
20353
20354 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
20355 explicitly private.
20356 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
20357 explicitly shared.
20358
203592005-10-19 Diego Novillo <dnovillo@redhat.com>
20360
20361 * testsuite/libgomp.fortran/jacobi.f: New test.
20362
203632005-10-19 Richard Henderson <rth@redhat.com>
20364
20365 * configure.tgt (i?86-linux): Default to with_arch instead of
20366 CFLAGS. Add -mtune to match target_cpu.
20367 (x86_64-linux): Tune to i686.
20368
20369 * fortran.c (omp_test_nest_lock_): Fix typo.
20370
203712005-10-19 Jakub Jelinek <jakub@redhat.com>
20372
20373 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
20374 gomp_ordered_sync): Do nothing if team->nthreads == 1.
20375 * testsuite/libgomp.dg/ordered-3.c: New test.
20376
20377 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
20378 Remove volatile keyword.
20379
20380 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
20381 in COMMON block to avoid warnings on 64-bit targets.
20382
203832005-10-18 Diego Novillo <dnovillo@redhat.com>
20384
20385 * testsuite/libgomp.dg/shared-3.c: New test.
20386
203872005-10-18 Jakub Jelinek <jakub@redhat.com>
20388
20389 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
20390 * testsuite/libgomp.fortran/reduction5.f90: New test.
20391
203922005-10-18 Jakub Jelinek <jakub@redhat.com>
20393
20394 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
20395 dg-options.
20396 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
20397 flush loop now that __sync_synchronize has proper memory barrier.
20398 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
20399 Add -ffixed-form to dg-options.
20400
204012005-10-17 Diego Novillo <dnovillo@redhat.com>
20402
20403 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
20404 from subdirectories.
20405 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
20406 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
20407 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
20408 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
20409 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
20410 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
20411 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
20412 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
20413 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
20414 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
20415 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
20416 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
20417 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
20418 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
20419 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
20420 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
20421 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
20422 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
20423 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
20424 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
20425 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
20426 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
20427 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
20428 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
20429 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
20430
204312005-10-17 Jakub Jelinek <jakub@redhat.com>
20432
20433 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
20434 lang_library_path exists. Use find instead of glob to gather tests.
20435 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
20436
204372005-10-17 Diego Novillo <dnovillo@redhat.com>
20438
20439 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
20440 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
20441 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
20442 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
20443 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
20444 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
20445 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
20446 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
20447 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
20448 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
20449 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
20450 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
20451 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
20452
204532005-10-15 Jakub Jelinek <jakub@redhat.com>
20454
20455 * testsuite/libgomp.dg/vla-1.c: New test.
20456
20457 * testsuite/libgomp.fortran/reference2.f90: New test.
20458
20459 * testsuite/libgomp.fortran/character2.f90: Remove explicit
20460 declaration of omp_get_thread_num.
20461 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
20462 use omp_lib.
20463
20464 * testsuite/libgomp.fortran/reduction1.f90: New test.
20465 * testsuite/libgomp.fortran/reduction2.f90: New test.
20466 * testsuite/libgomp.fortran/reduction3.f90: New test.
20467 * testsuite/libgomp.fortran/reduction4.f90: New test.
20468
204692005-10-13 Richard Henderson <rth@redhat.com>
20470
20471 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
20472 * Makefile.in: Regenerate.
20473 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
20474 * libgomp.h: Include bar.h.
20475 (struct gomp_barrier): Remove.
20476 (struct gomp_team): Add barrier. Replace master_barrier with
20477 master_release. Replace threads with ordered_release.
20478 (struct gomp_thread): Replace barrier with release.
20479 * ordered.c (gomp_ordered_first): Update for ordered_release change.
20480 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
20481 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
20482 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
20483 (GOMP_single_copy_end): Likewise.
20484 * team.c (gomp_threads_dock): New.
20485 (gomp_barrier_init, gomp_barrier_destroy): Remove.
20486 (gomp_thread_start): Use gomp_barrier_wait.
20487 (new_team, free_team): Update for gomp_team changes.
20488 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
20489 (gomp_team_end): Use gomp_barrier_wait.
20490 (initialize_team): Update for gomp_thread changes.
20491 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
20492 (gomp_work_share_end_nowait): Use atomic ops when available.
20493 * config/linux/bar.c, config/linux/bar.h: New files.
20494 * config/posix/bar.c, config/posix/bar.h: New files.
20495
204962005-10-13 Jakub Jelinek <jakub@redhat.com>
20497
20498 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
20499 * testsuite/libgomp.dg/single-2.c: New test.
20500
20501 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
20502 lang_link_flags): Unset, so that they aren't inherited from previously
20503 sourced *.exp.
20504
20505 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
20506
205072005-10-12 Richard Henderson <rth@redhat.com>
20508
20509 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
20510 (libgomp_init): Use lang_test_file, lang_library_path, and
20511 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
20512
20513 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
20514 (lang_test_file, lang_link_flags): New.
20515 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
20516
20517 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
20518 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
20519 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
20520 testsuite/libgomp.c++/parallel-1.C,
20521 testsuite/libgomp.c++/reduction-1.C,
20522 testsuite/libgomp.c++/reduction-2.C,
20523 testsuite/libgomp.c++/reduction-3.C,
20524 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
20525 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
20526 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
20527 New files, largely cribbed from the C testsuite.
20528
205292005-10-12 Jakub Jelinek <jakub@redhat.com>
20530
20531 * testsuite/libgomp.fortran/character1.f90: New test.
20532 * testsuite/libgomp.fortran/character2.f90: New test.
20533
20534 * testsuite/libgomp.dg/nested-1.c: New test.
20535 * testsuite/libgomp.dg/nested-2.c: New test.
20536 * testsuite/libgomp.fortran/do1.f90: New test.
20537 * testsuite/libgomp.fortran/do2.f90: New test.
20538
20539 * testsuite/libgomp.fortran/reference1.f90: New test.
20540
205412005-10-11 Jakub Jelinek <jakub@redhat.com>
20542
20543 * testsuite/libgomp.dg/reduction-1.c: New test.
20544 * testsuite/libgomp.dg/reduction-2.c: New test.
20545 * testsuite/libgomp.dg/reduction-3.c: New test.
20546
205472005-10-10 Jakub Jelinek <jakub@redhat.com>
20548
20549 * testsuite/libgomp.dg/atomic-1.c: New test.
20550 * testsuite/libgomp.dg/atomic-2.c: New test.
20551
205522005-10-09 Richard Henderson <rth@redhat.com>
20553
20554 * critical.c (atomic_lock): New.
20555 (initialize_critical): Initialize it.
20556 (GOMP_atomic_start, GOMP_atomic_end): New.
20557 * libgomp.map: Export them.
20558 * libgomp_g.h: Declare them.
20559
20560 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
20561
205622005-10-02 Richard Henderson <rth@redhat.com>
20563
20564 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
20565 to XCFLAGS instead of CFLAGS.
20566
205672005-09-30 Richard Henderson <rth@redhat.com>
20568
20569 * configure.ac: Determine whether -pthread or -lpthread is needed.
20570 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
93d90219 20571 * Makefile.in, configure: Rebuild.
953ff289
DN
20572
205732005-09-28 Richard Henderson <rth@redhat.com>
20574
20575 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
20576 * testsuite/libgomp.dg/omp-single-3.c: New test.
20577
205782005-09-28 Diego Novillo <dnovillo@redhat.com>
20579
20580 * testsuite/libgomp.dg/omp-single-2.c: New test.
20581 * testsuite/libgomp.dg/shared-2.c: Fix return code.
20582
205832005-09-27 Richard Henderson <rth@redhat.com>
20584
20585 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
20586 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
20587
205882005-09-27 Jakub Jelinek <jakub@redhat.com>
20589
20590 * testsuite/libgomp.dg/omp-loop03.c: New test.
20591
205922005-09-27 Diego Novillo <dnovillo@redhat.com>
20593
20594 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
20595
205962005-09-27 Diego Novillo <dnovillo@redhat.com>
20597
20598 * testsuite/libgomp.dg/omp-single-1.c: New test.
20599 * testsuite/libgomp.dg/shared-1.c: Return 0.
20600 Add prototype for abort.
20601 * testsuite/libgomp.dg/shared-2.c: Likewise.
20602
206032005-09-26 Jakub Jelinek <jakub@redhat.com>
20604
20605 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
20606 constructs.
20607
206082005-09-26 Diego Novillo <dnovillo@redhat.com>
20609
20610 * testsuite/libgomp.dg/shared-1.c: New test.
20611 * testsuite/libgomp.dg/shared-2.c: New test.
20612
206132005-09-24 Richard Henderson <rth@redhat.com>
20614
20615 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
20616
206172005-09-24 Richard Henderson <rth@redhat.com>
20618
20619 * iter.c (gomp_iter_static_next): Round up when computing number
20620 of iterations. Don't bother distributing a remainder equally.
20621
20622 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
20623 Don't call srand. Zero b before testing.
20624 (main): New.
20625
206262005-09-24 Jakub Jelinek <jakub@redhat.com>
20627
20628 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
20629 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
20630
206312005-09-23 Jakub Jelinek <jakub@redhat.com>
20632
20633 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
20634 without !$omp end do, followed immediately by subroutine end.
20635
206362005-09-23 Diego Novillo <dnovillo@redhat.com>
20637
20638 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
20639
206402005-09-22 Richard Henderson <rth@redhat.com>
20641
20642 * critical.c (GOMP_critical_name_start): Change argument to void**.
20643 Reuse the pointer space if the mutex fits.
20644 (GOMP_critical_name_end): Likewise.
20645 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
20646 * libgomp_g.h (GOMP_critical_name_start): Update decl.
20647 (GOMP_critical_name_end): Likewise.
20648 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
20649 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
20650
206512005-09-20 Richard Henderson <rth@redhat.com>
20652
20653 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
20654 (create_lock_lock): New.
20655 (initialize_critical): Initialize it.
20656 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
20657 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
20658
206592005-09-20 Diego Novillo <dnovillo@redhat.com>
20660
20661 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
20662
206632005-09-20 Diego Novillo <dnovillo@redhat.com>
20664
20665 * testsuite/libgomp.dg/omp-loop01.c: New test.
20666 * testsuite/libgomp.dg/omp-loop02.c: New test.
20667
206682005-09-20 Jakub Jelinek <jakub@redhat.com>
20669
20670 * configure.ac (AC_PROG_FC): Add.
20671 (USE_FORTRAN): New automake conditional.
20672 * configure: Rebuilt.
20673 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
20674 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
20675 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
20676 Add rules to build them.
20677 * Makefile.in: Rebuilt.
20678 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
20679 OMP_NEST_LOCK_KIND.
20680 * libgomp.map: Add Fortran wrappers.
20681 * libgomp_f.h.in: New file.
20682 * omp_lib.h.in: New file.
20683 * omp_lib.f90.in: New file.
20684 * fortran.c: New file.
20685 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
20686 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
20687 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
20688 libgfortran has been built.
20689 * testsuite/libgomp.fortran/fortran.exp: New file.
20690 * testsuite/libgomp.fortran/omp_cond1.f: New test.
20691 * testsuite/libgomp.fortran/omp_cond2.f: New test.
20692 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
20693 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
20694 * testsuite/libgomp.fortran/omp_hello.f: New test.
20695 * testsuite/libgomp.fortran/omp_orphan.f: New test.
20696 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
20697 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
20698 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
20699 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
20700 * testsuite/libgomp.fortran/omp_reduction.f: New test.
20701 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
20702 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
20703
207042005-08-30 Richard Henderson <rth@redhat.com>
20705
20706 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
20707 function for when aliases are not usable.
20708 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
20709 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20710 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
20711 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
20712 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
20713 GOMP_loop_ordered_guided_next): Likewise.
20714 * ordered.c (GOMP_ordered_start): Likewise.
20715
207162005-08-01 Diego Novillo <dnovillo@redhat.com>
20717
20718 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
20719 * testsuite/libgomp.dg/omp_hello.c: Fix return code
20720 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
20721 * testsuite/libgomp.dg/omp_orphan.c: Likewise
20722 * testsuite/libgomp.dg/omp_reduction.c: Likewise
20723 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
20724 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
20725 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
20726 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
20727
207282005-07-07 Eric Christopher <echristo@redhat.com>
20729 Diego Novillo <dnovillo@redhat.com>
20730
20731 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
20732 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
20733 up code.
20734 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
20735 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
20736 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
20737 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
20738 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
20739 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
20740 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
20741
207422005-06-13 Diego Novillo <dnovillo@redhat.com>
20743
20744 * TOPLEVEL.patch: Remove.
20745
207462005-05-16 Richard Henderson <rth@redhat.com>
20747
20748 * configure.ac: Test for clock_gettime.
20749 * config.h.in, configure: Rebuild.
20750 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
20751 (omp_get_wtime): Use clock_gettime if available.
20752 (omp_get_wtick): Use clock_getres if available.
20753
207542005-05-11 Richard Henderson <rth@redhat.com>
20755
20756 * config/linux/ia64/futex.h: New file.
20757 * configure.tgt: Use it.
20758
20759 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
20760
207612005-05-07 Richard Henderson <rth@redhat.com>
20762
20763 * config/linux/powerpc/futex.h: New file.
20764 * configure.tgt: Use it.
20765
20766 * config/linux/i486/futex.h: Merge ...
20767 * config/linux/x86_64/futex.h: ... into ...
20768 * config/linux/x86/futex.h: ... here.
20769 * configure.tgt: Update to match.
20770
207712005-05-06 Richard Henderson <rth@redhat.com>
20772
20773 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
20774 * config/linux/i486/futex.h: Likewise.
20775 * config/linux/x86_64/futex.h: Likewise.
20776
20777 * config/linux/lock.c: New file.
20778 * config/linux/omp-lock.h: New file.
20779
20780 * critical.c, env.h: Don't include omp.h
20781 * config/posix/lock.c: Include libgomp.h instead of omp.h.
20782 * config/posix/time.c: Likewise.
20783 * config/posix/omp-lock.h: New file.
20784 * libgomp.h: Include omp-lock.h and omp.h.
20785 * Makefile.am (nodist_include_HEADERS): New.
20786 (omp.h): New rule.
20787 * configure.ac (PERL): New.
20788 * mkomp_h.pl: New file.
20789 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
20790 with templates.
20791 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
20792
20793 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
20794 build directory. Re-add -march=i486 hack.
20795
20796 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
20797 (libgomp_link_flags): Remove.
20798 (libgomp_initialized): Remove.
20799 (libgomp_init): Don't protect from reinitialization. Copy code
20800 from libstdc++ for getting the multilib set correctly.
20801
208022005-05-05 Richard Henderson <rth@redhat.com>
20803
20804 * config/linux/alpha/futex.h: New file.
20805 * configure.tgt (alpha*-*-linux*): Use it.
20806
20807 * config/posix/mutex.c: New file.
20808 * config/posix/sem.c: Use libgomp.h.
20809
20810 * configure.tgt (x86_64-linux): Also test CC for -m32.
20811 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
20812
a1daed2d 20813 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
953ff289
DN
20814 after $gccpath.
20815
20816 * Makefile.am (SUBDIRS): New.
20817 (libgomp_la_LDFLAGS): Add -lpthread.
20818 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
20819 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
20820
20821 * libgomp_g.h: New file.
20822 * libgomp.h: Split out all public declarations to libgomp_g.h.
20823 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
20824 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
20825 * config/linux/sem.h: Likewise.
20826 * config/posix/sem.h: Likewise.
20827
20828 * Makefile.am (AM_LDFLAGS): New.
20829 (libgomp_version_script): Split out from ...
20830 (libgomp_la_LDFLAGS): ... here.
20831 (libgomp_version_info): New.
20832 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
20833 (LIBGOMP_ENABLE): New.
20834 (LIBGOMP_CHECK_LINKER_FEATURES): New.
20835 (LIBGOMP_ENABLE_SYMVERS): New.
20836 * configure.ac (AC_INIT): Version 1.0.
20837 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
20838 (enable-linux-futex): Likewise. Rename from enable-futex.
20839 (libtool_VERSION): New.
20840 (LIBGOMP_ENABLE_SYMVERS): Use it.
20841 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
20842 * Makefile.in, aclocal.m4, configure: Rebuild.
20843
20844 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
20845 (gomp_mutex_unlock_slow): Fix typo.
20846 * config/linux/sem.c: Similarly.
20847 (gomp_sem_post_slow): Fix typo.
20848 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
20849 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
20850 [__PIC__] (sys_futex0): Don't use tmp output in asm.
20851
20852 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
20853 (libgomp_la_LDFLAGS): Add top_srcdir to path.
20854 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
20855 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
20856 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
20857 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
20858 LDFLAGS. Pull enable_futex check to top-level.
20859 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
20860 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
20861
20862 First attempt at real configury.
20863 * Makefile, config.h: Remove file.
20864 * Makefile.am, Makefile.in: New file.
20865 * acinclude.m4 aclocal.m4: New file.
20866 * configure.ac, configure.tgt, configure: New file.
20867
20868 * config/posix/lock.c: Rename from sys-lock.c.
20869 * config/posix/mutex.h: Rename from sys-mutex.h.
20870 * config/posix/sem.c: Rename from sys-sem.c.
20871 * config/posix/sem.h: Rename from sys-sem.h.
20872 * config/posix/proc.c: Rename from sys-proc.c.
20873 * config/posix/time.c: Rename from sys-proc.c.
20874
20875 * config/linux/mutex.c: New file.
20876 * config/linux/mutex.h: New file.
20877 * config/linux/sem.c: New file.
20878 * config/linux/sem.h: New file.
20879 * config/linux/i486/futex.h: New file.
20880 * config/linux/x86_64/futex.h: New file.
20881
208822005-05-04 Richard Henderson <rth@redhat.com>
20883
20884 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
20885 * libgomp.h: Declare them.
20886 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
20887 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
20888
208892005-05-04 Richard Henderson <rth@redhat.com>
20890
20891 * libgomp-1 code drop
20892
208932005-05-04 Richard Henderson <rth@redhat.com>
20894
20895 * iter.c (gomp_iter_static_next): Return tri-state on 0.
20896 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
20897 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
20898 (gomp_iter_static_next): Update.
20899 (gomp_ordered_static_next): Update.
20900 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
20901 (gomp_loop_ordered_static_start): Likewise. Exit early for a
20902 totally empty range.
20903 (gomp_loop_ordered_static_next): Refine test for calling
20904 gomp_ordered_static_next.
20905 * testsuite/ordered-1.c: Add case for more threads than iterations.
20906
20907 * iter.c (gomp_iter_runtime_next_locked): Remove.
20908 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
a1daed2d 20909 gomp_loop_guided_start, gomp_loop_ordered_static_start,
953ff289
DN
20910 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
20911 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
20912 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
20913 gomp_loop_ordered_guided_next): Downcase name, make static, add
20914 an external alias with the old name.
20915 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
20916 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
20917 switch and call one of the above static functions.
20918 * libgomp.h: Update.
20919
20920 * work.c (gomp_work_share_start): Lock the mutex for !first too.
20921 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
20922 GOMP_loop_guided_start, GOMP_loop_runtime_start,
20923 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20924 GOMP_loop_ordered_guided_start): Update to match.
20925 * sections.c (GOMP_sections_start): Likewise.
20926 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
20927
20928 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
20929 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
20930 Use bounds check instead of modulus.
20931 (gomp_ordered_sync): Split out of GOMP_ordered_start.
20932 (gomp_ordered_last): Don't sync with ordered_owner here.
20933 (gomp_ordered_next): Likewise.
20934 (gomp_ordered_static_loop_next): Likewise.
20935 * loop.c, libgomp.h: Update to match.
20936
20937 * libgomp.h (GOMP_barrier): Declare.
20938
20939 * testsuite/barrier-1.c: New file.
20940 * testsuite/critical-1.c: New file.
20941 * testsuite/ordered-2.c: New file.
20942 * testsuite/ordered-1.c: New file.
20943 * testsuite/sections-1.c: New file.
20944 * testsuite/single-1.c: New file.
20945 * testsuite/Makefile (TESTS): Add them.
20946
209472005-05-04 Richard Henderson <rth@redhat.com>
20948
20949 * libgomp.h (struct gomp_work_share): Add ordered_owner.
20950 * loop.c (GOMP_loop_static_start): If not the startup thread,
20951 acquire the mutex to wait for initialization complete.
20952 (GOMP_loop_ordered_static_start): Likewise.
20953 (GOMP_loop_ordered_runtime_start): Likewise.
20954 (GOMP_loop_ordered_static_first): Remove.
20955 (GOMP_loop_ordered_dynamic_first): Remove.
20956 (GOMP_loop_ordered_guided_first): Remove.
20957 (GOMP_loop_ordered_runtime_first): Remove.
20958 * ordered.c (gomp_ordered_loop_first): Post to own release when
20959 we're the first thread.
20960 (gomp_ordered_loop_last): Wait on release if not owner.
20961 (gomp_ordered_loop_next): Likewise.
20962 (gomp_ordered_static_loop_init): New.
20963 (gomp_ordered_static_loop_next): Use ordered_owner.
20964 (GOMP_ordered_start): Likewise.
20965 * work.c (gomp_new_work_share): Initialize ordered_owner.
20966
209672005-05-03 Richard Henderson <rth@redhat.com>
20968
20969 * Makefile (OPT): New.
20970 (CFLAGS): Use it.
20971
20972 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
20973 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
20974 * libgomp.h, libgomp.map, NOTES: Update to match.
20975
20976 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
20977 Add initialized and thr members.
20978 (gomp_thread_start): Pause when initially spawned to wait for
20979 the whole team to be created.
20980 (gomp_team_start): Release team members at the end.
20981
20982 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
20983 (f_foo_1): Use GOMP_loop_end.
20984 (f_foo_2): Use GOMP_loop_end_nowait.
20985
20986 * testsuite/loop-2.c: New file.
20987 * testsuite/Makefile (TESTS): Add it.
20988
209892005-05-03 Richard Henderson <rth@redhat.com>
20990
20991 * iter.c (gomp_iter_static_next): Fix overflow check typo.
20992 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
20993 * team.c (new_team): Initialize oldest_live_gen to 1 if no
20994 initial work_share.
20995
20996 * testsuite/Makefile: New file.
20997 * testsuite/loop-1.c: New file.
20998
209992005-05-03 Richard Henderson <rth@redhat.com>
21000
21001 Initial implementation and checkin.
21fa2a29 21002\f
6a720d41 21003Copyright (C) 2005-2024 Free Software Foundation, Inc.
21fa2a29
JJ
21004
21005Copying and distribution of this file, with or without modification,
21006are permitted in any medium without royalty provided the copyright
21007notice and this notice are preserved.