]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/ChangeLog
4f806288af5da260398509350cb24903212588e9
[thirdparty/gcc.git] / libgomp / ChangeLog
1 2023-12-21 Julian Brown <julian@codesourcery.com>
2
3 * testsuite/libgomp.fortran/target-enter-data-6.f90: Remove XFAIL.
4
5 2023-12-20 Julian Brown <julian@codesourcery.com>
6
7 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d): Adjust parameters to
8 avoid out-of-bounds array checks in CUDA runtime.
9 (GOMP_OFFLOAD_memcpy3d): Likewise.
10 * testsuite/libgomp.c-c++-common/memcpyxd-bias-1.c: New test.
11
12 2023-12-18 Jakub Jelinek <jakub@redhat.com>
13
14 * testsuite/libgomp.c/declare-variant-1.c: Restrict the test to x86,
15 drop because of that unneeded target selector from other directives
16 and remove the aarch64 specific ones.
17
18 2023-12-15 Andre Vieira <andre.simoesdiasvieira@arm.com>
19
20 * testsuite/libgomp.c/declare-variant-1.c: Fixed test.
21 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
22
23 2023-12-15 Thomas Schwinge <thomas@codesourcery.com>
24
25 * testsuite/libgomp.fortran/map-subarray-5.f90: Restrict
26 'dg-output's to 'target offload_device_nonshared_as'.
27
28 2023-12-15 Julian Brown <julian@codesourcery.com>
29
30 * oacc-mem.c (find_group_last, goacc_enter_data_internal,
31 goacc_exit_data_internal, GOACC_enter_exit_data): Add
32 GOMP_MAP_STRUCT_UNORD support.
33 * target.c (gomp_map_vars_internal): Add GOMP_MAP_STRUCT_UNORD support.
34 Detect incorrect use of variable indexing of arrays of structs.
35 (GOMP_target_enter_exit_data, gomp_target_task_fn): Add
36 GOMP_MAP_STRUCT_UNORD support.
37 * testsuite/libgomp.c-c++-common/map-arrayofstruct-1.c: New test.
38 * testsuite/libgomp.c-c++-common/map-arrayofstruct-2.c: New test.
39 * testsuite/libgomp.c-c++-common/map-arrayofstruct-3.c: New test.
40 * testsuite/libgomp.fortran/map-subarray-5.f90: New test.
41
42 2023-12-13 Julian Brown <julian@codesourcery.com>
43
44 * testsuite/libgomp.fortran/map-subarray.f90: New test.
45 * testsuite/libgomp.fortran/map-subarray-2.f90: New test.
46 * testsuite/libgomp.fortran/map-subarray-3.f90: New test.
47 * testsuite/libgomp.fortran/map-subarray-4.f90: New test.
48 * testsuite/libgomp.fortran/map-subarray-6.f90: New test.
49 * testsuite/libgomp.fortran/map-subarray-7.f90: New test.
50 * testsuite/libgomp.fortran/map-subarray-8.f90: New test.
51 * testsuite/libgomp.fortran/map-subcomponents.f90: New test.
52 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Adjust for
53 descriptor-mapping changes. Remove XFAIL.
54
55 2023-12-13 Julian Brown <julian@codesourcery.com>
56
57 * target.c (gomp_map_pointer): Modify zero-length array section
58 pointer handling.
59 (gomp_attach_pointer): Likewise.
60 (gomp_map_fields_existing): Use gomp_map_0len_lookup.
61 (gomp_attach_pointer): Allow attaching null pointers (or Fortran
62 "unassociated" pointers).
63 (gomp_map_vars_internal): Handle zero-sized struct members. Add
64 diagnostic for unmapped struct pointer members.
65 * testsuite/libgomp.c-c++-common/baseptrs-1.c: New test.
66 * testsuite/libgomp.c-c++-common/baseptrs-2.c: New test.
67 * testsuite/libgomp.c-c++-common/baseptrs-6.c: New test.
68 * testsuite/libgomp.c-c++-common/baseptrs-7.c: New test.
69 * testsuite/libgomp.c-c++-common/ptr-attach-2.c: New test.
70 * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: Fix missing
71 "free".
72 * testsuite/libgomp.c-c++-common/target-implicit-map-5.c: New test.
73 * testsuite/libgomp.c-c++-common/target-map-zlas-1.c: New test.
74 * testsuite/libgomp.c++/class-array-1.C: New test.
75 * testsuite/libgomp.c++/baseptrs-3.C: New test.
76 * testsuite/libgomp.c++/baseptrs-4.C: New test.
77 * testsuite/libgomp.c++/baseptrs-5.C: New test.
78 * testsuite/libgomp.c++/baseptrs-8.C: New test.
79 * testsuite/libgomp.c++/baseptrs-9.C: New test.
80 * testsuite/libgomp.c++/ref-mapping-1.C: New test.
81 * testsuite/libgomp.c++/target-48.C: New test.
82 * testsuite/libgomp.c++/target-49.C: New test.
83 * testsuite/libgomp.c++/target-exit-data-reftoptr-1.C: New test.
84 * testsuite/libgomp.c++/target-lambda-1.C: Update for OpenMP 5.2
85 semantics.
86 * testsuite/libgomp.c++/target-this-3.C: Likewise.
87 * testsuite/libgomp.c++/target-this-4.C: Likewise.
88 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Add temporary XFAIL.
89 * testsuite/libgomp.fortran/target-enter-data-6.f90: Likewise.
90
91 2023-12-13 Thomas Schwinge <thomas@codesourcery.com>
92
93 * config/linux/allocator.c (linux_memspace_alloc): Fix 'size_t'
94 vs. '%ld' format string mismatch.
95
96 2023-12-13 Andrew Stubbs <ams@codesourcery.com>
97 Thomas Schwinge <thomas@codesourcery.com>
98
99 * allocator.c (MEMSPACE_ALLOC): Add PIN.
100 (MEMSPACE_CALLOC): Add PIN.
101 (MEMSPACE_REALLOC): Add PIN.
102 (MEMSPACE_FREE): Add PIN.
103 (MEMSPACE_VALIDATE): Add PIN.
104 (omp_init_allocator): Use MEMSPACE_VALIDATE to check pinning.
105 (omp_aligned_alloc): Add pinning to all MEMSPACE_* calls.
106 (omp_aligned_calloc): Likewise.
107 (omp_realloc): Likewise.
108 (omp_free): Likewise.
109 * config/linux/allocator.c: New file.
110 * config/nvptx/allocator.c (MEMSPACE_ALLOC): Add PIN.
111 (MEMSPACE_CALLOC): Add PIN.
112 (MEMSPACE_REALLOC): Add PIN.
113 (MEMSPACE_FREE): Add PIN.
114 (MEMSPACE_VALIDATE): Add PIN.
115 * config/gcn/allocator.c (MEMSPACE_ALLOC): Add PIN.
116 (MEMSPACE_CALLOC): Add PIN.
117 (MEMSPACE_REALLOC): Add PIN.
118 (MEMSPACE_FREE): Add PIN.
119 * libgomp.texi: Switch pinned trait to supported.
120 (MEMSPACE_VALIDATE): Add PIN.
121 * testsuite/libgomp.c/alloc-pinned-1.c: New test.
122 * testsuite/libgomp.c/alloc-pinned-2.c: New test.
123 * testsuite/libgomp.c/alloc-pinned-3.c: New test.
124 * testsuite/libgomp.c/alloc-pinned-4.c: New test.
125
126 2023-12-11 Lipeng Zhu <lipeng.zhu@intel.com>
127
128 * testsuite/libgomp.fortran/rwlock_1.f90: New file.
129 * testsuite/libgomp.fortran/rwlock_2.f90: New file.
130 * testsuite/libgomp.fortran/rwlock_3.f90: New file.
131
132 2023-12-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
133
134 * testsuite/libgomp.c/declare-variant-1.c: Adapt test for aarch64.
135 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
136
137 2023-12-11 Tobias Burnus <tobias@codesourcery.com>
138
139 * libgomp_g.h (GOMP_add_alloc, GOMP_is_alloc): Add.
140
141 2023-12-08 Tobias Burnus <tobias@codesourcery.com>
142
143 * allocator.c (struct fort_alloc_splay_tree_key_s,
144 fort_alloc_splay_compare, GOMP_add_alloc, GOMP_is_alloc): New.
145 * libgomp.h: Define splay_tree_static for 'reverse' splay tree.
146 * libgomp.map (GOMP_5.1.2): New; add GOMP_add_alloc and
147 GOMP_is_alloc; move GOMP_target_map_indirect_ptr from ...
148 (GOMP_5.1.1): ... here.
149 * libgomp.texi (Impl. Status, Memory management): Update for
150 allocators/allocate directives.
151 * splay-tree.c: Handle splay_tree_static define to declare all
152 functions as static.
153 (splay_tree_lookup_node): New.
154 * splay-tree.h: Handle splay_tree_decl_only define.
155 (splay_tree_lookup_node): New prototype.
156 * target.c: Define splay_tree_static for 'reverse'.
157 * testsuite/libgomp.fortran/allocators-1.f90: New test.
158 * testsuite/libgomp.fortran/allocators-2.f90: New test.
159 * testsuite/libgomp.fortran/allocators-3.f90: New test.
160 * testsuite/libgomp.fortran/allocators-4.f90: New test.
161 * testsuite/libgomp.fortran/allocators-5.f90: New test.
162
163 2023-12-06 Andrew Stubbs <ams@codesourcery.com>
164
165 * config/gcn/libgomp-gcn.h (TEAM_ARENA_START): Move to here.
166 (TEAM_ARENA_FREE): Likewise.
167 (TEAM_ARENA_END): Likewise.
168 (GCN_LOWLAT_HEAP): New.
169 * config/gcn/team.c (LITTLEENDIAN_CPU): New, and import hsa.h.
170 (__gcn_lowlat_init): New prototype.
171 (gomp_gcn_enter_kernel): Initialize the low-latency heap.
172 * libgomp.h (TEAM_ARENA_START): Move to libgomp.h.
173 (TEAM_ARENA_FREE): Likewise.
174 (TEAM_ARENA_END): Likewise.
175 * plugin/plugin-gcn.c (lowlat_size): New variable.
176 (print_kernel_dispatch): Label the group_segment_size purpose.
177 (init_environment_variables): Read GOMP_GCN_LOWLAT_POOL.
178 (create_kernel_dispatch): Pass low-latency head allocation to kernel.
179 (run_kernel): Use shadow; don't assume values.
180 * testsuite/libgomp.c/omp_alloc-traits.c: Enable for amdgcn.
181 * config/gcn/allocator.c: New file.
182 * libgomp.texi: Document low-latency implementation details.
183
184 2023-12-06 Andrew Stubbs <ams@codesourcery.com>
185
186 * allocator.c (MEMSPACE_VALIDATE): New macro.
187 (omp_init_allocator): Use MEMSPACE_VALIDATE.
188 (omp_aligned_alloc): Use OMP_LOW_LAT_MEM_ALLOC_INVALID.
189 (omp_aligned_calloc): Likewise.
190 (omp_realloc): Likewise.
191 * config/nvptx/allocator.c (nvptx_memspace_validate): New function.
192 (MEMSPACE_VALIDATE): New macro.
193 (OMP_LOW_LAT_MEM_ALLOC_INVALID): New define.
194 * libgomp.texi: Document low-latency implementation details.
195 * testsuite/libgomp.c/omp_alloc-1.c (main): Add gnu_lowlat.
196 * testsuite/libgomp.c/omp_alloc-2.c (main): Add gnu_lowlat.
197 * testsuite/libgomp.c/omp_alloc-3.c (main): Add gnu_lowlat.
198 * testsuite/libgomp.c/omp_alloc-4.c (main): Add access trait.
199 * testsuite/libgomp.c/omp_alloc-5.c (main): Add gnu_lowlat.
200 * testsuite/libgomp.c/omp_alloc-6.c (main): Add access trait.
201 * testsuite/libgomp.c/omp_alloc-traits.c: New test.
202
203 2023-12-06 Andrew Stubbs <ams@codesourcery.com>
204 Kwok Cheung Yeung <kcy@codesourcery.com>
205 Thomas Schwinge <thomas@codesourcery.com>
206
207 * allocator.c (MEMSPACE_ALLOC): New macro.
208 (MEMSPACE_CALLOC): New macro.
209 (MEMSPACE_REALLOC): New macro.
210 (MEMSPACE_FREE): New macro.
211 (predefined_alloc_mapping): New array. Add _Static_assert to match.
212 (ARRAY_SIZE): New macro.
213 (omp_aligned_alloc): Use MEMSPACE_ALLOC.
214 Implement fall-backs for predefined allocators. Simplify existing
215 fall-backs.
216 (omp_free): Use MEMSPACE_FREE.
217 (omp_calloc): Use MEMSPACE_CALLOC. Implement fall-backs for
218 predefined allocators. Simplify existing fall-backs.
219 (omp_realloc): Use MEMSPACE_REALLOC, MEMSPACE_ALLOC, and MEMSPACE_FREE.
220 Implement fall-backs for predefined allocators. Simplify existing
221 fall-backs.
222 * config/nvptx/team.c (__nvptx_lowlat_pool): New asm variable.
223 (__nvptx_lowlat_init): New prototype.
224 (gomp_nvptx_main): Call __nvptx_lowlat_init.
225 * libgomp.texi: Update memory space table.
226 * plugin/plugin-nvptx.c (lowlat_pool_size): New variable.
227 (GOMP_OFFLOAD_init_device): Read the GOMP_NVPTX_LOWLAT_POOL envvar.
228 (GOMP_OFFLOAD_run): Apply lowlat_pool_size.
229 * basic-allocator.c: New file.
230 * config/nvptx/allocator.c: New file.
231 * testsuite/libgomp.c/omp_alloc-1.c: New test.
232 * testsuite/libgomp.c/omp_alloc-2.c: New test.
233 * testsuite/libgomp.c/omp_alloc-3.c: New test.
234 * testsuite/libgomp.c/omp_alloc-4.c: New test.
235 * testsuite/libgomp.c/omp_alloc-5.c: New test.
236 * testsuite/libgomp.c/omp_alloc-6.c: New test.
237
238 2023-11-30 Thomas Schwinge <thomas@codesourcery.com>
239
240 * testsuite/libgomp.c/declare-variant-4-fiji.c: Adjust.
241 * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
242 * testsuite/libgomp.c/declare-variant-4-gfx900.c: Likewise.
243 * testsuite/libgomp.c/declare-variant-4-gfx906.c: Likewise.
244 * testsuite/libgomp.c/declare-variant-4-gfx908.c: Likewise.
245 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: Likewise.
246 * testsuite/libgomp.c/declare-variant-4.h: Likewise.
247 * testsuite/libgomp.c/declare-variant-4.c: New.
248
249 2023-11-30 Thomas Schwinge <thomas@codesourcery.com>
250
251 * testsuite/libgomp.c/declare-variant-3-sm30.c: Turn 'dg-do run'
252 into 'dg-do link'.
253 * testsuite/libgomp.c/declare-variant-3.c: New.
254 * testsuite/libgomp.c/declare-variant-3.h: Extend.
255
256 2023-11-30 Thomas Schwinge <thomas@codesourcery.com>
257
258 * testsuite/libgomp.c/declare-variant-3-sm30.c: Restrict
259 'scan-offload-tree-dump' to 'only_for_offload_target nvptx-none'.
260 * testsuite/libgomp.c/declare-variant-3-sm35.c: Likewise.
261 * testsuite/libgomp.c/declare-variant-3-sm53.c: Likewise.
262 * testsuite/libgomp.c/declare-variant-3-sm70.c: Likewise.
263 * testsuite/libgomp.c/declare-variant-3-sm75.c: Likewise.
264 * testsuite/libgomp.c/declare-variant-3-sm80.c: Likewise.
265 * testsuite/libgomp.c/declare-variant-4-fiji.c: Restrict
266 'scan-offload-tree-dump' to
267 'only_for_offload_target amdgcn-amdhsa'.
268 * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
269 * testsuite/libgomp.c/declare-variant-4-gfx900.c: Likewise.
270 * testsuite/libgomp.c/declare-variant-4-gfx906.c: Likewise.
271 * testsuite/libgomp.c/declare-variant-4-gfx908.c: Likewise.
272 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: Likewise.
273
274 2023-11-30 Thomas Schwinge <thomas@codesourcery.com>
275
276 * testsuite/libgomp.c/declare-variant-3-sm30.c:
277 'dg-additional-options -foffload=nvptx-none'.
278 * testsuite/libgomp.c/declare-variant-3-sm35.c: Likewise.
279 * testsuite/libgomp.c/declare-variant-3-sm53.c: Likewise.
280 * testsuite/libgomp.c/declare-variant-3-sm70.c: Likewise.
281 * testsuite/libgomp.c/declare-variant-3-sm75.c: Likewise.
282 * testsuite/libgomp.c/declare-variant-3-sm80.c: Likewise.
283
284 2023-11-29 Thomas Schwinge <thomas@codesourcery.com>
285
286 * testsuite/libgomp.c/target-simd-clone-1.c: Restrict
287 'scan-offload-ipa-dump's to
288 'only_for_offload_target amdgcn-amdhsa'.
289 * testsuite/libgomp.c/target-simd-clone-2.c: Likewise.
290 * testsuite/libgomp.c/target-simd-clone-3.c: Likewise.
291
292 2023-11-24 Tobias Burnus <tobias@codesourcery.com>
293
294 * libgomp.texi (5.2 Impl. Status): An argument to the destroy clause
295 is now supported.
296
297 2023-11-22 Thomas Schwinge <thomas@codesourcery.com>
298
299 * testsuite/libgomp.c/declare-variant-3.h (f30, f35, f53, f70)
300 (f75, f80, f): Add '__attribute__ ((noipa))'.
301 * testsuite/libgomp.c/declare-variant-4.h (gfx803, gfx900, gfx906)
302 (gfx908, gfx90a, f): Likewise.
303
304 2023-11-15 Andrew Stubbs <ams@codesourcery.com>
305 Andrew Jenner <andrew@codesourcery.com>
306
307 * plugin/plugin-gcn.c (max_isa_vgprs): New.
308 (run_kernel): CDNA2 devices have more VGPRs.
309
310 2023-11-10 Tobias Burnus <tobias@codesourcery.com>
311
312 * libgomp.texi (OpenMP Impl. Status): Update for OpenMP TR12;
313 renamed section from TR11.
314
315 2023-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
316
317 * config/linux/target-indirect.c: Move to...
318 * target-indirect.c: ...here.
319
320 2023-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
321
322 * Makefile.am (libgomp_la_SOURCES): Add target-indirect.c.
323 * Makefile.in: Regenerate.
324 * libgomp-plugin.h (GOMP_INDIRECT_ADDR_MAP): New define.
325 (GOMP_OFFLOAD_load_image): Add extra argument.
326 * libgomp.h (struct indirect_splay_tree_key_s): New.
327 (indirect_splay_tree_node, indirect_splay_tree,
328 indirect_splay_tree_key): New.
329 (indirect_splay_compare): New.
330 * libgomp.map (GOMP_5.1.1): Add GOMP_target_map_indirect_ptr.
331 * libgomp.texi (OpenMP 5.1): Update documentation on indirect
332 calls in target region and on indirect clause.
333 (Other new OpenMP 5.2 features): Add entry for virtual function calls.
334 * libgomp_g.h (GOMP_target_map_indirect_ptr): Add prototype.
335 * oacc-host.c (host_load_image): Add extra argument.
336 * target.c (gomp_load_image_to_device): If the GOMP_VERSION is high
337 enough, read host indirect functions table and pass to
338 load_image_func.
339 * config/accel/target-indirect.c: New.
340 * config/linux/target-indirect.c: New.
341 * config/gcn/team.c (build_indirect_map): Add prototype.
342 (gomp_gcn_enter_kernel): Initialize support for indirect
343 function calls on GCN target.
344 * config/nvptx/team.c (build_indirect_map): Add prototype.
345 (gomp_nvptx_main): Initialize support for indirect function
346 calls on NVPTX target.
347 * plugin/plugin-gcn.c (struct gcn_image_desc): Add field for
348 indirect functions count.
349 (GOMP_OFFLOAD_load_image): Add extra argument. If the GOMP_VERSION
350 is high enough, build address translation table and copy it to target
351 memory.
352 * plugin/plugin-nvptx.c (nvptx_tdata): Add field for indirect
353 functions count.
354 (GOMP_OFFLOAD_load_image): Add extra argument. If the GOMP_VERSION
355 is high enough, Build address translation table and copy it to target
356 memory.
357 * testsuite/libgomp.c-c++-common/declare-target-indirect-1.c: New.
358 * testsuite/libgomp.c-c++-common/declare-target-indirect-2.c: New.
359 * testsuite/libgomp.c++/declare-target-indirect-1.C: New.
360
361 2023-11-05 Jakub Jelinek <jakub@redhat.com>
362
363 * libgomp.texi (Enabling OpenMP): Adjust wording for attribute syntax
364 supported also in C.
365
366 2023-10-31 Thomas Schwinge <thomas@codesourcery.com>
367
368 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Add OpenACC
369 'acc_map_data' variant.
370
371 2023-10-25 Thomas Schwinge <thomas@codesourcery.com>
372
373 * oacc-parallel.c (GOACC_data_start): Handle
374 'GOACC_FLAG_LOCAL_DEVICE'.
375 (GOACC_parallel_keyed): Simplify accordingly.
376 * testsuite/libgomp.oacc-fortran/self-1.f90: Adjust.
377
378 2023-10-25 Thomas Schwinge <thomas@codesourcery.com>
379
380 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Enhance.
381 * testsuite/libgomp.oacc-c-c++-common/self-1.c: Likewise.
382 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
383 * testsuite/libgomp.oacc-c-c++-common/if-self-1.c: New.
384 * testsuite/libgomp.oacc-fortran/self-1.f90: Likewise.
385
386 2023-10-25 Chung-Lin Tang <cltang@codesourcery.com>
387
388 * oacc-parallel.c (GOACC_parallel_keyed): Add code to handle
389 GOACC_FLAG_LOCAL_DEVICE case.
390 * testsuite/libgomp.oacc-c-c++-common/self-1.c: New test.
391
392 2023-10-22 Iain Sandoe <iain@sandoe.co.uk>
393
394 * Makefile.am: Handle Darwin rpaths.
395 * Makefile.in: Regenerate.
396 * configure: Regenerate.
397 * configure.ac: Handle Darwin rpaths
398
399 2023-10-20 Andrew Stubbs <ams@codesourcery.com>
400
401 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX1030): New.
402 (isa_hsa_name): Recognise gfx1030.
403 (isa_code): Likewise.
404 * team.c (defined): Remove s_endpgm.
405
406 2023-10-20 Tobias Burnus <tobias@codesourcery.com>
407
408 * omp_lib.f90.in: Tag omp_lock_hint_* as being deprecated when
409 _OPENMP >= 201811.
410
411 2023-10-15 Tobias Burnus <tobias@codesourcery.com>
412
413 * libgomp.texi (Enabling OpenMP): Update for C/C++ attributes;
414 improve wording especially for Fortran; mention -fopenmp-simd.
415 (Enabling OpenACC): Minor cleanup; remove conditional compilation
416 sentinel.
417
418 2023-10-15 Tobias Burnus <tobias@codesourcery.com>
419
420 * libgomp.texi (ACC_DEVICE_TYPE, ACC_DEVICE_NUM, ACC_PROFLIB):
421 Actually document what the function does.
422 (GCC_ACC_NOTIFY): Remove unused env var.
423
424 2023-10-15 Tobias Burnus <tobias@codesourcery.com>
425
426 * libgomp.texi: Replace most future tense by present tense.
427
428 2023-10-14 Tobias Burnus <tobias@codesourcery.com>
429
430 * testsuite/libgomp.fortran/allocate-6.f90: Add missing
431 dg-additional-options "-fdump-tree-gimple"; fix scan.
432
433 2023-10-14 Tobias Burnus <tobias@codesourcery.com>
434
435 * libgomp.texi: Fix some typos.
436 (Memory Management Routines): Document remaining 5.x routines.
437 (Memory allocation): Make clear when the section applies.
438
439 2023-10-14 Tobias Burnus <tobias@codesourcery.com>
440
441 * libgomp.texi (OpenMP Impl. Status): Mention that Fortran now
442 supports the allocate directive for stack variables.
443 * testsuite/libgomp.fortran/allocate-5.f90: New test.
444 * testsuite/libgomp.fortran/allocate-6.f90: New test.
445 * testsuite/libgomp.fortran/allocate-7.f90: New test.
446 * testsuite/libgomp.fortran/allocate-8.f90: New test.
447
448 2023-10-12 Tobias Burnus <tobias@codesourcery.com>
449
450 * libgomp.texi (OMP_DEFAULT_DEVICE): Update spec ref; add @ref to
451 OMP_TARGET_OFFLOAD.
452 (OMP_TARGET_OFFLOAD): Update spec ref; add @ref to OMP_DEFAULT_DEVICE;
453 clarify MANDATORY behavior.
454
455 2023-10-12 Zhang, Jun <jun.zhang@intel.com>
456
457 * env.c (initialize_env): Use do_adjust_default_spincount.
458 * config/linux/x86/spincount.h: New file.
459
460 2023-10-08 Tobias Burnus <tobias@codesourcery.com>
461
462 * testsuite/libgomp.fortran/strictly-structured-block-1.f90: New test.
463
464 2023-10-06 Tobias Burnus <tobias@codesourcery.com>
465
466 * libgomp.texi (Device Memory Routines): New.
467
468 2023-10-04 Tobias Burnus <tobias@codesourcery.com>
469
470 * libgomp.texi (OpenMP Context Selectors): Clarify 'kind' trait
471 and that other target archs have no 'arch'/'isa' traits implemented.
472
473 2023-09-20 Tobias Burnus <tobias@codesourcery.com>
474
475 * libgomp.texi (OpenMP 5.1 Impl.): Mark 'omp allocate' as
476 implemented for C only.
477 * testsuite/libgomp.c/allocate-4.c: New test.
478 * testsuite/libgomp.c/allocate-5.c: New test.
479 * testsuite/libgomp.c/allocate-6.c: New test.
480
481 2023-09-20 Jakub Jelinek <jakub@redhat.com>
482
483 PR c++/111392
484 * libgomp.texi: Mark decl attribute was added to the C++ attribute
485 syntax as implemented.
486
487 2023-09-19 Jakub Jelinek <jakub@redhat.com>
488
489 PR libgomp/111413
490 * env.c (initialize_env): Don't dereference environ if it is NULL.
491 Reindent.
492
493 2023-09-18 Richard Biener <rguenther@suse.de>
494
495 PR tree-optimization/111294
496 * team.c (gomp_team_start): Assert alloca size to avoid false
497 positive alloc-size diagnostic.
498
499 2023-09-12 Thomas Schwinge <thomas@codesourcery.com>
500 Chung-Lin Tang <cltang@codesourcery.com>
501
502 PR testsuite/91884
503 PR testsuite/109951
504 * configure.ac: Revert earlier changes, instead
505 'AC_SUBST(SYSROOT_CFLAGS_FOR_TARGET)'.
506 * Makefile.in: Regenerate.
507 * configure: Likewise.
508 * testsuite/Makefile.in: Likewise.
509 * testsuite/lib/libgomp.exp (libgomp_init): Remove
510 "Fix up '-funconfigured-libstdc++-v3' in 'GXX_UNDER_TEST'" code.
511 If '--with-build-sysroot=[...]' was specified, use it for
512 build-tree testing.
513 * testsuite/libgomp-site-extra.exp.in (GCC_UNDER_TEST)
514 (GXX_UNDER_TEST, GFORTRAN_UNDER_TEST): Don't set.
515 (SYSROOT_CFLAGS_FOR_TARGET): Set.
516 * testsuite/libgomp.c++/c++.exp (lang_source_re)
517 (lang_include_flags): Set for build-tree testing.
518 * testsuite/libgomp.oacc-c++/c++.exp (lang_source_re)
519 (lang_include_flags): Likewise.
520
521 2023-09-07 Tobias Burnus <tobias@codesourcery.com>
522
523 * libgomp.texi (Memory Management Routines): New; add documentation for
524 omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
525 omp_get_default_allocator.
526 (OMP_ALLOCATOR): Fix ICV var name; add see-also references.
527
528 2023-09-07 Tobias Burnus <tobias@codesourcery.com>
529
530 * target.c (gomp_unload_device): Remove tailing whitespace.
531
532 2023-09-04 Tobias Burnus <tobias@codesourcery.com>
533 Thomas Schwinge <thomas@codesourcery.com>
534
535 * testsuite/libgomp.c-c++-common/pr100059-1.c: New.
536
537 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
538
539 * libgomp.texi (OpenMP 5.0): Imperfectly-nested loops are done.
540
541 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
542
543 * testsuite/libgomp.fortran/imperfect-destructor.f90: New.
544 * testsuite/libgomp.fortran/imperfect1.f90: New.
545 * testsuite/libgomp.fortran/imperfect2.f90: New.
546 * testsuite/libgomp.fortran/imperfect3.f90: New.
547 * testsuite/libgomp.fortran/imperfect4.f90: New.
548 * testsuite/libgomp.fortran/target-imperfect1.f90: New.
549 * testsuite/libgomp.fortran/target-imperfect2.f90: New.
550 * testsuite/libgomp.fortran/target-imperfect3.f90: New.
551 * testsuite/libgomp.fortran/target-imperfect4.f90: New.
552
553 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
554
555 * testsuite/libgomp.c-c++-common/imperfect1.c: New.
556 * testsuite/libgomp.c-c++-common/imperfect2.c: New.
557 * testsuite/libgomp.c-c++-common/imperfect3.c: New.
558 * testsuite/libgomp.c-c++-common/imperfect4.c: New.
559 * testsuite/libgomp.c-c++-common/imperfect5.c: New.
560 * testsuite/libgomp.c-c++-common/imperfect6.c: New.
561 * testsuite/libgomp.c-c++-common/target-imperfect1.c: New.
562 * testsuite/libgomp.c-c++-common/target-imperfect2.c: New.
563 * testsuite/libgomp.c-c++-common/target-imperfect3.c: New.
564 * testsuite/libgomp.c-c++-common/target-imperfect4.c: New.
565
566 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
567
568 * testsuite/libgomp.c++/attrs-imperfect1.C: New test.
569 * testsuite/libgomp.c++/attrs-imperfect2.C: New test.
570 * testsuite/libgomp.c++/attrs-imperfect3.C: New test.
571 * testsuite/libgomp.c++/attrs-imperfect4.C: New test.
572 * testsuite/libgomp.c++/attrs-imperfect5.C: New test.
573 * testsuite/libgomp.c++/attrs-imperfect6.C: New test.
574 * testsuite/libgomp.c++/imperfect-class-1.C: New test.
575 * testsuite/libgomp.c++/imperfect-class-2.C: New test.
576 * testsuite/libgomp.c++/imperfect-class-3.C: New test.
577 * testsuite/libgomp.c++/imperfect-destructor.C: New test.
578 * testsuite/libgomp.c++/imperfect-template-1.C: New test.
579 * testsuite/libgomp.c++/imperfect-template-2.C: New test.
580 * testsuite/libgomp.c++/imperfect-template-3.C: New test.
581
582 2023-08-22 Francois-Xavier Coudert <fxcoudert@gmail.com>
583
584 * testsuite/lib/libgomp.exp: Add effective target.
585 * testsuite/libgomp.c/simd-math-1.c: Avoid calling nonstandard
586 functions.
587
588 2023-08-22 Tobias Burnus <tobias@codesourcery.com>
589
590 * libgomp.texi (OpenMP 5.2 status): Add depobj with
591 destroy-var argument as 'N'. Mark defaultmap with
592 'all' category as 'Y'.
593
594 2023-08-19 Tobias Burnus <tobias@codesourcery.com>
595
596 PR middle-end/111017
597 * testsuite/libgomp.c-c++-common/non-rect-loop-1.c: New test.
598
599 2023-08-17 Tobias Burnus <tobias@codesourcery.com>
600
601 PR libgomp/111024
602 * allocator.c (gomp_init_libnuma): Call numa_available; if
603 not available or not returning 0, disable libnuma usage.
604
605 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
606
607 * configure: Regenerate.
608
609 2023-08-07 Alexander von Gluck IV <kallisti5@unixzen.com>
610
611 * configure: Regenerate.
612
613 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
614
615 * configure: Regenerate.
616
617 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
618
619 * configure: Regenerate.
620
621 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
622
623 * configure: Regenerate.
624
625 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
626
627 * configure: Regenerate.
628
629 2023-07-29 Tobias Burnus <tobias@codesourcery.com>
630
631 * target.c (omp_target_memcpy_rect_worker): Undo dim=1 change for
632 GOMP_OFFLOAD_CAP_SHARED_MEM.
633 (omp_target_memcpy_rect_copy): Likewise for lock condition.
634 (gomp_load_plugin_for_device): Use DLSYM_OPT not DLSYM for
635 memcpy3d/memcpy2d.
636 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
637 GOMP_OFFLOAD_memcpy3d): Use memset 0 to nullify reserved and
638 unused src/dst fields for that mem type; remove '{src,dst}LOD = 0'.
639
640 2023-07-26 Tobias Burnus <tobias@codesourcery.com>
641
642 * libgomp-plugin.h (GOMP_OFFLOAD_memcpy2d,
643 GOMP_OFFLOAD_memcpy3d): New prototypes.
644 * libgomp.h (struct gomp_device_descr): Add memcpy2d_func
645 and memcpy3d_func.
646 * libgomp.texi (nvtpx): Document when cuMemcpy2D/cuMemcpy3D is used.
647 * oacc-host.c (memcpy2d_func, .memcpy3d_func): Init with NULL.
648 * plugin/cuda-lib.def (cuMemcpy2D, cuMemcpy2DUnaligned,
649 cuMemcpy3D): Invoke via CUDA_ONE_CALL.
650 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
651 GOMP_OFFLOAD_memcpy3d): New.
652 * target.c (omp_target_memcpy_rect_worker):
653 (omp_target_memcpy_rect_check, omp_target_memcpy_rect_copy):
654 Permit all device-to-device copyies; invoke new plugins for
655 2D and 3D copying when available.
656 (gomp_load_plugin_for_device): DLSYM the new plugin functions.
657 * testsuite/libgomp.c/target-12.c: Fix dimension bug.
658 * testsuite/libgomp.fortran/target-12.f90: Likewise.
659 * testsuite/libgomp.fortran/target-memcpy-rect-1.f90: New test.
660
661 2023-07-26 Tobias Burnus <tobias@codesourcery.com>
662
663 * libgomp.texi (OpenMP 5.2 features): Add 'all' for 'defaultmap' as 'N'.
664 (Tasking Routines): Document omp_in_explicit_task.
665 (Implementation-defined ICV Initialization): Use @ref not @code.
666
667 2023-07-20 Tobias Burnus <tobias@codesourcery.com>
668
669 * libgomp.texi (OpenMP Runtime Library Routines):
670 Split long list by adding sections and moving routines there.
671 (OMP_ALLOCATORS): Fix typo.
672
673 2023-07-19 Tobias Burnus <tobias@codesourcery.com>
674
675 PR fortran/107424
676 * libgomp.texi (Impl. Status 5.0): Add link to new PR110735.
677 * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: Enable
678 commented tests.
679 * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: Remove
680 test file; tests are in non-rectangular-loop-1.f90.
681 * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: Change
682 testcase to use a non-constant step to retain the 'sorry' test.
683 * testsuite/libgomp.fortran/non-rectangular-loop-6.f90: New test.
684
685 2023-07-17 Tobias Burnus <tobias@codesoucery.com>
686 Chung-Lin Tang <cltang@codesourcery.com>
687
688 * testsuite/libgomp.fortran/uses_allocators_1.f90: New test.
689 * testsuite/libgomp.fortran/uses_allocators_2.f90: New test.
690
691 2023-07-14 Tobias Burnus <tobias@codesourcery.com>
692
693 * libgomp.texi (OMP_ALLOCATOR): Document the default values for
694 the traits. Add crossref to 'Memory allocation'.
695 (Memory allocation): Refer to OMP_ALLOCATOR for the available
696 traits and allocators/mem spaces; document the default value
697 for the pool_size trait.
698
699 2023-07-14 Tobias Burnus <tobias@codesourcery.com>
700
701 * allocator.c (omp_init_allocator): Check whether symbol from
702 dlopened libnuma is available before using libnuma for
703 allocations.
704
705 2023-07-13 David Edelsohn <dje.gcc@gmail.com>
706
707 * testsuite/libgomp.c++/target-map-class-2.C: Require LTO.
708 * testsuite/libgomp.c-c++-common/requires-4.c: Require LTO.
709 * testsuite/libgomp.c-c++-common/requires-4a.c: Require LTO.
710
711 2023-07-12 Tobias Burnus <tobias@codesourcery.com>
712
713 * libgomp.texi (OpenMP 5.0): Replace '... stub' by @ref to
714 'Memory allocation' section which contains the full status.
715 (TR11): Remove differently worded duplicated entry.
716
717 2023-07-12 Tobias Burnus <tobias@codesourcery.com>
718
719 * allocator.c: Add ifdef for LIBGOMP_USE_LIBNUMA.
720 (enum gomp_numa_memkind_kind): Renamed from gomp_memkind_kind;
721 add GOMP_MEMKIND_LIBNUMA.
722 (struct gomp_libnuma_data, gomp_init_libnuma, gomp_get_libnuma): New.
723 (omp_init_allocator): Handle partition=nearest with libnuma if avail.
724 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
725 numa_alloc_local (+ memset), numa_free, and numa_realloc calls as
726 needed.
727 * config/linux/allocator.c (LIBGOMP_USE_LIBNUMA): Define
728 * libgomp.texi: Fix a typo; use 'fi' instead of its ligature char.
729 (Memory allocation): Renamed from 'Memory allocation with libmemkind';
730 updated for libnuma usage.
731 * testsuite/libgomp.c-c++-common/alloc-11.c: New test.
732 * testsuite/libgomp.c-c++-common/alloc-12.c: New test.
733
734 2023-07-11 Tobias Burnus <tobias@codesourcery.com>
735
736 * allocator.c (omp_init_allocator): Use malloc for
737 omp_high_bw_mem_space when the memkind lib is unavailable
738 instead of returning omp_null_allocator.
739 * libgomp.texi (OpenMP 5.0): Fix typo.
740 (Memory allocation with libmemkind): Document implementation
741 in more detail.
742
743 2023-06-22 Tobias Burnus <tobias@codesourcery.com>
744
745 * libgomp.texi: Use @var for ICV vars.
746 (OpenMP Environment Variables): Mention _ALL/_DEV/_DEV_<no> variants,
747 document which ICV is set and which scope the ICV has; extend/cleanup
748 some @ref.
749 (Implementation-defined ICV Initialization): New.
750 (nvptx): Document the implementation-defined used per-warp stack size.
751
752 2023-06-19 Thomas Schwinge <thomas@codesourcery.com>
753
754 * testsuite/libgomp.c/target-51.c: Fix DejaGnu directive syntax
755 error.
756
757 2023-06-19 Tobias Burnus <tobias@codesourcery.com>
758
759 * testsuite/libgomp.c/target-51.c: Accept more error msg variants
760 as expected dg-output.
761
762 2023-06-19 Tobias Burnus <tobias@codesourcery.com>
763
764 PR middle-end/110270
765 * target.c (gomp_map_vars_internal): Copy host value instead of NULL
766 for GOMP_MAP_ZERO_LEN_ARRAY_SECTION if not mapped.
767 * libgomp.texi (OpenMP 5.2 Impl.): Mark as 'Y'.
768 * testsuite/libgomp.c/target-19.c: Update expected value.
769 * testsuite/libgomp.c++/target-18.C: Likewise.
770 * testsuite/libgomp.c++/target-19.C: Likewise.
771 * testsuite/libgomp.c-c++-common/requires-unified-addr-2.c: New test.
772 * testsuite/libgomp.c-c++-common/target-implicit-map-3.c: New test.
773 * testsuite/libgomp.c-c++-common/target-implicit-map-4.c: New test.
774
775 2023-06-16 Tobias Burnus <tobias@codesourcery.com>
776
777 * target.c (resolve_device): Call gomp_get_num_devices early to ensure
778 gomp_init_targets_once was called before using default-device-var.
779 * testsuite/libgomp.c/target-55.c: New test.
780 * testsuite/libgomp.c/target-55a.c: New test.
781
782 2023-06-15 Tobias Burnus <tobias@codesourcery.com>
783
784 * env.c (gomp_def_allocator_envvar): New var.
785 (parse_allocator): Handle OpenMP 5.1 syntax.
786 (cleanup_env): New.
787 (omp_display_env): Output gomp_def_allocator_envvar
788 for an allocator with traits.
789 * libgomp.texi (OMP_ALLOCATOR, OMP_AFFINITY_FORMAT,
790 OMP_DISPLAY_AFFINITY): New.
791 * testsuite/libgomp.c/allocator-1.c: New test.
792 * testsuite/libgomp.c/allocator-2.c: New test.
793 * testsuite/libgomp.c/allocator-3.c: New test.
794 * testsuite/libgomp.c/allocator-4.c: New test.
795 * testsuite/libgomp.c/allocator-5.c: New test.
796 * testsuite/libgomp.c/allocator-6.c: New test.
797
798 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
799
800 * target.c (resolve_device): Align a
801 'OMP_TARGET_OFFLOAD=mandatory' diagnostic with others.
802 * testsuite/libgomp.c/target-51.c: Adjust.
803
804 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
805
806 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Don't
807 set.
808 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags):
809 Likewise.
810 * testsuite/libgomp.c/simd-math-1.c: Remove
811 '-foffload-options=-lm'.
812 * testsuite/libgomp.fortran/fortran-torture_execute_math.f90:
813 Likewise.
814 * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
815 Likewise.
816
817 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
818
819 * testsuite/libgomp.fortran/fortran-torture_execute_math.f90: New.
820 * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
821 Likewise.
822
823 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
824
825 * testsuite/libgomp.c/target-51.c: Fix typo.
826
827 2023-06-14 Tobias Burnus <tobias@codesourcery.com>
828
829 * env.c (gomp_default_icv_values): Init default_device_var to
830 an nonconforming value - INT_MIN.
831 (initialize_env): After env-var parsing, set default_device_var to
832 device 0 unless OMP_TARGET_OFFLOAD=mandatory.
833 (omp_display_env): If default_device_var is INT_MIN, call
834 gomp_init_targets_once.
835 * icv-device.c (omp_get_default_device): Likewise.
836 * libgomp.texi (OMP_DEFAULT_DEVICE): Update init description.
837 (OpenMP 5.2 Impl. Status): Mark OMP_TARGET_OFFLOAD=mandatory as 'Y'.
838 * target.c (resolve_device): Improve error message device-num < 0
839 with 'mandatory' and no no-host devices available.
840 (gomp_target_init): Set default-device-var if INT_MIN.
841 * testsuite/libgomp.c/target-48.c: New test.
842 * testsuite/libgomp.c/target-49.c: New test.
843 * testsuite/libgomp.c/target-50.c: New test.
844 * testsuite/libgomp.c/target-50a.c: New test.
845 * testsuite/libgomp.c/target-51.c: New test.
846 * testsuite/libgomp.c/target-52.c: New test.
847 * testsuite/libgomp.c/target-53.c: New test.
848 * testsuite/libgomp.c/target-54.c: New test.
849
850 2023-06-13 Tobias Burnus <tobias@codesourcery.com>
851
852 PR libgomp/109837
853 * testsuite/libgomp.c-c++-common/requires-unified-addr-1.c: New test.
854 * testsuite/libgomp.fortran/requires-unified-addr-1.f90: New test.
855
856 2023-06-12 Tobias Burnus <tobias@codesourcery.com>
857
858 * target.c (gomp_to_device_kind_p, gomp_map_vars_internal): Replace
859 GOMP_MAP_PRESENT_{FROM,TO,TOFROM,ACLLOC} by GOMP_MAP_FORCE_PRESENT.
860 (gomp_map_vars_internal, gomp_update): Likewise; unify and improve
861 error message.
862 * testsuite/libgomp.c-c++-common/target-present-2.c: Update for
863 changed error message.
864 * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
865 * testsuite/libgomp.fortran/target-present-2.f90: Likewise.
866 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
867 * testsuite/libgomp.c-c++-common/target-present-1.c: Likewise and
868 extend testcase to check that data is copied when needed.
869 * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
870 * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
871
872 2023-06-07 Thomas Schwinge <thomas@codesourcery.com>
873 Tobias Burnus <tobias@codesourcery.com>
874
875 * testsuite/libgomp.c-c++-common/target-present-1.c: Run code
876 also for non-offload_device targets; check that it runs
877 successfully for those and for all until a checkpoint for all
878 * testsuite/libgomp.c-c++-common/target-present-2.c: Likewise.
879 * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
880 * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
881 * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
882 * testsuite/libgomp.fortran/target-present-2.f90: Likewise;
883 add missing vars to map clause.
884
885 2023-06-06 Tobias Burnus <tobias@codesourcery.com>
886
887 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Regard
888 unified_address requirement as supported.
889 * libgomp.texi (OpenMP 5.0, AMD Radeon, nvptx): Remove
890 'unified_address' from the not-supported requirements.
891
892 2023-06-06 Kwok Cheung Yeung <kcy@codesourcery.com>
893 Tobias Burnus <tobias@codesourcery.com>
894
895 * libgomp.texi (OpenMP 5.1 Impl. status): Set 'present' support for
896 defaultmap to 'Y', add 'Y' entry for 'present' on to/from/map clauses.
897 * target.c (gomp_to_device_kind_p): Add map kinds with 'present'
898 modifier.
899 (gomp_map_vars_existing): Use new GOMP_MAP_FORCE_P macro.
900 (gomp_map_vars_internal, gomp_update, gomp_target_rev):
901 Emit runtime error if memory region not present.
902 * testsuite/libgomp.c-c++-common/target-present-1.c: New test.
903 * testsuite/libgomp.c-c++-common/target-present-2.c: New test.
904 * testsuite/libgomp.c-c++-common/target-present-3.c: New test.
905 * testsuite/libgomp.fortran/target-present-1.f90: New test.
906 * testsuite/libgomp.fortran/target-present-2.f90: New test.
907 * testsuite/libgomp.fortran/target-present-3.f90: New test.
908
909 2023-06-02 Thomas Schwinge <thomas@codesourcery.com>
910
911 PR testsuite/66005
912 * testsuite/lib/libgomp.exp: 'flock' through stdout.
913 * testsuite/flock: New.
914 * configure.ac (FLOCK): Point to that if no 'flock' available, but
915 'perl' is.
916 * configure: Regenerate.
917
918 2023-06-02 Thomas Schwinge <thomas@codesourcery.com>
919
920 * configure.ac (PERL): Remove.
921 * configure: Regenerate.
922 * Makefile.in: Likewise.
923 * testsuite/Makefile.in: Likewise.
924
925 2023-06-01 Tobias Burnus <tobias@codesourcery.com>
926
927 * libgomp.texi (OpenMP 5.2): Mark pure-directive handling as 'Y'.
928
929 2023-05-26 Tobias Burnus <tobias@codesourcery.com>
930
931 * testsuite/libgomp.fortran/allocate-4.f90: Update dg-error.
932
933 2023-05-21 Tobias Burnus <tobias@codesourcery.com>
934
935 PR libgomp/109875
936 * config/gcn/target.c (GOMP_teams4): Honor nteams-var ICV.
937 * config/nvptx/target.c (GOMP_teams4): Likewise.
938 * testsuite/libgomp.c-c++-common/teams-nteams-icv-1.c: New test.
939 * testsuite/libgomp.c-c++-common/teams-nteams-icv-2.c: New test.
940 * testsuite/libgomp.c-c++-common/teams-nteams-icv-3.c: New test.
941 * testsuite/libgomp.c-c++-common/teams-nteams-icv-4.c: New test.
942
943 2023-05-19 Jakub Jelinek <jakub@redhat.com>
944
945 PR libgomp/109904
946 * configure.ac (link_gomp): Include also $DL_LIBS.
947 * configure: Regenerated.
948
949 2023-05-17 Tobias Burnus <tobias@codesourcery.com>
950
951 * testsuite/libgomp.fortran/target-enter-data-3.f90: Uncomment
952 'target exit data'.
953 * testsuite/libgomp.fortran/target-enter-data-4.f90: New test.
954 * testsuite/libgomp.fortran/target-enter-data-5.f90: New test.
955 * testsuite/libgomp.fortran/target-enter-data-6.f90: New test.
956 * testsuite/libgomp.fortran/target-enter-data-7.f90: New test.
957
958 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
959
960 PR testsuite/66005
961 * configure.ac: Look for 'flock'.
962 * testsuite/Makefile.am (gcc_test_parallel_slots): Enable parallel testing.
963 * testsuite/config/default.exp: Don't 'load_lib "standard.exp"' here...
964 * testsuite/lib/libgomp.exp: ... but here, instead.
965 (libgomp_load): Override for parallel testing.
966 * testsuite/libgomp-site-extra.exp.in (FLOCK): Set.
967 * configure: Regenerate.
968 * Makefile.in: Regenerate.
969 * testsuite/Makefile.in: Regenerate.
970
971 2023-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
972 Thomas Schwinge <thomas@codesourcery.com>
973
974 PR testsuite/66005
975 * testsuite/Makefile.am (PWD_COMMAND): New variable.
976 (%/site.exp): New target.
977 (check_p_numbers0, check_p_numbers1, check_p_numbers2)
978 (check_p_numbers3, check_p_numbers4, check_p_numbers5)
979 (check_p_numbers6, check_p_numbers, gcc_test_parallel_slots)
980 (check_p_subdirs)
981 (check_DEJAGNU_libgomp_targets): New variables.
982 ($(check_DEJAGNU_libgomp_targets)): New target.
983 ($(check_DEJAGNU_libgomp_targets)): New dependency.
984 (check-DEJAGNU $(check_DEJAGNU_libgomp_targets)): New targets.
985 * testsuite/Makefile.in: Regenerate.
986 * testsuite/lib/libgomp.exp: For parallel testing,
987 'load_file ../libgomp-test-support.exp'.
988
989 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
990
991 PR testsuite/91884
992 * configure.ac: 'AC_SUBST(CXX)'.
993 * configure: Regenerate.
994 * Makefile.in: Likewise.
995 * testsuite/Makefile.in: Likewise.
996 * testsuite/libgomp-site-extra.exp.in (GXX_UNDER_TEST)
997 (GFORTRAN_UNDER_TEST): Set.
998 * testsuite/lib/libgomp.exp (libgomp_init): Adjust.
999 * testsuite/libgomp.c++/c++.exp: Use 'GXX_UNDER_TEST'.
1000 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1001 * testsuite/libgomp.fortran/fortran.exp: Use
1002 'GFORTRAN_UNDER_TEST'.
1003 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1004
1005 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
1006
1007 PR testsuite/91884
1008 * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't
1009 specify compiler.
1010 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Specify compiler.
1011 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
1012 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
1013 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
1014 Likewise.
1015 * testsuite/libgomp.oacc-c++/c++.exp (ALWAYS_CFLAGS): Likewise.
1016 * testsuite/libgomp.oacc-c/c.exp (ALWAYS_CFLAGS): Likewise.
1017 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS):
1018 Likewise.
1019
1020 2023-05-12 Tobias Burnus <tobias@codesourcery.com>
1021
1022 PR libstdc++/109816
1023 * testsuite/libgomp.c++/target-map-class-1.C: New test.
1024 * testsuite/libgomp.c++/target-map-class-2.C: New test.
1025
1026 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
1027
1028 * testsuite/lib/libgomp.exp (libgomp_target_compile): Generalize
1029 'lang_library_path' into a list of 'lang_library_paths'.
1030 * testsuite/libgomp.c++/c++.exp: Adjust.
1031 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1032 * testsuite/libgomp.fortran/fortran.exp: Adjust. Use that for
1033 libquadmath, too.
1034 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1035
1036 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
1037
1038 * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't look
1039 at 'lang_test_file_found'.
1040 * testsuite/libgomp.c++/c++.exp: Don't set and use it, and instead
1041 'return' early if not able to test. Simplify 'ld_library_path' setup.
1042 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1043 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1044 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1045
1046 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
1047
1048 * testsuite/libgomp.c++/c++.exp: Resolve 'lang_test_file_found'
1049 first.
1050 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1051 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1052 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1053
1054 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
1055
1056 * testsuite/libgomp.c++/c++.exp: Localize 'lang_[...]' etc.
1057 * testsuite/libgomp.c/c.exp: Likewise.
1058 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1059 * testsuite/libgomp.graphite/graphite.exp: Likewise.
1060 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1061 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1062 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1063
1064 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
1065
1066 * testsuite/libgomp.c++/c++.exp: Don't set 'lang_test_file'.
1067 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1068 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1069 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1070 * testsuite/libgomp.c/c.exp: Unset 'lang_test_file_found' instead of
1071 'lang_test_file'.
1072 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1073 * testsuite/libgomp.graphite/graphite.exp: Likewise.
1074 * testsuite/lib/libgomp.exp (libgomp_target_compile): Look for
1075 'lang_test_file_found' instead of 'lang_test_file'.
1076
1077 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
1078
1079 * testsuite/lib/libgomp.exp (libgomp_init): Only use 'blddir' if
1080 set.
1081 * testsuite/libgomp.c++/c++.exp: Likewise.
1082 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1083
1084 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
1085
1086 * testsuite/libgomp.c++/c++.exp (blddir): Don't set.
1087 * testsuite/libgomp.oacc-c++/c++.exp (blddir): Likewise.
1088
1089 2023-05-08 Thomas Schwinge <thomas@codesourcery.com>
1090
1091 * testsuite/libgomp.c++/c++.exp: Use 'lang_include_flags' instead
1092 of 'libstdcxx_includes'.
1093 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1094
1095 2023-05-08 Thomas Schwinge <thomas@codesourcery.com>
1096
1097 * target.c (gomp_target_rev): Instead of 'dev_to_host_cpy',
1098 'host_to_dev_cpy', 'token', take a single 'goacc_asyncqueue'.
1099 * libgomp.h (gomp_target_rev): Adjust.
1100 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): Adjust.
1101 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): Adjust.
1102 * plugin/plugin-gcn.c (process_reverse_offload): Adjust.
1103 * plugin/plugin-nvptx.c (rev_off_dev_to_host_cpy)
1104 (rev_off_host_to_dev_cpy): Remove.
1105 (GOMP_OFFLOAD_run): Adjust.
1106
1107 2023-05-04 Julian Brown <julian@codesourcery.com>
1108
1109 PR fortran/109622
1110 * testsuite/libgomp.fortran/pr109622.f90: Move test...
1111 * testsuite/libgomp.oacc-fortran/pr109622.f90: ...to here. Ignore
1112 vector length warning.
1113 * testsuite/libgomp.fortran/pr109622-2.f90: Move test...
1114 * testsuite/libgomp.oacc-fortran/pr109622-2.f90: ...to here. Add
1115 missing copyin/copyout variable. Ignore vector length warnings.
1116 * testsuite/libgomp.fortran/pr109622-3.f90: Move test...
1117 * testsuite/libgomp.oacc-fortran/pr109622-3.f90: ...to here. Ignore
1118 vector length warnings.
1119 * testsuite/libgomp.oacc-fortran/pr109622-4.f90: New test.
1120
1121 2023-04-28 Julian Brown <julian@codesourcery.com>
1122
1123 PR fortran/109622
1124 * testsuite/libgomp.fortran/pr109622.f90: New test.
1125 * testsuite/libgomp.fortran/pr109622-2.f90: New test.
1126 * testsuite/libgomp.fortran/pr109622-3.f90: New test.
1127
1128 2023-04-25 Tobias Burnus <tobias@codesourcery.com>
1129
1130 * testsuite/libgomp.c-c++-common/scan-1.c: New test.
1131 * testsuite/libgomp.c/scan-23.c: New test.
1132 * testsuite/libgomp.fortran/scan-2.f90: New test.
1133
1134 2023-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1135
1136 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Add
1137 weak_undefined options.
1138
1139 2023-03-24 Tobias Burnus <tobias@codesourcery.com>
1140
1141 * libgomp.texi (Offload-Target Specifics): Grammar fix.
1142
1143 2023-03-24 Thomas Schwinge <thomas@codesourcery.com>
1144
1145 PR fortran/104949
1146 * target.c (gomp_map_vars_internal) <GOMP_MAP_FIRSTPRIVATE>: Add
1147 caveat/safeguard.
1148
1149 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1150
1151 PR libgomp/90596
1152 * target.c (gomp_map_vars_internal): Allow for
1153 'param_kind == GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_TARGET'.
1154 * oacc-parallel.c (GOACC_parallel_keyed): Pass
1155 'GOMP_MAP_VARS_TARGET' to 'goacc_map_vars'.
1156 * plugin/plugin-gcn.c (alloc_by_agent, gcn_exec)
1157 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
1158 Adjust, simplify.
1159 (gomp_offload_free): Remove.
1160 * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
1161 (GOMP_OFFLOAD_openacc_async_exec): Adjust, simplify.
1162 (cuda_free_argmem): Remove.
1163 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1164 Adjust.
1165
1166 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1167
1168 * target.c (gomp_copy_host2dev, gomp_map_vars_internal): Allow
1169 libgomp 'cbuf' buffering with OpenACC 'async' for 'ephemeral'
1170 data.
1171
1172 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1173
1174 * target.c (gomp_map_vars_internal): Use 'OFFSET_INLINED' for
1175 'GOMP_MAP_IF_PRESENT'.
1176 * plugin/plugin-gcn.c (gcn_exec, GOMP_OFFLOAD_openacc_exec)
1177 (GOMP_OFFLOAD_openacc_async_exec): Adjust.
1178 * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
1179 (GOMP_OFFLOAD_openacc_async_exec): Likewise.
1180 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: Add 'async'
1181 testing.
1182 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: Likewise.
1183
1184 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1185
1186 * oacc-async.c (goacc_wait): Remove 'acc_async_test' -> skip
1187 shortcut.
1188
1189 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1190
1191 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Document/verify
1192 another aspect of OpenACC 'async' semantics.
1193
1194 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1195
1196 * plugin/plugin-gcn.c (gcn_exec): Fix 'acc_ev_enqueue_launch_end'
1197 position.
1198 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1199 Verify 'acc_ev_alloc', 'acc_ev_free'.
1200
1201 2023-03-09 Hongyu Wang <hongyu.wang@intel.com>
1202
1203 PR libgomp/109062
1204 * env.c (wait_policy): Initialize to -1.
1205 (initialize_icvs): Initialize icvs->wait_policy to -1.
1206 * testsuite/libgomp.c-c++-common/pr109062.c: New test.
1207
1208 2023-03-08 Tobias Burnus <tobias@codesourcery.com>
1209
1210 * libgomp.texi (Offload-Target Specifics): Mention GCN_STACK_SIZE.
1211
1212 2023-03-02 Kwok Cheung Yeung <kcy@codesourcery.com>
1213 Paul-Antoine Arras <pa@codesourcery.com>
1214
1215 * testsuite/libgomp.c/simd-math-1.c: New testcase.
1216
1217 2023-03-01 Tobias Burnus <tobias@codesourcery.com>
1218
1219 PR middle-end/108546
1220 * testsuite/libgomp.fortran/is_device_ptr-3.f90: New test.
1221 * testsuite/libgomp.fortran/use_device_ptr-optional-4.f90: New test.
1222
1223 2023-02-22 Thomas Schwinge <thomas@codesourcery.com>
1224
1225 * testsuite/libgomp.fortran/alloc-10.f90: Use
1226 '-Wno-complain-wrong-lang'.
1227 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
1228 * testsuite/libgomp.fortran/alloc-7.f90: Likewise.
1229 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
1230 * testsuite/libgomp.fortran/allocate-1.f90: Likewise.
1231 * testsuite/libgomp.fortran/depend-4.f90: Likewise.
1232 * testsuite/libgomp.fortran/depend-5.f90: Likewise.
1233 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
1234 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
1235 * testsuite/libgomp.fortran/depend-inoutset-1.f90: Likewise.
1236 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90:
1237 Likewise.
1238 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90:
1239 Likewise.
1240 * testsuite/libgomp.fortran/order-reproducible-1.f90: Likewise.
1241 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
1242 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1243 * testsuite/libgomp.fortran/task-detach-6.f90: Remove left-over
1244 'dg-prune-output'.
1245
1246 2023-02-16 Jakub Jelinek <jakub@redhat.com>
1247
1248 * libgomp.texi: Fix typos - theads -> threads.
1249
1250 2023-02-16 Jakub Jelinek <jakub@redhat.com>
1251
1252 * testsuite/libgomp.fortran/target-nowait-array-section.f90: Fix
1253 comment typo and improve its wording.
1254
1255 2023-02-15 Tobias Burnus <tobias@codesourcery.com>
1256
1257 * target.c (gomp_target_rev): Dereference ptr
1258 to get device address.
1259 * testsuite/libgomp.fortran/reverse-offload-5.f90: Add test
1260 for unallocated allocatable.
1261
1262 2023-02-15 Tobias Burnus <tobias@codesourcery.com>
1263
1264 * target.c (gomp_map_vars_internal): Add 'i > 0' before doing a
1265 kind check.
1266 (GOMP_target_enter_exit_data): If the next map item is
1267 GOMP_MAP_ALWAYS_POINTER map it together with the current item.
1268 * testsuite/libgomp.fortran/target-enter-data-3.f90: New test.
1269
1270 2023-02-09 Tobias Burnus <tobias@codesourcery.com>
1271
1272 PR fortran/107424
1273 * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: New test.
1274 * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: New test.
1275 * testsuite/libgomp.fortran/non-rectangular-loop-2.f90: New test.
1276 * testsuite/libgomp.fortran/non-rectangular-loop-3.f90: New test.
1277 * testsuite/libgomp.fortran/non-rectangular-loop-4.f90: New test.
1278 * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: New test.
1279
1280 2023-02-07 Thomas Schwinge <thomas@codesourcery.com>
1281
1282 * testsuite/libgomp.fortran/reverse-offload-6.f90: Fix nvptx
1283 offloading compilation.
1284
1285 2023-02-03 Tobias Burnus <tobias@codesourcery.com>
1286
1287 * target.c (gomp_target_rev): Handle mapnum == 0 and avoid
1288 freeing not allocated memory.
1289 * testsuite/libgomp.fortran/reverse-offload-6.f90: New test.
1290
1291 2023-02-03 Tobias Burnus <tobias@codesourcery.com>
1292
1293 * libgomp.texi (5.0 Impl. Status, gcn specifics): Update for
1294 reverse offload.
1295 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Accept
1296 reverse-offload requirement.
1297
1298 2023-02-02 Andrew Stubbs <ams@codesourcery.com>
1299
1300 * config/gcn/libgomp-gcn.h (DEFAULT_GCN_STACK_SIZE): New define.
1301 (DEFAULT_TEAM_ARENA_SIZE): New define.
1302 (struct heap): Move to this file.
1303 (struct kernargs_abi): Likewise.
1304 * config/gcn/team.c (gomp_gcn_enter_kernel): Use team arena size from
1305 the kernargs.
1306 * libgomp.h: Include libgomp-gcn.h.
1307 (TEAM_ARENA_SIZE): Remove.
1308 (team_malloc): Update the error message.
1309 * plugin/plugin-gcn.c (struct kernargs): Move common content to
1310 struct kernargs_abi.
1311 (struct agent_info): Rename team arenas to ephemeral memories.
1312 (struct team_arena_list): Rename ....
1313 (struct ephemeral_memories_list): to this.
1314 (struct heap): Delete.
1315 (team_arena_size): New variable.
1316 (stack_size): New variable.
1317 (print_kernel_dispatch): Update debug messages.
1318 (init_environment_variables): Read GCN_TEAM_ARENA_SIZE.
1319 Read GCN_STACK_SIZE.
1320 (get_team_arena): Rename ...
1321 (configure_ephemeral_memories): ... to this, and set up stacks.
1322 (release_team_arena): Rename ...
1323 (release_ephemeral_memories): ... to this.
1324 (destroy_team_arenas): Rename ...
1325 (destroy_ephemeral_memories): ... to this.
1326 (create_kernel_dispatch): Add num_threads parameter.
1327 Adjust for kernargs_abi refactor and ephemeral memories.
1328 (release_kernel_dispatch): Adjust for ephemeral memories.
1329 (run_kernel): Pass thread-count to create_kernel_dispatch.
1330 (GOMP_OFFLOAD_init_device): Adjust for ephemeral memories.
1331 (GOMP_OFFLOAD_fini_device): Adjust for ephemeral memories.
1332
1333 2023-02-02 Tobias Burnus <tobias@codesourcery.com>
1334
1335 * libgomp.texi (OpenMP TR11): Fix item for 'strict' modifier.
1336
1337 2023-02-01 Tobias Burnus <tobias@codesourcery.com>
1338
1339 * testsuite/libgomp.fortran/allocate-3.f90: Fix ALIGN
1340 usage, remove unused -fdump-tree-original.
1341 * testsuite/libgomp.fortran/allocate-4.f90: New.
1342
1343 2023-02-01 Tobias Burnus <tobias@codesourcery.com>
1344
1345 * libgomp.texi (5.0 Impl. Status): Update 'requires' and 'ancestor'.
1346 (GCN): Add item about 'omp requires'.
1347 (nvptx): Likewise; add item about reverse offload.
1348
1349 2023-01-27 Tobias Burnus <tobias@codesourcery.com>
1350
1351 PR fortran/108558
1352 * testsuite/libgomp.fortran/has_device_addr.f90: New test.
1353
1354 2023-01-23 Tobias Burnus <tobias@codesourcery.com>
1355
1356 * libgomp.texi (OpenMP 5.0): Set non-rectangular
1357 loop nest back to 'P' as Fortran support is incomplete.
1358
1359 2023-01-19 Jakub Jelinek <jakub@redhat.com>
1360
1361 PR middle-end/108459
1362 * testsuite/libgomp.c/pr108459.c: New test.
1363
1364 2023-01-17 Martin Liska <mliska@suse.cz>
1365
1366 * Makefile.in: Regenerate.
1367 * configure: Regenerate.
1368
1369 2023-01-07 LIU Hao <lh_mouse@126.com>
1370
1371 PR middle-end/108300
1372 * config/mingw32/proc.c: Define `WIN32_LEAN_AND_MEAN` before
1373 <windows.h>.
1374
1375 2023-01-05 Jakub Jelinek <jakub@redhat.com>
1376
1377 PR c++/108286
1378 * testsuite/libgomp.c++/pr108286.C: New test.
1379
1380 2023-01-02 Jakub Jelinek <jakub@redhat.com>
1381
1382 * libgomp.texi: Bump @copying's copyright year.
1383
1384 2022-12-21 Chung-Lin Tang <cltang@codesourcery.com>
1385
1386 PR target/99555
1387 * config/nvptx/bar.c (generation_to_barrier): Remove.
1388 (futex_wait,futex_wake,do_spin,do_wait): Remove.
1389 (GOMP_WAIT_H): Remove.
1390 (#include "../linux/bar.c"): Remove.
1391 (gomp_barrier_wait_end): New function.
1392 (gomp_barrier_wait): Likewise.
1393 (gomp_barrier_wait_last): Likewise.
1394 (gomp_team_barrier_wait_end): Likewise.
1395 (gomp_team_barrier_wait): Likewise.
1396 (gomp_team_barrier_wait_final): Likewise.
1397 (gomp_team_barrier_wait_cancel_end): Likewise.
1398 (gomp_team_barrier_wait_cancel): Likewise.
1399 (gomp_team_barrier_cancel): Likewise.
1400 * config/nvptx/bar.h (gomp_barrier_t): Remove waiters, lock fields.
1401 (gomp_barrier_init): Remove init of waiters, lock fields.
1402 (gomp_team_barrier_wake): Remove prototype, add new static inline
1403 function.
1404
1405 2022-12-21 Jakub Jelinek <jakub@redhat.com>
1406
1407 PR c++/108180
1408 * testsuite/libgomp.c++/pr108180.C: New test.
1409
1410 2022-12-16 Tobias Burnus <tobias@codesourcery.com>
1411
1412 PR libfortran/108056
1413 * testsuite/libgomp.fortran/allocate-4.f90: Remove
1414 accidentally added file.
1415
1416 2022-12-15 Tobias Burnus <tobias@codesourcery.com>
1417
1418 PR libfortran/108056
1419 * testsuite/libgomp.fortran/allocate-4.f90: New file.
1420
1421 2022-12-14 Julian Brown <julian@codesourcery.com>
1422
1423 * testsuite/libgomp.fortran/combined-directive-splitting-1.f90: New
1424 test.
1425
1426 2022-12-10 Tobias Burnus <tobias@codesourcery.com>
1427
1428 * libgomp.h (struct target_mem_desc): Predeclare; move
1429 below after 'reverse_splay_tree_node' and add rev_array
1430 member.
1431 (struct reverse_splay_tree_key_s, reverse_splay_compare): New.
1432 (reverse_splay_tree_node, reverse_splay_tree,
1433 reverse_splay_tree_key): New typedef.
1434 (struct gomp_device_descr): Add mem_map_rev member.
1435 * oacc-host.c (host_dispatch): NULL init .mem_map_rev.
1436 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Claim
1437 support for GOMP_REQUIRES_REVERSE_OFFLOAD.
1438 * splay-tree.h (splay_tree_callback_stop): New typedef; like
1439 splay_tree_callback but returning int not void.
1440 (splay_tree_foreach_lazy): Define; like splay_tree_foreach but
1441 taking splay_tree_callback_stop as argument.
1442 * splay-tree.c (splay_tree_foreach_internal_lazy,
1443 splay_tree_foreach_lazy): New; but early exit if callback returns
1444 nonzero.
1445 * target.c: Instatiate splay_tree_c with splay_tree_prefix 'reverse'.
1446 (gomp_map_lookup_rev): New.
1447 (gomp_load_image_to_device): Handle reverse-offload function
1448 lookup table.
1449 (gomp_unload_image_from_device): Free devicep->mem_map_rev.
1450 (struct gomp_splay_tree_rev_lookup_data, gomp_splay_tree_rev_lookup,
1451 gomp_map_rev_lookup, struct cpy_data, gomp_map_cdata_lookup_int,
1452 gomp_map_cdata_lookup): New auxiliary structs and functions for
1453 gomp_target_rev.
1454 (gomp_target_rev): Implement reverse offloading and its mapping.
1455 (gomp_target_init): Init current_device.mem_map_rev.root.
1456 * testsuite/libgomp.fortran/reverse-offload-2.f90: New test.
1457 * testsuite/libgomp.fortran/reverse-offload-3.f90: New test.
1458 * testsuite/libgomp.fortran/reverse-offload-4.f90: New test.
1459 * testsuite/libgomp.fortran/reverse-offload-5.f90: New test.
1460 * testsuite/libgomp.fortran/reverse-offload-5a.f90: New test without
1461 mapping of on-device allocated variables.
1462
1463 2022-12-09 Tobias Burnus <tobias@codesourcery.com>
1464
1465 * libgomp.texi (5.1 Impl. Status): Split allocate clause/directive
1466 item about 'align'; mark clause as 'Y' and directive as 'N'.
1467 * testsuite/libgomp.fortran/allocate-2.f90: New test.
1468 * testsuite/libgomp.fortran/allocate-3.f90: New test.
1469
1470 2022-12-06 Marcel Vollweiler <marcel@codesourcery.com>
1471
1472 * config/gcn/icv-device.c (omp_get_teams_thread_limit): Added to
1473 allow processing of device-specific values.
1474 (omp_set_teams_thread_limit): Likewise.
1475 (ialias): Likewise.
1476 * config/nvptx/icv-device.c (omp_get_teams_thread_limit): Likewise.
1477 (omp_set_teams_thread_limit): Likewise.
1478 (ialias): Likewise.
1479 * icv-device.c (omp_get_teams_thread_limit): Likewise.
1480 (ialias): Likewise.
1481 (omp_set_teams_thread_limit): Likewise.
1482 * icv.c (omp_set_teams_thread_limit): Removed.
1483 (omp_get_teams_thread_limit): Likewise.
1484 (ialias): Likewise.
1485 * libgomp.texi: Updated documentation for nvptx and gcn corresponding
1486 to the limitation of the number of teams.
1487 * plugin/plugin-gcn.c (limit_teams): New helper function that limits
1488 the number of teams by twice the number of compute units.
1489 (parse_target_attributes): Limit the number of teams on gcn offload
1490 devices.
1491 * target.c (get_gomp_offload_icvs): Added teams_thread_limit_var
1492 handling.
1493 (gomp_load_image_to_device): Added a size check for the ICVs struct
1494 variable.
1495 (gomp_copy_back_icvs): New function that is used in GOMP_target_ext to
1496 copy back the ICV values from device to host.
1497 (GOMP_target_ext): Update the number of teams and threads in the kernel
1498 args also considering device-specific values.
1499 * testsuite/libgomp.c-c++-common/icv-4.c: Fixed an error in the reading
1500 of OMP_TEAMS_THREAD_LIMIT from the environment.
1501 * testsuite/libgomp.c-c++-common/icv-5.c: Extended.
1502 * testsuite/libgomp.c-c++-common/icv-6.c: Extended.
1503 * testsuite/libgomp.c-c++-common/icv-7.c: Extended.
1504 * testsuite/libgomp.c-c++-common/icv-9.c: New test.
1505 * testsuite/libgomp.fortran/icv-5.f90: New test.
1506 * testsuite/libgomp.fortran/icv-6.f90: New test.
1507
1508 2022-12-06 Tobias Burnus <tobias@codesourcery.com>
1509
1510 * libgomp.texi (OpenMP 5.2): Add missing 'the'.
1511 (TR11): Add missing '@tab N @tab'.
1512
1513 2022-11-30 Tobias Burnus <tobias@codesourcery.com>
1514
1515 * libgomp.texi (OpenMP Context Selectors): Add 'gfx803' to gcn's isa.
1516
1517 2022-11-30 Paul-Antoine Arras <pa@codesourcery.com>
1518
1519 * testsuite/libgomp.c/declare-variant-4-fiji.c: New test.
1520 * testsuite/libgomp.c/declare-variant-4-gfx803.c: New test.
1521 * testsuite/libgomp.c/declare-variant-4-gfx900.c: New test.
1522 * testsuite/libgomp.c/declare-variant-4-gfx906.c: New test.
1523 * testsuite/libgomp.c/declare-variant-4-gfx908.c: New test.
1524 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: New test.
1525 * testsuite/libgomp.c/declare-variant-4.h: New header file.
1526
1527 2022-11-28 Tobias Burnus <tobias@codesourcery.com>
1528
1529 * libgomp.texi (OpenMP 5.2): Mark end-directive as Y.
1530
1531 2022-11-25 Sandra Loosemore <sandra@codesourcery.com>
1532
1533 * testsuite/lib/libgomp.exp: Load scanoffloadipa.exp library.
1534 * testsuite/libgomp.c/target-simd-clone-1.c: New.
1535 * testsuite/libgomp.c/target-simd-clone-2.c: New.
1536 * testsuite/libgomp.c/target-simd-clone-3.c: New.
1537
1538 2022-11-25 Tobias Burnus <tobias@codesourcery.com>
1539
1540 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Use unsigned int
1541 for 'i' to match 'fn_entries'; regard absent GOMP_REV_OFFLOAD_VAR
1542 as valid and the code having no reverse-offload code.
1543 * testsuite/libgomp.c-c++-common/reverse-offload-2.c: New test.
1544
1545 2022-11-25 Tobias Burnus <tobias@codesourcery.com>
1546
1547 * libgomp.texi (OpenMP Implementation Status): Add three 5.1 items
1548 and status for Technical Report (TR) 11.
1549
1550 2022-11-21 Tobias Burnus <tobias@codesourcery.com>
1551
1552 * config/gcn/libgomp-gcn.h (struct output):
1553 Remove 'msg_u64' from the union, change
1554 value_u64[2] to value_u64[6].
1555 * config/gcn/target.c (GOMP_target_ext): Update accordingly.
1556 * plugin/plugin-gcn.c (process_reverse_offload, console_output):
1557 Likewise.
1558
1559 2022-11-19 Tobias Burnus <tobias@codesourcery.com>
1560
1561 * config/gcn/libgomp-gcn.h: New file; contains
1562 struct output, declared previously in plugin-gcn.c.
1563 * config/gcn/target.c: Include it.
1564 (GOMP_ADDITIONAL_ICVS): Declare as extern var.
1565 (GOMP_target_ext): Handle reverse offload.
1566 * plugin/plugin-gcn.c: Include libgomp-gcn.h.
1567 (struct kernargs): Replace struct def by the one
1568 from libgomp-gcn.h for output_data.
1569 (process_reverse_offload): New.
1570 (console_output): Call it.
1571
1572 2022-11-16 Tobias Burnus <tobias@codesourcery.com>
1573 Andrew Stubbs <ams@codesourcery.com>
1574
1575 * config/gcn/team.c (gomp_gcn_enter_kernel): Use
1576 __builtin_gcn_kernarg_ptr instead of asm ("s8").
1577
1578 2022-11-14 Martin Liska <mliska@suse.cz>
1579
1580 Revert:
1581 2022-11-14 Martin Liska <mliska@suse.cz>
1582
1583 * doc/amd-radeon-gcn.rst: New file.
1584 * doc/conf.py: New file.
1585 * doc/copyright.rst: New file.
1586 * doc/cuda-streams-usage.rst: New file.
1587 * doc/enabling-openacc.rst: New file.
1588 * doc/enabling-openmp.rst: New file.
1589 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
1590 * doc/first-invocation-openacc-library-api.rst: New file.
1591 * doc/funding.rst: New file.
1592 * doc/general-public-license-3.rst: New file.
1593 * doc/gnu-free-documentation-license.rst: New file.
1594 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
1595 * doc/index.rst: New file.
1596 * doc/indices-and-tables.rst: New file.
1597 * doc/introduction.rst: New file.
1598 * doc/memory-allocation-with-libmemkind.rst: New file.
1599 * doc/nvptx.rst: New file.
1600 * doc/offload-target-specifics.rst: New file.
1601 * doc/openacc-environment-variables.rst: New file.
1602 * doc/openacc-environment-variables/accdevicenum.rst: New file.
1603 * doc/openacc-environment-variables/accdevicetype.rst: New file.
1604 * doc/openacc-environment-variables/accproflib.rst: New file.
1605 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
1606 * doc/openacc-introduction.rst: New file.
1607 * doc/openacc-library-and-environment-variables.rst: New file.
1608 * doc/openacc-library-interoperability.rst: New file.
1609 * doc/openacc-profiling-interface.rst: New file.
1610 * doc/openacc-runtime-library-routines.rst: New file.
1611 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
1612 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
1613 * doc/openacc-runtime-library-routines/accattach.rst: New file.
1614 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
1615 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
1616 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
1617 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
1618 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
1619 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
1620 * doc/openacc-runtime-library-routines/accfree.rst: New file.
1621 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
1622 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
1623 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
1624 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
1625 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
1626 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
1627 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
1628 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
1629 * doc/openacc-runtime-library-routines/accinit.rst: New file.
1630 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
1631 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
1632 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
1633 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
1634 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
1635 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
1636 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
1637 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
1638 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
1639 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
1640 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
1641 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
1642 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
1643 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
1644 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
1645 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
1646 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
1647 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
1648 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
1649 * doc/openacc-runtime-library-routines/accwait.rst: New file.
1650 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
1651 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
1652 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
1653 * doc/openmp-context-selectors.rst: New file.
1654 * doc/openmp-environment-variables.rst: New file.
1655 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
1656 * doc/openmp-environment-variables/gompdebug.rst: New file.
1657 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
1658 * doc/openmp-environment-variables/gompspincount.rst: New file.
1659 * doc/openmp-environment-variables/gompstacksize.rst: New file.
1660 * doc/openmp-environment-variables/ompcancellation.rst: New file.
1661 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
1662 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
1663 * doc/openmp-environment-variables/ompdynamic.rst: New file.
1664 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
1665 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
1666 * doc/openmp-environment-variables/ompnested.rst: New file.
1667 * doc/openmp-environment-variables/ompnumteams.rst: New file.
1668 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
1669 * doc/openmp-environment-variables/ompplaces.rst: New file.
1670 * doc/openmp-environment-variables/ompprocbind.rst: New file.
1671 * doc/openmp-environment-variables/ompschedule.rst: New file.
1672 * doc/openmp-environment-variables/ompstacksize.rst: New file.
1673 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
1674 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
1675 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
1676 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
1677 * doc/openmp-implementation-specifics.rst: New file.
1678 * doc/openmp-implementation-status.rst: New file.
1679 * doc/openmp-implementation-status/openmp-45.rst: New file.
1680 * doc/openmp-implementation-status/openmp-50.rst: New file.
1681 * doc/openmp-implementation-status/openmp-51.rst: New file.
1682 * doc/openmp-implementation-status/openmp-52.rst: New file.
1683 * doc/openmp-runtime-library-routines.rst: New file.
1684 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
1685 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
1686 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
1687 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
1688 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
1689 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
1690 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
1691 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
1692 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
1693 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
1694 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
1695 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
1696 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
1697 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
1698 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
1699 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
1700 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
1701 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
1702 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
1703 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
1704 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
1705 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
1706 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
1707 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
1708 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
1709 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
1710 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
1711 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
1712 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
1713 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
1714 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
1715 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
1716 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
1717 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
1718 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
1719 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
1720 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
1721 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
1722 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
1723 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
1724 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
1725 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
1726 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
1727 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
1728 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
1729 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
1730 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
1731 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
1732 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
1733 * doc/reporting-bugs.rst: New file.
1734 * doc/the-libgomp-abi.rst: New file.
1735 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
1736 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
1737 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
1738 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1739 New file.
1740 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
1741 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
1742 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
1743 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
1744 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
1745 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
1746 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
1747 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
1748 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
1749 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
1750 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
1751
1752 2022-11-14 Martin Liska <mliska@suse.cz>
1753
1754 Revert:
1755 2022-11-14 Martin Liska <mliska@suse.cz>
1756
1757 * Makefile.in: Support Sphinx based documentation.
1758
1759 2022-11-14 Martin Liska <mliska@suse.cz>
1760
1761 Revert:
1762 2022-11-14 Martin Liska <mliska@suse.cz>
1763
1764 * libgomp.texi: Removed.
1765
1766 2022-11-14 Martin Liska <mliska@suse.cz>
1767
1768 Revert:
1769 2022-11-14 Martin Liska <mliska@suse.cz>
1770
1771 * Makefile.in: Support --with-sphinx-build.
1772 * configure.ac: Likewise..
1773 * configure: Regenerate.
1774
1775 2022-11-14 Martin Liska <mliska@suse.cz>
1776
1777 Revert:
1778 2022-11-09 Martin Liska <mliska@suse.cz>
1779
1780 * Makefile.in: Build info pages conditionally.
1781
1782 2022-11-14 Martin Liska <mliska@suse.cz>
1783
1784 Revert:
1785 2022-11-14 Martin Liska <mliska@suse.cz>
1786
1787 * doc/amd-radeon-gcn.rst:
1788 Add trailing newline.
1789 * doc/copyright.rst:
1790 Add trailing newline.
1791 * doc/cuda-streams-usage.rst:
1792 Add trailing newline.
1793 * doc/enabling-openacc.rst:
1794 Add trailing newline.
1795 * doc/enabling-openmp.rst:
1796 Add trailing newline.
1797 * doc/first-invocation-nvidia-cublas-library-api.rst:
1798 Add trailing newline.
1799 * doc/first-invocation-openacc-library-api.rst:
1800 Add trailing newline.
1801 * doc/funding.rst:
1802 Add trailing newline.
1803 * doc/general-public-license-3.rst:
1804 Add trailing newline.
1805 * doc/gnu-free-documentation-license.rst:
1806 Add trailing newline.
1807 * doc/implementation-status-and-implementation-defined-behavior.rst:
1808 Add trailing newline.
1809 * doc/index.rst:
1810 Add trailing newline.
1811 * doc/indices-and-tables.rst:
1812 Add trailing newline.
1813 * doc/introduction.rst:
1814 Add trailing newline.
1815 * doc/memory-allocation-with-libmemkind.rst:
1816 Add trailing newline.
1817 * doc/nvptx.rst:
1818 Add trailing newline.
1819 * doc/offload-target-specifics.rst:
1820 Add trailing newline.
1821 * doc/openacc-environment-variables.rst:
1822 Add trailing newline.
1823 * doc/openacc-environment-variables/accdevicenum.rst:
1824 Add trailing newline.
1825 * doc/openacc-environment-variables/accdevicetype.rst:
1826 Add trailing newline.
1827 * doc/openacc-environment-variables/accproflib.rst:
1828 Add trailing newline.
1829 * doc/openacc-environment-variables/gccaccnotify.rst:
1830 Add trailing newline.
1831 * doc/openacc-introduction.rst:
1832 Add trailing newline.
1833 * doc/openacc-library-and-environment-variables.rst:
1834 Add trailing newline.
1835 * doc/openacc-library-interoperability.rst:
1836 Add trailing newline.
1837 * doc/openacc-profiling-interface.rst:
1838 Add trailing newline.
1839 * doc/openacc-runtime-library-routines.rst:
1840 Add trailing newline.
1841 * doc/openacc-runtime-library-routines/accasynctest.rst:
1842 Add trailing newline.
1843 * doc/openacc-runtime-library-routines/accasynctestall.rst:
1844 Add trailing newline.
1845 * doc/openacc-runtime-library-routines/accattach.rst:
1846 Add trailing newline.
1847 * doc/openacc-runtime-library-routines/acccopyin.rst:
1848 Add trailing newline.
1849 * doc/openacc-runtime-library-routines/acccopyout.rst:
1850 Add trailing newline.
1851 * doc/openacc-runtime-library-routines/acccreate.rst:
1852 Add trailing newline.
1853 * doc/openacc-runtime-library-routines/accdelete.rst:
1854 Add trailing newline.
1855 * doc/openacc-runtime-library-routines/accdetach.rst:
1856 Add trailing newline.
1857 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
1858 Add trailing newline.
1859 * doc/openacc-runtime-library-routines/accfree.rst:
1860 Add trailing newline.
1861 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
1862 Add trailing newline.
1863 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
1864 Add trailing newline.
1865 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
1866 Add trailing newline.
1867 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
1868 Add trailing newline.
1869 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
1870 Add trailing newline.
1871 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
1872 Add trailing newline.
1873 * doc/openacc-runtime-library-routines/accgetproperty.rst:
1874 Add trailing newline.
1875 * doc/openacc-runtime-library-routines/acchostptr.rst:
1876 Add trailing newline.
1877 * doc/openacc-runtime-library-routines/accinit.rst:
1878 Add trailing newline.
1879 * doc/openacc-runtime-library-routines/accispresent.rst:
1880 Add trailing newline.
1881 * doc/openacc-runtime-library-routines/accmalloc.rst:
1882 Add trailing newline.
1883 * doc/openacc-runtime-library-routines/accmapdata.rst:
1884 Add trailing newline.
1885 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
1886 Add trailing newline.
1887 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
1888 Add trailing newline.
1889 * doc/openacc-runtime-library-routines/accondevice.rst:
1890 Add trailing newline.
1891 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
1892 Add trailing newline.
1893 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
1894 Add trailing newline.
1895 * doc/openacc-runtime-library-routines/accproflookup.rst:
1896 Add trailing newline.
1897 * doc/openacc-runtime-library-routines/accprofregister.rst:
1898 Add trailing newline.
1899 * doc/openacc-runtime-library-routines/accprofunregister.rst:
1900 Add trailing newline.
1901 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
1902 Add trailing newline.
1903 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
1904 Add trailing newline.
1905 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
1906 Add trailing newline.
1907 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
1908 Add trailing newline.
1909 * doc/openacc-runtime-library-routines/accshutdown.rst:
1910 Add trailing newline.
1911 * doc/openacc-runtime-library-routines/accunmapdata.rst:
1912 Add trailing newline.
1913 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
1914 Add trailing newline.
1915 * doc/openacc-runtime-library-routines/accupdateself.rst:
1916 Add trailing newline.
1917 * doc/openacc-runtime-library-routines/accwait.rst:
1918 Add trailing newline.
1919 * doc/openacc-runtime-library-routines/accwaitall.rst:
1920 Add trailing newline.
1921 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
1922 Add trailing newline.
1923 * doc/openacc-runtime-library-routines/accwaitasync.rst:
1924 Add trailing newline.
1925 * doc/openmp-context-selectors.rst:
1926 Add trailing newline.
1927 * doc/openmp-environment-variables.rst:
1928 Add trailing newline.
1929 * doc/openmp-environment-variables/gompcpuaffinity.rst:
1930 Add trailing newline.
1931 * doc/openmp-environment-variables/gompdebug.rst:
1932 Add trailing newline.
1933 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
1934 Add trailing newline.
1935 * doc/openmp-environment-variables/gompspincount.rst:
1936 Add trailing newline.
1937 * doc/openmp-environment-variables/gompstacksize.rst:
1938 Add trailing newline.
1939 * doc/openmp-environment-variables/ompcancellation.rst:
1940 Add trailing newline.
1941 * doc/openmp-environment-variables/ompdefaultdevice.rst:
1942 Add trailing newline.
1943 * doc/openmp-environment-variables/ompdisplayenv.rst:
1944 Add trailing newline.
1945 * doc/openmp-environment-variables/ompdynamic.rst:
1946 Add trailing newline.
1947 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
1948 Add trailing newline.
1949 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
1950 Add trailing newline.
1951 * doc/openmp-environment-variables/ompnested.rst:
1952 Add trailing newline.
1953 * doc/openmp-environment-variables/ompnumteams.rst:
1954 Add trailing newline.
1955 * doc/openmp-environment-variables/ompnumthreads.rst:
1956 Add trailing newline.
1957 * doc/openmp-environment-variables/ompplaces.rst:
1958 Add trailing newline.
1959 * doc/openmp-environment-variables/ompprocbind.rst:
1960 Add trailing newline.
1961 * doc/openmp-environment-variables/ompschedule.rst:
1962 Add trailing newline.
1963 * doc/openmp-environment-variables/ompstacksize.rst:
1964 Add trailing newline.
1965 * doc/openmp-environment-variables/omptargetoffload.rst:
1966 Add trailing newline.
1967 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
1968 Add trailing newline.
1969 * doc/openmp-environment-variables/ompthreadlimit.rst:
1970 Add trailing newline.
1971 * doc/openmp-environment-variables/ompwaitpolicy.rst:
1972 Add trailing newline.
1973 * doc/openmp-implementation-specifics.rst:
1974 Add trailing newline.
1975 * doc/openmp-implementation-status.rst:
1976 Add trailing newline.
1977 * doc/openmp-implementation-status/openmp-45.rst:
1978 Add trailing newline.
1979 * doc/openmp-implementation-status/openmp-50.rst:
1980 Add trailing newline.
1981 * doc/openmp-implementation-status/openmp-51.rst:
1982 Add trailing newline.
1983 * doc/openmp-implementation-status/openmp-52.rst:
1984 Add trailing newline.
1985 * doc/openmp-runtime-library-routines.rst:
1986 Add trailing newline.
1987 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
1988 Add trailing newline.
1989 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
1990 Add trailing newline.
1991 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
1992 Add trailing newline.
1993 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
1994 Add trailing newline.
1995 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
1996 Add trailing newline.
1997 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
1998 Add trailing newline.
1999 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
2000 Add trailing newline.
2001 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
2002 Add trailing newline.
2003 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
2004 Add trailing newline.
2005 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
2006 Add trailing newline.
2007 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
2008 Add trailing newline.
2009 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
2010 Add trailing newline.
2011 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
2012 Add trailing newline.
2013 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
2014 Add trailing newline.
2015 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
2016 Add trailing newline.
2017 * doc/openmp-runtime-library-routines/ompgetnested.rst:
2018 Add trailing newline.
2019 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
2020 Add trailing newline.
2021 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
2022 Add trailing newline.
2023 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
2024 Add trailing newline.
2025 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
2026 Add trailing newline.
2027 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
2028 Add trailing newline.
2029 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
2030 Add trailing newline.
2031 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
2032 Add trailing newline.
2033 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
2034 Add trailing newline.
2035 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
2036 Add trailing newline.
2037 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
2038 Add trailing newline.
2039 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
2040 Add trailing newline.
2041 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
2042 Add trailing newline.
2043 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
2044 Add trailing newline.
2045 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
2046 Add trailing newline.
2047 * doc/openmp-runtime-library-routines/ompinfinal.rst:
2048 Add trailing newline.
2049 * doc/openmp-runtime-library-routines/ompinitlock.rst:
2050 Add trailing newline.
2051 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
2052 Add trailing newline.
2053 * doc/openmp-runtime-library-routines/ompinparallel.rst:
2054 Add trailing newline.
2055 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
2056 Add trailing newline.
2057 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
2058 Add trailing newline.
2059 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
2060 Add trailing newline.
2061 * doc/openmp-runtime-library-routines/ompsetlock.rst:
2062 Add trailing newline.
2063 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
2064 Add trailing newline.
2065 * doc/openmp-runtime-library-routines/ompsetnested.rst:
2066 Add trailing newline.
2067 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
2068 Add trailing newline.
2069 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
2070 Add trailing newline.
2071 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
2072 Add trailing newline.
2073 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
2074 Add trailing newline.
2075 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
2076 Add trailing newline.
2077 * doc/openmp-runtime-library-routines/omptestlock.rst:
2078 Add trailing newline.
2079 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
2080 Add trailing newline.
2081 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
2082 Add trailing newline.
2083 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
2084 Add trailing newline.
2085 * doc/reporting-bugs.rst:
2086 Add trailing newline.
2087 * doc/the-libgomp-abi.rst:
2088 Add trailing newline.
2089 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
2090 Add trailing newline.
2091 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
2092 Add trailing newline.
2093 * doc/the-libgomp-abi/implementing-critical-construct.rst:
2094 Add trailing newline.
2095 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2096 Add trailing newline.
2097 * doc/the-libgomp-abi/implementing-flush-construct.rst:
2098 Add trailing newline.
2099 * doc/the-libgomp-abi/implementing-for-construct.rst:
2100 Add trailing newline.
2101 * doc/the-libgomp-abi/implementing-master-construct.rst:
2102 Add trailing newline.
2103 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
2104 Add trailing newline.
2105 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
2106 Add trailing newline.
2107 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
2108 Add trailing newline.
2109 * doc/the-libgomp-abi/implementing-private-clause.rst:
2110 Add trailing newline.
2111 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
2112 Add trailing newline.
2113 * doc/the-libgomp-abi/implementing-sections-construct.rst:
2114 Add trailing newline.
2115 * doc/the-libgomp-abi/implementing-single-construct.rst:
2116 Add trailing newline.
2117 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
2118 Add trailing newline.
2119
2120 2022-11-14 Martin Liska <mliska@suse.cz>
2121
2122 Revert:
2123 2022-11-09 Martin Liska <mliska@suse.cz>
2124
2125 * Makefile.in: Add missing HAS_SPHINX_BUILD.
2126
2127 2022-11-14 Martin Liska <mliska@suse.cz>
2128
2129 Revert:
2130 2022-11-14 Martin Liska <mliska@suse.cz>
2131
2132 * doc/conf.py: Add newline at last line.
2133
2134 2022-11-14 Martin Liska <mliska@suse.cz>
2135
2136 Revert:
2137 2022-11-14 Martin Liska <mliska@suse.cz>
2138
2139 PR other/107620
2140 * configure: Regenerate.
2141 * configure.ac: Always set sphinx-build.
2142
2143 2022-11-13 Martin Liska <mliska@suse.cz>
2144
2145 PR other/107620
2146 * configure: Regenerate.
2147 * configure.ac: Always set sphinx-build.
2148
2149 2022-11-12 Jakub Jelinek <jakub@redhat.com>
2150
2151 PR libgomp/107641
2152 * env.c (parse_unsigned_long): Cast params[2] to uintptr_t rather than
2153 unsigned long. Change type of upper from unsigned to unsigned long.
2154
2155 2022-11-10 Martin Liska <mliska@suse.cz>
2156
2157 * doc/conf.py: Add newline at last line.
2158
2159 2022-11-09 Martin Liska <mliska@suse.cz>
2160
2161 * Makefile.in: Add missing HAS_SPHINX_BUILD.
2162
2163 2022-11-09 Martin Liska <mliska@suse.cz>
2164
2165 * doc/amd-radeon-gcn.rst:
2166 Add trailing newline.
2167 * doc/copyright.rst:
2168 Add trailing newline.
2169 * doc/cuda-streams-usage.rst:
2170 Add trailing newline.
2171 * doc/enabling-openacc.rst:
2172 Add trailing newline.
2173 * doc/enabling-openmp.rst:
2174 Add trailing newline.
2175 * doc/first-invocation-nvidia-cublas-library-api.rst:
2176 Add trailing newline.
2177 * doc/first-invocation-openacc-library-api.rst:
2178 Add trailing newline.
2179 * doc/funding.rst:
2180 Add trailing newline.
2181 * doc/general-public-license-3.rst:
2182 Add trailing newline.
2183 * doc/gnu-free-documentation-license.rst:
2184 Add trailing newline.
2185 * doc/implementation-status-and-implementation-defined-behavior.rst:
2186 Add trailing newline.
2187 * doc/index.rst:
2188 Add trailing newline.
2189 * doc/indices-and-tables.rst:
2190 Add trailing newline.
2191 * doc/introduction.rst:
2192 Add trailing newline.
2193 * doc/memory-allocation-with-libmemkind.rst:
2194 Add trailing newline.
2195 * doc/nvptx.rst:
2196 Add trailing newline.
2197 * doc/offload-target-specifics.rst:
2198 Add trailing newline.
2199 * doc/openacc-environment-variables.rst:
2200 Add trailing newline.
2201 * doc/openacc-environment-variables/accdevicenum.rst:
2202 Add trailing newline.
2203 * doc/openacc-environment-variables/accdevicetype.rst:
2204 Add trailing newline.
2205 * doc/openacc-environment-variables/accproflib.rst:
2206 Add trailing newline.
2207 * doc/openacc-environment-variables/gccaccnotify.rst:
2208 Add trailing newline.
2209 * doc/openacc-introduction.rst:
2210 Add trailing newline.
2211 * doc/openacc-library-and-environment-variables.rst:
2212 Add trailing newline.
2213 * doc/openacc-library-interoperability.rst:
2214 Add trailing newline.
2215 * doc/openacc-profiling-interface.rst:
2216 Add trailing newline.
2217 * doc/openacc-runtime-library-routines.rst:
2218 Add trailing newline.
2219 * doc/openacc-runtime-library-routines/accasynctest.rst:
2220 Add trailing newline.
2221 * doc/openacc-runtime-library-routines/accasynctestall.rst:
2222 Add trailing newline.
2223 * doc/openacc-runtime-library-routines/accattach.rst:
2224 Add trailing newline.
2225 * doc/openacc-runtime-library-routines/acccopyin.rst:
2226 Add trailing newline.
2227 * doc/openacc-runtime-library-routines/acccopyout.rst:
2228 Add trailing newline.
2229 * doc/openacc-runtime-library-routines/acccreate.rst:
2230 Add trailing newline.
2231 * doc/openacc-runtime-library-routines/accdelete.rst:
2232 Add trailing newline.
2233 * doc/openacc-runtime-library-routines/accdetach.rst:
2234 Add trailing newline.
2235 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
2236 Add trailing newline.
2237 * doc/openacc-runtime-library-routines/accfree.rst:
2238 Add trailing newline.
2239 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
2240 Add trailing newline.
2241 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
2242 Add trailing newline.
2243 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
2244 Add trailing newline.
2245 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
2246 Add trailing newline.
2247 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
2248 Add trailing newline.
2249 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
2250 Add trailing newline.
2251 * doc/openacc-runtime-library-routines/accgetproperty.rst:
2252 Add trailing newline.
2253 * doc/openacc-runtime-library-routines/acchostptr.rst:
2254 Add trailing newline.
2255 * doc/openacc-runtime-library-routines/accinit.rst:
2256 Add trailing newline.
2257 * doc/openacc-runtime-library-routines/accispresent.rst:
2258 Add trailing newline.
2259 * doc/openacc-runtime-library-routines/accmalloc.rst:
2260 Add trailing newline.
2261 * doc/openacc-runtime-library-routines/accmapdata.rst:
2262 Add trailing newline.
2263 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
2264 Add trailing newline.
2265 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
2266 Add trailing newline.
2267 * doc/openacc-runtime-library-routines/accondevice.rst:
2268 Add trailing newline.
2269 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
2270 Add trailing newline.
2271 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
2272 Add trailing newline.
2273 * doc/openacc-runtime-library-routines/accproflookup.rst:
2274 Add trailing newline.
2275 * doc/openacc-runtime-library-routines/accprofregister.rst:
2276 Add trailing newline.
2277 * doc/openacc-runtime-library-routines/accprofunregister.rst:
2278 Add trailing newline.
2279 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
2280 Add trailing newline.
2281 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
2282 Add trailing newline.
2283 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
2284 Add trailing newline.
2285 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
2286 Add trailing newline.
2287 * doc/openacc-runtime-library-routines/accshutdown.rst:
2288 Add trailing newline.
2289 * doc/openacc-runtime-library-routines/accunmapdata.rst:
2290 Add trailing newline.
2291 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
2292 Add trailing newline.
2293 * doc/openacc-runtime-library-routines/accupdateself.rst:
2294 Add trailing newline.
2295 * doc/openacc-runtime-library-routines/accwait.rst:
2296 Add trailing newline.
2297 * doc/openacc-runtime-library-routines/accwaitall.rst:
2298 Add trailing newline.
2299 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
2300 Add trailing newline.
2301 * doc/openacc-runtime-library-routines/accwaitasync.rst:
2302 Add trailing newline.
2303 * doc/openmp-context-selectors.rst:
2304 Add trailing newline.
2305 * doc/openmp-environment-variables.rst:
2306 Add trailing newline.
2307 * doc/openmp-environment-variables/gompcpuaffinity.rst:
2308 Add trailing newline.
2309 * doc/openmp-environment-variables/gompdebug.rst:
2310 Add trailing newline.
2311 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
2312 Add trailing newline.
2313 * doc/openmp-environment-variables/gompspincount.rst:
2314 Add trailing newline.
2315 * doc/openmp-environment-variables/gompstacksize.rst:
2316 Add trailing newline.
2317 * doc/openmp-environment-variables/ompcancellation.rst:
2318 Add trailing newline.
2319 * doc/openmp-environment-variables/ompdefaultdevice.rst:
2320 Add trailing newline.
2321 * doc/openmp-environment-variables/ompdisplayenv.rst:
2322 Add trailing newline.
2323 * doc/openmp-environment-variables/ompdynamic.rst:
2324 Add trailing newline.
2325 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
2326 Add trailing newline.
2327 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
2328 Add trailing newline.
2329 * doc/openmp-environment-variables/ompnested.rst:
2330 Add trailing newline.
2331 * doc/openmp-environment-variables/ompnumteams.rst:
2332 Add trailing newline.
2333 * doc/openmp-environment-variables/ompnumthreads.rst:
2334 Add trailing newline.
2335 * doc/openmp-environment-variables/ompplaces.rst:
2336 Add trailing newline.
2337 * doc/openmp-environment-variables/ompprocbind.rst:
2338 Add trailing newline.
2339 * doc/openmp-environment-variables/ompschedule.rst:
2340 Add trailing newline.
2341 * doc/openmp-environment-variables/ompstacksize.rst:
2342 Add trailing newline.
2343 * doc/openmp-environment-variables/omptargetoffload.rst:
2344 Add trailing newline.
2345 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
2346 Add trailing newline.
2347 * doc/openmp-environment-variables/ompthreadlimit.rst:
2348 Add trailing newline.
2349 * doc/openmp-environment-variables/ompwaitpolicy.rst:
2350 Add trailing newline.
2351 * doc/openmp-implementation-specifics.rst:
2352 Add trailing newline.
2353 * doc/openmp-implementation-status.rst:
2354 Add trailing newline.
2355 * doc/openmp-implementation-status/openmp-45.rst:
2356 Add trailing newline.
2357 * doc/openmp-implementation-status/openmp-50.rst:
2358 Add trailing newline.
2359 * doc/openmp-implementation-status/openmp-51.rst:
2360 Add trailing newline.
2361 * doc/openmp-implementation-status/openmp-52.rst:
2362 Add trailing newline.
2363 * doc/openmp-runtime-library-routines.rst:
2364 Add trailing newline.
2365 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
2366 Add trailing newline.
2367 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
2368 Add trailing newline.
2369 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
2370 Add trailing newline.
2371 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
2372 Add trailing newline.
2373 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
2374 Add trailing newline.
2375 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
2376 Add trailing newline.
2377 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
2378 Add trailing newline.
2379 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
2380 Add trailing newline.
2381 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
2382 Add trailing newline.
2383 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
2384 Add trailing newline.
2385 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
2386 Add trailing newline.
2387 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
2388 Add trailing newline.
2389 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
2390 Add trailing newline.
2391 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
2392 Add trailing newline.
2393 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
2394 Add trailing newline.
2395 * doc/openmp-runtime-library-routines/ompgetnested.rst:
2396 Add trailing newline.
2397 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
2398 Add trailing newline.
2399 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
2400 Add trailing newline.
2401 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
2402 Add trailing newline.
2403 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
2404 Add trailing newline.
2405 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
2406 Add trailing newline.
2407 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
2408 Add trailing newline.
2409 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
2410 Add trailing newline.
2411 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
2412 Add trailing newline.
2413 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
2414 Add trailing newline.
2415 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
2416 Add trailing newline.
2417 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
2418 Add trailing newline.
2419 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
2420 Add trailing newline.
2421 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
2422 Add trailing newline.
2423 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
2424 Add trailing newline.
2425 * doc/openmp-runtime-library-routines/ompinfinal.rst:
2426 Add trailing newline.
2427 * doc/openmp-runtime-library-routines/ompinitlock.rst:
2428 Add trailing newline.
2429 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
2430 Add trailing newline.
2431 * doc/openmp-runtime-library-routines/ompinparallel.rst:
2432 Add trailing newline.
2433 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
2434 Add trailing newline.
2435 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
2436 Add trailing newline.
2437 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
2438 Add trailing newline.
2439 * doc/openmp-runtime-library-routines/ompsetlock.rst:
2440 Add trailing newline.
2441 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
2442 Add trailing newline.
2443 * doc/openmp-runtime-library-routines/ompsetnested.rst:
2444 Add trailing newline.
2445 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
2446 Add trailing newline.
2447 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
2448 Add trailing newline.
2449 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
2450 Add trailing newline.
2451 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
2452 Add trailing newline.
2453 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
2454 Add trailing newline.
2455 * doc/openmp-runtime-library-routines/omptestlock.rst:
2456 Add trailing newline.
2457 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
2458 Add trailing newline.
2459 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
2460 Add trailing newline.
2461 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
2462 Add trailing newline.
2463 * doc/reporting-bugs.rst:
2464 Add trailing newline.
2465 * doc/the-libgomp-abi.rst:
2466 Add trailing newline.
2467 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
2468 Add trailing newline.
2469 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
2470 Add trailing newline.
2471 * doc/the-libgomp-abi/implementing-critical-construct.rst:
2472 Add trailing newline.
2473 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2474 Add trailing newline.
2475 * doc/the-libgomp-abi/implementing-flush-construct.rst:
2476 Add trailing newline.
2477 * doc/the-libgomp-abi/implementing-for-construct.rst:
2478 Add trailing newline.
2479 * doc/the-libgomp-abi/implementing-master-construct.rst:
2480 Add trailing newline.
2481 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
2482 Add trailing newline.
2483 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
2484 Add trailing newline.
2485 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
2486 Add trailing newline.
2487 * doc/the-libgomp-abi/implementing-private-clause.rst:
2488 Add trailing newline.
2489 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
2490 Add trailing newline.
2491 * doc/the-libgomp-abi/implementing-sections-construct.rst:
2492 Add trailing newline.
2493 * doc/the-libgomp-abi/implementing-single-construct.rst:
2494 Add trailing newline.
2495 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
2496 Add trailing newline.
2497
2498 2022-11-09 Martin Liska <mliska@suse.cz>
2499
2500 * Makefile.in: Build info pages conditionally.
2501
2502 2022-11-09 Martin Liska <mliska@suse.cz>
2503
2504 * Makefile.in: Support --with-sphinx-build.
2505 * configure.ac: Likewise..
2506 * configure: Regenerate.
2507
2508 2022-11-09 Martin Liska <mliska@suse.cz>
2509
2510 * libgomp.texi: Removed.
2511
2512 2022-11-09 Martin Liska <mliska@suse.cz>
2513
2514 * Makefile.in: Support Sphinx based documentation.
2515
2516 2022-11-09 Martin Liska <mliska@suse.cz>
2517
2518 * doc/amd-radeon-gcn.rst: New file.
2519 * doc/conf.py: New file.
2520 * doc/copyright.rst: New file.
2521 * doc/cuda-streams-usage.rst: New file.
2522 * doc/enabling-openacc.rst: New file.
2523 * doc/enabling-openmp.rst: New file.
2524 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
2525 * doc/first-invocation-openacc-library-api.rst: New file.
2526 * doc/funding.rst: New file.
2527 * doc/general-public-license-3.rst: New file.
2528 * doc/gnu-free-documentation-license.rst: New file.
2529 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
2530 * doc/index.rst: New file.
2531 * doc/indices-and-tables.rst: New file.
2532 * doc/introduction.rst: New file.
2533 * doc/memory-allocation-with-libmemkind.rst: New file.
2534 * doc/nvptx.rst: New file.
2535 * doc/offload-target-specifics.rst: New file.
2536 * doc/openacc-environment-variables.rst: New file.
2537 * doc/openacc-environment-variables/accdevicenum.rst: New file.
2538 * doc/openacc-environment-variables/accdevicetype.rst: New file.
2539 * doc/openacc-environment-variables/accproflib.rst: New file.
2540 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
2541 * doc/openacc-introduction.rst: New file.
2542 * doc/openacc-library-and-environment-variables.rst: New file.
2543 * doc/openacc-library-interoperability.rst: New file.
2544 * doc/openacc-profiling-interface.rst: New file.
2545 * doc/openacc-runtime-library-routines.rst: New file.
2546 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
2547 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
2548 * doc/openacc-runtime-library-routines/accattach.rst: New file.
2549 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
2550 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
2551 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
2552 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
2553 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
2554 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
2555 * doc/openacc-runtime-library-routines/accfree.rst: New file.
2556 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
2557 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
2558 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
2559 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
2560 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
2561 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
2562 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
2563 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
2564 * doc/openacc-runtime-library-routines/accinit.rst: New file.
2565 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
2566 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
2567 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
2568 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
2569 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
2570 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
2571 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
2572 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
2573 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
2574 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
2575 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
2576 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
2577 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
2578 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
2579 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
2580 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
2581 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
2582 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
2583 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
2584 * doc/openacc-runtime-library-routines/accwait.rst: New file.
2585 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
2586 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
2587 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
2588 * doc/openmp-context-selectors.rst: New file.
2589 * doc/openmp-environment-variables.rst: New file.
2590 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
2591 * doc/openmp-environment-variables/gompdebug.rst: New file.
2592 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
2593 * doc/openmp-environment-variables/gompspincount.rst: New file.
2594 * doc/openmp-environment-variables/gompstacksize.rst: New file.
2595 * doc/openmp-environment-variables/ompcancellation.rst: New file.
2596 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
2597 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
2598 * doc/openmp-environment-variables/ompdynamic.rst: New file.
2599 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
2600 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
2601 * doc/openmp-environment-variables/ompnested.rst: New file.
2602 * doc/openmp-environment-variables/ompnumteams.rst: New file.
2603 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
2604 * doc/openmp-environment-variables/ompplaces.rst: New file.
2605 * doc/openmp-environment-variables/ompprocbind.rst: New file.
2606 * doc/openmp-environment-variables/ompschedule.rst: New file.
2607 * doc/openmp-environment-variables/ompstacksize.rst: New file.
2608 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
2609 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
2610 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
2611 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
2612 * doc/openmp-implementation-specifics.rst: New file.
2613 * doc/openmp-implementation-status.rst: New file.
2614 * doc/openmp-implementation-status/openmp-45.rst: New file.
2615 * doc/openmp-implementation-status/openmp-50.rst: New file.
2616 * doc/openmp-implementation-status/openmp-51.rst: New file.
2617 * doc/openmp-implementation-status/openmp-52.rst: New file.
2618 * doc/openmp-runtime-library-routines.rst: New file.
2619 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
2620 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
2621 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
2622 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
2623 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
2624 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
2625 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
2626 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
2627 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
2628 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
2629 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
2630 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
2631 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
2632 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
2633 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
2634 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
2635 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
2636 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
2637 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
2638 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
2639 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
2640 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
2641 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
2642 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
2643 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
2644 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
2645 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
2646 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
2647 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
2648 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
2649 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
2650 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
2651 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
2652 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
2653 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
2654 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
2655 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
2656 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
2657 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
2658 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
2659 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
2660 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
2661 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
2662 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
2663 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
2664 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
2665 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
2666 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
2667 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
2668 * doc/reporting-bugs.rst: New file.
2669 * doc/the-libgomp-abi.rst: New file.
2670 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
2671 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
2672 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
2673 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2674 New file.
2675 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
2676 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
2677 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
2678 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
2679 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
2680 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
2681 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
2682 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
2683 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
2684 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
2685 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
2686
2687 2022-11-04 Thomas Schwinge <thomas@codesourcery.com>
2688
2689 * libgomp-plugin.h (OFFLOAD_TARGET_TYPE_INTEL_MIC): Remove.
2690 * libgomp.texi (OpenMP Context Selectors): Remove Intel MIC
2691 documentation.
2692 * plugin/configfrag.ac <enable_offload_targets>
2693 [*-intelmic-* | *-intelmicemul-*]: Remove.
2694 * configure: Regenerate.
2695 * testsuite/lib/libgomp.exp (libgomp_init): Remove 'liboffloadmic'
2696 handling.
2697 (offload_target_to_openacc_device_type)
2698 [$offload_target = *-intelmic*]: Remove.
2699 (check_effective_target_offload_device_intel_mic)
2700 (check_effective_target_offload_device_any_intel_mic): Remove.
2701 * testsuite/libgomp.c-c++-common/on_device_arch.h
2702 (device_arch_intel_mic, on_device_arch_intel_mic, any_device_arch)
2703 (any_device_arch_intel_mic): Remove.
2704 * testsuite/libgomp.c-c++-common/target-45.c: Remove
2705 'offload_device_any_intel_mic' XFAIL.
2706 * testsuite/libgomp.fortran/target10.f90: Likewise.
2707
2708 2022-11-03 Tobias Burnus <tobias@codesourcery.com>
2709
2710 * testsuite/libgomp.fortran/target-11.f90: New test.
2711 * testsuite/libgomp.fortran/target-13.f90: New test.
2712
2713 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2714
2715 PR libgomp/106643
2716 PR fortran/96668
2717 * oacc-mem.c (goacc_enter_data_internal): Support
2718 OpenACC 'declare create' with Fortran allocatable arrays, part II.
2719 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2720 Adjust.
2721 * testsuite/libgomp.oacc-fortran/pr106643-1.f90: New.
2722
2723 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2724
2725 PR libgomp/106643
2726 * oacc-mem.c (goacc_enter_data_internal): Support
2727 OpenACC 'declare create' with Fortran allocatable arrays, part I.
2728 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90:
2729 New.
2730 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2731 New.
2732
2733 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2734
2735 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-runtime.f90:
2736 New.
2737
2738 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2739
2740 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90:
2741 New.
2742
2743 2022-11-02 Cesar Philippidis <cesar@codesourcery.com>
2744 Thomas Schwinge <thomas@codesourcery.com>
2745
2746 * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: New.
2747
2748 2022-10-28 Julian Brown <julian@codesourcery.com>
2749 Thomas Schwinge <thomas@codesourcery.com>
2750
2751 PR middle-end/90115
2752 * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
2753 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
2754 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2755 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
2756 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2757
2758 2022-10-24 Thomas Schwinge <thomas@codesourcery.com>
2759
2760 * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
2761 'ptx_dev->rev_data'.
2762
2763 2022-10-24 Tobias Burnus <tobias@codesourcery.com>
2764
2765 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
2766 'static' for this variable.
2767 * config/nvptx/libgomp-nvptx.h: New file.
2768 * config/nvptx/target.c: Include it.
2769 (GOMP_ADDITIONAL_ICVS): Declare extern var.
2770 (GOMP_REV_OFFLOAD_VAR): Declare var.
2771 (GOMP_target_ext): Handle reverse offload.
2772 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
2773 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
2774 * target.c (gomp_target_rev): ... this new stub function.
2775 * libgomp.h (gomp_target_rev): Declare.
2776 * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
2777 * plugin/cuda-lib.def (cuMemHostAlloc): Add.
2778 * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
2779 (struct ptx_device): Add rev_data member.
2780 (nvptx_open_device): Remove async_engines query, last used in
2781 r10-304-g1f4c5b9b; add unified-address assert check.
2782 (GOMP_OFFLOAD_get_num_devices): Claim unified address
2783 support.
2784 (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
2785 offload functions exist. Make offload var available
2786 on host and device.
2787 (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
2788 (GOMP_OFFLOAD_run): Handle reverse offload.
2789
2790 2022-10-21 Thomas Schwinge <thomas@codesourcery.com>
2791
2792 PR tree-optimization/107195
2793 PR target/107344
2794 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
2795 regions checking.
2796
2797 2022-10-20 Tobias Burnus <tobias@codesourcery.com>
2798
2799 * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
2800 New.
2801 * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
2802 on_device_arch_gcn): New.
2803 * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
2804 requires-4.c but using heap-allocated memory.
2805
2806 2022-10-20 Thomas Schwinge <thomas@codesourcery.com>
2807
2808 PR target/105421
2809 * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
2810
2811 2022-10-17 Thomas Schwinge <thomas@codesourcery.com>
2812
2813 * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
2814 '-foffload-options' syntax.
2815
2816 2022-10-13 Tobias Burnus <tobias@codesourcery.com>
2817
2818 * testsuite/libgomp.fortran/task-7.f90: New test.
2819 * testsuite/libgomp.fortran/task-8.f90: New test.
2820 * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
2821 * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
2822 * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
2823 * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
2824 * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
2825
2826 2022-10-12 Jakub Jelinek <jakub@redhat.com>
2827
2828 * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
2829 in deprecation bullet.
2830
2831 2022-10-12 Jakub Jelinek <jakub@redhat.com>
2832
2833 * omp.h.in (omp_in_explicit_task): Declare.
2834 * omp_lib.h.in (omp_in_explicit_task): Likewise.
2835 * omp_lib.f90.in (omp_in_explicit_task): New interface.
2836 * libgomp.map (OMP_5.2): New symbol version, export
2837 omp_in_explicit_task and omp_in_explicit_task_.
2838 * task.c (omp_in_explicit_task): New function.
2839 * fortran.c (omp_in_explicit_task): Add ialias_redirect.
2840 (omp_in_explicit_task_): New function.
2841 * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
2842 * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
2843 * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
2844 * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
2845
2846 2022-10-12 Jakub Jelinek <jakub@redhat.com>
2847
2848 * task.c (gomp_create_artificial_team): Fix up handling of invocations
2849 from within explicit task.
2850 * target.c (GOMP_target_ext): Likewise.
2851 * testsuite/libgomp.c/task-7.c: New test.
2852 * testsuite/libgomp.c/task-8.c: New test.
2853 * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
2854 * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
2855
2856 2022-10-12 Martin Liska <mliska@suse.cz>
2857
2858 * configure: Regenerate.
2859
2860 2022-10-11 Olivier Hainque <hainque@adacore.com>
2861 Olivier Hainque <hainque@adacore.com>
2862
2863 * configure: Regenerate.
2864
2865 2022-10-05 Tobias Burnus <tobias@codesourcery.com>
2866
2867 * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
2868
2869 2022-10-04 Jakub Jelinek <jakub@redhat.com>
2870
2871 * libgomp.texi (Support begin/end declare target syntax in C/C++):
2872 Mark as implemented.
2873
2874 2022-09-30 Tobias Burnus <tobias@codesourcery.com>
2875
2876 PR fortran/105318
2877 * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
2878
2879 2022-09-28 Tobias Burnus <tobias@codesourcery.com>
2880
2881 * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
2882 for C/C++. Remove duplicated 'begin declare target' entry.
2883
2884 2022-09-24 Jakub Jelinek <jakub@redhat.com>
2885
2886 PR c/106981
2887 * testsuite/libgomp.c-c++-common/pr106981.c: New test.
2888
2889 2022-09-14 Julian Brown <julian@codesourcery.com>
2890
2891 * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
2892 * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
2893 * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
2894 * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
2895 test to here, make "run" test.
2896
2897 2022-09-13 Jakub Jelinek <jakub@redhat.com>
2898
2899 PR libgomp/106906
2900 * env.c (get_icv_member_addr): Cast false to void * before assigning
2901 it to icv_addr[1], and comment the whole assignment out.
2902
2903 2022-09-13 Tobias Burnus <tobias@codesourcery.com>
2904
2905 * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
2906 (nvptx): ... here.
2907
2908 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
2909
2910 * libgomp.texi (Offload-Target Specifics: nvptx): Document
2911 that reverse offload requires >= -march=sm_35.
2912 * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
2913 with -misa=sm_35.
2914 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
2915 * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
2916 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
2917 * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
2918 * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
2919
2920 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
2921
2922 * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
2923 (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
2924
2925 2022-09-12 Jakub Jelinek <jakub@redhat.com>
2926
2927 PR libgomp/106894
2928 * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
2929 (main): Avoid tests for which corresponding non-_ALL suffixed variable
2930 is in the environment, or for OMP_NUM_TEAMS on the device
2931 OMP_NUM_TEAMS_DEV_?.
2932
2933 2022-09-10 Iain Sandoe <iain@sandoe.co.uk>
2934
2935 * env.c (initialize_env): Include libiberty environ.h.
2936
2937 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
2938
2939 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
2940 function address table '$offload_func_table' if rev_fn_table
2941 is not NULL.
2942
2943 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
2944
2945 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
2946 .offload_func_table to populate rev_fn_table when requested.
2947
2948 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
2949
2950 * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
2951 'uint64_t **rev_fn_table' argument.
2952 * oacc-host.c (host_load_image): Likewise.
2953 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
2954 currently unused.
2955 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2956 * target.c (gomp_load_image_to_device): Update call but pass
2957 NULL for now.
2958
2959 2022-09-09 Jakub Jelinek <jakub@redhat.com>
2960
2961 PR libgomp/106894
2962 * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
2963 char * for dest[1] initialization from params[1]. Formatting fixes.
2964
2965 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
2966
2967 PR fortran/106670
2968 * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
2969
2970 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
2971
2972 * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
2973 section; move OpenMP Context Selectors from ...
2974 (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
2975 'nvptx' sections.
2976
2977 2022-09-08 Marcel Vollweiler <marcel@codesourcery.com>
2978
2979 * config/gcn/icv-device.c (omp_get_default_device): Return device-
2980 specific ICV.
2981 (omp_get_max_teams): Added for GCN devices.
2982 (omp_set_num_teams): Likewise.
2983 (ialias): Likewise.
2984 * config/nvptx/icv-device.c (omp_get_default_device): Return device-
2985 specific ICV.
2986 (omp_get_max_teams): Added for NVPTX devices.
2987 (omp_set_num_teams): Likewise.
2988 (ialias): Likewise.
2989 * env.c (struct gomp_icv_list): New struct to store entries of initial
2990 ICV values.
2991 (struct gomp_offload_icv_list): New struct to store entries of device-
2992 specific ICV values that are copied to the device and back.
2993 (struct gomp_default_icv_values): New struct to store default values of
2994 ICVs according to the OpenMP standard.
2995 (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
2996 (print_env_var_error): Function that prints an error for invalid values
2997 for ICVs.
2998 (parse_unsigned_long_1): Removed getenv. Generalized.
2999 (parse_unsigned_long): Likewise.
3000 (parse_int_1): Likewise.
3001 (parse_int): Likewise.
3002 (parse_int_secure): Likewise.
3003 (parse_unsigned_long_list): Likewise.
3004 (parse_target_offload): Likewise.
3005 (parse_bind_var): Likewise.
3006 (parse_stacksize): Likewise.
3007 (parse_boolean): Likewise.
3008 (parse_wait_policy): Likewise.
3009 (parse_allocator): Likewise.
3010 (omp_display_env): Extended to output different variants of environment
3011 variables.
3012 (print_schedule): New helper function for omp_display_env which prints
3013 the values of run_sched_var.
3014 (print_proc_bind): New helper function for omp_display_env which prints
3015 the values of proc_bind_var.
3016 (enum gomp_parse_type): Collection of types used for parsing environment
3017 variables.
3018 (ENTRY): Preprocess string lengths of environment variables.
3019 (OMP_VAR_CNT): Preprocess table size.
3020 (OMP_HOST_VAR_CNT): Likewise.
3021 (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
3022 number.
3023 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
3024 (gomp_set_icv_flag): Sets a flag for a particular ICV.
3025 (print_device_specific_icvs): New helper function for omp_display_env to
3026 print device specific ICV values.
3027 (get_device_num): New helper function for parse_device_specific.
3028 Extracts the device number from an environment variable name.
3029 (get_icv_member_addr): Gets the memory address for a particular member
3030 of an ICV struct.
3031 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
3032 (initialize_icvs): New function to initialize a gomp_initial_icvs
3033 struct.
3034 (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
3035 (startswith): Checks if a string starts with a given prefix.
3036 (initialize_env): Extended to parse the new syntax of environment
3037 variables.
3038 * icv-device.c (omp_get_max_teams): Added.
3039 (ialias): Likewise.
3040 (omp_set_num_teams): Likewise.
3041 * icv.c (omp_set_num_teams): Moved to icv-device.c.
3042 (omp_get_max_teams): Likewise.
3043 (ialias): Likewise.
3044 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
3045 (GOMP_ADDITIONAL_ICVS): New target-side struct that
3046 holds the designated ICVs of the target device.
3047 * libgomp.h (enum gomp_icvs): Collection of ICVs.
3048 (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
3049 no suffix.
3050 (enum gomp_env_suffix): Collection of possible suffixes of environment
3051 variables.
3052 (struct gomp_initial_icvs): Contains all ICVs for which we need to store
3053 initial values.
3054 (struct gomp_default_icv):New struct to hold ICVs for which we need
3055 to store initial values.
3056 (struct gomp_icv_list): Definition of a linked list that is used for
3057 storing ICVs for the devices and also for _DEV, _ALL, and without
3058 suffix.
3059 (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
3060 a device.
3061 (struct gomp_offload_icv_list): Definition of a linked list that holds
3062 device-specific ICVs that are copied to devices.
3063 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
3064 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
3065 * libgomp.texi: Updated.
3066 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
3067 further ICVs from the offload image.
3068 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
3069 * target.c (gomp_get_offload_icv_item): Get a list item of
3070 gomp_offload_icv_list.
3071 (get_gomp_offload_icvs): New. Returns the ICV values
3072 depending on the device num and the variable hierarchy.
3073 (gomp_load_image_to_device): Extended to copy further ICVs to a device.
3074 * testsuite/libgomp.c-c++-common/icv-5.c: New test.
3075 * testsuite/libgomp.c-c++-common/icv-6.c: New test.
3076 * testsuite/libgomp.c-c++-common/icv-7.c: New test.
3077 * testsuite/libgomp.c-c++-common/icv-8.c: New test.
3078 * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
3079 * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
3080
3081 2022-09-08 Jakub Jelinek <jakub@redhat.com>
3082
3083 * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
3084 fully supported.
3085 * testsuite/libgomp.c/doacross-4.c: New test.
3086 * testsuite/libgomp.c/doacross-5.c: New test.
3087 * testsuite/libgomp.c/doacross-6.c: New test.
3088 * testsuite/libgomp.c/doacross-7.c: New test.
3089
3090 2022-09-05 Tobias Burnus <tobias@codesourcery.com>
3091
3092 * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
3093
3094 2022-08-26 Tobias Burnus <tobias@codesourcery.com>
3095
3096 * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
3097 refer to 'requires'.
3098 * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
3099 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
3100 * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
3101 * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
3102
3103 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
3104
3105 PR middle-end/106548
3106 * testsuite/libgomp.c/linear-2.c: New test.
3107
3108 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
3109
3110 * splay-tree.h: Fix splay_* macro unsetting if
3111 splay_tree_prefix is defined.
3112
3113 2022-07-29 Tobias Burnus <tobias@codesourcery.com>
3114
3115 * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
3116
3117 2022-07-29 Jakub Jelinek <jakub@redhat.com>
3118
3119 PR middle-end/106449
3120 * testsuite/libgomp.c-c++-common/pr106449.c: New test.
3121
3122 2022-07-12 Tobias Burnus <tobias@codesourcery.com>
3123
3124 * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
3125
3126 2022-07-12 Thomas Schwinge <thomas@codesourcery.com>
3127
3128 PR middle-end/101551
3129 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
3130 'offloading_enabled' diagnostics issue.
3131
3132 2022-07-11 Thomas Schwinge <thomas@codesourcery.com>
3133
3134 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
3135 '_Pragma' diagnostics verification.
3136
3137 2022-07-10 Lewis Hyatt <lhyatt@gmail.com>
3138
3139 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
3140 improved warning locations.
3141 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
3142
3143 2022-07-08 Thomas Schwinge <thomas@codesourcery.com>
3144
3145 * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
3146 * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
3147 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
3148 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
3149 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
3150
3151 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
3152
3153 * target.c (GOMP_offload_register, GOMP_offload_unregister):
3154 Denote as legacy entry points.
3155 * testsuite/lib/libgomp.exp
3156 (check_effective_target_offload_target_any): New proc.
3157 * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
3158 'offload_target_any'.
3159 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
3160 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
3161 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
3162
3163 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
3164
3165 * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
3166 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
3167
3168 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
3169
3170 * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
3171
3172 2022-07-06 Thomas Schwinge <thomas@codesourcery.com>
3173
3174 * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
3175 'data'.
3176 (GOMP_offload_unregister_ver): Likewise. Fix up 'target_data'.
3177
3178 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
3179 Jakub Jelinek <jakub@redhat.com>
3180
3181 * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
3182
3183 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
3184 Chung-Lin Tang <cltang@codesourcery.com>
3185 Thomas Schwinge <thomas@codesourcery.com>
3186
3187 * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
3188 omp_requires_mask arg.
3189 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
3190 return -1 when device available but omp_requires_mask != 0.
3191 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
3192 * oacc-host.c (host_get_num_devices, host_openacc_get_property):
3193 Update call.
3194 * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
3195 goacc_attach_host_thread_to_device, acc_get_num_devices,
3196 acc_set_device_num, get_property_any): Likewise.
3197 * target.c (omp_requires_mask): New global var.
3198 (gomp_requires_to_name): New.
3199 (GOMP_offload_register_ver): Handle passed omp_requires_mask.
3200 (gomp_target_init): Handle omp_requires_mask.
3201 * libgomp.texi (OpenMP 5.0): Update requires impl. status.
3202 (OpenMP 5.1): Add a missed item.
3203 (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
3204 * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
3205 * testsuite/libgomp.c-c++-common/requires-1.c: New test.
3206 * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
3207 * testsuite/libgomp.c-c++-common/requires-2.c: New test.
3208 * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
3209 * testsuite/libgomp.c-c++-common/requires-3.c: New test.
3210 * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
3211 * testsuite/libgomp.c-c++-common/requires-4.c: New test.
3212 * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
3213 * testsuite/libgomp.c-c++-common/requires-5.c: New test.
3214 * testsuite/libgomp.c-c++-common/requires-6.c: New test.
3215 * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
3216 * testsuite/libgomp.c-c++-common/requires-7.c: New test.
3217 * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
3218 * testsuite/libgomp.fortran/requires-1.f90: New test.
3219
3220 2022-07-01 Tobias Burnus <tobias@codesourcery.com>
3221
3222 * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
3223 with fromto as implemented.
3224
3225 2022-06-28 Martin Liska <mliska@suse.cz>
3226
3227 * acinclude.m4: Fix typo in mold linker detection.
3228 * Makefile.in: Regenerate.
3229 * configure: Regenerate.
3230
3231 2022-06-21 Jakub Jelinek <jakub@redhat.com>
3232 Paul Iannetta <piannetta@kalrayinc.com>
3233
3234 PR libgomp/106045
3235 * testsuite/libgomp.c/target-31.c: Add private (i) clause.
3236
3237 2022-06-17 Martin Liska <mliska@suse.cz>
3238
3239 * libgomp.texi: Add table header for new features of
3240 OpenMP 5.2.
3241
3242 2022-06-15 Jakub Jelinek <jakub@redhat.com>
3243
3244 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
3245 q to ddress of an automatic variable. Use -5 instead of -1 in
3246 omp_get_mapped_ptr call. Add test with omp_initial_device.
3247 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
3248 of -1 in omp_get_mapped_ptr call. Add test with omp_initial_device.
3249 Renumber stop arguments afterwards.
3250
3251 2022-06-13 Jakub Jelinek <jakub@redhat.com>
3252
3253 * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
3254 * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
3255 parameters.
3256 * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
3257 * target.c (resolve_device): Add remapped argument, handle
3258 GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
3259 for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
3260 if remapped, otherwise treat omp_initial_device that way. For
3261 omp_invalid_device, always emit gomp_fatal, even when
3262 OMP_TARGET_OFFLOAD isn't mandatory.
3263 (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
3264 GOMP_target_update, GOMP_target_update_ext,
3265 GOMP_target_enter_exit_data): Pass true as remapped argument to
3266 resolve_device.
3267 (omp_target_alloc, omp_target_free, omp_target_is_present,
3268 omp_target_memcpy_check, omp_target_associate_ptr,
3269 omp_target_disassociate_ptr, omp_get_mapped_ptr,
3270 omp_target_is_accessible): Pass false as remapped argument to
3271 resolve_device. Treat omp_initial_device the same as
3272 gomp_get_num_devices (). Don't bypass resolve_device calls if
3273 device_num is negative.
3274 (omp_pause_resource): Treat omp_initial_device the same as
3275 gomp_get_num_devices (). Call resolve_device.
3276 * icv-device.c (omp_set_default_device): Always set to device_num
3277 even when it is negative.
3278 * libgomp.texi: Document that Conforming device numbers,
3279 omp_initial_device and omp_invalid_device is implemented.
3280 * testsuite/libgomp.c/target-41.c (main): Add test with
3281 omp_initial_device.
3282 * testsuite/libgomp.c/target-45.c: New test.
3283 * testsuite/libgomp.c/target-46.c: New test.
3284 * testsuite/libgomp.c/target-47.c: New test.
3285 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
3286 test with omp_initial_device. Use -5 instead of -1 for negative value
3287 test.
3288 * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
3289 Likewise. Reorder stop numbers.
3290
3291 2022-06-10 Jakub Jelinek <jakub@redhat.com>
3292
3293 * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
3294 rather than "libmemkind.so".
3295
3296 2022-06-10 Thomas Schwinge <thomas@codesourcery.com>
3297
3298 * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
3299 * plugin/configfrag.ac (--with-cuda-driver)
3300 (--with-cuda-driver-include, --with-cuda-driver-lib)
3301 (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
3302 (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
3303 Remove.
3304 * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
3305 (cuda_driver_lib): Remove.
3306 * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
3307 * Makefile.in: Regenerate.
3308 * configure: Likewise.
3309 * testsuite/Makefile.in: Likewise.
3310
3311 2022-06-09 Jakub Jelinek <jakub@redhat.com>
3312
3313 * config/linux/allocator.c: Fix up #include directive.
3314
3315 2022-06-09 Jakub Jelinek <jakub@redhat.com>
3316
3317 * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
3318 (enum gomp_memkind_kind): New type.
3319 (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
3320 is defined.
3321 (struct gomp_memkind_data): New type.
3322 (memkind_data, memkind_data_once): New variables.
3323 (gomp_init_memkind, gomp_get_memkind): New functions.
3324 (omp_init_allocator): Initialize data.memkind, don't fail for
3325 omp_high_bw_mem_space if libmemkind supports it.
3326 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
3327 memkind support of LIBGOMP_USE_MEMKIND is defined.
3328 * config/linux/allocator.c: New file.
3329
3330 2022-06-03 Tobias Burnus <tobias@codesourcery.com>
3331
3332 * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
3333 * testsuite/libgomp.fortran/scope-2.f90: New test.
3334
3335 2022-06-02 David Malcolm <dmalcolm@redhat.com>
3336
3337 * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
3338
3339 2022-05-31 Jakub Jelinek <jakub@redhat.com>
3340
3341 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
3342 scope construct with allocate clause.
3343 * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
3344 * testsuite/libgomp.c-c++-common/scope-2.c: New test.
3345
3346 2022-05-28 Tobias Burnus <tobias@codesourcery.com>
3347
3348 * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
3349 * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
3350 explicit 'to' and 'enter' clause.
3351 * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
3352
3353 2022-05-28 Jakub Jelinek <jakub@redhat.com>
3354
3355 PR libgomp/105745
3356 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
3357 defined(HAVE__ALIGNED_MALLOC) case.
3358 * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
3359 handling as last option before fallback instead of first.
3360 (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
3361 _aligned_free.
3362
3363 2022-05-27 Jakub Jelinek <jakub@redhat.com>
3364
3365 * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
3366 clauses to enter.
3367 * testsuite/libgomp.c/target-41.c: Likewise.
3368
3369 2022-05-27 Tobias Burnus <tobias@codesourcery.com>
3370
3371 * libgomp.texi (Other new OpenMP 5.1 features): Add
3372 'begin declare target'.
3373 (Other new OpenMP 5.2 features): New.
3374
3375 2022-05-25 Jakub Jelinek <jakub@redhat.com>
3376
3377 * task.c (gomp_task_run_post_handle_dependers): If empty_task
3378 is the last task taskwait depend depends on, wake it up.
3379 Similarly if it is the last child of a taskgroup, use atomic
3380 store instead of decrement and awak taskgroup wait if any.
3381 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
3382
3383 2022-05-24 Andrew Stubbs <ams@codesourcery.com>
3384
3385 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
3386 EF_AMDGPU_MACH_AMDGCN_GFX90a.
3387 (gcn_gfx90a_s): New.
3388 (isa_hsa_name): Support gfx90a.
3389 (isa_code): Likewise.
3390
3391 2022-05-24 Tobias Burnus <tobias@codesourcery.com>
3392
3393 PR c/105378
3394 * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
3395 * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
3396
3397 2022-05-24 Jakub Jelinek <jakub@redhat.com>
3398
3399 PR c/105378
3400 * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
3401 * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
3402 * task.c (empty_task): New function.
3403 (gomp_task_run_post_handle_depend_hash): Declare earlier.
3404 (gomp_task_run_post_handle_depend): Declare.
3405 (GOMP_task): Optimize fn == empty_task if there is nothing to wait
3406 for.
3407 (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
3408 (GOMP_taskwait_depend_nowait): New function.
3409 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
3410
3411 2022-05-23 Tobias Burnus <tobias@codesourcery.com>
3412
3413 PR fortran/104949
3414 * target.c (gomp_map_vars_internal, copy_firstprivate_data):
3415 Support attach for GOMP_MAP_FIRSTPRIVATE.
3416 * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
3417 * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
3418 * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
3419
3420 2022-05-20 Marcel Vollweiler <marcel@codesourcery.com>
3421
3422 * libgomp.map: Added omp_target_memcpy_async and
3423 omp_target_memcpy_rect_async.
3424 * libgomp.texi: Both functions are now supported.
3425 * omp.h.in: Added omp_target_memcpy_async and
3426 omp_target_memcpy_rect_async.
3427 * omp_lib.f90.in: Added interfaces for both new functions.
3428 * omp_lib.h.in: Likewise.
3429 * target.c (ialias_redirect): Added for GOMP_task.
3430 (omp_target_memcpy): Restructured into check and copy part.
3431 (omp_target_memcpy_check): New helper function for omp_target_memcpy and
3432 omp_target_memcpy_async that checks requirements.
3433 (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
3434 omp_target_memcpy_async that performs the memcpy.
3435 (omp_target_memcpy_async_helper): New helper function that is used in
3436 omp_target_memcpy_async for the asynchronous task.
3437 (omp_target_memcpy_async): Added.
3438 (omp_target_memcpy_rect): Restructured into check and copy part.
3439 (omp_target_memcpy_rect_check): New helper function for
3440 omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
3441 requirements.
3442 (omp_target_memcpy_rect_copy): New helper function for
3443 omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
3444 the memcpy.
3445 (omp_target_memcpy_rect_async_helper): New helper function that is used
3446 in omp_target_memcpy_rect_async for the asynchronous task.
3447 (omp_target_memcpy_rect_async): Added.
3448 * task.c (ialias): Added for GOMP_task.
3449 * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
3450 * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
3451 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
3452 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
3453 * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
3454 * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
3455 * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
3456 * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
3457
3458 2022-05-18 Tobias Burnus <tobias@codesourcery.com>
3459
3460 * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
3461 (OpenMP Context Selectors): Add missing comma.
3462 * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
3463 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
3464 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
3465 * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
3466
3467 2022-05-17 Jakub Jelinek <jakub@redhat.com>
3468
3469 * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
3470 comment for omp_display_env feature.
3471
3472 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
3473
3474 * libgomp.texi (Offload-Target Specifics): New chapter; add section
3475 to document OpenMP context selectors.
3476
3477 2022-05-17 Jakub Jelinek <jakub@redhat.com>
3478
3479 * libgomp.h (struct gomp_task_depend_entry): Change is_in type
3480 from bool to unsigned char.
3481 * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
3482 Ignore dependencies where
3483 task->depend[i].is_in && task->depend[i].is_in == ent->is_in
3484 rather than just task->depend[i].is_in && ent->is_in. Remember
3485 whether GOMP_DEPEND_IN loop is needed and guard the loop with that
3486 conditional.
3487 (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
3488 Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
3489 rather than just elem.is_in && ent->is_in.
3490 * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
3491 inoutset depend-kind.
3492 * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
3493 * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
3494 * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
3495
3496 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
3497
3498 * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
3499
3500 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
3501
3502 * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
3503 * testsuite/libgomp.fortran/depend-5.f90: New test.
3504 * testsuite/libgomp.fortran/depend-6.f90: New test.
3505 * testsuite/libgomp.fortran/depend-7.f90: New test.
3506
3507 2022-05-16 Marcel Vollweiler <marcel@codesourcery.com>
3508
3509 * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
3510 * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
3511 * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
3512
3513 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
3514
3515 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3516
3517 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
3518
3519 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3520
3521 2022-05-13 Thomas Schwinge <thomas@codesourcery.com>
3522
3523 * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
3524 [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
3525 (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
3526 append '$(PLUGIN_NVPTX_LDFLAGS)'.
3527 * Makefile.in: Regenerate.
3528
3529 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3530
3531 * Makefile.am (libgomp_la_LIBADD): Initialize.
3532 * plugin/configfrag.ac (DL_LIBS): New.
3533 (PLUGIN_GCN_LIBS): Remove.
3534 (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
3535 * plugin/Makefrag.am (libgomp_la_LIBADD)
3536 (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
3537 (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
3538 * Makefile.in: Regenerate.
3539 * config.h.in: Likewise.
3540 * configure: Likewise.
3541 * testsuite/Makefile.in: Likewise.
3542
3543 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3544
3545 * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
3546 * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
3547 'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
3548 * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
3549 'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
3550 'PLUGIN_NVPTX_LINK_LIBCUDA'.
3551 * Makefile.in: Regenerate.
3552 * config.h.in: Likewise.
3553 * configure: Likewise.
3554
3555 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3556
3557 * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
3558 for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
3559 * Makefile.in: Regenerate.
3560 * config.h.in: Likewise.
3561 * configure: Likewise.
3562 * testsuite/Makefile.in: Likewise.
3563
3564 2022-05-12 Jakub Jelinek <jakub@redhat.com>
3565
3566 * libgomp.h (struct gomp_task): Add depend_all_memory member.
3567 * task.c (gomp_init_task): Initialize depend_all_memory.
3568 (gomp_task_handle_depend): Handle omp_all_memory.
3569 (gomp_task_run_post_handle_depend_hash): Clear
3570 parent->depend_all_memory if equal to current task.
3571 (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
3572 * testsuite/libgomp.c-c++-common/depend-1.c: New test.
3573 * testsuite/libgomp.c-c++-common/depend-2.c: New test.
3574 * testsuite/libgomp.c-c++-common/depend-3.c: New test.
3575
3576 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3577
3578 * plugin/configfrag.ac: Remove '--with-hsa-runtime',
3579 '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
3580 * Makefile.in: Regenerate.
3581 * configure: Likewise.
3582 * testsuite/Makefile.in: Likewise.
3583
3584 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3585
3586 * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
3587 consider 'PLUGIN_GCN_CPPFLAGS'.
3588 (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
3589 'PLUGIN_GCN_LDFLAGS'.
3590 * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
3591 Remove.
3592 * Makefile.in: Regenerate.
3593 * configure: Likewise.
3594 * testsuite/Makefile.in: Likewise.
3595
3596 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3597
3598 * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
3599 (HSA_RUNTIME_LDFLAGS): Remove.
3600 * configure: Regenerate.
3601
3602 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3603
3604 * testsuite/lib/libgomp.exp (libgomp_init): Don't
3605 'append always_ld_library_path ":$hsa_runtime_lib"'.
3606 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
3607
3608 2022-05-10 Thomas Schwinge <thomas@codesourcery.com>
3609
3610 * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
3611 multi-device testing.
3612
3613 2022-05-06 Marcel Vollweiler <marcel@codesourcery.com>
3614
3615 * libgomp.map: Added omp_target_is_accessible.
3616 * libgomp.texi: Tagged omp_target_is_accessible as supported.
3617 * omp.h.in: Added omp_target_is_accessible.
3618 * omp_lib.f90.in: Added interface for omp_target_is_accessible.
3619 * omp_lib.h.in: Likewise.
3620 * target.c (omp_target_is_accessible): Added implementation of
3621 omp_target_is_accessible.
3622 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
3623 * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
3624
3625 2022-05-05 Sandra Loosemore <sandra@codesourcery.com>
3626
3627 * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
3628
3629 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
3630
3631 * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
3632
3633 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
3634
3635 * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
3636
3637 2022-05-03 Marcel Vollweiler <marcel@codesourcery.com>
3638
3639 * libgomp.map: Added omp_get_mapped_ptr.
3640 * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
3641 * omp.h.in: Added omp_get_mapped_ptr.
3642 * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
3643 * omp_lib.h.in: Likewise.
3644 * target.c (omp_get_mapped_ptr): Added implementation of
3645 omp_get_mapped_ptr.
3646 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
3647 * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
3648 * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
3649 * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
3650 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
3651 * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
3652 * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
3653 * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
3654
3655 2022-04-28 Thomas Schwinge <thomas@codesourcery.com>
3656
3657 PR fortran/104717
3658 * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
3659 privatization scanning. For GCN offloading compilation, raise
3660 '-mgang-private-size'.
3661
3662 2022-04-26 Jakub Jelinek <jakub@redhat.com>
3663
3664 PR libgomp/105358
3665 * work.c (gomp_init_work_share): Don't mask of adjustment for
3666 dynamic long long realignment if struct gomp_work_share has smaller
3667 alignof than long long.
3668 * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
3669 struct gomp_work_share has smaller alignof than long long or if
3670 sizeof (struct gomp_work_share) is smaller than
3671 INLINE_ORDERED_TEAM_IDS_OFF.
3672 * loop_ull.c (GOMP_loop_ull_start): Likewise.
3673 * sections.c (GOMP_sections2_start): Likewise.
3674
3675 2022-04-25 Jakub Jelinek <jakub@redhat.com>
3676 Thomas Schwinge <thomas@codesourcery.com>
3677
3678 PR fortran/104717
3679 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
3680
3681 2022-04-13 Jakub Jelinek <jakub@redhat.com>
3682
3683 * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
3684
3685 2022-04-06 Thomas Schwinge <thomas@codesourcery.com>
3686
3687 * plugin/cuda/cuda.h: Remove file.
3688 * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
3689 "cuda/cuda.h" instead of <cuda.h>.
3690 * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
3691 'PLUGIN_NVPTX_CPPFLAGS'.
3692 * configure: Regenerate.
3693
3694 2022-04-05 Chung-Lin Tang <cltang@codesourcery.com>
3695
3696 * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
3697
3698 2022-04-04 Tom de Vries <tdevries@suse.de>
3699
3700 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
3701 on_device_arch_nvptx instead of offload_target_nvptx.
3702 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3703
3704 2022-04-01 Tom de Vries <tdevries@suse.de>
3705
3706 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
3707 and use REC_DEPTH.
3708 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3709
3710 2022-04-01 Tom de Vries <tdevries@suse.de>
3711
3712 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
3713 num_workers check.
3714
3715 2022-03-29 Chenghua Xu <xuchenghua@loongson.cn>
3716 Lulu Cheng <chenglulu@loongson.cn>
3717
3718 * configure.tgt: Add LoongArch triplet.
3719
3720 2022-03-28 Tom de Vries <tdevries@suse.de>
3721
3722 * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
3723 instead of /libexec/.
3724 * configure: Regenerate.
3725
3726 2022-03-25 Tom de Vries <tdevries@suse.de>
3727
3728 PR libgomp/105042
3729 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
3730 execution time.
3731 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
3732 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
3733
3734 2022-03-23 Tobias Burnus <tobias@codesourcery.com>
3735
3736 PR middle-end/104285
3737 * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
3738 * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
3739 * testsuite/libgomp.c++/target-same-name-2.C: New test.
3740 * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
3741 * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
3742 * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
3743
3744 2022-03-22 Tom de Vries <tdevries@suse.de>
3745
3746 PR target/104916
3747 PR target/104783
3748 * testsuite/libgomp.c/pr104783-2.c: New test.
3749
3750 2022-03-18 Tobias Burnus <tobias@codesourcery.com>
3751
3752 PR fortran/103039
3753 * testsuite/libgomp.fortran/associate4.f90: New test.
3754
3755 2022-03-18 Tom de Vries <tdevries@suse.de>
3756
3757 PR target/104952
3758 * testsuite/libgomp.c/pr104952-1.c: New test.
3759 * testsuite/libgomp.c/pr104952-2.c: New test.
3760
3761 2022-03-18 Jakub Jelinek <jakub@redhat.com>
3762
3763 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
3764 variable next to pl variable.
3765
3766 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
3767
3768 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3769 Enhance.
3770 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
3771 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3772
3773 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
3774
3775 PR middle-end/90115
3776 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
3777 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3778
3779 2022-03-16 Marcel Vollweiler <marcel@codesourcery.com>
3780
3781 * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
3782 omp_set_max_active_levels.
3783 * testsuite/libgomp.fortran/icv-8.f90: New test.
3784
3785 2022-03-16 Thomas Schwinge <thomas@codesourcery.com>
3786
3787 PR testsuite/102841
3788 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
3789
3790 2022-03-13 Tobias Burnus <tobias@codesourcery.com>
3791
3792 * libgomp.texi: Fix typo.
3793
3794 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3795
3796 PR middle-end/100280
3797 PR middle-end/104892
3798 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
3799 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
3800 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3801 Likewise.
3802 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3803 Likewise.
3804 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3805 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3806 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3807 Likewise.
3808
3809 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3810
3811 PR middle-end/104892
3812 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
3813 to PR104892.
3814 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
3815 enable '--param=openacc-kernels=decompose' and adjust.
3816 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3817 Likewise.
3818 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3819 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3820 Likewise.
3821
3822 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3823
3824 PR middle-end/90115
3825 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
3826 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
3827 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3828 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
3829
3830 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3831
3832 PR middle-end/100280
3833 PR middle-end/104086
3834 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3835 Merge this...
3836 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3837 ..., and this...
3838 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
3839 this, and adjust.
3840 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3841 Extend.
3842
3843 2022-03-10 Hafiz Abid Qadeer <abidh@codesourcery.com>
3844
3845 * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
3846 trait. Test last index in w and v array. Remove redundant
3847 assignment to V(1). Move alignment checks at the end of
3848 parallel region.
3849
3850 2022-03-10 Tom de Vries <tdevries@suse.de>
3851
3852 * testsuite/libgomp.c/pr104783.c: New test.
3853
3854 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
3855
3856 PR middle-end/90115
3857 PR middle-end/102330
3858 PR middle-end/104774
3859 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3860 Enhance.
3861 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3862 Adjust.
3863 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3864 Likewise.
3865 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3866 Likewise.
3867 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3868 Likewise.
3869 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3870 Likewise.
3871 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3872 Likewise.
3873 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3874 Likewise.
3875 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3876 Likewise.
3877 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3878 Likewise.
3879 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3880 Likewise.
3881 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3882 Likewise.
3883 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3884 Likewise.
3885 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3886 Likewise.
3887 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
3888 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3889 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3890
3891 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
3892
3893 PR middle-end/90115
3894 * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
3895 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
3896 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
3897 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
3898
3899 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3900
3901 PR testsuite/104791
3902 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
3903 expected diagnostics.
3904
3905 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3906
3907 PR middle-end/104784
3908 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3909 Test with '--param=openacc-kernels=decompose'.
3910 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3911 Likewise.
3912 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3913 Likewise.
3914 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3915 Likewise.
3916 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3917 Likewise.
3918 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3919 Likewise.
3920 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3921 Likewise.
3922 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3923 Likewise.
3924 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3925 Likewise.
3926 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3927 Likewise.
3928 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3929 Likewise.
3930 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3931 Likewise.
3932 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3933 Likewise.
3934 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3935 Likewise.
3936 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3937 Likewise.
3938 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3939 Likewise.
3940 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3941 Likewise.
3942 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3943 Likewise.
3944 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3945 Likewise.
3946 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3947 Likewise.
3948 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3949 Likewise.
3950 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3951 Likewise.
3952 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3953 Likewise.
3954 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3955 Likewise.
3956 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3957 Likewise.
3958 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3959 Likewise.
3960 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3961 Likewise.
3962 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3963 Likewise.
3964 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3965 Likewise.
3966 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3967 Likewise.
3968 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3969 Likewise.
3970 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3971 Likewise.
3972 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3973 Likewise.
3974
3975 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3976
3977 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3978 Test '-fopt-info-omp-all'.
3979 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3980 Likewise.
3981 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3982 Likewise.
3983 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3984 Likewise.
3985 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3986 Likewise.
3987 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3988 Likewise.
3989 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3990 Likewise.
3991 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3992 Likewise.
3993 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3994 Likewise.
3995 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3996 Likewise.
3997 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3998 Likewise.
3999 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4000 Likewise.
4001 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4002 Likewise.
4003 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
4004 Likewise.
4005 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4006 Likewise.
4007 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4008 Likewise.
4009 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4010 Likewise.
4011 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4012 Likewise.
4013 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4014 Likewise.
4015 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4016 Likewise.
4017 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4018 Likewise.
4019 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4020 Likewise.
4021 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4022 Likewise.
4023 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4024 Likewise.
4025 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
4026 Likewise.
4027 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
4028 Likewise.
4029 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
4030 Likewise.
4031 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
4032 Likewise.
4033 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
4034 Likewise.
4035 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
4036 Likewise.
4037 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
4038 Likewise.
4039 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
4040 Likewise.
4041 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
4042 Likewise.
4043
4044 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
4045
4046 PR middle-end/100280
4047 PR middle-end/104132
4048 PR middle-end/104133
4049 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4050 Extend.
4051
4052 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
4053
4054 PR middle-end/100280
4055 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
4056 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4057 Likewise.
4058
4059 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
4060
4061 PR middle-end/100280
4062 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
4063 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4064 Likewise.
4065
4066 2022-02-28 Tom de Vries <tdevries@suse.de>
4067
4068 * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
4069 * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
4070 * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
4071 * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
4072 * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
4073 * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
4074
4075 2022-02-24 Tom de Vries <tdevries@suse.de>
4076
4077 * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
4078 * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
4079 * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
4080 * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
4081 * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
4082 * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
4083 * testsuite/libgomp.c/declare-variant-3.h: New header file.
4084
4085 2022-02-22 Thomas Schwinge <thomas@codesourcery.com>
4086
4087 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
4088 gang-redundant execution.
4089
4090 2022-02-22 Tom de Vries <tdevries@suse.de>
4091
4092 PR target/99555
4093 * config/nvptx/bar.c (generation_to_barrier): New function, copied
4094 from config/rtems/bar.c.
4095 (futex_wait, futex_wake): New function.
4096 (do_spin, do_wait): New function, copied from config/linux/wait.h.
4097 (gomp_barrier_wait_end, gomp_barrier_wait_last)
4098 (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
4099 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
4100 and replace with include of config/linux/bar.c.
4101 * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
4102 (gomp_barrier_init): Init new fields.
4103 * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
4104 workarounds.
4105 * testsuite/libgomp.c/pr99555-1.c: Same.
4106 * testsuite/libgomp.fortran/task-detach-6.f90: Same.
4107
4108 2022-02-22 Tom de Vries <tdevries@suse.de>
4109
4110 PR testsuite/104146
4111 * testsuite/libgomp.c++/pr96390.C: Add additional-option
4112 -foffload=-Wa,--verify for nvptx.
4113 * testsuite/libgomp.c-c++-common/pr96390.c: Same.
4114
4115 2022-02-15 Tobias Burnus <tobias@codesourcery.com>
4116
4117 * testsuite/libgomp.fortran/depend-4.f90: New test.
4118
4119 2022-02-10 Tobias Burnus <tobias@codesourcery.com>
4120
4121 PR c++/102204
4122 * testsuite/libgomp.c++/target-virtual-1.C: New test.
4123
4124 2022-02-10 Marcel Vollweiler <marcel@codesourcery.com>
4125
4126 * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
4127 * target.c (copy_firstprivate_data): Copy only if host address is not
4128 NULL.
4129 * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
4130 * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
4131 * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
4132 * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
4133 * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
4134 * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
4135 * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
4136 * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
4137 * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
4138 * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
4139
4140 2022-02-08 Jakub Jelinek <jakub@redhat.com>
4141
4142 PR libgomp/104385
4143 * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
4144 clear task->parent.
4145 * testsuite/libgomp.c/pr104385.c: New test.
4146
4147 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
4148
4149 * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
4150 STOP of previous commit.
4151
4152 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
4153
4154 * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
4155 from is_64bit_aligned_.
4156 * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
4157 and use it, more implicit none, remove unused argument.
4158
4159 2022-02-03 David Seifert <soap@gentoo.org>
4160 Jakub Jelinek <jakub@redhat.com>
4161
4162 * configure.ac: Support --disable-werror.
4163 * configure: Regenerate.
4164
4165 2022-02-01 Tom de Vries <tdevries@suse.de>
4166
4167 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
4168 PR83812 workaround.
4169 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
4170 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
4171
4172 2022-02-01 Tom de Vries <tdevries@suse.de>
4173
4174 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
4175 num_workers for nvidia accelerator to fix libgomp error 'insufficient
4176 resources'.
4177 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
4178 Same.
4179 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
4180
4181 2022-02-01 Tom de Vries <tdevries@suse.de>
4182
4183 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
4184 recursion depth.
4185 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
4186
4187 2022-01-31 Martin Liska <mliska@suse.cz>
4188
4189 * acinclude.m4: Detect *_ld_is_mold and use it.
4190 * configure: Regenerate.
4191
4192 2022-01-27 Tobias Burnus <tobias@codesourcery.com>
4193
4194 * libgomp.texi (OpenMP 5.0): Update implementation status.
4195
4196 2022-01-21 Thomas Schwinge <thomas@codesourcery.com>
4197
4198 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
4199 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
4200 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4201 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4202 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
4203 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4204 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4205 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4206 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
4207 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4208 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
4209 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
4210 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
4211 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
4212 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
4213
4214 2022-01-19 Marcel Vollweiler <marcel@codesourcery.com>
4215
4216 * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
4217 "static") to make the device num available in the offload image.
4218
4219 2022-01-19 Martin Liska <mliska@suse.cz>
4220 Thomas Schwinge <thomas@codesourcery.com>
4221
4222 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
4223 patterns.
4224 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4225 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
4226 Likewise.
4227 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
4228 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4229 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4230 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
4231 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
4232 Likewise.
4233 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
4234 Likewise.
4235 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
4236 Likewise.
4237 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
4238 Likewise.
4239 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
4240 Likewise.
4241 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
4242 Likewise.
4243 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4244 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4245 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4246
4247 2022-01-18 Martin Liska <mliska@suse.cz>
4248
4249 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
4250 in dg-warning.
4251 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4252 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
4253 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
4254 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4255 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4256 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
4257 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
4258 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
4259 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
4260 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
4261 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
4262 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
4263 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4264 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4265 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4266
4267 2022-01-17 Thomas Schwinge <thomas@codesourcery.com>
4268
4269 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
4270 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4271 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4272
4273 2022-01-17 Julian Brown <julian@codesourcery.com>
4274 Thomas Schwinge <thomas@codesourcery.com>
4275
4276 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
4277 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
4278 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
4279
4280 2022-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
4281 Andrew Stubbs <ams@codesourcery.com>
4282
4283 * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
4284 the number of teams and threads if necessary.
4285 (gcn_exec): Automatically set the number of gangs and workers if
4286 necessary.
4287
4288 2022-01-13 Hafiz Abid Qadeer <abidh@codesourcery.com>
4289
4290 * testsuite/libgomp.fortran/allocate-1.c: New test.
4291 * testsuite/libgomp.fortran/allocate-1.f90: New test.
4292 * libgomp.texi: Remove string that says that allocate clause
4293 support is for C/C++ only.
4294
4295 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4296
4297 * testsuite/libgomp.c-c++-common/on_device_arch.h
4298 (any_device_arch, any_device_arch_intel_mic): New.
4299 * testsuite/lib/libgomp.exp
4300 (check_effective_target_offload_device_any_intel_mic): New.
4301 * testsuite/libgomp.c-c++-common/target-45.c: Use it.
4302 * testsuite/libgomp.fortran/target10.f90: Likewise.
4303
4304 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4305
4306 PR tree-optimization/102192
4307 * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
4308 '-Wuninitialized' diagnostics.
4309
4310 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4311
4312 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
4313 current '-Wuninitialized' diagnostics.
4314 * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
4315 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
4316 * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
4317 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
4318 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4319 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
4320 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
4321 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4322 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4323 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4324 * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
4325 Likewise.
4326
4327 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4328
4329 * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
4330 for 'offload_device_intel_mic'.
4331
4332 2022-01-13 Julian Brown <julian@codesourcery.com>
4333 Thomas Schwinge <thomas@codesourcery.com>
4334
4335 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
4336 offloading execution XFAIL.
4337
4338 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4339
4340 PR middle-end/100280
4341 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4342 Update.
4343 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
4344 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4345 Likewise.
4346
4347 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4348
4349 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4350 Enhance.
4351 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
4352 Likewise.
4353 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
4354 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
4355 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
4356 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
4357 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4358 Likewise.
4359 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4360 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
4361 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
4362 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
4363
4364 2022-01-04 Tobias Burnus <tobias@codesourcery.com>
4365
4366 * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
4367 * testsuite/libgomp.fortran/target10.f90: Likewise.
4368
4369 2022-01-04 Chung-Lin Tang <cltang@codesourcery.com>
4370
4371 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
4372 into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
4373 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
4374
4375 2022-01-03 Jakub Jelinek <jakub@redhat.com>
4376
4377 * libgomp.texi: Bump @copying's copyright year.
4378
4379 2021-12-13 Tobias Burnus <tobias@codesourcery.com>
4380
4381 * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
4382 * testsuite/libgomp.fortran/atomic-19.f90: New test.
4383
4384 2021-12-10 Andrew Stubbs <ams@codesourcery.com>
4385
4386 * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
4387 (GOMP_OFFLOAD_load_image): Locate the offload variables via the
4388 table, not individual symbols.
4389
4390 2021-12-09 Chung-Lin Tang <cltang@codesourcery.com>
4391
4392 * testsuite/libgomp.c++/target-lambda-1.C: Only run under
4393 "target offload_device_nonshared_as"
4394 * testsuite/libgomp.c++/target-this-3.C: Likewise.
4395 * testsuite/libgomp.c++/target-this-4.C: Likewise.
4396
4397 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
4398
4399 * target.c (gomp_map_vars_existing): Make sure attached pointer is
4400 not overwritten during cross-host/device copying.
4401 (gomp_update): Likewise.
4402 (gomp_exit_data): Likewise.
4403 * testsuite/libgomp.c++/target-11.C: Adjust testcase.
4404 * testsuite/libgomp.c++/target-12.C: Likewise.
4405 * testsuite/libgomp.c++/target-15.C: Likewise.
4406 * testsuite/libgomp.c++/target-16.C: Likewise.
4407 * testsuite/libgomp.c++/target-17.C: Likewise.
4408 * testsuite/libgomp.c++/target-21.C: Likewise.
4409 * testsuite/libgomp.c++/target-23.C: Likewise.
4410 * testsuite/libgomp.c/target-23.c: Likewise.
4411 * testsuite/libgomp.c/target-29.c: Likewise.
4412 * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
4413
4414 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
4415
4416 PR middle-end/92120
4417 * libgomp.h (gomp_attach_pointer): Add bool parameter.
4418 * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
4419 (goacc_enter_data_internal): Likewise.
4420 * target.c (gomp_map_vars_existing): Update assert condition to
4421 include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
4422 (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
4423 parameter, add support for mapping a pointer with NULL target.
4424 (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
4425 parameter, add support for attaching a pointer with NULL target.
4426 (gomp_map_vars_internal): Update calls to gomp_map_pointer and
4427 gomp_attach_pointer, add handling for
4428 GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
4429 GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
4430 * testsuite/libgomp.c++/target-23.C: New testcase.
4431 * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
4432 * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
4433 * testsuite/libgomp.c++/target-this-1.C: New testcase.
4434 * testsuite/libgomp.c++/target-this-2.C: New testcase.
4435 * testsuite/libgomp.c++/target-this-3.C: New testcase.
4436 * testsuite/libgomp.c++/target-this-4.C: New testcase.
4437 * testsuite/libgomp.c++/target-this-5.C: New testcase.
4438
4439 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
4440
4441 * libgomp.texi (OpenMP 5.1): Update status.
4442
4443 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
4444
4445 * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
4446
4447 2021-12-02 Chung-Lin Tang <cltang@codesourcery.com>
4448
4449 PR fortran/90030
4450 * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
4451 * testsuite/libgomp.fortran/pr90030.f90: New test.
4452
4453 2021-11-30 Kwok Cheung Yeung <kcy@codesourcery.com>
4454 Thomas Schwinge <thomas@codesourcery.com>
4455
4456 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
4457 temporary skip.
4458
4459 2021-11-30 Cesar Philippidis <cesar@codesourcery.com>
4460 Thomas Schwinge <thomas@codesourcery.com>
4461
4462 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
4463 skip.
4464
4465 2021-11-29 Richard Biener <rguenther@suse.de>
4466
4467 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
4468 return.
4469
4470 2021-11-24 Jakub Jelinek <jakub@redhat.com>
4471
4472 PR middle-end/103384
4473 * testsuite/libgomp.c/declare-variant-2.c: New test.
4474
4475 2021-11-18 David Edelsohn <dje.gcc@gmail.com>
4476
4477 * alloc.c (gomp_aligned_alloc): Fix typo.
4478
4479 2021-11-18 Jakub Jelinek <jakub@redhat.com>
4480
4481 PR libgomp/102838
4482 * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
4483 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
4484 (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
4485 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4486 * work.c (alloc_work_share, gomp_work_share_start): Likewise.
4487 * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
4488 gomp_aligned_alloc instead of team_malloc.
4489
4490 2021-11-18 Jakub Jelinek <jakub@redhat.com>
4491
4492 PR libgomp/102838
4493 * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
4494 memalign over posix_memalign over aligned_alloc over fallback
4495 with malloc instead of aligned_alloc over _aligned_alloc over
4496 posix_memalign over memalign over fallback with malloc. For
4497 aligned_alloc, round up size up to multiple of al.
4498
4499 2021-11-16 Jakub Jelinek <jakub@redhat.com>
4500
4501 * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
4502 construct as implemented.
4503
4504 2021-11-15 Tobias Burnus <tobias@codesourcery.com>
4505
4506 * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
4507
4508 2021-11-15 Jakub Jelinek <jakub@redhat.com>
4509
4510 * task.c (gomp_create_target_task): Copy args array as well.
4511 * target.c (gomp_target_fallback): Add args argument.
4512 Set gomp_icv (true)->thread_limit_var if thread_limit is present.
4513 (GOMP_target): Adjust gomp_target_fallback caller.
4514 (GOMP_target_ext): Likewise.
4515 (gomp_target_task_fn): Likewise.
4516 * config/nvptx/team.c (gomp_nvptx_main): Set
4517 gomp_global_icv.thread_limit_var.
4518 * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
4519
4520 2021-11-15 Jakub Jelinek <jakub@redhat.com>
4521
4522 * config/nvptx/team.c (__gomp_team_num): Define as
4523 __attribute__((shared)) var.
4524 (gomp_nvptx_main): Initialize __gomp_team_num to 0.
4525 * config/nvptx/target.c (__gomp_team_num): Declare as
4526 extern __attribute__((shared)) var.
4527 (GOMP_teams4): Use __gomp_team_num as the team number instead of
4528 %ctaid.x. If first, initialize it to %ctaid.x. If num_teams_lower
4529 is bigger than num_blocks, use num_teams_lower teams and arrange for
4530 bumping of __gomp_team_num if !first and returning false once we run
4531 out of teams.
4532 * config/nvptx/teams.c (__gomp_team_num): Declare as
4533 extern __attribute__((shared)) var.
4534 (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
4535
4536 2021-11-15 Jakub Jelinek <jakub@redhat.com>
4537
4538 * testsuite/libgomp.c/teams-5.c: New test.
4539
4540 2021-11-12 Jakub Jelinek <jakub@redhat.com>
4541
4542 PR target/103201
4543 * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
4544 to ...
4545 * config/gcn/teams.c: ... here. New file.
4546
4547 2021-11-12 Chung-Lin Tang <cltang@codesourcery.com>
4548
4549 * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
4550 implicit map handling to allow a "superset" existing map as valid case.
4551 (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
4552 (get_implicit): New function to extract implicit status.
4553 (gomp_map_fields_existing): Adjust arguments in calls to
4554 gomp_map_vars_existing, and add uses of get_implicit.
4555 (gomp_map_vars_internal): Likewise.
4556 * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
4557
4558 2021-11-12 Jakub Jelinek <jakub@redhat.com>
4559
4560 * libgomp_g.h (GOMP_teams4): Declare.
4561 * libgomp.map (GOMP_5.1): Export GOMP_teams4.
4562 * target.c (GOMP_teams4): New function.
4563 * config/nvptx/target.c (GOMP_teams): Remove.
4564 (GOMP_teams4): New function.
4565 * config/gcn/target.c (GOMP_teams): Remove.
4566 (GOMP_teams4): New function.
4567 * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
4568 teams instead of <= 2.
4569 * testsuite/libgomp.c-c++-common/teams-2.c: New test.
4570
4571 2021-11-11 Tobias Burnus <tobias@codesourcery.com>
4572
4573 * testsuite/libgomp.fortran/teams-1.f90: New test.
4574
4575 2021-11-11 Jakub Jelinek <jakub@redhat.com>
4576
4577 * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
4578 * team.c (struct gomp_thread_start_data): Likewise.
4579 (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
4580 (gomp_team_start): Initialize start_data->num_teams and
4581 start_data->team_num. Update nthr->num_teams and nthr->team_num.
4582 * teams.c (gomp_num_teams, gomp_team_num): Remove.
4583 (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
4584 instead of gomp_num_teams and gomp_team_num.
4585 (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
4586 (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
4587 * testsuite/libgomp.c/teams-4.c: New test.
4588
4589 2021-11-11 Jakub Jelinek <jakub@redhat.com>
4590
4591 * testsuite/libgomp.c-c++-common/teams-1.c: New test.
4592
4593 2021-11-09 Thomas Schwinge <thomas@codesourcery.com>
4594
4595 * env.c (parse_gomp_openacc_dim): Restore parsing.
4596
4597 2021-10-30 Tobias Burnus <tobias@codesourcery.com>
4598
4599 PR middle-end/102972
4600 * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
4601 parallel construct.
4602 * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
4603 * testsuite/libgomp.c/target-3.c: Likewise.
4604 * testsuite/libgomp.c/target-5.c: Likewise.
4605 * testsuite/libgomp.c/target-6.c: Likewise.
4606 * testsuite/libgomp.c/target-teams-1.c: Likewise.
4607 * testsuite/libgomp.c/teams-1.c: Likewise.
4608 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
4609 * testsuite/libgomp.c/thread-limit-3.c: Likewise.
4610 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
4611 * testsuite/libgomp.c/thread-limit-5.c: Likewise.
4612 * testsuite/libgomp.fortran/icv-3.f90: Likewise.
4613 * testsuite/libgomp.fortran/icv-4.f90: Likewise.
4614 * testsuite/libgomp.fortran/teams1.f90: Likewise.
4615
4616 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
4617
4618 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
4619 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
4620
4621 2021-10-27 Jakub Jelinek <jakub@redhat.com>
4622
4623 * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
4624 aren't implemented for Fortran yet.
4625
4626 2021-10-27 Jakub Jelinek <jakub@redhat.com>
4627
4628 * testsuite/libgomp.c/loop-26.c: New test.
4629 * testsuite/libgomp.c/loop-27.c: New test.
4630
4631 2021-10-25 Tobias Burnus <tobias@codesourcery.com>
4632
4633 PR testsuite/102910
4634 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
4635 instead of #include <alloca.h> + alloca.
4636
4637 2021-10-21 Chung-Lin Tang <cltang@codesourcery.com>
4638
4639 * libgomp.texi (Support of strictly structured blocks in Fortran):
4640 Adjust to 'Y'.
4641 * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
4642
4643 2021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
4644
4645 * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
4646 * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
4647
4648 2021-10-20 Jakub Jelinek <jakub@redhat.com>
4649
4650 PR libgomp/102838
4651 * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
4652 (struct gomp_work_share): Only use aligned(64) attribute if
4653 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
4654 add padding before lock to ensure lock is at offset 64 bytes
4655 into the structure.
4656 (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
4657 New poor man's static assertions.
4658 * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
4659 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4660
4661 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
4662 Richard Biener <rguenther@suse.de>
4663
4664 * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
4665
4666 2021-10-18 Jakub Jelinek <jakub@redhat.com>
4667
4668 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
4669 && gomp_places_list_len < count after nfirst <= nlast loop condition.
4670
4671 2021-10-18 Tobias Burnus <tobias@codesourcery.com>
4672
4673 PR fortran/102086
4674 PR fortran/92189
4675 PR fortran/92621
4676 PR fortran/101308
4677 PR fortran/101309
4678 PR fortran/101635
4679 PR fortran/92482
4680 * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
4681
4682 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4683
4684 * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
4685 type from char [50] to const char *.
4686 (places_array): Add a testcase for simplified syntax place followed
4687 by length or length and stride.
4688
4689 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4690
4691 * env.c (parse_one_place): Handle non-negative-number the same
4692 as { non-negative-number }. Reject even !number:1 and
4693 !number:1:stride or !place:1 or !place:1:stride instead of just
4694 length other than 1.
4695 * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
4696 and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
4697 omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
4698 as implemented.
4699 * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
4700 simplified syntax.
4701
4702 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4703
4704 * env.c (parse_schedule): For strtoul or strtoull calls which don't
4705 clearly reject return value 0 as invalid handle the case where end
4706 pointer is the same as first argument as invalid.
4707 (parse_unsigned_long_1): Likewise.
4708 (parse_one_place): Likewise.
4709 (parse_places_var): Likewise.
4710 (parse_stacksize): Likewise.
4711 (parse_spincount): Likewise.
4712 (parse_affinity): Likewise.
4713 (parse_gomp_openacc_dim): Likewise. Avoid strict aliasing violation.
4714 Make code valid C89.
4715 * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
4716 For strtoul calls which don't clearly reject return value 0 as
4717 invalid handle the case where end pointer is the same as first
4718 argument as invalid.
4719 (gomp_affinity_init_level_1): Likewise.
4720 (gomp_affinity_init_numa_domains): Likewise.
4721 * config/rtems/proc.c (parse_thread_pools): Likewise.
4722
4723 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4724
4725 * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
4726 after creating count places clean up and return immediately.
4727 * testsuite/libgomp.c/places-6.c: New test.
4728 * testsuite/libgomp.c/places-7.c: New test.
4729 * testsuite/libgomp.c/places-8.c: New test.
4730 * testsuite/libgomp.c/places-9.c: New test.
4731 * testsuite/libgomp.c/places-10.c: New test.
4732
4733 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4734
4735 * env.c (parse_places_var): Handle numa_domains as level 5.
4736 * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
4737 function.
4738 (gomp_affinity_init_level): Use it instead of
4739 gomp_affinity_init_level_1 for level == 5.
4740 * testsuite/libgomp.c/places-5.c: New test.
4741
4742 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4743
4744 * env.c (parse_places_var): Handle ll_caches as level 4.
4745 * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
4746 function.
4747 (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
4748 last level cache.
4749 (gomp_affinity_init_level): Likewise.
4750 * testsuite/libgomp.c/places-1.c: New test.
4751 * testsuite/libgomp.c/places-2.c: New test.
4752 * testsuite/libgomp.c/places-3.c: New test.
4753 * testsuite/libgomp.c/places-4.c: New test.
4754
4755 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
4756
4757 * libgomp.texi (OpenMP 5.0): Update entry for declare variant
4758 directive.
4759
4760 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
4761
4762 * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
4763
4764 2021-10-12 Julian Brown <julian@codesourcery.com>
4765
4766 * target.c (gomp_copy_host2dev): Release device lock on cbuf
4767 error path.
4768
4769 2021-10-12 Tobias Burnus <tobias@codesourcery.com>
4770
4771 * testsuite/libgomp.fortran/icv-3.f90: New.
4772 * testsuite/libgomp.fortran/icv-4.f90: New.
4773
4774 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4775
4776 * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
4777 omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
4778 OMP_TEAMS_THREAD_LIMIT): Document.
4779
4780 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4781
4782 * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
4783 to avoid makeinfo warnings.
4784
4785 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4786
4787 * testsuite/libgomp.c-c++-common/icv-3.c: New test.
4788 * testsuite/libgomp.c-c++-common/icv-4.c: New test.
4789
4790 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4791
4792 PR libgomp/102628
4793 PR libgomp/102668
4794 * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
4795 allocation sizes from 420 to 320 and from 768 to 568.
4796 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
4797 * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
4798 for cr from 16 to 4.
4799
4800 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4801
4802 * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
4803 * testsuite/libgomp.c/scan-12.c: Likewise.
4804 * testsuite/libgomp.c/scan-13.c: Likewise.
4805 * testsuite/libgomp.c/scan-14.c: Likewise.
4806 * testsuite/libgomp.c/scan-15.c: Likewise.
4807 * testsuite/libgomp.c/scan-16.c: Likewise.
4808 * testsuite/libgomp.c/scan-17.c: Likewise.
4809 * testsuite/libgomp.c/scan-18.c: Likewise.
4810 * testsuite/libgomp.c/scan-19.c: Likewise.
4811 * testsuite/libgomp.c/scan-20.c: Likewise.
4812 * testsuite/libgomp.c/scan-21.c: Likewise.
4813 * testsuite/libgomp.c/scan-22.c: Likewise.
4814 * testsuite/libgomp.c++/scan-9.C: Likewise.
4815 * testsuite/libgomp.c++/scan-10.C: Likewise.
4816 * testsuite/libgomp.c++/scan-11.C: Likewise.
4817 * testsuite/libgomp.c++/scan-12.C: Likewise.
4818 * testsuite/libgomp.c++/scan-13.C: Likewise.
4819 * testsuite/libgomp.c++/scan-14.C: Likewise.
4820 * testsuite/libgomp.c++/scan-15.C: Likewise.
4821 * testsuite/libgomp.c++/scan-16.C: Likewise.
4822
4823 2021-10-12 Kewen Lin <linkw@linux.ibm.com>
4824
4825 * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
4826
4827 2021-10-11 Marcel Vollweiler <marcel@codesourcery.com>
4828
4829 * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
4830 omp_atv_serialized.
4831 * omp.h.in: Add deprecated flag for omp_atv_sequential.
4832 * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
4833 * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
4834 * testsuite/libgomp.fortran/alloc-12.f90: New test.
4835
4836 2021-10-11 Jakub Jelinek <jakub@redhat.com>
4837
4838 * omp.h.in (omp_set_num_teams, omp_get_max_teams,
4839 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4840 * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
4841 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4842 * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
4843 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4844 * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
4845 * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
4846 omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
4847 omp_set_teams_thread_limit{,_,_8_}.
4848 * icv.c (omp_set_num_teams, omp_get_max_teams,
4849 omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
4850 functions.
4851 * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
4852 (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
4853 (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
4854 vars.
4855 * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
4856 gomp_teams_thread_limit_var as fallback if not zero. If num_teams
4857 is not specified, use gomp_nteams_var.
4858 * fortran.c (omp_set_num_teams, omp_get_max_teams,
4859 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
4860 ialias_redirect.
4861 (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
4862 omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
4863 omp_get_teams_thread_limit_): New functions.
4864
4865 2021-10-09 liuhongt <hongtao.liu@intel.com>
4866
4867 * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
4868 * testsuite/libgomp.c++/scan-11.C: Ditto.
4869 * testsuite/libgomp.c++/scan-12.C: Ditto.
4870 * testsuite/libgomp.c++/scan-13.C: Ditto.
4871 * testsuite/libgomp.c++/scan-14.C: Ditto.
4872 * testsuite/libgomp.c++/scan-15.C: Ditto.
4873 * testsuite/libgomp.c++/scan-16.C: Ditto.
4874 * testsuite/libgomp.c++/scan-9.C: Ditto.
4875 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
4876 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
4877 * testsuite/libgomp.c/scan-11.c: Ditto.
4878 * testsuite/libgomp.c/scan-12.c: Ditto.
4879 * testsuite/libgomp.c/scan-13.c: Ditto.
4880 * testsuite/libgomp.c/scan-14.c: Ditto.
4881 * testsuite/libgomp.c/scan-15.c: Ditto.
4882 * testsuite/libgomp.c/scan-16.c: Ditto.
4883 * testsuite/libgomp.c/scan-17.c: Ditto.
4884 * testsuite/libgomp.c/scan-18.c: Ditto.
4885 * testsuite/libgomp.c/scan-19.c: Ditto.
4886 * testsuite/libgomp.c/scan-20.c: Ditto.
4887 * testsuite/libgomp.c/scan-21.c: Ditto.
4888 * testsuite/libgomp.c/scan-22.c: Ditto.
4889
4890 2021-10-09 Jakub Jelinek <jakub@redhat.com>
4891
4892 * libgomp.texi (OpenMP 5.1): Mention implemented support for
4893 structured block sequences in C/C++. Mention support for
4894 unconstrained/reproducible modifiers on order clause.
4895 Mention partial (C/C++ only) support of extentensions to atomics
4896 construct. Mention partial (C/C++ on clause only) support of
4897 align/allocator modifiers on allocate clause.
4898
4899 2021-10-02 Tobias Burnus <tobias@codesourcery.com>
4900
4901 * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
4902 based on libgomp.c-c++-common/order-reproducible-1.c.
4903 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
4904 * testsuite/libgomp.fortran/my-usleep.c: New test.
4905
4906 2021-10-01 Tobias Burnus <tobias@codesourcery.com>
4907
4908 * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
4909 * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
4910 * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
4911 * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
4912 based on libgomp.c-c++-common/alloc-9.c.
4913
4914 2021-10-01 Jakub Jelinek <jakub@redhat.com>
4915
4916 * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
4917 * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
4918
4919 2021-10-01 Jakub Jelinek <jakub@redhat.com>
4920
4921 * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
4922 ialias_redirect.
4923 * env.c (handle_omp_display_env): Use ialias_call.
4924 * icv-device.c: Move ialias right below each function.
4925 (omp_get_device_num): Use ialias_call.
4926 * fortran.c (omp_fulfill_event): Add ialias_redirect.
4927 * icv.c (omp_get_active_level): Add ialias_redirect.
4928
4929 2021-10-01 Jakub Jelinek <jakub@redhat.com>
4930
4931 * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
4932 __alloc_align__ (1) attribute.
4933 * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
4934
4935 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
4936
4937 * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
4938 for -fintrinsic-modules-path= warning of the C compiler.
4939 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
4940 * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
4941
4942 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
4943
4944 * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
4945 omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
4946 * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
4947 omp_realloc): Add.
4948 * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
4949 omp_realloc): Add.
4950 * testsuite/libgomp.fortran/alloc-10.f90: New test.
4951 * testsuite/libgomp.fortran/alloc-6.f90: New test.
4952 * testsuite/libgomp.fortran/alloc-7.c: New test.
4953 * testsuite/libgomp.fortran/alloc-7.f90: New test.
4954 * testsuite/libgomp.fortran/alloc-8.f90: New test.
4955 * testsuite/libgomp.fortran/alloc-9.f90: New test.
4956
4957 2021-09-30 Jakub Jelinek <jakub@redhat.com>
4958
4959 * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
4960 omp_realloc): New prototypes.
4961 (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
4962 attribute.
4963 * allocator.c: Include string.h.
4964 (omp_aligned_alloc): No longer static, add ialias. Add new_alignment
4965 variable and use it instead of alignment so that when retrying the old
4966 alignment is used again. Don't retry if new alignment is the same
4967 as old alignment, unless allocator had pool size.
4968 (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
4969 (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
4970 * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
4971 omp_aligned_calloc and omp_realloc.
4972 * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
4973 omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
4974 * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
4975 * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
4976 * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
4977 * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
4978
4979 2021-09-28 Tobias Burnus <tobias@codesourcery.com>
4980
4981 PR libgomp/96661
4982 * configure.ac: Only check for int-type = 2*size_t support when
4983 building with Fortran support.
4984 * configure: Regenerate.
4985
4986 2021-09-28 Thomas Schwinge <thomas@codesourcery.com>
4987
4988 * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
4989 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4990
4991 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
4992
4993 * team.c: Initialize start_data.
4994 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
4995 * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
4996
4997 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
4998
4999 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
5000 dg-message back to dg-note.
5001
5002 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
5003
5004 PR fortran/94070
5005 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
5006 expected dg-note output.
5007
5008 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
5009
5010 PR fortran/55534
5011 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
5012 r12-3722 by removing -Wno-missing-include-dirs.
5013 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
5014
5015 2021-09-22 Jakub Jelinek <jakub@redhat.com>
5016
5017 * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
5018 * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
5019
5020 2021-09-21 Tobias Burnus <tobias@codesourcery.com>
5021
5022 PR fortran/55534
5023 * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
5024 to ALWAYS_CFLAGS.
5025 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5026
5027 2021-09-18 Jakub Jelinek <jakub@redhat.com>
5028
5029 * testsuite/libgomp.c++/default-1.C: New test.
5030 * testsuite/libgomp.c-c++-common/default-1.c: New test.
5031 * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
5032 to default clause in C and C++" as implemented.
5033
5034 2021-09-17 Julian Brown <julian@codesourcery.com>
5035
5036 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
5037
5038 2021-09-17 Julian Brown <julian@codesourcery.com>
5039
5040 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
5041
5042 2021-09-17 Jakub Jelinek <jakub@redhat.com>
5043
5044 * libgomp.texi (OpenMP 5.1): Spelling fix,
5045 declare variante -> declare variant.
5046
5047 2021-09-17 Jakub Jelinek <jakub@redhat.com>
5048
5049 * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
5050 Use /* */ comments instead of //.
5051 * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
5052 * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
5053 * testsuite/libgomp.c++/atomic-16.C: New test.
5054 * testsuite/libgomp.c++/atomic-17.C: New test.
5055
5056 2021-09-10 Jakub Jelinek <jakub@redhat.com>
5057
5058 * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
5059 * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
5060 * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
5061
5062 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
5063
5064 * libgomp.texi (OpenMP Implementation Status): Extend
5065 OpenMP 5.0 section.
5066 (OpenACC Profiling Interface): Fix typo.
5067
5068 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
5069
5070 * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
5071 not to 4.5; link to new section.
5072 (OpenMP Implementation Status): New.
5073
5074 2021-09-06 Thomas Schwinge <thomas@codesourcery.com>
5075
5076 * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
5077
5078 2021-09-03 Tobias Burnus <tobias@codesourcery.com>
5079
5080 * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
5081 dg-output.
5082 * testsuite/libgomp.fortran/error-1.f90: Likewise.
5083
5084 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
5085 Jakub Jelinek <jakub@redhat.com>
5086
5087 * testsuite/libgomp.c/address-space-1.c: New file.
5088
5089 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
5090
5091 * testsuite/lib/libgomp.exp
5092 (check_effective_target_offload_target_intelmic): Remove 'proc'.
5093 (check_effective_target_offload_device_intel_mic): New 'proc'.
5094 * testsuite/libgomp.c-c++-common/on_device_arch.h
5095 (device_arch_intel_mic, on_device_arch_intel_mic): New.
5096 * testsuite/libgomp.c-c++-common/target-45.c: Use that for
5097 'dg-xfail-run-if'.
5098 * testsuite/libgomp.fortran/target10.f90: Likewise.
5099
5100 2021-08-23 Tobias Burnus <tobias@codesourcery.com>
5101
5102 * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
5103 * testsuite/libgomp.fortran/taskloop-4.f90: New test.
5104 * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
5105 * testsuite/libgomp.fortran/taskloop-5.f90: New test.
5106
5107 2021-08-23 Jakub Jelinek <jakub@redhat.com>
5108
5109 * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
5110 * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
5111 * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
5112
5113 2021-08-22 Thomas Schwinge <thomas@codesourcery.com>
5114
5115 * config/nvptx/error.c (fwrite, exit): Override, too.
5116 * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
5117 of offloading testing.
5118 * testsuite/libgomp.fortran/error-1.f90: Likewise.
5119
5120 2021-08-20 Tobias Burnus <tobias@codesourcery.com>
5121
5122 * testsuite/libgomp.fortran/error-1.f90: New test.
5123
5124 2021-08-20 Jakub Jelinek <jakub@redhat.com>
5125
5126 * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
5127 * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
5128 * error.c (GOMP_warning, GOMP_error): New functions.
5129 * testsuite/libgomp.c-c++-common/error-1.c: New test.
5130
5131 2021-08-18 Tobias Burnus <tobias@codesourcery.com>
5132
5133 * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
5134 omp_target_free. omp_target_is_present, omp_target_memcpy,
5135 omp_target_memcpy_rect, omp_target_associate_ptr,
5136 omp_target_disassociate_ptr): Add interface.
5137 * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
5138 omp_target_free. omp_target_is_present, omp_target_memcpy,
5139 omp_target_memcpy_rect, omp_target_associate_ptr,
5140 omp_target_disassociate_ptr): Add interface.
5141 * testsuite/libgomp.fortran/alloc-1.F90: Remove local
5142 interface block for omp_alloc + omp_free.
5143 * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
5144 * testsuite/libgomp.fortran/refcount-1.f90: New test.
5145 * testsuite/libgomp.fortran/target-12.f90: New test.
5146
5147 2021-08-18 Jakub Jelinek <jakub@redhat.com>
5148
5149 * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
5150
5151 2021-08-17 Tobias Burnus <tobias@codesourcery.com>
5152
5153 * testsuite/libgomp.fortran/scope-1.f90: New test.
5154 * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
5155
5156 2021-08-17 Jakub Jelinek <jakub@redhat.com>
5157
5158 * Makefile.am (libgomp_la_SOURCES): Add scope.c
5159 * Makefile.in: Regenerated.
5160 * libgomp_g.h (GOMP_scope_start): Declare.
5161 * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
5162 * scope.c: New file.
5163 * testsuite/libgomp.c-c++-common/scope-1.c: New test.
5164 * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
5165
5166 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
5167
5168 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
5169 '?:' issues.
5170
5171 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
5172
5173 * testsuite/libgomp.fortran/masked-1.f90: New test.
5174
5175 2021-08-13 Thomas Schwinge <thomas@codesourcery.com>
5176
5177 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
5178
5179 2021-08-12 Jakub Jelinek <jakub@redhat.com>
5180
5181 * testsuite/libgomp.c-c++-common/masked-1.c: New test.
5182
5183 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
5184
5185 * env.c (parse_bind_var): Accept 'primary' as alias for
5186 'master'.
5187 (omp_display_env): Add TODO comment to
5188 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
5189 * libgomp.texi: Change 'master thread' to 'primary thread'
5190 in line with OpenMP 5.1.
5191 (omp_get_proc_bind): Add omp_proc_bind_primary and note that
5192 omp_proc_bind_master is an alias of it.
5193 (OMP_PROC_BIND): Mention 'PRIMARY'.
5194 * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
5195 (omp_proc_bind_primary): Add.
5196 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
5197 * omp_lib.f90.in (omp_proc_bind_primary): Add.
5198 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
5199 * omp_lib.h.in (omp_proc_bind_primary): Add.
5200 * testsuite/libgomp.c/affinity-1.c: Check that
5201 'primary' works and is identical to 'master'.
5202
5203 2021-08-09 Julian Brown <julian@codesourcery.com>
5204 Kwok Cheung Yeung <kcy@codesourcery.com>
5205 Thomas Schwinge <thomas@codesourcery.com>
5206
5207 * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
5208 16.
5209 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
5210 [acc_device_radeon]: Update.
5211 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
5212 [ACC_DEVICE_TYPE_radeon]: Likewise.
5213 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5214 [acc_device_radeon]: Likewise.
5215 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
5216 [ACC_DEVICE_TYPE_radeon]: Likewise.
5217 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
5218 'openacc_radeon_accel_selected' and '-O0'.
5219 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
5220
5221 2021-08-05 Chung-Lin Tang <cltang@codesourcery.com>
5222
5223 * icv-device.c (omp_get_device_num): New API function, host side.
5224 * fortran.c (omp_get_device_num_): New interface function.
5225 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
5226 * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
5227 omp_get_device_num_.
5228 * libgomp.texi (omp_get_device_num): Add documentation for new API
5229 function.
5230 * omp.h.in (omp_get_device_num): Add declaration.
5231 * omp_lib.f90.in (omp_get_device_num): Likewise.
5232 * omp_lib.h.in (omp_get_device_num): Likewise.
5233 * target.c (gomp_load_image_to_device): If additional entry for device
5234 number exists at end of returned entries from 'load_image_func' hook,
5235 copy the assigned device number over to the device variable.
5236 * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
5237 (omp_get_device_num): New API function, device side.
5238 * plugin/plugin-gcn.c ("symcat.h"): Add include.
5239 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
5240 at end of returned 'target_table' entries.
5241 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
5242 (omp_get_device_num): New API function, device side.
5243 * plugin/plugin-nvptx.c ("symcat.h"): Add include.
5244 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
5245 at end of returned 'target_table' entries.
5246 * testsuite/lib/libgomp.exp
5247 (check_effective_target_offload_target_intelmic): New function for
5248 testing for intelmic offloading.
5249 * testsuite/libgomp.c-c++-common/target-45.c: New test.
5250 * testsuite/libgomp.fortran/target10.f90: New test.
5251
5252 2021-07-30 Thomas Schwinge <thomas@codesourcery.com>
5253 Ulrich Drepper <drepper@redhat.com>
5254
5255 * fortran.c (omp_display_env_, omp_display_env_8_): Only
5256 '#ifndef LIBGOMP_OFFLOADED_ONLY'.
5257
5258 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
5259 Julian Brown <julian@codesourcery.com>
5260 Kwok Cheung Yeung <kcy@codesourcery.com>
5261
5262 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
5263 's%oaccdevlow%oaccloops%g'.
5264 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
5265 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
5266 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
5267 Likewise.
5268 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
5269 Likewise.
5270 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
5271 Likewise.
5272 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
5273 Likewise.
5274 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
5275 Likewise.
5276 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
5277 Likewise.
5278 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
5279 Likewise.
5280 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
5281 Likewise.
5282 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
5283
5284 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
5285
5286 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
5287 threader.
5288 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
5289
5290 2021-07-27 Ulrich Drepper <drepper@gmail.com>
5291
5292 * env.c (wait_policy, stacksize): New static variables,
5293 move out of handle_omp_display_env.
5294 (omp_display_env): New function. The meat of the old
5295 handle_omp_display_env function.
5296 (handle_omp_display_env): Change to not take parameters
5297 and instead use the global variables. Only perform
5298 parsing, defer to omp_display_env for the implementation.
5299 (initialize_env): Remove local variables wait_policy and
5300 stacksize. Don't pass parameters to handle_omp_display_env.
5301 * fortran.c: Add ialias_redirect for omp_display_env.
5302 (omp_display_env_, omp_display_env_8_): New functions.
5303 * libgomp.map (OMP_5.1): New version. Add omp_display_env,
5304 omp_display_env_, and omp_display_env_8_.
5305 * omp.h.in: Declare omp_display_env.
5306 * omp_lib.f90.in: Likewise.
5307 * omp_lib.h.in: Likewise.
5308
5309 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5310 Julian Brown <julian@codesourcery.com>
5311
5312 * target.c (gomp_coalesce_buf_add): Update comment.
5313 (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
5314 'aq && cbuf'.
5315 (gomp_map_vars_internal): Only 'if (!aq)', do
5316 'gomp_coalesce_buf_add'.
5317 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
5318 XFAIL.
5319
5320 2021-07-27 Julian Brown <julian@codesourcery.com>
5321 Thomas Schwinge <thomas@codesourcery.com>
5322
5323 * libgomp.h (gomp_copy_host2dev): Update prototype.
5324 * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
5325 argument to gomp_copy_host2dev (false).
5326 * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
5327 (copy_data): Don't free src.
5328 (queue_push_copy): Remove free_src handling.
5329 (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
5330 (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
5331 snapshotting.
5332 (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
5333 queue_push_copy.
5334 * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
5335 (gomp_copy_host2dev): Add EPHEMERAL parameter. Snapshot source
5336 data when true, and set up deferred freeing of temporary buffer.
5337 (gomp_copy_dev2host): Update call to goacc_device_copy_async.
5338 (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
5339 (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
5340 calls to gomp_copy_host2dev with appropriate ephemeral argument.
5341 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
5342 XFAIL.
5343
5344 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5345 Tom de Vries <tom@codesourcery.com>
5346
5347 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
5348 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
5349
5350 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5351
5352 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
5353 sequencing of 'async' data copying vs. profiling events.
5354 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
5355 Likewise.
5356
5357 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5358 Julian Brown <julian@codesourcery.com>
5359
5360 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
5361 'async'/'wait' issue.
5362 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
5363 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
5364 * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
5365
5366 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
5367 Joseph Myers <joseph@codesourcery.com>
5368 Cesar Philippidis <cesar@codesourcery.com>
5369
5370 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
5371 file.
5372 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
5373 Likewise.
5374 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
5375 Likewise.
5376 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
5377
5378 2021-07-20 Thomas Schwinge <thomas@codesourcery.com>
5379
5380 PR target/101484
5381 * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
5382 '-Wno-error=array-bounds'.
5383 * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
5384 * libgomp.h [__AMDGCN__]: Likewise.
5385
5386 2021-07-19 Thomas Schwinge <thomas@codesourcery.com>
5387
5388 PR target/101484
5389 * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
5390 * libgomp.h [__AMDGCN__]: Likewise.
5391
5392 2021-07-13 Jakub Jelinek <jakub@redhat.com>
5393 Florian Weimer <fweimer@redhat.com>
5394
5395 * config/linux/sem.h: Don't include limits.h.
5396 (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
5397 * config/linux/affinity.c: Include limits.h.
5398
5399 2021-07-01 Jakub Jelinek <jakub@redhat.com>
5400
5401 PR middle-end/94366
5402 * testsuite/libgomp.c-c++-common/pr94366.c: New test.
5403
5404 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
5405
5406 PR other/67300
5407 * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
5408 -foffload=nvptx-none= by -foffload-options=nvptx-none= to
5409 avoid disabling other offload targets.
5410 * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
5411 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5412 * testsuite/libgomp.c/target-44.c: Likewise.
5413
5414 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
5415
5416 * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
5417 target has shared memory and disable some scalar pointer/allocatable
5418 checks if not as firstprivate does not work.
5419
5420 2021-06-25 Chung-Lin Tang <cltang@codesourcery.com>
5421
5422 PR testsuite/101114
5423 * testsuite/libgomp.c-c++-common/struct-elem-5.c:
5424 Add "target offload_device_nonshared_as" condition for enabling test.
5425
5426 2021-06-24 Jakub Jelinek <jakub@redhat.com>
5427
5428 * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
5429 * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
5430 * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
5431 * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
5432
5433 2021-06-23 Jakub Jelinek <jakub@redhat.com>
5434
5435 PR middle-end/101167
5436 * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
5437
5438 2021-06-17 Chung-Lin Tang <cltang@codesourcery.com>
5439
5440 * hashtab.h (htab_clear): New function with initialization code
5441 factored out from...
5442 (htab_create): ...here, adjust to use htab_clear function.
5443 * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
5444 special refcount values, add comments.
5445 (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
5446 (REFCOUNT_LINK): Likewise.
5447 (REFCOUNT_STRUCTELEM): New special refcount range for structure
5448 element siblings.
5449 (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
5450 sibling maps.
5451 (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
5452 (REFCOUNT_STRUCTELEM_FLAG_LAST): Flag to indicate last sibling.
5453 (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
5454 (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
5455 (struct splay_tree_key_s): Add structelem_refcount and
5456 structelem_refcount_ptr fields into a union with dynamic_refcount.
5457 Add comments.
5458 (gomp_map_vars): Delete declaration.
5459 (gomp_map_vars_async): Likewise.
5460 (gomp_unmap_vars): Likewise.
5461 (gomp_unmap_vars_async): Likewise.
5462 (goacc_map_vars): New declaration.
5463 (goacc_unmap_vars): Likewise.
5464 * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
5465 (goacc_enter_datum): Likewise.
5466 (goacc_enter_data_internal): Likewise.
5467 * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
5468 and goacc_unmap_vars.
5469 (GOACC_data_start): Adjust to use goacc_map_vars.
5470 (GOACC_data_end): Adjust to use goacc_unmap_vars.
5471 * target.c (hash_entry_type): New typedef.
5472 (htab_alloc): New function hook for hashtab.h.
5473 (htab_free): Likewise.
5474 (htab_hash): Likewise.
5475 (htab_eq): Likewise.
5476 (hashtab.h): Add file include.
5477 (gomp_increment_refcount): New function.
5478 (gomp_decrement_refcount): Likewise.
5479 (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
5480 gomp_increment_refcount.
5481 (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
5482 to gomp_map_vars_existing.
5483 (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
5484 variable to guard OpenMP specific paths, adjust calls to
5485 gomp_map_vars_existing, add structure element sibling splay_tree_key
5486 sequence creation code, adjust Fortran map case to avoid increment
5487 under OpenMP.
5488 (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
5489 local refcount_set if caller passed in NULL, adjust call to
5490 gomp_map_vars_internal.
5491 (gomp_map_vars_async): Adjust and rename into...
5492 (goacc_map_vars): ...this new function, adjust call to
5493 gomp_map_vars_internal.
5494 (gomp_remove_splay_tree_key): New function with code factored out from
5495 gomp_remove_var_internal.
5496 (gomp_remove_var_internal): Add code to handle removing multiple
5497 splay_tree_key sequence for structure elements, adjust code to use
5498 gomp_remove_splay_tree_key for splay-tree key removal.
5499 (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
5500 gomp_decrement_refcount.
5501 (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
5502 local refcount_set if caller passed in NULL, adjust call to
5503 gomp_unmap_vars_internal.
5504 (gomp_unmap_vars_async): Adjust and rename into...
5505 (goacc_unmap_vars): ...this new function, adjust call to
5506 gomp_unmap_vars_internal.
5507 (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
5508 gomp_unmap_vars.
5509 (GOMP_target_ext): Likewise.
5510 (gomp_target_data_fallback): Adjust call to gomp_map_vars.
5511 (GOMP_target_data): Likewise.
5512 (GOMP_target_data_ext): Likewise.
5513 (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
5514 (gomp_exit_data): Add refcount_set parameter, adjust to use
5515 gomp_decrement_refcount, adjust to queue splay-tree keys for removal
5516 after main loop.
5517 (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
5518 gomp_map_vars and gomp_exit_data.
5519 (gomp_target_task_fn): Likewise.
5520 * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
5521 * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
5522 * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
5523 * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
5524 * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
5525 * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
5526
5527 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
5528
5529 PR fortran/92568
5530 * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
5531
5532 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
5533 Thomas Schwinge <thomas@codesourcery.com>
5534
5535 * libgomp.map (GOACC_2.0.2): New symbol version.
5536 * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
5537 * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
5538
5539 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
5540 Andrew Stubbs <ams@codesourcery.com>
5541
5542 * oacc-mem.c (goacc_enter_exit_data_internal): New function,
5543 extracted from...
5544 (GOACC_enter_exit_data): ... here.
5545 (GOACC_declare): Use it.
5546
5547 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
5548
5549 * oacc-parallel.c (GOACC_declare): Move...
5550 * oacc-mem.c: ... here.
5551 * libgomp_g.h: Adjust.
5552
5553 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
5554 Thomas Schwinge <thomas@codesourcery.com>
5555
5556 * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
5557 handling.
5558
5559 2021-06-10 Jakub Jelinek <jakub@redhat.com>
5560
5561 PR tree-optimization/100981
5562 * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
5563 dsdotr and dsdoti to 0.
5564
5565 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
5566
5567 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
5568 if atomic compare-and-swap is supported on 'int'.
5569
5570 2021-06-09 Richard Biener <rguenther@suse.de>
5571
5572 PR tree-optimization/100981
5573 * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
5574
5575 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5576
5577 * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
5578 unconditionally.
5579 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
5580 Update.
5581 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5582 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5583
5584 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5585
5586 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
5587 '-DACC_MEM_SHARED=0'.
5588 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
5589 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5590 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5591 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5592 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5593 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
5594 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5595 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5596 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5597 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5598 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
5599 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
5600 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
5601 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
5602 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
5603 'acc_device_radeon' testing.
5604 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
5605 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
5606 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
5607 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
5608 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5609 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5610 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
5611 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
5612 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
5613 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
5614 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
5615 for non-'openacc_nvidia_accel_selected'.
5616 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5617 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
5618 all implement this checking".
5619 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
5620 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
5621 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
5622 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
5623 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
5624
5625 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5626
5627 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
5628 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
5629
5630 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5631
5632 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
5633 for 'acc_device_radeon'.
5634
5635 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5636
5637 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
5638 for non-'acc_device_nvidia'.
5639
5640 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5641
5642 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
5643 'acc_device_radeon' testing.
5644 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5645 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5646 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5647
5648 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5649
5650 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
5651 require 'openacc_nvidia_accel_selected'. Fix up for
5652 'ACC_DEVICE_TYPE_radeon'.
5653
5654 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5655
5656 * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
5657 'openacc_nvidia_accel_selected'.
5658 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
5659
5660 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5661
5662 * testsuite/lib/libgomp.exp
5663 (check_effective_target_openacc_radeon_accel_selected):
5664 Streamline.
5665
5666 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5667
5668 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
5669 PR80547 workaround.
5670
5671 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5672
5673 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5674 <acc_device_nvidia>: Update comment.
5675
5676 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
5677
5678 * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
5679
5680 2021-05-27 Jakub Jelinek <jakub@redhat.com>
5681
5682 * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
5683 check_effective_target_openacc_cublas,
5684 check_effective_target_openacc_cudart): New.
5685 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
5686 target openacc_cublas.
5687 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
5688 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
5689 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
5690 target openacc_cuda.
5691 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
5692 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
5693 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
5694 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
5695 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
5696 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
5697 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
5698 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
5699 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
5700 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
5701 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
5702 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
5703 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
5704 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
5705 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
5706 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
5707 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
5708 targets openacc_cublas and openacc_cudart.
5709 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
5710 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
5711 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
5712 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
5713 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
5714 Require effective target openacc_cudart.
5715 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
5716 for effective target openacc_cuda and add && defined USE_CUDA_H to
5717 preprocessor conditionals. Guard -lcuda also on openacc_cuda
5718 effective target.
5719
5720 2021-05-26 Jakub Jelinek <jakub@redhat.com>
5721
5722 PR libgomp/100573
5723 * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
5724 GOMP_target_end_data, GOMP_target_update_ext,
5725 GOMP_target_enter_exit_data): New dummy entrypoints.
5726 * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
5727 GOMP_target_end_data, GOMP_target_update_ext,
5728 GOMP_target_enter_exit_data): Likewise.
5729 * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
5730 OMPFROM, OMPTO): Define.
5731 (main): Remove #pragma omp target teams around all the tests.
5732 * testsuite/libgomp.c-c++-common/target-41.c: New test.
5733 * testsuite/libgomp.c-c++-common/target-42.c: New test.
5734
5735 2021-05-25 Jakub Jelinek <jakub@redhat.com>
5736
5737 PR middle-end/99928
5738 * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
5739
5740 2021-05-24 Tobias Burnus <tobias@codesourcery.com>
5741
5742 PR fortran/86470
5743 * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
5744 * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
5745 * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
5746
5747 2021-05-22 Thomas Schwinge <thomas@codesourcery.com>
5748
5749 PR testsuite/90115
5750 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
5751 uninteresting/varying diagnostics.
5752
5753 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
5754
5755 PR middle-end/90115
5756 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
5757 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5758
5759 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
5760
5761 PR middle-end/90115
5762 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
5763 file.
5764 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5765 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
5766 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5767 Likewise.
5768 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
5769 Likewise.
5770 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
5771 Likewise.
5772 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
5773 Likewise.
5774 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
5775 Likewise.
5776 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
5777 Likewise.
5778 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
5779 Likewise.
5780 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
5781 Likewise.
5782 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
5783 Likewise.
5784 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
5785 Likewise.
5786 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
5787 Likewise.
5788 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
5789 Likewise.
5790 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
5791 Likewise.
5792 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
5793 Likewise.
5794 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
5795 Likewise.
5796 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
5797 Likewise.
5798 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
5799 Likewise.
5800 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
5801 Likewise.
5802 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
5803 Likewise.
5804 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
5805 Likewise.
5806 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
5807 Likewise.
5808 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5809 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5810 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5811 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
5812 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5813 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5814 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5815 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5816 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5817 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5818 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5819 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5820 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5821 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5822 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5823 Likewise.
5824 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
5825 Likewise.
5826 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
5827 Likewise.
5828 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5829 Likewise.
5830 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5831 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
5832 Likewise.
5833 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5834 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5835 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5836 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5837 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
5838 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5839 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
5840 Likewise.
5841 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
5842 Likewise.
5843 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
5844 Likewise.
5845 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
5846 Likewise.
5847 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
5848 Likewise.
5849 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
5850 Likewise.
5851 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
5852 Likewise.
5853 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
5854 Likewise.
5855 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
5856 Likewise.
5857 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
5858 Likewise.
5859 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
5860 Likewise.
5861 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
5862 Likewise.
5863 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
5864 Likewise.
5865 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
5866 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5867 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
5868 Likewise.
5869 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
5870 Likewise.
5871 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5872 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5873 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
5874
5875 2021-05-21 Julian Brown <julian@codesourcery.com>
5876 Chung-Lin Tang <cltang@codesourcery.com>
5877 Thomas Schwinge <thomas@codesourcery.com>
5878
5879 PR middle-end/90115
5880 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
5881 test.
5882 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
5883 Likewise.
5884 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
5885 Likewise.
5886
5887 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
5888
5889 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
5890 for nvptx offloading.
5891
5892 2021-05-21 Tobias Burnus <tobias@codesourcery.com>
5893
5894 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
5895
5896 2021-05-19 Thomas Schwinge <thomas@codesourcery.com>
5897
5898 PR target/83812
5899 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
5900
5901 2021-05-19 Julian Brown <julian@codesourcery.com>
5902
5903 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
5904
5905 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
5906
5907 * testsuite/lib/libgomp.exp
5908 (check_effective_target_offload_target_nvptx): Don't shadow global
5909 'offload_targets' variable.
5910
5911 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
5912
5913 * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
5914 '-latomic' to nvptx offloading compilation.
5915 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5916
5917 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
5918
5919 * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
5920 offloading compilation.
5921
5922 2021-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
5923
5924 * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
5925 if new tasks generated.
5926 * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
5927
5928 2021-05-14 Tobias Burnus <tobias@codesourcery.com>
5929
5930 * testsuite/libgomp.fortran/parallel-master.f90: New test.
5931
5932 2021-05-13 Martin Liska <mliska@suse.cz>
5933
5934 PR testsuite/100569
5935 * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
5936 * testsuite/libgomp.c/pr46032-2.c: Likewise.
5937 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
5938 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
5939
5940 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
5941
5942 * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
5943 * testsuite/libgomp.fortran/task-detach-12.f90: New test.
5944
5945 2021-05-11 Jakub Jelinek <jakub@redhat.com>
5946
5947 PR middle-end/100471
5948 * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
5949 GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
5950 reduction pointer.
5951 * testsuite/libgomp.c/task-reduction-4.c: New test.
5952
5953 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
5954 Tom de Vries <tdevries@suse.de>
5955
5956 * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
5957 complex/floating-point || + && reduction with 'omp target'.
5958 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5959
5960 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
5961
5962 * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
5963 * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
5964 * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
5965 * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
5966
5967 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
5968
5969 PR testsuite/100397
5970 * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
5971 declaration to scope of non-'depend'-guarded assignment to avoid races.
5972
5973 2021-05-03 Tom de Vries <tdevries@suse.de>
5974
5975 PR target/100321
5976 * testsuite/libgomp.c/target-44.c: New test.
5977
5978 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
5979
5980 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
5981
5982 2021-04-29 Tom de Vries <tdevries@suse.de>
5983
5984 * testsuite/libgomp.c/pr81778.c: New test.
5985
5986 2021-04-29 Tom de Vries <tdevries@suse.de>
5987
5988 PR target/100232
5989 * testsuite/libgomp.c/target-43.c: New file.
5990
5991 2021-04-28 Jakub Jelinek <jakub@redhat.com>
5992 Tobias Burnus <tobias@codesourcery.com>
5993
5994 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
5995 * target.c (gomp_load_plugin_for_device): If set and if a plugin
5996 can't be dlopened, silently assume it has no devices.
5997 * Makefile.in: Regenerate.
5998 * config.h.in: Regenerate.
5999 * configure: Regenerate.
6000
6001 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
6002
6003 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
6004 Use [Ww]arning in dg-bogus as FE diagnostic and default
6005 diagnostic differ and the result depends on ENABLE_OFFLOAD.
6006 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
6007 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6008 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6009
6010 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
6011
6012 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
6013 Correct spelling in dg-bogus to match -Wopenacc-parallelism.
6014 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
6015 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6016 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6017
6018 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
6019 Nathan Sidwell <nathan@codesourcery.com>
6020 Tom de Vries <vries@codesourcery.com>
6021 Julian Brown <julian@codesourcery.com>
6022 Kwok Cheung Yeung <kcy@codesourcery.com>
6023
6024 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
6025 '-Wopenacc-parallelism', and match diagnostics, as appropriate.
6026 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
6027 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6028 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6029 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
6030 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
6031 Likewise.
6032 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
6033 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6034 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
6035 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
6036 Likewise.
6037 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
6038 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
6039 Likewise.
6040 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6041 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
6042 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
6043 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
6044 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
6045 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
6046 Likewise.
6047 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
6048 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
6049 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
6050 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6051 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6052 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
6053 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
6054 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
6055 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
6056 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6057 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
6058
6059 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
6060
6061 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
6062 compile with '-w'.
6063 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6064 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
6065 Likewise.
6066 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6067 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
6068 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6069 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
6070 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
6071 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6072 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
6073
6074 2021-04-22 Richard Biener <rguenther@suse.de>
6075
6076 * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
6077 only on nvptx-none.
6078
6079 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
6080
6081 * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
6082 omp_depend_kind instead of defining it as 16.
6083
6084 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
6085
6086 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
6087 New, based on check_effective_target_offload_target_nvptx.
6088 (check_effective_target_offload_target_nvptx): Call it.
6089 (check_effective_target_offload_target_amdgcn): New.
6090 * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
6091 Require target offload_target_nvptx || offload_target_amdgcn.
6092 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
6093 * testsuite/libgomp.c/pr86416-1.c: Likewise.
6094 * testsuite/libgomp.c/pr86416-2.c: Likewise.
6095
6096 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
6097
6098 * testsuite/libgomp.fortran/depobj-1.f90: New test.
6099
6100 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
6101
6102 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
6103 '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
6104 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
6105 Likewise.
6106 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6107 Likewise.
6108 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6109
6110 2021-04-15 Thomas Schwinge <thomas@codesourcery.com>
6111
6112 PR target/99555
6113 * testsuite/lib/libgomp.exp
6114 (check_effective_target_offload_device_nvptx): New.
6115 * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
6116 resolved, make sure that we exit quickly, with error status,
6117 XFAILed.
6118 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
6119 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
6120
6121 2021-04-14 Jakub Jelinek <jakub@redhat.com>
6122
6123 PR testsuite/100071
6124 * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
6125 cp = omp_alloc with cp, p arguments instead of cq, q and call
6126 c_f_pointer after last cq = omp_alloc with cq, q.
6127
6128 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
6129
6130 PR middle-end/98088
6131 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
6132 for loop with GT/GE condition.
6133 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
6134
6135 2021-04-09 Thomas Schwinge <thomas@codesourcery.com>
6136
6137 PR middle-end/84991
6138 PR middle-end/84992
6139 PR middle-end/90779
6140 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
6141
6142 2021-04-09 Jakub Jelinek <jakub@redhat.com>
6143
6144 PR libgomp/99984
6145 * team.c (gomp_thread_start): Call pthread_setspecific for
6146 !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
6147 has been initialized to avoid false positive warning.
6148
6149 2021-03-29 Tobias Burnus <tobias@codesourcery.com>
6150
6151 PR target/99555
6152 * testsuite/lib/on_device_arch.c: Move to ...
6153 * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
6154 * testsuite/libgomp.fortran/on_device_arch.c: New file;
6155 #include on_device_arch.h.
6156 * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
6157 on_device_arch.h instead of using dg-additional-source.
6158 * testsuite/libgomp.c/pr99555-1.c: Likewise.
6159 * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
6160 on_device_arch.c without relative paths.
6161
6162 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
6163
6164 * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
6165 the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
6166 * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
6167 * config.h.in: Regenerate.
6168 * configure: Likewise.
6169
6170 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
6171
6172 PR target/99555
6173 * testsuite/lib/on_device_arch.c: New file.
6174 * testsuite/libgomp.c/pr99555-1.c: Likewise.
6175 * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
6176 skip for nvptx offloading, with error status.
6177 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
6178
6179 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
6180
6181 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
6182 OpenACC 'serial' construct diagnostic for nvptx offloading.
6183
6184 2021-03-15 Tobias Burnus <tobias@codesourcery.com>
6185
6186 PR c++/99509
6187 * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
6188
6189 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
6190
6191 PR fortran/98858
6192 * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
6193
6194 2021-03-04 Jakub Jelinek <jakub@redhat.com>
6195
6196 * configure.ac: Add AC_CHECK_SIZEOF([void *]).
6197 * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
6198 checking of -m32 or -mx32 options on the command line.
6199 * config.h.in: Regenerated.
6200 * configure: Regenerated.
6201
6202 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
6203
6204 * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
6205 support from the target.
6206
6207 2021-02-25 Kwok Cheung Yeung <kcy@codesourcery.com>
6208 Jakub Jelinek <jakub@redhat.com>
6209
6210 PR libgomp/98738
6211 * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
6212 (struct gomp_task): Replace detach and completion_sem fields with
6213 union containing completion_sem and detach_team. Add deferred_p
6214 field.
6215 (struct gomp_team): Remove task_detach_queue.
6216 * task.c: Include assert.h.
6217 (gomp_init_task): Initialize deferred_p and completion_sem fields.
6218 Rearrange initialization order of fields.
6219 (task_fulfilled_p): Delete.
6220 (GOMP_task): Use address of task as the event handle. Remove
6221 initialization of detach field. Initialize deferred_p field.
6222 Use automatic local for completion_sem. Initialize detach_team field
6223 for deferred tasks.
6224 (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
6225 Set kind of suspended detach task to GOMP_TASK_DETACHED and
6226 decrement task_running_count. Move finish_cancelled block out of
6227 else branch. Relocate call to gomp_team_barrier_done.
6228 (GOMP_taskwait): Handle tasks with completion events that have not
6229 been fulfilled.
6230 (GOMP_taskgroup_end): Likewise.
6231 (omp_fulfill_event): Use address of task as event handle. Post to
6232 completion_sem for undeferred tasks. Clear detach_team if task
6233 has not finished. For finished tasks, handle post-execution tasks,
6234 call gomp_team_barrier_wake if necessary, and free task.
6235 * team.c (gomp_new_team): Remove initialization of task_detach_queue.
6236 (free_team): Remove free of task_detach_queue.
6237 * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
6238 * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
6239 * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
6240 * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
6241 * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
6242 Change data-sharing of detach events on enclosing parallel to private.
6243 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise. Remove
6244 taskwait directive.
6245 * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
6246 * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
6247 * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
6248 * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
6249 * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
6250 * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
6251 * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
6252 * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
6253 * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
6254 * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
6255 Change data-sharing of detach events on enclosing parallel to private.
6256 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise. Remove
6257 taskwait directive.
6258 * testsuite/libgomp.fortran/task-detach-7.f90: New.
6259 * testsuite/libgomp.fortran/task-detach-8.f90: New.
6260 * testsuite/libgomp.fortran/task-detach-9.f90: New.
6261 * testsuite/libgomp.fortran/task-detach-10.f90: New.
6262 * testsuite/libgomp.fortran/task-detach-11.f90: New.
6263
6264 2021-02-22 Tobias Burnus <tobias@codesourcery.com>
6265
6266 PR fortran/99171
6267 * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
6268
6269 2021-02-17 Julian Brown <julian@codesourcery.com>
6270
6271 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
6272 expected errors.
6273
6274 2021-02-17 Julian Brown <julian@codesourcery.com>
6275
6276 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
6277 * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
6278
6279 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
6280
6281 * config/linux/x86/futex.h (__futex_wait):
6282 Revert output type back to long.
6283 (__futex_wake): Ditto.
6284 (futex_wait): Update for revert.
6285 (futex_wake): Ditto.
6286
6287 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
6288
6289 * config/linux/x86/futex.h (__futex_wait): New static inline
6290 wrapper function. Correct output type to int and
6291 timeout type to void *.
6292 (__futex_wake): New static inline wrapper function.
6293 Correct output type to int.
6294 (futex_wait): Use __futex_wait.
6295 (futex_wake): Use __futex_wake.
6296
6297 2021-02-10 Julian Brown <julian@codesourcery.com>
6298
6299 PR fortran/98979
6300 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
6301 errors.
6302
6303 2021-02-04 Julian Brown <julian@codesourcery.com>
6304
6305 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
6306
6307 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
6308
6309 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
6310 EF_AMDGPU_MACH_AMDGCN_GFX908.
6311 (gcn_gfx908_s): New constant string.
6312 (isa_hsa_name): Add gfx908.
6313 (isa_code): Add gfx908.
6314
6315 2021-01-25 Kwok Cheung Yeung <kcy@codesourcery.com>
6316
6317 * libgomp.texi (omp_fulfill_event): New entry.
6318
6319 2021-01-20 Jakub Jelinek <jakub@redhat.com>
6320
6321 * task.c (GOMP_task): Rename priority argument to priority_arg,
6322 add priority automatic variable and modify that variable. Instead of
6323 clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
6324 check flags for that bit.
6325
6326 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
6327
6328 PR fortran/98476
6329 * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
6330
6331 2021-01-18 Andreas Schwab <schwab@suse.de>
6332
6333 * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
6334
6335 2021-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
6336
6337 * config/rtems/sem.h (gomp_sem_getcount): New function.
6338
6339 2021-01-18 Jakub Jelinek <jakub@redhat.com>
6340
6341 * config/linux/sem.h (gomp_sem_getcount): New function.
6342 * config/posix/sem.h (gomp_sem_getcount): New function.
6343 * config/posix/sem.c (gomp_sem_getcount): New function.
6344 * config/accel/sem.h (gomp_sem_getcount): New function.
6345 * task.c (task_fulfilled_p): Use gomp_sem_getcount.
6346 (omp_fulfill_event): Likewise.
6347
6348 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
6349
6350 * fortran.c (omp_fulfill_event_): New.
6351 * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
6352 (struct gomp_team): Add task_detach_queue and task_detach_count
6353 fields.
6354 * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
6355 * libgomp_g.h (GOMP_task): Add extra argument.
6356 * omp.h.in (enum omp_event_handle_t): New.
6357 (omp_fulfill_event): New.
6358 * omp_lib.f90.in (omp_event_handle_kind): New.
6359 (omp_fulfill_event): New.
6360 * omp_lib.h.in (omp_event_handle_kind): New.
6361 (omp_fulfill_event): Declare.
6362 * priority_queue.c (priority_tree_find): New.
6363 (priority_list_find): New.
6364 (priority_queue_find): New.
6365 * priority_queue.h (priority_queue_predicate): New.
6366 (priority_queue_find): New.
6367 * task.c (gomp_init_task): Initialize detach field.
6368 (task_fulfilled_p): New.
6369 (GOMP_task): Add detach argument. Ignore detach argument if
6370 GOMP_TASK_FLAG_DETACH not set in flags. Initialize completion_sem
6371 field. Copy address of completion_sem into detach argument and
6372 into the start of the data record. Wait for detach event if task
6373 not deferred.
6374 (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
6375 Remove completed tasks and requeue dependent tasks.
6376 (omp_fulfill_event): New.
6377 * team.c (gomp_new_team): Initialize task_detach_queue and
6378 task_detach_count fields.
6379 (free_team): Free task_detach_queue field.
6380 * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
6381 * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
6382 * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
6383 * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
6384 * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
6385 * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
6386 * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
6387 * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
6388 * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
6389 * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
6390 * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
6391 * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
6392
6393 2021-01-15 Jakub Jelinek <jakub@redhat.com>
6394
6395 PR target/70454
6396 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
6397 be added through preprocessor check on
6398 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
6399
6400 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
6401
6402 PR libgomp/65099
6403 * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
6404 configurations.
6405 * configure: Regenerate.
6406 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
6407 check.
6408
6409 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
6410
6411 * configure: Re-generate.
6412
6413 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
6414
6415 * configure: Re-generate.
6416
6417 2021-01-05 Julian Brown <julian@codesourcery.com>
6418
6419 * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
6420 (struct ptx_device): Add omp_stacks struct.
6421 (nvptx_open_device): Initialise cached-stacks housekeeping info.
6422 (nvptx_close_device): Free cached stacks block and mutex.
6423 (nvptx_stacks_free): New function.
6424 (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
6425 (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
6426 (nvptx_stacks_alloc): Rename to...
6427 (nvptx_stacks_acquire): This. Cache stacks block between runs if same
6428 size or smaller is required.
6429 (nvptx_stacks_free): Remove.
6430 (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
6431 during kernel execution.
6432
6433 2021-01-01 Jakub Jelinek <jakub@redhat.com>
6434
6435 * libgomp.texi: Bump @copying's copyright year.
6436
6437 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
6438
6439 * libgomp.texi (Top): Avoid bad "up" link.
6440
6441 2020-12-18 Jakub Jelinek <jakub@redhat.com>
6442
6443 * testsuite/libgomp.c/task-6.c: New test.
6444
6445 2020-12-09 Andrew Stubbs <ams@codesourcery.com>
6446
6447 * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
6448 (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
6449
6450 2020-12-08 Tobias Burnus <tobias@codesourcery.com>
6451
6452 * testsuite/libgomp.fortran/scan-1.f90: New test.
6453
6454 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
6455
6456 PR target/97865
6457 * configure: Regenerate.
6458
6459 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
6460
6461 * configure: Regenerate.
6462
6463 2020-11-25 Thomas Schwinge <thomas@codesourcery.com>
6464
6465 * testsuite/libgomp.oacc-c++/cache-1.C: New.
6466 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
6467
6468 2020-11-25 Andrew Stubbs <ams@codesourcery.com>
6469
6470 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
6471 expected results.
6472
6473 2020-11-24 Andrew Stubbs <ams@codesourcery.com>
6474
6475 * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
6476 (reserved): Delete unused define.
6477
6478 2020-11-24 Thomas Schwinge <thomas@codesourcery.com>
6479
6480 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
6481 Tcl 8.5-specific behavior.
6482 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6483
6484 2020-11-18 Kwok Cheung Yeung <kcy@codesourcery.com>
6485
6486 * env.c (gomp_global_icv): Remove nest_var field. Add
6487 max_active_levels_var field.
6488 (gomp_max_active_levels_var): Remove.
6489 (parse_boolean): Return true on success.
6490 (handle_omp_display_env): Express OMP_NESTED in terms of
6491 max_active_levels_var. Change format specifier for
6492 max_active_levels_var.
6493 (initialize_env): Set max_active_levels_var from
6494 OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
6495 OMP_PROC_BIND.
6496 * icv.c (omp_set_nested): Express in terms of
6497 max_active_levels_var.
6498 (omp_get_nested): Likewise.
6499 (omp_set_max_active_levels): Use max_active_levels_var field instead
6500 of gomp_max_active_levels_var.
6501 (omp_get_max_active_levels): Likewise.
6502 * libgomp.h (struct gomp_task_icv): Remove nest_var field. Add
6503 max_active_levels_var field.
6504 (gomp_supported_active_levels): Set to UCHAR_MAX.
6505 (gomp_max_active_levels_var): Delete.
6506 * libgomp.texi (omp_get_nested): Update documentation.
6507 (omp_set_nested): Likewise.
6508 (OMP_MAX_ACTIVE_LEVELS): Likewise.
6509 (OMP_NESTED): Likewise.
6510 (OMP_NUM_THREADS): Likewise.
6511 (OMP_PROC_BIND): Likewise.
6512 * parallel.c (gomp_resolve_num_threads): Replace reference
6513 to nest_var with max_active_levels_var. Use max_active_levels_var
6514 field instead of gomp_max_active_levels_var.
6515
6516 2020-11-18 Tobias Burnus <tobias@codesourcery.com>
6517
6518 * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
6519 nvptx_usleep; use also for device={arch(gcn)}.
6520
6521 2020-11-14 Jakub Jelinek <jakub@redhat.com>
6522
6523 * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
6524 (foo): Add tests for non-VLA private and firstprivate clauses on
6525 omp task.
6526 (bar): Likewise. Remove taking of address from private/firstprivate
6527 variables.
6528 * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
6529 (foo): Add p, q, px and s arguments. Add tests for array reductions
6530 and for non-VLA private and firstprivate clauses on omp task.
6531 (bar): Removed.
6532 (main): Adjust foo caller. Don't call bar.
6533
6534 2020-11-13 Gergö Barany <gergo@codesourcery.com>
6535 Thomas Schwinge <thomas@codesourcery.com>
6536
6537 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
6538 New.
6539 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
6540 Likewise.
6541 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6542 Likewise.
6543 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
6544 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6545
6546 2020-11-13 Gergö Barany <gergo@codesourcery.com>
6547 Thomas Schwinge <thomas@codesourcery.com>
6548
6549 PR fortran/94358
6550 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
6551
6552 2020-11-13 Jakub Jelinek <jakub@redhat.com>
6553
6554 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
6555 for array reductions.
6556 (main): Adjust foo callers.
6557
6558 2020-11-12 Jakub Jelinek <jakub@redhat.com>
6559
6560 * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
6561 * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
6562 * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
6563 * allocator.c (omp_aligned_alloc): New for now static function,
6564 add alignment argument and handle it.
6565 (omp_alloc): Reimplement using omp_aligned_alloc.
6566 (GOMP_alloc, GOMP_free): New functions.
6567 (omp_free): Add ialias.
6568 * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
6569 * testsuite/libgomp.c++/allocate-1.C: New test.
6570
6571 2020-11-12 Thomas Schwinge <thomas@codesourcery.com>
6572
6573 PR fortran/97782
6574 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
6575
6576 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
6577
6578 * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
6579 usable.
6580 * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
6581 'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
6582 (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
6583 (goacc_enter_data_internal): Likewise.
6584 * target.c (gomp_map_vars_internal):
6585 Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
6586 of gomp_attach_pointer for OpenMP cases.
6587 (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
6588 (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
6589 * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
6590
6591 2020-11-05 Ulrich Drepper <drepper@redhat.com>
6592 Kwok Cheung Yeung <kcy@codesourcery.com>
6593
6594 * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
6595 * Makefile.in: Regenerate.
6596 * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
6597 pragmas to ignore -Wdeprecated-declarations warnings.
6598 * icv.c: Likewise.
6599 * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
6600 Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
6601 and omp_get_nested with __GOMP_DEPRECATED_5_0.
6602 * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
6603 deprecated.
6604 * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
6605 to test options.
6606 * testsuite/libgomp.c/affinity-1.c: Likewise.
6607 * testsuite/libgomp.c/affinity-2.c: Likewise.
6608 * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
6609 * testsuite/libgomp.c/lib-1.c: Likewise.
6610 * testsuite/libgomp.c/nested-1.c: Likewise.
6611 * testsuite/libgomp.c/nested-2.c: Likewise.
6612 * testsuite/libgomp.c/nested-3.c: Likewise.
6613 * testsuite/libgomp.c/pr32362-1.c: Likewise.
6614 * testsuite/libgomp.c/pr32362-2.c: Likewise.
6615 * testsuite/libgomp.c/pr32362-3.c: Likewise.
6616 * testsuite/libgomp.c/pr35549.c: Likewise.
6617 * testsuite/libgomp.c/pr42942.c: Likewise.
6618 * testsuite/libgomp.c/pr61200.c: Likewise.
6619 * testsuite/libgomp.c/sort-1.c: Likewise.
6620 * testsuite/libgomp.c/target-5.c: Likewise.
6621 * testsuite/libgomp.c/target-6.c: Likewise.
6622 * testsuite/libgomp.c/teams-1.c: Likewise.
6623 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
6624 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
6625 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
6626 * testsuite/libgomp.fortran/affinity1.f90: Likewise.
6627 * testsuite/libgomp.fortran/lib1.f90: Likewise.
6628 * testsuite/libgomp.fortran/lib2.f: Likewise.
6629 * testsuite/libgomp.fortran/nested1.f90: Likewise.
6630 * testsuite/libgomp.fortran/teams1.f90: Likewise.
6631
6632 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
6633
6634 PR target/85486
6635 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
6636 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
6637 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
6638
6639 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
6640
6641 PR testsuite/80219
6642 PR testsuite/85303
6643 * testsuite/lib/libgomp.exp (libgomp_init): Set
6644 'gcc_warning_prefix', 'gcc_error_prefix'.
6645
6646 2020-10-30 Jakub Jelinek <jakub@redhat.com>
6647
6648 * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
6649 even in field_tgt_clear initializer.
6650
6651 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6652
6653 * testsuite/libgomp.c/target-42.c: New test.
6654
6655 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6656 Tom de Vries <tdevries@suse.de>
6657
6658 PR testsuite/81690
6659 * testsuite/libgomp.c/usleep.h: New file.
6660 * testsuite/libgomp.c/target-32.c: Include usleep.h.
6661 (main): Use tgt_usleep instead of usleep.
6662 * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
6663 (main): Use tgt_usleep instead of usleep.
6664
6665 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6666
6667 PR lto/96680
6668 * testsuite/libgomp.c/declare-variant-1.c: New test.
6669
6670 2020-10-22 Jakub Jelinek <jakub@redhat.com>
6671
6672 * testsuite/libgomp.c/target-41.c: New test.
6673
6674 2020-10-22 Jakub Jelinek <jakub@redhat.com>
6675
6676 * icv.c (omp_get_initial_device): Remove including corresponding
6677 ialias.
6678 * icv-device.c (omp_get_initial_device): New function. Return
6679 gomp_get_num_devices (). Add ialias.
6680 * target.c (resolve_device): Don't fail with
6681 OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
6682 gomp_get_num_devices ().
6683 (omp_target_alloc, omp_target_free, omp_target_is_present,
6684 omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
6685 omp_target_disassociate_ptr, omp_pause_resource): Use
6686 gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
6687 first use in the functions, in uses dominated by the
6688 gomp_get_num_devices call use num_devices_openmp instead.
6689 * libgomp.texi (omp_get_initial_device): Document.
6690 * config/gcn/icv-device.c (omp_get_initial_device): New function.
6691 Add ialias.
6692 * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
6693 * testsuite/libgomp.c/target-40.c: New test.
6694
6695 2020-10-21 Jakub Jelinek <jakub@redhat.com>
6696
6697 * env.c (parse_target_offload): Change new_offload var type to int,
6698 preinitialize to -1, remove found var and test new_offload != -1
6699 instead of found.
6700
6701 2020-10-20 Jakub Jelinek <jakub@redhat.com>
6702
6703 * target.c (gomp_target_init): Inside of the function, use automatic
6704 variables corresponding to num_devices, num_devices_openmp and devices
6705 global variables and update the globals only at the end of the
6706 function.
6707
6708 2020-10-20 Kwok Cheung Yeung <kcy@codesourcery.com>
6709
6710 * env.c (gomp_target_offload_var): New.
6711 (parse_target_offload): New.
6712 (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
6713 (initialize_env): Parse OMP_TARGET_OFFLOAD.
6714 * libgomp.h (gomp_target_offload_t): New.
6715 (gomp_target_offload_var): New.
6716 * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
6717 * target.c (resolve_device): Generate error if device not found and
6718 offloading is mandatory.
6719 (gomp_target_fallback): Generate error if offloading is mandatory.
6720 (GOMP_target): Add argument in call to gomp_target_fallback.
6721 (GOMP_target_ext): Likewise.
6722 (gomp_target_data_fallback): Generate error if offloading is mandatory.
6723 (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
6724 (GOMP_target_data_ext): Likewise.
6725 (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
6726 (gomp_target_init): Return early if offloading is disabled.
6727
6728 2020-10-15 Kwok Cheung Yeung <kcy@codesourcery.com>
6729
6730 * libgomp.texi (omp_get_max_active_levels): Modify description.
6731 (omp_get_supported_active_levels): Make descriptions consistent.
6732
6733 2020-10-14 Jakub Jelinek <jakub@redhat.com>
6734
6735 * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
6736
6737 2020-10-13 Kwok Cheung Yeung <kcy@codesourcery.com>
6738
6739 * env.c (gomp_max_active_levels_var): Initialize to
6740 gomp_supported_active_levels.
6741 (initialize_env): Limit gomp_max_active_levels_var to be at most
6742 equal to gomp_supported_active_levels.
6743 * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
6744 (omp_get_supported_active_levels_): New.
6745 * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
6746 to at most equal to gomp_supported_active_levels.
6747 (omp_get_supported_active_levels): New.
6748 * libgomp.h (gomp_supported_active_levels): New.
6749 * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
6750 omp_get_supported_active_levels_.
6751 * libgomp.texi (omp_get_supported_active_levels): New.
6752 (omp_set_max_active_levels): Update. Add reference to
6753 omp_get_supported_active_levels.
6754 * omp.h.in (omp_get_supported_active_levels): New.
6755 * omp_lib.f90.in (omp_get_supported_active_levels): New.
6756 * omp_lib.h.in (omp_get_supported_active_levels): New.
6757 * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
6758 against omp_get_supported_active_levels.
6759 * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
6760
6761 2020-10-11 Clement Chigot <clement.chigot@atos.net>
6762
6763 * config/t-aix: Delete and recreate libgomp before creating
6764 FAT library.
6765
6766 2020-10-08 Tom de Vries <tdevries@suse.de>
6767
6768 PR libgomp/81802
6769 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
6770 dimensions.
6771
6772 2020-10-06 Tom de Vries <tdevries@suse.de>
6773
6774 * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
6775
6776 2020-10-06 Tom de Vries <tdevries@suse.de>
6777
6778 PR middle-end/90861
6779 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
6780
6781 2020-10-05 Tom de Vries <tdevries@suse.de>
6782
6783 PR fortran/95654
6784 * testsuite/libgomp.fortran/pr95654.f90: New test.
6785
6786 2020-10-02 Tobias Burnus <tobias@codesourcery.com>
6787
6788 * Makefile.in: Regenerate with automake 1.15.1.
6789 * aclocal.m4: Likewise.
6790 * configure: Likewise.
6791 * testsuite/Makefile.in: Likewise.
6792
6793 2020-09-30 Andrew Stubbs <ams@codesourcery.com>
6794
6795 * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
6796 and amdgcn targets.
6797
6798 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
6799
6800 * testsuite/libgomp.fortran/declare-target-3.f90: New test.
6801
6802 2020-09-29 Andrew Stubbs <ams@codesourcery.com>
6803
6804 * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
6805 total number of threads is one.
6806 (gomp_team_barrier_wake): Likewise.
6807 (gomp_team_barrier_wait_end): Likewise.
6808 (gomp_team_barrier_wait_cancel_end): Likewise.
6809 * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
6810 (gomp_team_barrier_wake): Likewise.
6811 (gomp_team_barrier_wait_end): Likewise.
6812 (gomp_team_barrier_wait_cancel_end): Likewise.
6813 * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
6814
6815 2020-09-28 Tobias Burnus <tobias@codesourcery.com>
6816
6817 PR middle-end/96390
6818 * testsuite/libgomp.c++/pr96390.C: New test.
6819 * testsuite/libgomp.c-c++-common/pr96390.c: New test.
6820
6821 2020-09-27 Clement Chigot <clement.chigot@atos.net>
6822
6823 * config/t-aix: Use $(AR) without -X32_64.
6824
6825 2020-09-25 Jakub Jelinek <jakub@redhat.com>
6826
6827 * testsuite/libgomp.c/loop-25.c: New test.
6828
6829 2020-09-22 Tobias Burnus <tobias@codesourcery.com>
6830
6831 PR fortran/95654
6832 * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
6833
6834 2020-09-22 Tom de Vries <tdevries@suse.de>
6835
6836 * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
6837 fails.
6838
6839 2020-09-16 Nathan Sidwell <nathan@acm.org>
6840
6841 * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
6842
6843 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
6844
6845 PR fortran/96668
6846 * target.c (gomp_map_vars_internal): Initialize has_nullptr.
6847
6848 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
6849
6850 PR fortran/96668
6851 * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
6852 * target.c (gomp_map_vars_existing): Add always_to_flag flag.
6853 (gomp_map_vars_existing): Update call to it.
6854 (gomp_map_fields_existing): Likewise
6855 (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
6856 now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
6857 remapped.
6858 (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
6859 GOMP_MAP_POINTER.
6860 * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
6861 * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
6862
6863 2020-09-14 Tom de Vries <tdevries@suse.de>
6864
6865 * config/nvptx/atomic.c: New file. Add
6866 __sync_val_compare_and_swap_16.
6867 * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
6868 target offload_target_nvptx.
6869
6870 2020-09-08 Julian Brown <julian@codesourcery.com>
6871
6872 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
6873 iteration-ordering assumptions.
6874
6875 2020-09-08 Julian Brown <julian@codesourcery.com>
6876
6877 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
6878 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
6879
6880 2020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
6881
6882 * plugin/plugin-nvptx.c (nvptx_free):
6883 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
6884 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
6885 comments.
6886
6887 2020-08-20 Tobias Burnus <tobias@codesourcery.com>
6888
6889 * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
6890
6891 2020-08-13 Kwok Cheung Yeung <kcy@codesourcery.com>
6892
6893 * testsuite/libgomp.c-c++-common/reduction-16.c: New.
6894
6895 2020-08-13 Jakub Jelinek <jakub@redhat.com>
6896
6897 * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
6898 * testsuite/libgomp.c/loop-23.c (main): Likewise.
6899 * testsuite/libgomp.c/loop-24.c: New test.
6900
6901 2020-08-08 Jakub Jelinek <jakub@redhat.com>
6902 Tobias Burnus <tobias@codesourcery.com>
6903
6904 PR fortran/93553
6905 * testsuite/libgomp.fortran/pr93553.f90: New test.
6906
6907 2020-08-05 Jakub Jelinek <jakub@redhat.com>
6908
6909 * testsuite/libgomp.c/loop-22.c: New test.
6910 * testsuite/libgomp.c/loop-23.c: New test.
6911
6912 2020-08-05 Jakub Jelinek <jakub@redhat.com>
6913
6914 PR middle-end/96459
6915 * testsuite/libgomp.c/teams-3.c: New test.
6916 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
6917 if not defined yet.
6918 (N(test)): Use it before all N(f*) calls.
6919 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
6920 (main): Don't call all test_* functions from within
6921 #pragma omp teams reduction(|:err), call them directly.
6922
6923 2020-08-04 Tom de Vries <tdevries@suse.de>
6924
6925 PR target/96428
6926 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
6927 * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
6928
6929 2020-08-03 Julian Brown <julian@codesourcery.com>
6930 Thomas Schwinge <thomas@codesourcery.com>
6931
6932 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
6933 shared-memory devices. Extend with further checking.
6934
6935 2020-08-03 Martin Jambor <mjambor@suse.cz>
6936
6937 * plugin/Makefrag.am: Remove configuration of HSA plugin.
6938 * aclocal.m4: Regenerated.
6939 * Makefile.in: Regenerated.
6940 * config.h.in: Regenerated.
6941 * configure: Regenerated.
6942 * plugin/configfrag.ac: Likewise.
6943 * plugin/hsa_ext_finalize.h: Removed.
6944 * plugin/plugin-hsa.c: Likewise.
6945 * testsuite/Makefile.in: Regenerated.
6946 * testsuite/lib/libgomp.exp
6947 (offload_target_to_openacc_device_type): Remove hsa case.
6948 (check_effective_target_hsa_offloading_selected_nocache): Removed
6949 (check_effective_target_hsa_offloading_selected): Likewise.
6950 (libgomp_init): Do not add -Wno-hsa to additional_flags.
6951 * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
6952 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
6953 * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
6954 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
6955 * testsuite/libgomp.hsa.c/c.exp: Likewise.
6956 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
6957 * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
6958 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
6959 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
6960 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
6961 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
6962 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
6963 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
6964 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
6965 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
6966 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
6967 * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
6968 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
6969 * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
6970 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
6971 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
6972 * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
6973 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
6974 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
6975
6976 2020-07-27 Julian Brown <julian@codesourcery.com>
6977 Thomas Schwinge <thomas@codesourcery.com>
6978
6979 * libgomp.h (struct target_var_desc): Rename do_detach field to
6980 is_attach.
6981 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
6982 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
6983 (goacc_enter_data_internal): Don't affect reference counts
6984 for attach mappings.
6985 (goacc_exit_data_internal): Don't affect reference counts for detach
6986 mappings.
6987 * target.c (gomp_map_vars_existing): Don't affect reference counts for
6988 attach mappings.
6989 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
6990 mark attach mappings.
6991 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
6992 reference count for attach mappings.
6993 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
6994 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
6995 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
6996 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
6997 test as shouldfail.
6998 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
6999 gracefully in no-finalize mode.
7000 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
7001
7002 2020-07-24 Thomas Schwinge <thomas@codesourcery.com>
7003
7004 * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
7005 use.
7006 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7007 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7008
7009 2020-07-23 Julian Brown <julian@codesourcery.com>
7010 Thomas Schwinge <thomas@codesourcery.com>
7011
7012 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
7013 finalization for detach operation.
7014 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
7015 New test.
7016
7017 2020-07-23 Tobias Burnus <tobias@codesourcery.com>
7018
7019 * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
7020 * libgomp_f.h.in (omp_check_defines): Check whether
7021 sizeof of determined Fortran kind and C typedef match.
7022 * omp_lib.f90.in: Add omp_depened_kind.
7023 * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
7024 * configure: Regenerate.
7025 * Makefile.in: Regenerate.
7026 * testsuite/Makefile.in: Regenerate.
7027
7028 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
7029
7030 * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
7031 gcc/testsuite/c-c++-common/gomp/.
7032 * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
7033 * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
7034 from gcc/testsuite/gfortran.dg/gomp/.
7035 * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
7036
7037 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
7038
7039 * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
7040 * omp_lib.h.in: Likewise.
7041
7042 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
7043
7044 PR target/95620
7045 * testsuite/libgomp.c/pr95620.c: New test.
7046
7047 2020-07-16 Julian Brown <julian@codesourcery.com>
7048 Thomas Schwinge <thomas@codesourcery.com>
7049
7050 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
7051 * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
7052
7053 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
7054
7055 * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
7056 avoid conversion on 32bit systems from 32bit to 64bit due
7057 to -fdefault-integer-8.
7058
7059 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
7060
7061 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
7062 variables; add character(kind=4) tests; update TODO comment.
7063
7064 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
7065
7066 * allocator.c: Add ialias for omp_init_allocator and
7067 omp_destroy_allocator.
7068 * configure.ac: Set INTPTR_T_KIND.
7069 * configure: Regenerate.
7070 * Makefile.in: Regenerate.
7071 * testsuite/Makefile.in: Regenerate.
7072 * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
7073 omp_set_default_allocator_, omp_get_default_allocator_): New
7074 functions and ialias_redirect.
7075 * icv.c: Add ialias for omp_set_default_allocator and
7076 omp_get_default_allocator.
7077 * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
7078 omp_destroy_allocator_, omp_set_default_allocator_ and
7079 omp_get_default_allocator_.
7080 * omp_lib.f90.in: Add allocator traits parameters, declare
7081 allocator routines and add related kind parameters.
7082 * omp_lib.h.in: Likewise.
7083 * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
7084 * testsuite/libgomp.fortran/alloc-1.F90: New test.
7085 * testsuite/libgomp.fortran/alloc-2.F90: New test.
7086 * testsuite/libgomp.fortran/alloc-3.F: New test.
7087 * testsuite/libgomp.fortran/alloc-4.f90: New test.
7088 * testsuite/libgomp.fortran/alloc-5.f90: New test.
7089
7090 2020-07-14 Tom de Vries <tom@codesourcery.com>
7091 Cesar Philippidis <cesar@codesourcery.com>
7092 Thomas Schwinge <thomas@codesourcery.com>
7093 Kwok Cheung Yeung <kcy@codesourcery.com>
7094
7095 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
7096 New variable.
7097 (acc_init_1): Set acc_init_thread to pthread_self (). Set
7098 acc_init_state to initializing at the start, and to initialized at the
7099 end.
7100 (self_initializing_p): New function.
7101 (acc_get_device_type): Return acc_device_none if called by thread that
7102 is currently executing acc_init_1.
7103 * libgomp.texi (acc_get_device_type): Update documentation.
7104 (Implementation Status and Implementation-Defined Behavior): Likewise.
7105 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
7106
7107 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
7108
7109 * config/t-aix: Set BITS from compiler cpp macro.
7110
7111 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
7112
7113 * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
7114
7115 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
7116
7117 PR fortran/67311
7118 * testsuite/libgomp.fortran/target-map-1.f90: New test.
7119
7120 2020-07-14 Jakub Jelinek <jakub@redhat.com>
7121
7122 * testsuite/libgomp.c/loop-21.c: New test.
7123
7124 2020-07-13 Julian Brown <julian@codesourcery.com>
7125 Thomas Schwinge <thomas@codesourcery.com>
7126
7127 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
7128
7129 2020-07-10 Julian Brown <julian@codesourcery.com>
7130 Thomas Schwinge <thomas@codesourcery.com>
7131
7132 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
7133 dynamic_refcount.
7134 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
7135 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
7136 dynamic_refcount.
7137 (acc_unmap_data): Update comment.
7138 (goacc_map_var_existing, goacc_enter_datum): Adjust for
7139 dynamic_refcount semantics.
7140 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
7141 Adjust for dynamic_refcount semantics.
7142 (goacc_enter_data_internal): Implement "present" case of dynamic
7143 memory-map handling here. Update "non-present" case for
7144 dynamic_refcount semantics.
7145 (goacc_exit_data_internal): Use goacc_exit_datum_1.
7146 * target.c (gomp_map_vars_internal): Remove
7147 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
7148 handling.
7149 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
7150 (gomp_load_image_to_device): Substitute dynamic_refcount for
7151 virtual_refcount.
7152 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
7153 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
7154 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
7155 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
7156 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
7157 trace output.
7158 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
7159 trace output.
7160 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
7161 test.
7162 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
7163 Remove stale comment.
7164 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
7165 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
7166 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7167 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7168 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7169 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
7170
7171 2020-07-10 Julian Brown <julian@codesourcery.com>
7172 Thomas Schwinge <thomas@codesourcery.com>
7173
7174 * oacc-mem.c (goacc_map_var_existing): New function.
7175 (goacc_enter_datum): Use above function.
7176 (goacc_exit_datum_1): New function.
7177 (goacc_exit_datum): Use above function.
7178
7179 2020-07-09 Julian Brown <julian@codesourcery.com>
7180 Thomas Schwinge <thomas@codesourcery.com>
7181
7182 PR middle-end/95270
7183 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
7184 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
7185
7186 2020-07-09 Julian Brown <julian@codesourcery.com>
7187
7188 * oacc-mem.c (find_group_last): Group data-movement clauses
7189 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
7190 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
7191
7192 2020-07-09 Jakub Jelinek <jakub@redhat.com>
7193
7194 * testsuite/libgomp.c/loop-19.c: New test.
7195 * testsuite/libgomp.c/loop-20.c: New test.
7196
7197 2020-07-09 Jakub Jelinek <jakub@redhat.com>
7198
7199 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
7200 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
7201 it. Remove __omp_alloctrait_value_max__.
7202 * allocator.c (omp_init_allocator): Handle omp_atv_default for
7203 omp_atk_alignment and omp_atk_pool_size.
7204
7205 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
7206
7207 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
7208 behavior for 'GOMP_MAP_FORCE_FROM'.
7209 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
7210
7211 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
7212
7213 * oacc-mem.c (goacc_exit_data_internal): Remove
7214 'GOMP_MAP_ALWAYS_FROM' handling.
7215
7216 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
7217
7218 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
7219 'scan-assembler' with 'scan-offload-rtl'.
7220 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
7221 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
7222 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
7223 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
7224
7225 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
7226
7227 * target.c (gomp_map_vars_existing): Assert 'kind !=
7228 GOMP_MAP_ATTACH'.
7229 (gomp_map_vars_internal): Clean up.
7230
7231 2020-06-27 Jakub Jelinek <jakub@redhat.com>
7232
7233 * testsuite/libgomp.c/loop-17.c: New test.
7234 * testsuite/libgomp.c/loop-18.c: New test.
7235
7236 2020-06-26 Marek Polacek <polacek@redhat.com>
7237
7238 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
7239
7240 2020-06-23 Alexandre Oliva <oliva@adacore.com>
7241
7242 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
7243 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
7244
7245 2020-06-22 David Edelsohn <dje.gcc@gmail.com>
7246
7247 * Makefile.am: Use -include.
7248 * Makefile.in: Regenerate.
7249
7250 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
7251
7252 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
7253 * Makefile.in: Regenerate
7254 * configure.ac (tmake_file): Substitute.
7255 * configure: Regenerate.
7256 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
7257 * config/t-aix: New file.
7258
7259 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
7260
7261 PR lto/94848
7262 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
7263 'dg-do run'.
7264
7265 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
7266
7267 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
7268 variant for HSA_RUNTIME_LIB name.
7269 (find_executable_symbol_1): Delete.
7270 (find_executable_symbol): Delete.
7271 (init_kernel_properties): Add ".kd" suffix to symbol names.
7272 (find_load_offset): Delete.
7273 (create_and_finalize_hsa_program): Remove relocation handling.
7274
7275 2020-06-16 Tobias Burnus <tobias@codesourcery.com>
7276
7277 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
7278
7279 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
7280
7281 PR lto/94848
7282 PR middle-end/95551
7283 * testsuite/libgomp.fortran/target-var.f90: New test.
7284
7285 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
7286 Julian Brown <julian@codesourcery.com>
7287
7288 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
7289 special handling.
7290
7291 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
7292 Julian Brown <julian@codesourcery.com>
7293
7294 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7295 Simplify.
7296
7297 2020-06-05 Julian Brown <julian@codesourcery.com>
7298
7299 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
7300 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
7301
7302 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7303
7304 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7305 Evaluate 'copyfrom' individually for each entry.
7306 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
7307
7308 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7309
7310 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7311 Evaluate 'finalize' individually for each entry.
7312 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
7313 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
7314 file.
7315
7316 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7317
7318 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
7319 usage.
7320 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
7321
7322 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7323 Julian Brown <julian@codesourcery.com>
7324
7325 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
7326 checking.
7327 (acc_unmap_data, goacc_exit_data_internal): Restore
7328 'is_tgt_unmapped' checking.
7329 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
7330 file.
7331 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
7332 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
7333 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7334 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7335 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7336 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
7337
7338 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7339 Julian Brown <julian@codesourcery.com>
7340
7341 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
7342
7343 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7344
7345 PR libgomp/92854
7346 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
7347
7348 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7349
7350 PR libgomp/92854
7351 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
7352 more.
7353
7354 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7355 Julian Brown <julian@codesourcery.com>
7356
7357 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
7358 'gomp_map_vars'.
7359 (acc_map_data): Clean up accordingly.
7360
7361 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7362
7363 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
7364 of over-eager 'finalize' clause.
7365 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
7366 file.
7367 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
7368 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
7369 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7370 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7371 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7372 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
7373 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
7374 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
7375
7376 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7377
7378 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
7379
7380 2020-06-04 Julian Brown <julian@codesourcery.com>
7381
7382 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
7383 error path.
7384 (goacc_detach_internal): Likewise.
7385
7386 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7387
7388 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
7389 the checkpoint.
7390 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
7391 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
7392 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
7393 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
7394 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
7395
7396 2020-06-02 Jakub Jelinek <jakub@redhat.com>
7397
7398 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
7399 defined.
7400
7401 2020-05-30 Jakub Jelinek <jakub@redhat.com>
7402
7403 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
7404
7405 2020-05-30 Jakub Jelinek <jakub@redhat.com>
7406
7407 * allocator.c (omp_alloc): For size == 0, return NULL early.
7408
7409 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
7410
7411 PR bootstrap/95413
7412 * configure: Regenerated.
7413
7414 2020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
7415
7416 PR libfortran/95191
7417 * testsuite/libgomp.fortran/async_io_9.f90: New test.
7418
7419 2020-05-19 Jakub Jelinek <jakub@redhat.com>
7420
7421 * omp.h.in (omp_uintptr_t): New typedef.
7422 (__GOMP_UINTPTR_T_ENUM): Define.
7423 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
7424 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
7425 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
7426 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
7427 omp_get_default_allocator, omp_alloc, omp_free): Declare.
7428 * libgomp.h (struct gomp_team_state): Add def_allocator field.
7429 (gomp_def_allocator): Declare.
7430 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
7431 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
7432 omp_alloc and omp_free.
7433 * team.c (gomp_team_start): Copy over ts.def_allocator.
7434 * env.c (gomp_def_allocator): New variable.
7435 (parse_wait_policy): Adjust function comment.
7436 (parse_allocator): New function.
7437 (handle_omp_display_env): Print OMP_ALLOCATOR.
7438 (initialize_env): Call parse_allocator.
7439 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
7440 * allocator.c: New file.
7441 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
7442 functions.
7443 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
7444 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
7445 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
7446 * Makefile.in: Regenerated.
7447
7448 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
7449
7450 PR bootstrap/95147
7451 * configure: Regenerated.
7452
7453 2020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
7454
7455 PR libfortran/95119
7456 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
7457
7458 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
7459
7460 * configure: Regenerated.
7461
7462 2020-05-14 Jakub Jelinek <jakub@redhat.com>
7463
7464 * testsuite/libgomp.c-c++-common/target-40.c: New test.
7465
7466 2020-05-13 Tobias Burnus <tobias@codesourcery.com>
7467
7468 PR fortran/94690
7469 * testsuite/libgomp.fortran/pr66199-3.f90: New.
7470 * testsuite/libgomp.fortran/pr66199-4.f90: New.
7471 * testsuite/libgomp.fortran/pr66199-5.f90: New.
7472 * testsuite/libgomp.fortran/pr66199-6.f90: New.
7473 * testsuite/libgomp.fortran/pr66199-7.f90: New.
7474 * testsuite/libgomp.fortran/pr66199-8.f90: New.
7475 * testsuite/libgomp.fortran/pr66199-9.f90: New.
7476
7477 2020-05-12 Jakub Jelinek <jakub@redhat.com>
7478
7479 * testsuite/libgomp.c/target-39.c: New test.
7480
7481 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
7482
7483 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
7484 * openacc.f90 (acc_device_current): Likewise.
7485 * openacc.h (acc_device_current): Likewise.
7486 * openacc_lib.h (acc_device_current): Likewise.
7487
7488 PR target/94282
7489 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
7490 'dg-allow-blank-lines-in-output'.
7491
7492 * oacc-init.c (get_openacc_name): Handle 'gcn'.
7493 * testsuite/lib/libgomp.exp
7494 (offload_target_to_openacc_device_type) [amdgcn*]: Return
7495 'radeon'. Adjust all users.
7496 (check_effective_target_openacc_amdgcn_accel_present): Rename
7497 to...
7498 (check_effective_target_openacc_radeon_accel_present): ... this.
7499 Adjust all users.
7500 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
7501 (check_effective_target_openacc_radeon_accel_selected): ... this.
7502 Adjust all users.
7503
7504 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
7505 'dg-do run'.
7506
7507 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
7508
7509 PR other/94629
7510
7511 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
7512 hsa_iterate_agents.
7513 (GOMP_OFFLOAD_init_device): Check return values from both calls to
7514 hsa_agent_iterate_regions.
7515
7516 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
7517
7518 PR middle-end/94635
7519 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
7520 run'.
7521
7522 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
7523
7524 PR middle-end/94120
7525 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
7526 test case.
7527
7528 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
7529
7530 PR middle-end/94635
7531 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
7532
7533 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
7534
7535 PR libgomp/92843
7536 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7537 Rename to...
7538 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
7539 ... this.
7540 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7541 Rename to...
7542 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
7543 ... this.
7544 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7545 Rename to...
7546 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
7547 ... this.
7548 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7549 Rename to...
7550 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
7551 ... this.
7552 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7553 Rename to...
7554 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
7555 ... this.
7556 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7557 Rename to...
7558 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
7559 ... this.
7560 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7561 Rename to...
7562 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
7563 ... this.
7564 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7565 Rename to...
7566 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
7567 ... this.
7568 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7569 Rename to...
7570 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
7571 ... this.
7572 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7573 Rename to...
7574 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
7575 ... this.
7576 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7577 Rename to...
7578 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
7579 ... this.
7580 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7581 Rename to...
7582 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
7583 ... this.
7584 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7585 Rename to...
7586 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
7587 ... this.
7588 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7589 Rename to...
7590 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
7591 ... this.
7592 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7593 Rename to...
7594 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
7595 ... this.
7596 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
7597 Rename to...
7598 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
7599 ... this.
7600
7601 2020-04-10 Julian Brown <julian@codesourcery.com>
7602 Thomas Schwinge <thomas@codesourcery.com>
7603
7604 PR libgomp/92843
7605 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7606 New file.
7607 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7608 Likewise.
7609 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7610 Likewise.
7611 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7612 Likewise.
7613 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7614 Likewise.
7615 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7616 Likewise.
7617 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7618 Likewise.
7619 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7620 Likewise.
7621 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7622 Likewise.
7623 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7624 Likewise.
7625 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7626 Likewise.
7627 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7628 Likewise.
7629 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7630 Likewise.
7631 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7632 Likewise.
7633 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7634 Likewise.
7635 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
7636 Likewise.
7637
7638 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
7639
7640 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
7641 run'.
7642
7643 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
7644
7645 PR middle-end/94120
7646 * libgomp.oacc-c++/declare-pr94120.C: New.
7647
7648 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
7649
7650 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
7651 files.
7652 * configure: Regenerate.
7653 * testsuite/libgomp-site-extra.exp.in: New file.
7654 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
7655 variable.
7656 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
7657 variable.
7658 * testsuite/Makefile.in: Regenerate.
7659
7660 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
7661
7662 PR tree-optimization/89713
7663 PR c/94392
7664 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
7665 'bar.sync'.
7666 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
7667
7668 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
7669
7670 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
7671 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
7672
7673 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
7674
7675 PR libgomp/81689
7676 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
7677
7678 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
7679
7680 PR libgomp/94251
7681 * target.c (gomp_load_image_to_device): Fix link
7682 variable handling.
7683
7684 2020-03-19 Jakub Jelinek <jakub@redhat.com>
7685
7686 PR c++/93931
7687 * testsuite/libgomp.c++/pr93931.C: New test.
7688
7689 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
7690
7691 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
7692 dg-allow-blank-lines-in-output.
7693
7694 2020-03-18 Julian Brown <julian@codesourcery.com>
7695 Tobias Burnus <tobias@codesourcery.com>
7696
7697 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
7698 it work concurrently.
7699
7700 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
7701
7702 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
7703 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
7704 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
7705
7706 2020-03-14 Jakub Jelinek <jakub@redhat.com>
7707
7708 PR middle-end/93566
7709 * testsuite/libgomp.c/pr93566.c: New test.
7710
7711 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
7712
7713 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
7714 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
7715 integer(acc_device_property) for the type of the return value of
7716 acc_get_property.
7717
7718 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
7719
7720 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
7721 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
7722 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
7723 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
7724 (acc_set_device_num): Fix Fortran argument name, use same name for C.
7725 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
7726 corrections; add note about the previous interface and named constant.
7727 (OpenACC library and environment variables): Fix two typos.
7728 * openacc.f90: Use for all procedures the argument names from the spec
7729 as for …_h they are user visible.
7730 (openacc_kinds): Rename acc_device_property to
7731 acc_device_property_kinds and change value to int32 ; and update users.
7732 Re-add acc_device_property for for backward compatibility.
7733 (acc_get_property_string_h): Clean up as acc_device_property_kind
7734 changed.
7735 (acc_get_property_h): Likewise and return c_size_t instead of
7736 acc_device_property.
7737 (openacc): Also export acc_device_property_kinds.
7738 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
7739 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
7740 handling; check against /= 0 instead of == 1 to match C.
7741 * openacc_lib.h: Use for all procedures the argument names from the spec
7742 as for …_h they are user visible. Place !GCC$ into the first column to
7743 be active also for fixed-form souce form.
7744 (acc_device_current, acc_device_property_kind, acc_device_property,
7745 acc_property_memory, acc_property_free_memory, acc_property_name,
7746 acc_property_vendor, acc_property_driver): New named constants.
7747 (acc_get_property, acc_get_property_string): New generic interface.
7748
7749 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
7750
7751 PR libgomp/93481
7752 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
7753 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
7754 optional.
7755 (gomp_target_task_fn): Assert "devicep->async_run_func".
7756 (clear_unsupported_flags): New function to remove unsupported flags
7757 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
7758 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
7759 * testsuite/libgomp.c/target-33.c:
7760 Remove xfail for offload_target_nvptx.
7761 * testsuite/libgomp.c/target-34.c: Likewise.
7762
7763 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
7764
7765 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
7766 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
7767 * testsuite/libgomp.c/target-34.c: Likewise.
7768 * testsuite/libgomp.c/target-link-1.c: Add xfail for
7769 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
7770
7771 2020-02-09 Jakub Jelinek <jakub@redhat.com>
7772
7773 * testsuite/libgomp.c/target-38.c: New test.
7774
7775 2020-02-06 Jakub Jelinek <jakub@redhat.com>
7776
7777 PR libgomp/93515
7778 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
7779
7780 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
7781
7782 * testsuite/lib/libgomp.exp
7783 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
7784 and not as 'source' argument to libgomp_target_compile.
7785
7786 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
7787
7788 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
7789 (gcn_gfx801_s): Remove.
7790 (isa_hsa_name): Remove gfx801.
7791 (isa_gcc_name): Remove gfx801/carizzo.
7792 (isa_code): Remove gfx801.
7793
7794 2020-02-03 Julian Brown <julian@codesourcery.com>
7795 Tobias Burnus <tobias@codesourcery.com>
7796
7797 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
7798 and *_finalize variants; document acc_attach and acc_detach; update
7799 references from OpenACC 2.0 to 2.6.
7800 * openacc.f90 (openacc_version): Update to 201711.
7801 * openacc_lib.h (openacc_version): Update to 201711.
7802 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
7803 openacc_version to 201711.
7804 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
7805
7806 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
7807
7808 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
7809 and vgpr_count fields.
7810 (struct kernel_info): Add a field for a hsa_kernel_description.
7811 (run_kernel): Reduce the number of threads/workers if the requested
7812 number would require too many VGPRs.
7813 (init_basic_kernel_info): Initialize description field with
7814 the hsa_kernel_description entry for the kernel.
7815
7816 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
7817
7818 PR bootstrap/93409
7819 * plugin/configfrag.ac (enable_offload_targets): Skip
7820 HSA and GCN plugin besides -m32 also for -mx32.
7821 * configure: Regenerate.
7822
7823 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
7824
7825 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
7826
7827 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
7828
7829 * plugin-gcn.c (struct agent_info): Add fields "name" and
7830 "vendor_name" ...
7831 (GOMP_OFFLOAD_init_device): ... and init from here.
7832 (struct hsa_context_info): Add field "driver_version_s" ...
7833 (init_hsa_contest): ... and init from here.
7834 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
7835 implementation.
7836 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
7837 Enable test execution for amdgcn and host offloading targets.
7838 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
7839 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7840 (expect_device_properties): Split function into ...
7841 (expect_device_string_properties): ... this new function ...
7842 (expect_device_memory): ... and this new function.
7843 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
7844 Add test.
7845
7846 2020-01-28 Julian Brown <julian@codesourcery.com>
7847
7848 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
7849 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
7850 component/non-component variable refs in a single directive.
7851 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
7852
7853 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
7854
7855 * configure.ac: Handle `--with-toolexeclibdir='.
7856 * Makefile.in: Regenerate.
7857 * aclocal.m4: Regenerate.
7858 * configure: Regenerate.
7859 * testsuite/Makefile.in: Regenerate.
7860
7861 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
7862
7863 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7864 (expect_device_properties): Remove "expected_free_mem" argument,
7865 change "expected_total_mem" argument type to size_t;
7866 change types of acc_get_property results to size_t,
7867 adapt format strings.
7868 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
7869 Use %zu instead of %zd to print size_t values.
7870 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
7871 rename to ...
7872 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
7873 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
7874 rename to ...
7875 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
7876
7877 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
7878
7879 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
7880 the device id.
7881
7882 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
7883
7884 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
7885 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
7886 Adjust test dimensions for amdgcn.
7887 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
7888 gang/worker/vector expectations dynamically.
7889 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
7890 (main): Likewise.
7891 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
7892 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
7893 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
7894 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
7895 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
7896 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
7897 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
7898 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
7899 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
7900 (acc_gang): Recognise acc_device_radeon.
7901 (acc_worker): Likewise.
7902 (acc_vector): Likewise.
7903 (main): Set expectations for amdgcn.
7904 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
7905 (main): Adjust gang/worker/vector expectations dynamically.
7906 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
7907 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
7908 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
7909 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
7910 for amdgcn.
7911
7912 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
7913
7914 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
7915 acc_device_radeon.
7916 (openacc): Likewise.
7917 * openacc.f90 (openacc_kinds): Likewise.
7918 (openacc): Likewise.
7919 * openacc.h (acc_device_t): Likewise.
7920 * openacc_lib.h: Likewise.
7921 * testsuite/lib/libgomp.exp
7922 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
7923 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
7924 (cb_compute_construct_end): Likewise.
7925 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
7926 (cb_enqueue_launch_start): Likewise.
7927 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
7928 (cb_enter_data_end): Likewise.
7929 (cb_exit_data_start): Likewise.
7930 (cb_exit_data_end): Likewise.
7931 (cb_compute_construct_end): Likewise.
7932 (cb_enqueue_launch_start): Likewise.
7933 (cb_enqueue_launch_end): Likewise.
7934 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
7935 (main): Likewise.
7936
7937 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
7938
7939 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
7940 to use this instead of 'enum gomp_device_property'.
7941 (GOMP_OFFLOAD_get_property): Rename to...
7942 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
7943 * libgomp.h (struct gomp_device_descr): Move
7944 'GOMP_OFFLOAD_openacc_get_property'...
7945 (struct acc_dispatch_t): ... here. Adjust all users.
7946 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
7947
7948 * target.c (gomp_map_vars_internal)
7949 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
7950 paths.
7951
7952 2020-01-10 Jakub Jelinek <jakub@redhat.com>
7953
7954 PR libgomp/93219
7955 * libgomp.h (gomp_print_string): Change return type from void to int.
7956 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
7957 not all characters have been written.
7958
7959 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
7960
7961 * libgomp.texi: Fix typos, use https.
7962
7963 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
7964
7965 * testsuite/libgomp.fortran/optional-map.f90: Add test for
7966 unallocated/disassociated actual arguments to nonallocatable/nonpointer
7967 dummy arguments; those are/shall be regarded as absent arguments.
7968 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
7969 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
7970
7971 2020-01-01 Jakub Jelinek <jakub@redhat.com>
7972
7973 Update copyright years.
7974
7975 * libgomp.texi: Bump @copying's copyright year.
7976
7977 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
7978
7979 PR libgomp/93065
7980 * oacc-init.c (goacc_runtime_deinitialize): New function.
7981
7982 2019-12-28 Jakub Jelinek <jakub@redhat.com>
7983
7984 PR bootstrap/93074
7985 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
7986 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
7987
7988 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
7989 Frederik Harwath <frederik@codesourcery.com>
7990 Thomas Schwinge <tschwinge@codesourcery.com>
7991
7992 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
7993 * libgomp-plugin.h (gomp_device_property_value): New union.
7994 (gomp_device_property_value): New prototype.
7995 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
7996 constant.
7997 (acc_device_property_t): New enum.
7998 (acc_get_property, acc_get_property_string): New prototypes.
7999 * oacc-init.c (acc_get_device_type): Also assert that result
8000 is not `acc_device_current'.
8001 (get_property_any, acc_get_property, acc_get_property_string):
8002 New functions.
8003 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
8004 `acc_property_memory', `acc_property_free_memory',
8005 `acc_property_name', `acc_property_vendor' and
8006 `acc_property_driver' constants. Add `acc_device_property' data
8007 type.
8008 (openacc_internal): Add `acc_get_property' and
8009 `acc_get_property_string' interfaces. Add `acc_get_property_h',
8010 `acc_get_property_string_h', `acc_get_property_l' and
8011 `acc_get_property_string_l'.
8012 * oacc-host.c (host_get_property): New function.
8013 (host_dispatch): Wire it.
8014 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
8015 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
8016 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
8017 * libgomp.texi (OpenACC Runtime Library Routines): Add
8018 `acc_get_property'.
8019 (acc_get_property): New node.
8020 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
8021 function (stub).
8022 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
8023 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
8024 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
8025 calls.
8026 (GOMP_OFFLOAD_get_property): New function.
8027 (struct ptx_device): Add new field "name".
8028 (cuda_driver_version_s): Add new static variable ...
8029 (nvptx_init): ... and init from here.
8030
8031 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
8032 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
8033 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
8034 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
8035 with test helper functions.
8036
8037 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
8038
8039 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
8040
8041 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
8042 variable.
8043
8044 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
8045
8046 * target.c (gomp_map_vars_internal): Restore 'omp declare target
8047 link' handling.
8048
8049 2019-12-19 Julian Brown <julian@codesourcery.com>
8050
8051 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
8052 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
8053 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
8054
8055 2019-12-19 Julian Brown <julian@codesourcery.com>
8056 Cesar Philippidis <cesar@codesourcery.com>
8057
8058 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
8059 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
8060 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
8061 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
8062 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
8063 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
8064 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
8065 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
8066 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
8067 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
8068 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
8069 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
8070 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
8071
8072 2019-12-19 Julian Brown <julian@codesourcery.com>
8073
8074 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
8075 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
8076 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
8077 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
8078 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
8079 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
8080 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
8081 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
8082 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
8083 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
8084 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
8085 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
8086
8087 2019-12-19 Julian Brown <julian@codesourcery.com>
8088
8089 * libgomp.h (struct target_var_desc): Add do_detach flag.
8090 * oacc-init.c (acc_shutdown_1): Free aux block if present.
8091 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
8092 struct components. Tidy up and add some new checks.
8093 (goacc_enter_data_internal): Update call to find_group_last.
8094 (goacc_exit_data_internal): Support detach operations and
8095 GOMP_MAP_STRUCT.
8096 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
8097 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
8098 attach/detach in enter/exit data detection code.
8099 * target.c (gomp_map_vars_existing): Initialise do_detach field of
8100 tgt_var_desc.
8101 (gomp_map_vars_internal): Support attach.
8102 (gomp_unmap_vars_internal): Support detach.
8103
8104 2019-12-19 Julian Brown <julian@codesourcery.com>
8105 Thomas Schwinge <thomas@codesourcery.com>
8106
8107 * libgomp.h (struct splay_tree_aux): Add attach_count field.
8108 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
8109 * libgomp.map (OACC_2.6): New section. Add acc_attach,
8110 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
8111 acc_detach_finalize_async.
8112 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
8113 acc_detach, acc_detach_async, acc_detach_finalize,
8114 acc_detach_finalize_async): New functions.
8115 * openacc.h (acc_attach, acc_attach_async, acc_detach,
8116 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
8117 prototypes.
8118 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
8119 (gomp_remove_var_internal): Free attachment counts if present.
8120 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
8121 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
8122
8123 2019-12-19 Julian Brown <julian@codesourcery.com>
8124 Cesar Philippidis <cesar@codesourcery.com>
8125
8126 * libgomp.h (gomp_map_val): Add prototype.
8127 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
8128 open-coding device-address calculation.
8129 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
8130 non-present case.
8131
8132 2019-12-19 Julian Brown <julian@codesourcery.com>
8133
8134 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
8135 field for virtual_refcount.
8136 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
8137 (gomp_free_memmap): Remove prototype.
8138 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
8139 instead of calling gomp_free_memmap.
8140 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
8141 dynamic_refcount.
8142 (acc_unmap_data): Open code instead of forcing target_mem_desc's
8143 to_free field to NULL then calling gomp_unmap_vars. Handle
8144 REFCOUNT_INFINITY on target blocks.
8145 (goacc_enter_data): Rename to...
8146 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
8147 handling for mapping groups. Use virtual_refcount instead of
8148 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
8149 map_map_vars_async call. Re-do lookup for target pointer return value.
8150 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
8151 renamed goacc_enter_datum function.
8152 (goacc_exit_data): Rename to...
8153 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
8154 (acc_delete, acc_delete_async, acc_delete_finalize,
8155 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
8156 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
8157 goacc_exit_datum function.
8158 (gomp_acc_remove_pointer, find_pointer): Remove functions.
8159 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
8160 New functions.
8161 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
8162 goacc_exit_data_internal helper functions.
8163 * target.c (gomp_map_vars_internal): Handle
8164 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
8165 semantics.
8166 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
8167 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
8168 virtual_refcount field instead of dynamic_refcount.
8169 (gomp_free_memmap): Remove function.
8170 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
8171 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
8172 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
8173
8174 2019-12-19 Julian Brown <julian@codesourcery.com>
8175 Thomas Schwinge <thomas@codesourcery.com>
8176
8177 * libgomp.h (struct splay_tree_aux): New.
8178 (struct splay_tree_key_s): Replace link_key field with aux pointer.
8179 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
8180 to aux struct.
8181 (gomp_remove_var_internal): Free aux block if present.
8182 (gomp_load_image_to_device): Zero-initialise aux field instead of
8183 link_key field.
8184 (omp_target_associate_pointer): Zero-initialise aux field.
8185
8186 2019-12-18 Jakub Jelinek <jakub@redhat.com>
8187
8188 PR middle-end/86416
8189 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
8190 q or none.
8191 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
8192 L or none.
8193
8194 2019-12-19 Julian Brown <julian@codesourcery.com>
8195 Maciej W. Rozycki <macro@codesourcery.com>
8196 Tobias Burnus <tobias@codesourcery.com>
8197 Thomas Schwinge <thomas@codesourcery.com>
8198
8199 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
8200 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
8201 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
8202 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
8203 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
8204 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
8205 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
8206 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
8207 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
8208
8209 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
8210
8211 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
8212 called...
8213 (goacc_insert_pointer): ... from here, "present" case.
8214 (goacc_insert_pointer): Inline function into...
8215 (GOACC_enter_exit_data): ... here, and simplify.
8216
8217 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
8218 called...
8219 (goacc_insert_pointer): ... from here, "not present" case.
8220
8221 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
8222 all users.
8223
8224 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
8225 'goacc_enter_data', 'goacc_exit_data'.
8226
8227 * oacc-mem.c (delete_copyout): Refactor into...
8228 (goacc_exit_data): ... this. Adjust all users.
8229
8230 * oacc-mem.c (present_create_copy): Refactor into...
8231 (goacc_enter_data): ... this. Adjust all users.
8232
8233 * target.c (gomp_unmap_vars_internal): Add a safeguard to
8234 'gomp_remove_var'.
8235
8236 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
8237 like 'GOMP_MAP_FROM'.
8238
8239 PR libgomp/92726
8240 PR libgomp/92970
8241 PR libgomp/92984
8242 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
8243 fails.
8244 (GOACC_enter_exit_data): Simplify accordingly.
8245 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
8246 subsuming...
8247 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
8248 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
8249 file.
8250 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
8251 subsuming...
8252 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
8253 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
8254 file.
8255 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
8256 subsuming...
8257 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
8258
8259 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
8260 'finalize' handling.
8261
8262 PR libgomp/92848
8263 * oacc-mem.c (acc_map_data, present_create_copy)
8264 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
8265 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
8266 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
8267 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
8268 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
8269 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
8270 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
8271 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
8272 Remove "XFAIL"s.
8273
8274 * target.c (gomp_unmap_tgt): Make it 'static'.
8275 * libgomp.h (gomp_unmap_tgt): Remove.
8276
8277 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
8278
8279 PR middle-end/86416
8280 * testsuite/libgomp.c/pr86416-1.c: New.
8281 * testsuite/libgomp.c/pr86416-2.c: New.
8282
8283 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
8284
8285 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
8286 all symbols as public except for the 'use …, only' imported symbol,
8287 which is private.
8288 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
8289 all symbols from module openacc_kinds as PUBLIC
8290 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
8291 fix comment typo.
8292 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
8293
8294 2019-12-13 Julian Brown <julian@codesourcery.com>
8295
8296 PR libgomp/92881
8297
8298 * libgomp.h (gomp_remove_var_async): Add prototype.
8299 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
8300 gomp_remove_var.
8301 * target.c (gomp_unref_tgt): Change return type to bool, indicating
8302 whether target_mem_desc was unmapped.
8303 (gomp_unref_tgt_void): New.
8304 (gomp_remove_var): Reimplement in terms of...
8305 (gomp_remove_var_internal): ...this new helper function.
8306 (gomp_remove_var_async): New, implemented using above helper function.
8307 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
8308 gomp_unref_tgt.
8309
8310 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
8311
8312 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
8313 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
8314 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
8315 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
8316 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
8317 Likewise.
8318 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
8319 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
8320
8321 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
8322
8323 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
8324 as public except for the 'use …, only' imported symbol, which is
8325 private.
8326 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
8327 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
8328 attributes for acc_copyout_finalize and acc_delete_finalize.
8329
8330 2019-12-11 Jakub Jelinek <jakub@redhat.com>
8331
8332 PR fortran/92899
8333 * testsuite/libgomp.fortran/atomic1.f90: New test.
8334
8335 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
8336
8337 PR libgomp/92843
8338 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
8339 reference counting for structured 'REFCOUNT_INFINITY'. Add some
8340 assertions.
8341 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
8342 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
8343 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
8344 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
8345 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8346
8347 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
8348 * oacc-mem.c: ... here.
8349 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
8350 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
8351 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
8352 Remove.
8353 * libgomp_g.h: Update.
8354
8355 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
8356 * oacc-async.c: ... here.
8357 * oacc-int.h (goacc_wait): Declare.
8358 * libgomp_g.h: Update
8359
8360 PR libgomp/92854
8361 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
8362 New file.
8363 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
8364 Likewise.
8365 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
8366 Likewise.
8367 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
8368 Likewise.
8369 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
8370 Likewise.
8371 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
8372 Likewise.
8373
8374 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
8375 Julian Brown <julian@codesourcery.com>
8376
8377 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
8378 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
8379
8380 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
8381
8382 * omp_lib.h.in: Fix spelling of function declaration
8383 omp_get_cancell(l)ation.
8384 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
8385 Fix typos.
8386 * env.c: Fix comment typos.
8387 * oacc-host.c: Likewise.
8388 * ordered.c: Likewise.
8389 * task.c: Likewise.
8390 * team.c: Likewise.
8391 * config/gcn/task.c: Likewise.
8392 * config/gcn/team.c: Likewise.
8393 * config/nvptx/task.c: Likewise.
8394 * config/nvptx/team.c: Likewise.
8395 * plugin/plugin-gcn.c: Likewise.
8396 * testsuite/libgomp.fortran/jacobi.f: Likewise.
8397 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
8398 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
8399
8400 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
8401
8402 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
8403 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
8404 unnecessary 'dg-additional-options "-w"'.
8405
8406 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
8407 Julian Brown <julian@codesourcery.com>
8408
8409 PR libgomp/92116
8410 PR libgomp/92877
8411
8412 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
8413 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
8414 Adjust all users.
8415 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8416 Remove XFAIL.
8417 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8418 Likewise.
8419 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
8420
8421 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
8422
8423 PR libgomp/92503
8424 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
8425 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
8426 file.
8427 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
8428 Likewise.
8429 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
8430 Likewise.
8431 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
8432 Likewise.
8433 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8434 Likewise.
8435 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8436 Likewise.
8437 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8438 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
8439 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
8440 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
8441 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
8442 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
8443 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8444 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8445 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
8446 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8447
8448 PR libgomp/92840
8449 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
8450 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
8451 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
8452 New file.
8453 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
8454 Likewise.
8455 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
8456 Likewise.
8457 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8458 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
8459
8460 PR libgomp/92511
8461 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
8462 this file...
8463 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
8464 this file...
8465 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
8466 file...
8467 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
8468 file...
8469 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
8470 ... with their content moved into, and extended in this new file.
8471 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
8472 New file.
8473 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
8474 Likewise.
8475 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
8476 Likewise.
8477 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
8478 Likewise.
8479
8480 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
8481
8482 PR libgomp/92854
8483 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
8484
8485 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
8486
8487 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
8488
8489 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
8490
8491 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
8492 unique.
8493 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
8494 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
8495 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
8496 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
8497 Ditto.
8498 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
8499 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
8500
8501 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
8502
8503 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
8504
8505 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
8506 Kwok Cheung Yeung <kcy@codesourcery.com>
8507
8508 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
8509 if input it a NULL pointer.
8510 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
8511 diagnostic of NULL pointer.
8512 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
8513 * testsuite/libgomp.fortran/optional-map.f90: New.
8514 * testsuite/libgomp.fortran/use_device_addr-1.f90
8515 (test_dummy_opt_callee_1_absent): New.
8516 (test_dummy_opt_call_1): Call it.
8517 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8518 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
8519 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8520 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
8521 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
8522 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
8523 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
8524 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
8525 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
8526 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
8527 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
8528 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
8529 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
8530 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
8531 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
8532 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
8533
8534 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
8535
8536 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
8537 expect dg-output of 'Error termination.' for GCN.
8538 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
8539 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
8540
8541 2019-12-04 Jakub Jelinek <jakub@redhat.com>
8542
8543 PR fortran/92756
8544 * testsuite/libgomp.fortran/teams1.f90: New test.
8545 * testsuite/libgomp.fortran/teams2.f90: New test.
8546
8547 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
8548
8549 * oacc-init.c (acc_known_device_type): Add function.
8550 (unknown_device_type_error): Add function.
8551 (name_of_acc_device_t): Change to call unknown_device_type_error
8552 on unknown type.
8553 (resolve_device): Use acc_known_device_type.
8554 (acc_init): Fail if acc_device_t argument is not valid.
8555 (acc_shutdown): Likewise.
8556 (acc_get_num_devices): Likewise.
8557 (acc_set_device_type): Likewise.
8558 (acc_get_device_num): Likewise.
8559 (acc_set_device_num): Likewise.
8560 (acc_on_device): Add comment that argument validity is not checked.
8561
8562 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
8563
8564 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
8565 Recognize amdgcn.
8566 (check_effective_target_openacc_amdgcn_accel_present): New proc.
8567 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
8568 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
8569 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8570 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8571
8572 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
8573
8574 PR libgomp/91938
8575 * configure.tgt: Avoid IE tls on *-*-musl*.
8576
8577 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
8578
8579 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
8580 adding a common-block test case.
8581
8582 2019-11-29 Jakub Jelinek <jakub@redhat.com>
8583
8584 PR c++/60228
8585 * testsuite/libgomp.c++/udr-20.C: New test.
8586 * testsuite/libgomp.c++/udr-21.C: New test.
8587
8588 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
8589
8590 * testsuite/lib/libgomp.exp
8591 (check_effective_target_offload_target_nvptx): New proc.
8592 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
8593 'dg-skip-if'.
8594 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
8595 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
8596 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
8597
8598 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8599
8600 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
8601 * testsuite/libgomp.c/pr39591-2.c: Likewise.
8602 * testsuite/libgomp.c/pr39591-3.c: Likewise.
8603 * testsuite/libgomp.c/private-1.c: Likewise.
8604 * testsuite/libgomp.c/task-1.c: Likewise.
8605 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
8606
8607 2019-11-20 Julian Brown <julian@codesourcery.com>
8608
8609 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
8610 aq->mutex here.
8611 (queue_push_launch): Lock aq->mutex before calling
8612 wait_for_queue_nonfull.
8613 (queue_push_callback): Likewise.
8614 (queue_push_asyncwait): Likewise.
8615 (queue_push_placeholder): Likewise.
8616
8617 2019-11-20 Julian Brown <julian@codesourcery.com>
8618
8619 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
8620 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
8621 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
8622 return code.
8623
8624 2019-11-20 Julian Brown <julian@codesourcery.com>
8625
8626 PR libgomp/92511
8627
8628 * oacc-mem.c (present_create_copy): Fix device pointer return value in
8629 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
8630 in non-present/create case.
8631 (delete_copyout): Change error condition to fail only on copies outside
8632 of mapped block. Adjust error message accordingly.
8633 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
8634 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
8635 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
8636 message.
8637 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8638 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
8639 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8640
8641 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
8642
8643 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
8644 libatomic in build-tree testing.
8645
8646 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
8647
8648 * testsuite/Makefile.in: Regenerate.
8649
8650 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
8651
8652 * testsuite/libgomp.c/target-print-1.c: New file.
8653 * testsuite/libgomp.fortran/target-print-1.f90: New file.
8654 * testsuite/libgomp.oacc-c/print-1.c: New file.
8655 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
8656
8657 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8658 Kwok Cheung Yeung <kcy@codesourcery.com>
8659 Julian Brown <julian@codesourcery.com>
8660 Tom de Vries <tom@codesourcery.com>
8661
8662 * plugin/Makefrag.am: Add amdgcn plugin support.
8663 * plugin/configfrag.ac: Likewise.
8664 * plugin/plugin-gcn.c: New file.
8665 * configure: Regenerate.
8666 * Makefile.in: Regenerate.
8667 * testsuite/Makefile.in: Regenerate.
8668
8669 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8670
8671 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
8672 and use team_malloc variants.
8673 (gomp_gcn_exit_kernel): Use team_free.
8674 * libgomp.h (TEAM_ARENA_SIZE): Define.
8675 (TEAM_ARENA_START): Define.
8676 (TEAM_ARENA_FREE): Define.
8677 (TEAM_ARENA_END): Define.
8678 (team_malloc): New function.
8679 (team_malloc_cleared): New function.
8680 (team_free): New function.
8681 * team.c (gomp_new_team): Initialize and use team_malloc.
8682 (free_team): Use team_free.
8683 (gomp_free_thread): Use team_free.
8684 (gomp_pause_host): Use team_free.
8685 * work.c (gomp_init_work_share): Use team_malloc.
8686 (gomp_fini_work_share): Use team_free.
8687
8688 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8689 Kwok Cheung Yeung <kcy@codesourcery.com>
8690 Julian Brown <julian@codesourcery.com>
8691 Tom de Vries <tom@codesourcery.com>
8692
8693 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
8694 * Makefile.in: Regenerate.
8695 * config.h.in (PLUGIN_GCN): Add new undef.
8696 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
8697 * config/gcn/affinity-fmt.c: New file.
8698 * config/gcn/bar.c: New file.
8699 * config/gcn/bar.h: New file.
8700 * config/gcn/doacross.h: New file.
8701 * config/gcn/icv-device.c: New file.
8702 * config/gcn/oacc-target.c: New file.
8703 * config/gcn/simple-bar.h: New file.
8704 * config/gcn/target.c: New file.
8705 * config/gcn/task.c: New file.
8706 * config/gcn/team.c: New file.
8707 * config/gcn/time.c: New file.
8708 * configure.ac: Add amdgcn*-*-*.
8709 * configure: Regenerate.
8710 * configure.tgt: Add amdgcn*-*-*.
8711 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
8712 * libgomp.h (gcn_thrs): Add amdgcn variant.
8713 (set_gcn_thrs): Likewise.
8714 (gomp_thread): Likewise.
8715 * oacc-int.h (goacc_thread): Likewise.
8716 * oacc-target.c: New file.
8717 * openacc.f90 (acc_device_gcn): New parameter.
8718 * openacc.h (acc_device_t): Add acc_device_gcn.
8719 * team.c (gomp_free_pool_helper): Add amdgcn support.
8720
8721 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8722 Julian Brown <julian@codesourcery.com>
8723
8724 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
8725 parameter.
8726 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
8727 queue constructor.
8728 * oacc-host.c (host_openacc_async_construct): Add device parameter.
8729 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
8730 device parameter.
8731
8732 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8733
8734 * configure.tgt (nvptx*-*-*): Add "accel" directory.
8735 * config/nvptx/libgomp-plugin.c: Move ...
8736 * config/accel/libgomp-plugin.c: ... to here.
8737 * config/nvptx/lock.c: Move ...
8738 * config/accel/lock.c: ... to here.
8739 * config/nvptx/mutex.c: Move ...
8740 * config/accel/mutex.c: ... to here.
8741 * config/nvptx/mutex.h: Move ...
8742 * config/accel/mutex.h: ... to here.
8743 * config/nvptx/oacc-async.c: Move ...
8744 * config/accel/oacc-async.c: ... to here.
8745 * config/nvptx/oacc-cuda.c: Move ...
8746 * config/accel/oacc-cuda.c: ... to here.
8747 * config/nvptx/oacc-host.c: Move ...
8748 * config/accel/oacc-host.c: ... to here.
8749 * config/nvptx/oacc-init.c: Move ...
8750 * config/accel/oacc-init.c: ... to here.
8751 * config/nvptx/oacc-mem.c: Move ...
8752 * config/accel/oacc-mem.c: ... to here.
8753 * config/nvptx/oacc-plugin.c: Move ...
8754 * config/accel/oacc-plugin.c: ... to here.
8755 * config/nvptx/omp-lock.h: Move ...
8756 * config/accel/omp-lock.h: ... to here.
8757 * config/nvptx/openacc.f90: Move ...
8758 * config/accel/openacc.f90: ... to here.
8759 * config/nvptx/pool.h: Move ...
8760 * config/accel/pool.h: ... to here.
8761 * config/nvptx/proc.c: Move ...
8762 * config/accel/proc.c: ... to here.
8763 * config/nvptx/ptrlock.c: Move ...
8764 * config/accel/ptrlock.c: ... to here.
8765 * config/nvptx/ptrlock.h: Move ...
8766 * config/accel/ptrlock.h: ... to here.
8767 * config/nvptx/sem.c: Move ...
8768 * config/accel/sem.c: ... to here.
8769 * config/nvptx/sem.h: Move ...
8770 * config/accel/sem.h: ... to here.
8771 * config/nvptx/thread-stacksize.h: Move ...
8772 * config/accel/thread-stacksize.h: ... to here.
8773
8774 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
8775 Tobias Burnus <tobias@codesourcery.com>
8776 Frederik Harwath <frederik@codesourcery.com>
8777 Thomas Schwinge <thomas@codesourcery.com>
8778
8779 libgomp/
8780 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
8781 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
8782 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
8783
8784 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
8785 Kwok Cheung Yeung <kcy@codesourcery.com>
8786
8787 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
8788 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
8789
8790 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
8791
8792 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
8793
8794 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
8795 run'.
8796 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8797 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
8798
8799 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
8800
8801 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
8802 Add expected warnings about missing reduction clauses.
8803 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
8804 Likewise.
8805 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
8806 Likewise.
8807 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
8808 Likewise.
8809
8810 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
8811
8812 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
8813 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
8814 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
8815 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
8816 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
8817 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
8818
8819 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
8820
8821 PR fortran/92305
8822 * testsuite/libgomp.fortran/allocatable2.f90: Use
8823 unique numbers with 'stop'.
8824 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
8825 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
8826 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
8827 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
8828 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
8829
8830 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
8831
8832 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
8833 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
8834 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8835 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
8836 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
8837 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
8838
8839 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
8840
8841 * testsuite/libgomp.fortran/target9.f90: New.
8842
8843 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
8844
8845 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
8846 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
8847 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
8848 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
8849 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
8850 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
8851 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
8852 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
8853 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
8854 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
8855 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
8856 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
8857 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
8858 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
8859 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
8860 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
8861 * testsuite/libgomp.fortran/associate1.f90: Ditto.
8862 * testsuite/libgomp.fortran/associate2.f90: Ditto.
8863 * testsuite/libgomp.fortran/associate3.f90: Ditto.
8864 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
8865 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
8866 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
8867 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
8868 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
8869 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
8870 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
8871 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
8872 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
8873 * testsuite/libgomp.fortran/character1.f90: Ditto.
8874 * testsuite/libgomp.fortran/character2.f90: Ditto.
8875 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
8876 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
8877 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
8878 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
8879 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
8880 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
8881 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
8882 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
8883 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
8884 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
8885 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
8886 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
8887 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
8888 * testsuite/libgomp.fortran/do1.f90: Ditto.
8889 * testsuite/libgomp.fortran/do2.f90: Ditto.
8890 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
8891 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
8892 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
8893 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
8894 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
8895 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
8896 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
8897 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
8898 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
8899 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
8900 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
8901 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
8902 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
8903 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
8904 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
8905 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
8906 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
8907 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
8908 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
8909 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
8910 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
8911 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
8912 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
8913 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
8914 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
8915 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
8916 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
8917 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
8918 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
8919 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
8920 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
8921 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
8922 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
8923 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
8924 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
8925 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
8926 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
8927 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
8928 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
8929 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
8930 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
8931 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
8932 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
8933 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
8934 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
8935 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
8936 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
8937 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
8938 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
8939 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
8940 * testsuite/libgomp.fortran/lib1.f90: Ditto.
8941 * testsuite/libgomp.fortran/lib4.f90: Ditto.
8942 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
8943 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
8944 * testsuite/libgomp.fortran/nested1.f90: Ditto.
8945 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
8946 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
8947 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
8948 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
8949 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
8950 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
8951 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
8952 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
8953 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
8954 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
8955 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
8956 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
8957 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
8958 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
8959 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
8960 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
8961 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
8962 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
8963 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
8964 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
8965 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
8966 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
8967 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
8968 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
8969 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
8970 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
8971 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
8972 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
8973 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
8974 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
8975 * testsuite/libgomp.fortran/pr28390.f: Ditto.
8976 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
8977 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
8978 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
8979 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
8980 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
8981 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
8982 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
8983 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
8984 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
8985 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
8986 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
8987 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
8988 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
8989 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
8990 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
8991 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
8992 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
8993 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
8994 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
8995 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
8996 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
8997 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
8998 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
8999 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
9000 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
9001 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
9002 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
9003 * testsuite/libgomp.fortran/reference1.f90: Ditto.
9004 * testsuite/libgomp.fortran/reference2.f90: Ditto.
9005 * testsuite/libgomp.fortran/retval1.f90: Ditto.
9006 * testsuite/libgomp.fortran/retval2.f90: Ditto.
9007 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
9008 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
9009 * testsuite/libgomp.fortran/simd1.f90: Ditto.
9010 * testsuite/libgomp.fortran/simd2.f90: Ditto.
9011 * testsuite/libgomp.fortran/simd3.f90: Ditto.
9012 * testsuite/libgomp.fortran/simd4.f90: Ditto.
9013 * testsuite/libgomp.fortran/simd5.f90: Ditto.
9014 * testsuite/libgomp.fortran/simd6.f90: Ditto.
9015 * testsuite/libgomp.fortran/simd7.f90: Ditto.
9016 * testsuite/libgomp.fortran/stack.f90: Ditto.
9017 * testsuite/libgomp.fortran/strassen.f90: Ditto.
9018 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
9019 * testsuite/libgomp.fortran/tabs2.f: Ditto.
9020 * testsuite/libgomp.fortran/target1.f90: Ditto.
9021 * testsuite/libgomp.fortran/target2.f90: Ditto.
9022 * testsuite/libgomp.fortran/target3.f90: Ditto.
9023 * testsuite/libgomp.fortran/target4.f90: Ditto.
9024 * testsuite/libgomp.fortran/target5.f90: Ditto.
9025 * testsuite/libgomp.fortran/target6.f90: Ditto.
9026 * testsuite/libgomp.fortran/target7.f90: Ditto.
9027 * testsuite/libgomp.fortran/target8.f90: Ditto.
9028 * testsuite/libgomp.fortran/task1.f90: Ditto.
9029 * testsuite/libgomp.fortran/task2.f90: Ditto.
9030 * testsuite/libgomp.fortran/task3.f90: Ditto.
9031 * testsuite/libgomp.fortran/task4.f90: Ditto.
9032 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
9033 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
9034 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
9035 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
9036 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
9037 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
9038 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
9039 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
9040 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
9041 * testsuite/libgomp.fortran/udr1.f90: Ditto.
9042 * testsuite/libgomp.fortran/udr10.f90: Ditto.
9043 * testsuite/libgomp.fortran/udr11.f90: Ditto.
9044 * testsuite/libgomp.fortran/udr12.f90: Ditto.
9045 * testsuite/libgomp.fortran/udr13.f90: Ditto.
9046 * testsuite/libgomp.fortran/udr14.f90: Ditto.
9047 * testsuite/libgomp.fortran/udr15.f90: Ditto.
9048 * testsuite/libgomp.fortran/udr2.f90: Ditto.
9049 * testsuite/libgomp.fortran/udr3.f90: Ditto.
9050 * testsuite/libgomp.fortran/udr4.f90: Ditto.
9051 * testsuite/libgomp.fortran/udr5.f90: Ditto.
9052 * testsuite/libgomp.fortran/udr6.f90: Ditto.
9053 * testsuite/libgomp.fortran/udr7.f90: Ditto.
9054 * testsuite/libgomp.fortran/udr8.f90: Ditto.
9055 * testsuite/libgomp.fortran/udr9.f90: Ditto.
9056 * testsuite/libgomp.fortran/vla1.f90: Ditto.
9057 * testsuite/libgomp.fortran/vla2.f90: Ditto.
9058 * testsuite/libgomp.fortran/vla3.f90: Ditto.
9059 * testsuite/libgomp.fortran/vla4.f90: Ditto.
9060 * testsuite/libgomp.fortran/vla5.f90: Ditto.
9061 * testsuite/libgomp.fortran/vla6.f90: Ditto.
9062 * testsuite/libgomp.fortran/vla7.f90: Ditto.
9063 * testsuite/libgomp.fortran/vla8.f90: Ditto.
9064 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
9065 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
9066
9067 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
9068
9069 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
9070 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
9071 Ditto; add 'dg-do run' for torture testing.
9072 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
9073 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
9074 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
9075 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
9076 * testsuite/libgomp.fortran/pr28390.f: Ditto.
9077 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
9078 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
9079 * testsuite/libgomp.fortran/task2.f90: Ditto.
9080 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
9081 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
9082 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
9083 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
9084 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
9085 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
9086
9087 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
9088
9089 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
9090 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
9091 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
9092 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
9093 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
9094 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
9095 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
9096 Use 'stop' not abort().
9097 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
9098 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
9099 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
9100 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
9101 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
9102 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
9103 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
9104 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
9105 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
9106 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
9107 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
9108 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
9109 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
9110 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
9111 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
9112 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
9113 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
9114 Ditto.
9115 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
9116 Ditto.
9117 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
9118 Ditto.
9119 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
9120 Ditto.
9121 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
9122 Ditto.
9123 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
9124 Ditto.
9125 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
9126 Ditto.
9127 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
9128 Ditto.
9129 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
9130 Ditto.
9131 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
9132 Ditto.
9133 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
9134 Ditto.
9135 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
9136 Ditto.
9137 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
9138 Ditto.
9139 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
9140 Ditto.
9141 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
9142 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
9143 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
9144 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
9145 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
9146 Likewise and also add 'dg-do run'.
9147 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
9148 Ditto.
9149
9150 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
9151 Tobias Burnus <tobias@codesourcery.com>
9152
9153 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
9154 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
9155 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
9156
9157 2019-10-14 Jakub Jelinek <jakub@redhat.com>
9158
9159 PR libgomp/92081
9160 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
9161 than 0.
9162
9163 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
9164
9165 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
9166 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
9167
9168 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
9169
9170 PR middle-end/92036
9171 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
9172 file.
9173
9174 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
9175
9176 PR testsuite/91884
9177 * testsuite/libgomp.fortran/fortran.exp: Conditionally
9178 add -lquadmath.
9179 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
9180
9181 2019-10-09 Jakub Jelinek <jakub@redhat.com>
9182
9183 PR libgomp/92028
9184 * target.c (gomp_map_vars_internal): Readd the previous
9185 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
9186 though do that just in the !not_found_cnt case.
9187
9188 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
9189
9190 * gfortran.dg/gomp/target-simd.f90: New.
9191
9192 2019-10-02 Julian Brown <julian@codesourcery.com>
9193 Cesar Philippidis <cesar@codesourcery.com>
9194
9195 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
9196 * target.c (FIELD_TGT_EMPTY): Define.
9197 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
9198 as switch instead of list of ifs.
9199 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
9200
9201 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
9202
9203 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
9204 include. Replace alloca () with __builtin_alloca ().
9205 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
9206
9207 2019-10-01 Jakub Jelinek <jakub@redhat.com>
9208
9209 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
9210 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
9211 * oacc-parallel.c: Don't include "libgomp_g.h".
9212 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
9213 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
9214 * aclocal.m4: Regenerated.
9215 * config.h.in: Regenerated.
9216 * configure: Regenerated.
9217 * Makefile.in: Regenerated.
9218
9219 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
9220
9221 * libgomp_g.h: Include stdint.h instead of gstdint.h.
9222
9223 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
9224
9225 * configure: Regenerate.
9226
9227 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
9228
9229 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
9230 string is initialized.
9231
9232 2019-09-06 Florian Weimer <fweimer@redhat.com>
9233
9234 * configure: Regenerate.
9235
9236 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
9237
9238 PR other/79543
9239 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
9240 scanning to conform to the GNU Coding Standards.
9241 * configure: Regenerate.
9242
9243 2019-08-28 Jakub Jelinek <jakub@redhat.com>
9244
9245 PR libgomp/91530
9246 * testsuite/libgomp.c/scan-21.c: New test.
9247 * testsuite/libgomp.c/scan-22.c: New test.
9248
9249 2019-08-27 Jakub Jelinek <jakub@redhat.com>
9250
9251 PR libgomp/91530
9252 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
9253 targets.
9254 * testsuite/libgomp.c/scan-12.c: Likewise.
9255 * testsuite/libgomp.c/scan-13.c: Likewise.
9256 * testsuite/libgomp.c/scan-14.c: Likewise.
9257 * testsuite/libgomp.c/scan-15.c: Likewise.
9258 * testsuite/libgomp.c/scan-16.c: Likewise.
9259 * testsuite/libgomp.c/scan-17.c: Likewise.
9260 * testsuite/libgomp.c/scan-18.c: Likewise.
9261 * testsuite/libgomp.c/scan-19.c: Likewise.
9262 * testsuite/libgomp.c/scan-20.c: Likewise.
9263 * testsuite/libgomp.c++/scan-9.C: Likewise.
9264 * testsuite/libgomp.c++/scan-10.C: Likewise.
9265 * testsuite/libgomp.c++/scan-11.C: Likewise.
9266 * testsuite/libgomp.c++/scan-12.C: Likewise.
9267 * testsuite/libgomp.c++/scan-14.C: Likewise.
9268 * testsuite/libgomp.c++/scan-15.C: Likewise.
9269 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
9270 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
9271 * testsuite/libgomp.c++/scan-16.C: Likewise.
9272
9273 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
9274
9275 PR fortran/91473
9276 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
9277 -std=legacy so invalid code in the test case is accepted.
9278
9279 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
9280
9281 PR fortran/91422
9282 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
9283 dimension.
9284
9285 2019-08-08 Jakub Jelinek <jakub@redhat.com>
9286
9287 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
9288 perform the lookup in the first loop only if !not_found_cnt, otherwise
9289 perform lookups for it in the second loop guarded with
9290 if (not_found_cnt || has_firstprivate).
9291 * testsuite/libgomp.c/target-37.c: New test.
9292 * testsuite/libgomp.c++/target-22.C: New test.
9293
9294 2019-08-07 Jakub Jelinek <jakub@redhat.com>
9295
9296 * testsuite/libgomp.c/target-18.c (struct S): New type.
9297 (foo): Use use_device_addr clause instead of use_device_ptr clause
9298 where required by OpenMP 5.0, add further tests for both use_device_ptr
9299 and use_device_addr clauses.
9300 * testsuite/libgomp.c++/target-9.C (struct S): New type.
9301 (foo): Use use_device_addr clause instead of use_device_ptr clause
9302 where required by OpenMP 5.0, add further tests for both use_device_ptr
9303 and use_device_addr clauses. Add t and u arguments.
9304 (main): Adjust caller.
9305
9306 2019-08-06 Jakub Jelinek <jakub@redhat.com>
9307
9308 * testsuite/libgomp.c++/loop-13.C: New test.
9309 * testsuite/libgomp.c++/loop-14.C: New test.
9310 * testsuite/libgomp.c++/loop-15.C: New test.
9311
9312 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9313
9314 PR middle-end/91301
9315 * testsuite/libgomp.c++/for-27.C: New test.
9316
9317 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
9318
9319 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
9320 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
9321
9322 2019-07-20 Jakub Jelinek <jakub@redhat.com>
9323
9324 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
9325
9326 2019-07-08 Jakub Jelinek <jakub@redhat.com>
9327
9328 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
9329 * testsuite/libgomp.c++/scan-16.C: Likewise.
9330
9331 2019-07-06 Jakub Jelinek <jakub@redhat.com>
9332
9333 * testsuite/libgomp.c/scan-19.c: New test.
9334 * testsuite/libgomp.c/scan-20.c: New test.
9335
9336 * testsuite/libgomp.c/scan-11.c: New test.
9337 * testsuite/libgomp.c/scan-12.c: New test.
9338 * testsuite/libgomp.c/scan-13.c: New test.
9339 * testsuite/libgomp.c/scan-14.c: New test.
9340 * testsuite/libgomp.c/scan-15.c: New test.
9341 * testsuite/libgomp.c/scan-16.c: New test.
9342 * testsuite/libgomp.c/scan-17.c: New test.
9343 * testsuite/libgomp.c/scan-18.c: New test.
9344 * testsuite/libgomp.c++/scan-9.C: New test.
9345 * testsuite/libgomp.c++/scan-10.C: New test.
9346 * testsuite/libgomp.c++/scan-11.C: New test.
9347 * testsuite/libgomp.c++/scan-12.C: New test.
9348 * testsuite/libgomp.c++/scan-13.C: New test.
9349 * testsuite/libgomp.c++/scan-14.C: New test.
9350 * testsuite/libgomp.c++/scan-15.C: New test.
9351 * testsuite/libgomp.c++/scan-16.C: New test.
9352
9353 2019-07-04 Jakub Jelinek <jakub@redhat.com>
9354
9355 * testsuite/libgomp.c/scan-9.c: New test.
9356 * testsuite/libgomp.c/scan-10.c: New test.
9357
9358 2019-07-03 Jakub Jelinek <jakub@redhat.com>
9359
9360 * testsuite/libgomp.c++/scan-1.C: New test.
9361 * testsuite/libgomp.c++/scan-2.C: New test.
9362 * testsuite/libgomp.c++/scan-3.C: New test.
9363 * testsuite/libgomp.c++/scan-4.C: New test.
9364 * testsuite/libgomp.c++/scan-5.C: New test.
9365 * testsuite/libgomp.c++/scan-6.C: New test.
9366 * testsuite/libgomp.c++/scan-7.C: New test.
9367 * testsuite/libgomp.c++/scan-8.C: New test.
9368 * testsuite/libgomp.c/scan-1.c: New test.
9369 * testsuite/libgomp.c/scan-2.c: New test.
9370 * testsuite/libgomp.c/scan-3.c: New test.
9371 * testsuite/libgomp.c/scan-4.c: New test.
9372 * testsuite/libgomp.c/scan-5.c: New test.
9373 * testsuite/libgomp.c/scan-6.c: New test.
9374 * testsuite/libgomp.c/scan-7.c: New test.
9375 * testsuite/libgomp.c/scan-8.c: New test.
9376
9377 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
9378
9379 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
9380 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
9381 Likewise.
9382
9383 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
9384 check.
9385
9386 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
9387
9388 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
9389 file.
9390
9391 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
9392
9393 PR fortran/90743
9394 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
9395 case.
9396 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
9397 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
9398 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
9399 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
9400
9401 PR testsuite/90861
9402 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
9403
9404 PR middle-end/90862
9405 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
9406
9407 2019-06-16 Tom de Vries <tdevries@suse.de>
9408
9409 PR tree-optimization/89376
9410 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
9411
9412 2019-06-15 Tom de Vries <tdevries@suse.de>
9413
9414 PR tree-optimization/89713
9415 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
9416 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
9417
9418 2019-06-15 Jakub Jelinek <jakub@redhat.com>
9419
9420 PR middle-end/90779
9421 * testsuite/libgomp.c/pr90779.c: New test.
9422 * testsuite/libgomp.fortran/pr90779.f90: New test.
9423
9424 2019-06-15 Tom de Vries <tdevries@suse.de>
9425
9426 PR tree-optimization/90009
9427 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
9428
9429 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
9430
9431 PR tree-optimization/89713
9432 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
9433
9434 2019-06-11 Jakub Jelinek <jakub@redhat.com>
9435
9436 PR target/90811
9437 * testsuite/libgomp.c/pr90811.c: New test.
9438
9439 2019-06-05 Jakub Jelinek <jakub@redhat.com>
9440
9441 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
9442 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
9443
9444 2019-06-04 Jakub Jelinek <jakub@redhat.com>
9445
9446 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
9447 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
9448 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
9449 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
9450
9451 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9452
9453 * configure.ac: Call AX_COUNT_CPUS.
9454 Substitute CPU_COUNT.
9455 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
9456 count fallback.
9457 * aclocal.m4: Regenerate.
9458 * configure: Regenerate.
9459 * Makefile.in, testsuite/Makefile.in: Regenerate.
9460
9461 2019-05-29 Jakub Jelinek <jakub@redhat.com>
9462
9463 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
9464 to ...
9465 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
9466 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
9467 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
9468
9469 2019-05-27 Jakub Jelinek <jakub@redhat.com>
9470
9471 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
9472
9473 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
9474
9475 PR libgomp/90641
9476 * work.c (gomp_init_work_share): Instead of aligning final ordered
9477 value to multiples of long long alignment, align to that the
9478 first part (ordered team ids) and if inline_ordered_team_ids
9479 is not on a long long alignment boundary within the structure,
9480 use __alignof__ (long long) - 1 pad size always.
9481 * loop.c (GOMP_loop_start): Fix *mem computation if
9482 inline_ordered_team_ids is not aligned on long long alignment boundary
9483 within the structure.
9484 * loop-ull.c (GOMP_loop_ull_start): Likewise.
9485 * sections.c (GOMP_sections2_start): Likewise.
9486
9487 2019-05-24 Jakub Jelinek <jakub@redhat.com>
9488
9489 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
9490 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
9491
9492 PR libgomp/90585
9493 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
9494 HAVE_INTTYPES_H is defined.
9495 (print_uint64_t): New typedef.
9496 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
9497 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
9498 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
9499 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
9500 before casting to void *.
9501 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
9502 * oacc-mem.c: Don't include config.h nor stdint.h.
9503 * target.c: Don't include config.h.
9504 * oacc-cuda.c: Likewise.
9505 * oacc-host.c: Don't include stdint.h.
9506
9507 2019-05-20 Jakub Jelinek <jakub@redhat.com>
9508
9509 PR libgomp/90527
9510 * alloc.c (_GNU_SOURCE): Define.
9511
9512 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
9513
9514 * acc_prof.h: New file.
9515 * oacc-profiling.c: Likewise.
9516 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
9517 Add these, respectively.
9518 * Makefile.in: Regenerate.
9519 * env.c (initialize_env): Call goacc_profiling_initialize.
9520 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
9521 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
9522 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
9523 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
9524 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
9525 acc_prof_register, acc_prof_unregister, and acc_register_library.
9526 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
9527 GOMP_PLUGIN_goacc_thread.
9528 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
9529 prof_callbacks_enabled members.
9530 (goacc_prof_enabled, goacc_profiling_initialize)
9531 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
9532 (goacc_profiling_dispatch): Declare.
9533 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
9534 (GOACC_PROFILING_SETUP_P): Define.
9535 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
9536 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
9537 OpenACC Profiling Interface.
9538 * oacc-cuda.c (acc_get_current_cuda_device)
9539 (acc_get_current_cuda_context, acc_get_cuda_stream)
9540 (acc_set_cuda_stream): Likewise.
9541 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
9542 (acc_init, acc_set_device_type, acc_get_device_type)
9543 (acc_get_device_num, goacc_lazy_initialize): Likewise.
9544 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
9545 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
9546 (acc_unmap_data, present_create_copy, delete_copyout)
9547 (update_dev_host): Likewise.
9548 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
9549 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
9550 Likewise.
9551 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
9552 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
9553 Likewise.
9554 * libgomp.texi: Update.
9555 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
9556 file.
9557 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
9558 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
9559 Likewise.
9560 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
9561 Likewise.
9562 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
9563 Likewise.
9564 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
9565 Likewise.
9566
9567 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
9568
9569 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
9570 (struct goacc_asyncqueue_list): Likewise.
9571 (goacc_aq): Likewise.
9572 (goacc_aq_list): Likewise.
9573 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9574 (GOMP_OFFLOAD_openacc_async_test): Remove.
9575 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9576 (GOMP_OFFLOAD_openacc_async_wait): Remove.
9577 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9578 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9579 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9580 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9581 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
9582 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
9583 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
9584 (GOMP_OFFLOAD_openacc_async_exec): Declare.
9585 (GOMP_OFFLOAD_openacc_async_construct): Declare.
9586 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
9587 (GOMP_OFFLOAD_openacc_async_test): Declare.
9588 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
9589 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
9590 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
9591 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
9592 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
9593
9594 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
9595 (gomp_acc_insert_pointer): Adjust declaration.
9596 (gomp_copy_host2dev): New declaration.
9597 (gomp_copy_dev2host): Likewise.
9598 (gomp_map_vars_async): Likewise.
9599 (gomp_unmap_tgt): Likewise.
9600 (gomp_unmap_vars_async): Likewise.
9601 (gomp_fini_device): Likewise.
9602
9603 * oacc-async.c (get_goacc_thread): New function.
9604 (get_goacc_thread_device): New function.
9605 (lookup_goacc_asyncqueue): New function.
9606 (get_goacc_asyncqueue): New function.
9607 (acc_async_test): Adjust code to use new async design.
9608 (acc_async_test_all): Likewise.
9609 (acc_wait): Likewise.
9610 (acc_wait_async): Likewise.
9611 (acc_wait_all): Likewise.
9612 (acc_wait_all_async): Likewise.
9613 (goacc_async_free): New function.
9614 (goacc_init_asyncqueues): Likewise.
9615 (goacc_fini_asyncqueues): Likewise.
9616 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
9617 design.
9618 (acc_set_cuda_stream): Likewise.
9619 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
9620 (host_openacc_register_async_cleanup): Remove.
9621 (host_openacc_async_exec): New function.
9622 (host_openacc_async_test): Adjust parameters.
9623 (host_openacc_async_test_all): Remove.
9624 (host_openacc_async_wait): Remove.
9625 (host_openacc_async_wait_async): Remove.
9626 (host_openacc_async_wait_all): Remove.
9627 (host_openacc_async_wait_all_async): Remove.
9628 (host_openacc_async_set_async): Remove.
9629 (host_openacc_async_synchronize): New function.
9630 (host_openacc_async_serialize): New function.
9631 (host_openacc_async_host2dev): New function.
9632 (host_openacc_async_dev2host): New function.
9633 (host_openacc_async_queue_callback): New function.
9634 (host_openacc_async_construct): New function.
9635 (host_openacc_async_destruct): New function.
9636 (struct gomp_device_descr host_dispatch): Remove initialization of old
9637 interface, add initialization of new async sub-struct.
9638 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
9639 (goacc_attach_host_thread_to_device): Remove old async code usage.
9640 * oacc-int.h (goacc_init_asyncqueues): New declaration.
9641 (goacc_fini_asyncqueues): Likewise.
9642 (goacc_async_copyout_unmap_vars): Likewise.
9643 (goacc_async_free): Likewise.
9644 (get_goacc_asyncqueue): Likewise.
9645 (lookup_goacc_asyncqueue): Likewise.
9646 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
9647 design.
9648 (present_create_copy): Adjust code to use new async design.
9649 (delete_copyout): Likewise.
9650 (update_dev_host): Likewise.
9651 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
9652 async design.
9653 (gomp_acc_remove_pointer): Adjust code to use new async design.
9654 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
9655 design.
9656 (GOACC_enter_exit_data): Likewise.
9657 (goacc_wait): Likewise.
9658 (GOACC_update): Likewise.
9659 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
9660 when called, warn as obsolete in comment.
9661 * target.c (goacc_device_copy_async): New function.
9662 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
9663 add goacc_device_copy_async case.
9664 (gomp_copy_dev2host): Likewise.
9665 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
9666 (gomp_map_pointer): Likewise.
9667 (gomp_map_fields_existing): Likewise.
9668 (gomp_map_vars_internal): New always_inline function, renamed from
9669 gomp_map_vars.
9670 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
9671 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
9672 passing goacc_asyncqueue argument.
9673 (gomp_unmap_tgt): Remove static, add attribute_hidden.
9674 (gomp_unref_tgt): New function.
9675 (gomp_unmap_vars_internal): New always_inline function, renamed from
9676 gomp_unmap_vars.
9677 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
9678 (gomp_unmap_vars_async): Implement by calling
9679 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
9680 (gomp_fini_device): New function.
9681 (gomp_exit_data): Adjust gomp_copy_dev2host call.
9682 (gomp_load_plugin_for_device): Remove old interface, adjust to load
9683 new async interface.
9684 (gomp_target_fini): Adjust code to call gomp_fini_device.
9685
9686 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
9687 (struct ptx_stream): Remove.
9688 (struct nvptx_thread): Remove current_stream field.
9689 (cuda_map_create): Remove.
9690 (cuda_map_destroy): Remove.
9691 (map_init): Remove.
9692 (map_fini): Remove.
9693 (map_pop): Remove.
9694 (map_push): Remove.
9695 (struct goacc_asyncqueue): Define.
9696 (struct nvptx_callback): Define.
9697 (struct ptx_free_block): Define.
9698 (struct ptx_device): Remove null_stream, active_streams, async_streams,
9699 stream_lock, and next fields.
9700 (enum ptx_event_type): Remove.
9701 (struct ptx_event): Remove.
9702 (ptx_event_lock): Remove.
9703 (ptx_events): Remove.
9704 (init_streams_for_device): Remove.
9705 (fini_streams_for_device): Remove.
9706 (select_stream_for_async): Remove.
9707 (nvptx_init): Remove ptx_events and ptx_event_lock references.
9708 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
9709 case.
9710 (nvptx_open_device): Add free_blocks initialization, remove
9711 init_streams_for_device call.
9712 (nvptx_close_device): Remove fini_streams_for_device call, add
9713 free_blocks destruct code.
9714 (event_gc): Remove.
9715 (event_add): Remove.
9716 (nvptx_exec): Adjust parameters and code.
9717 (nvptx_free): Likewise.
9718 (nvptx_host2dev): Remove.
9719 (nvptx_dev2host): Remove.
9720 (nvptx_set_async): Remove.
9721 (nvptx_async_test): Remove.
9722 (nvptx_async_test_all): Remove.
9723 (nvptx_wait): Remove.
9724 (nvptx_wait_async): Remove.
9725 (nvptx_wait_all): Remove.
9726 (nvptx_wait_all_async): Remove.
9727 (nvptx_get_cuda_stream): Remove.
9728 (nvptx_set_cuda_stream): Remove.
9729 (GOMP_OFFLOAD_alloc): Adjust code.
9730 (GOMP_OFFLOAD_free): Likewise.
9731 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9732 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
9733 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9734 (GOMP_OFFLOAD_openacc_async_wait): Remove.
9735 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9736 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9737 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9738 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9739 (cuda_free_argmem): New function.
9740 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
9741 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
9742 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
9743 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
9744 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
9745 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
9746 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
9747 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
9748 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
9749 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
9750 (cuda_callback_wrapper): New function.
9751 (cuda_memcpy_sanity_check): New function.
9752 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
9753 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
9754 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
9755 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
9756
9757 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
9758
9759 PR target/87835
9760 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
9761
9762 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
9763
9764 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
9765
9766 2019-03-27 Kevin Buettner <kevinb@redhat.com>
9767
9768 * team.c (gomp_team_start): Initialize pool->threads[0].
9769
9770 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
9771
9772 * testsuite/libgomp.oacc-c++/c++.exp: Specify
9773 "-foffload=$offload_target".
9774 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9775 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9776 * testsuite/lib/libgomp.exp
9777 (check_effective_target_openacc_nvidia_accel_configured): Remove,
9778 as (conceptually) merged into
9779 check_effective_target_openacc_nvidia_accel_selected. Adjust all
9780 users.
9781
9782 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
9783 * testsuite/libgomp-test-support.exp.in: Adjust.
9784 * testsuite/lib/libgomp.exp: Likewise. Don't populate
9785 openacc_device_types_s.
9786 (offload_target_to_openacc_device_type): New proc.
9787 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
9788 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9789 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9790 * Makefile.in: Regenerate.
9791 * configure: Likewise.
9792 * testsuite/Makefile.in: Likewise.
9793
9794 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
9795 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
9796 instead of OFFLOAD_TARGETS.
9797 * target.c (gomp_target_init): Adjust.
9798 * testsuite/libgomp-test-support.exp.in: Likewise.
9799 * testsuite/lib/libgomp.exp: Likewise. Populate
9800 openacc_device_types_s instead of offload_targets_s_openacc.
9801 (check_effective_target_openacc_nvidia_accel_selected)
9802 (check_effective_target_openacc_host_selected): Adjust.
9803 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
9804 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9805 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9806 * Makefile.in: Regenerate.
9807 * config.h.in: Likewise.
9808 * configure: Likewise.
9809 * testsuite/Makefile.in: Likewise.
9810
9811 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
9812 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
9813 "offloading: supported, but hardware not accessible".
9814 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9815 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9816
9817 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
9818
9819 PR c/87924
9820 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
9821 goacc_wait().
9822 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
9823 and related adjustment.
9824
9825 2019-01-30 Jakub Jelinek <jakub@redhat.com>
9826
9827 PR c++/88988
9828 * testsuite/libgomp.c++/pr88988.C: New test.
9829
9830 2019-01-28 Jakub Jelinek <jakub@redhat.com>
9831
9832 PR middle-end/89002
9833 * testsuite/libgomp.c/pr89002.c: New test.
9834
9835 2019-01-28 Richard Biener <rguenther@suse.de>
9836
9837 PR testsuite/89064
9838 PR tree-optimization/86865
9839 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
9840
9841 2019-01-24 Tom de Vries <tdevries@suse.de>
9842
9843 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
9844 once instantiated_devices drops to 0.
9845
9846 2019-01-23 Tom de Vries <tdevries@suse.de>
9847
9848 PR target/PR88946
9849 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
9850 cuMemFree.
9851 (nvptx_exec): Don't call map_push if mapnum == 0.
9852 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
9853
9854 2019-01-23 Tom de Vries <tdevries@suse.de>
9855
9856 PR target/88941
9857 PR target/88939
9858 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
9859 (map_fini): Remove "assert (!s->map->active)".
9860 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
9861
9862 2019-01-23 Tom de Vries <tdevries@suse.de>
9863
9864 PR target/87835
9865 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
9866 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
9867
9868 2019-01-15 Tom de Vries <tdevries@suse.de>
9869
9870 PR target/80547
9871 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
9872 New test.
9873
9874 2019-01-12 Tom de Vries <tdevries@suse.de>
9875
9876 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
9877 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
9878 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
9879 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
9880
9881 2019-01-12 Tom de Vries <tdevries@suse.de>
9882
9883 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
9884
9885 2019-01-12 Tom de Vries <tdevries@suse.de>
9886
9887 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
9888 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
9889 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
9890
9891 2019-01-12 Tom de Vries <tdevries@suse.de>
9892
9893 PR target/85486
9894 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
9895 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
9896
9897 2019-01-12 Tom de Vries <tdevries@suse.de>
9898
9899 PR target/85381
9900 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
9901 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
9902
9903 2019-01-12 Tom de Vries <tdevries@suse.de>
9904
9905 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
9906 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
9907 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
9908
9909 2019-01-12 Tom de Vries <tdevries@suse.de>
9910
9911 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
9912 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
9913 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
9914
9915 2019-01-12 Tom de Vries <tdevries@suse.de>
9916
9917 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
9918 resources diagnostic.
9919
9920 2019-01-12 Tom de Vries <tdevries@suse.de>
9921
9922 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
9923 vector length to be 128.
9924 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
9925 length 2097152 to be reduced to 1024 instead of 32.
9926
9927 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
9928 James Norris <jnorris@codesourcery.com>
9929
9930 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
9931 Library Routines", and "Environment Variables".
9932
9933 2019-01-11 Tom de Vries <tdevries@suse.de>
9934
9935 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
9936 num_workers 16.
9937
9938 2019-01-11 Tom de Vries <tdevries@suse.de>
9939
9940 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
9941 -foffload=-w.
9942 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
9943 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
9944 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
9945 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
9946
9947 2019-01-11 Tom de Vries <tdevries@suse.de>
9948
9949 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
9950 test.
9951
9952 2019-01-10 Nathan Sidwell <nathan@acm.org>
9953 Julian Brown <julian@codesourcery.com>
9954
9955 PR lto/71959
9956 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
9957 * testsuite/libgomp.oacc-c++/pr71959.C: New.
9958
9959 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
9960
9961 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
9962 and paste code.
9963
9964 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
9965
9966 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
9967 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
9968 write.
9969
9970 2019-01-09 Tom de Vries <tdevries@suse.de>
9971
9972 PR target/88756
9973 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
9974 #define instead of "const int".
9975 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
9976 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
9977 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
9978 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
9979
9980 2019-01-09 Tom de Vries <tdevries@suse.de>
9981
9982 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
9983 one worker.
9984
9985 2019-01-07 Tom de Vries <tdevries@suse.de>
9986
9987 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
9988 GOMP_OPENACC_DIM argument.
9989
9990 2019-01-03 Tom de Vries <tdevries@suse.de>
9991
9992 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
9993 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
9994
9995 2019-01-01 Jakub Jelinek <jakub@redhat.com>
9996
9997 Update copyright years.
9998
9999 2019-01-01 Jakub Jelinek <jakub@redhat.com>
10000
10001 * libgomp.texi: Bump @copying's copyright year.
10002
10003 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
10004
10005 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
10006 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
10007 (GOACC_declare): Redefine the "device" argument to "flags".
10008
10009 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
10010 Cesar Philippidis <cesar@codesourcery.com>
10011
10012 * target.c (struct gomp_coalesce_chunk): New structure.
10013 (struct gomp_coalesce_buf): Update the chunks member to use that
10014 type. Adjust all users.
10015
10016 2018-12-19 Tom de Vries <tdevries@suse.de>
10017
10018 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
10019 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
10020 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
10021
10022 2018-12-19 Tom de Vries <tdevries@suse.de>
10023
10024 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
10025 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
10026 gcc/testsuite/gcc.dg/goacc.
10027 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
10028
10029 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
10030 Chung-Lin Tang <cltang@codesourcery.com>
10031
10032 * oacc-mem.c (acc_present_or_create): Remove definition and change
10033 to alias of acc_create.
10034 (acc_present_or_copyin): Remove definition and change to alias of
10035 acc_copyin.
10036 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
10037 of acc_present_or_create.
10038 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
10039 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10040 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
10041 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
10042 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
10043 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
10044 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
10045 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10046 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
10047 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10048 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
10049 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
10050 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
10051 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
10052 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
10053 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10054
10055 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
10056
10057 PR libgomp/88495
10058 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
10059 "identical parameters".
10060 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
10061 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
10062
10063 PR libgomp/88484
10064 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
10065 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
10066
10067 PR libgomp/88407
10068 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
10069 (nvptx_wait_async): Unseen async-argument is a no-op.
10070 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
10071 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
10072 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
10073 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
10074 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
10075 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
10076 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
10077 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
10078 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
10079
10080 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
10081 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
10082
10083 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
10084
10085 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
10086 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
10087 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
10088
10089 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
10090
10091 PR libgomp/88370
10092 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
10093 (acc_set_cuda_stream): Clarify.
10094 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
10095 "async_valid_p".
10096 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
10097 acc_async_sync".
10098 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
10099 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
10100 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
10101 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
10102
10103 2018-12-14 Tom de Vries <tdevries@suse.de>
10104
10105 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
10106 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
10107 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
10108 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
10109 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
10110
10111 2018-12-13 Tom de Vries <tdevries@suse.de>
10112
10113 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
10114 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
10115 * fortran.c (omp_display_affinity_): ... here.
10116 * libgomp.h (gomp_print_string): Declare.
10117 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
10118 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
10119 write.
10120
10121 2018-12-13 Jakub Jelinek <jakub@redhat.com>
10122
10123 PR libgomp/88460
10124 * testsuite/libgomp.c++/for-24.C (results): Include it in
10125 omp declare target region.
10126 (main): Use map (always, tofrom: results) instead of
10127 map (tofrom: results).
10128
10129 2018-12-12 Jakub Jelinek <jakub@redhat.com>
10130
10131 PR fortran/88463
10132 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
10133 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
10134
10135 * testsuite/libgomp.c-c++-common/for-16.c: New test.
10136
10137 2018-12-12 Andreas Schwab <schwab@suse.de>
10138
10139 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
10140 clobbered.
10141
10142 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
10143
10144 PR fortran/88411
10145 * testsuite/libgomp.fortran/async_io_8.f90: New test.
10146
10147 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
10148 Jakub Jelinek <jakub@redhat.com>
10149
10150 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
10151 devicep->host2dev_func.
10152
10153 2018-12-08 Jakub Jelinek <jakub@redhat.com>
10154
10155 PR libgomp/87995
10156 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
10157 tls_runtime effective target.
10158 (t): New threadprivate variable.
10159 (main): Set t in threads which execute iterations of the worksharing
10160 loop. Propagate that to the task after the loop and don't abort
10161 if the current taskgroup hasn't been cancelled.
10162
10163 2018-12-02 Jakub Jelinek <jakub@redhat.com>
10164
10165 * testsuite/libgomp.c/task-reduction-3.c: New test.
10166
10167 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
10168
10169 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
10170
10171 PR libgomp/88288
10172 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
10173 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
10174
10175 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
10176
10177 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
10178
10179 2018-10-19 Richard Biener <rguenther@suse.de>
10180
10181 PR tree-optimization/88182
10182 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
10183
10184 2018-11-26 Jakub Jelinek <jakub@redhat.com>
10185
10186 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
10187 (RUNTEST): Don't define.
10188 (RUNTESTDEFAULTFLAGS): Add.
10189 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
10190 (distclean-am): Depend on distclean-DEJAGNU.
10191 (check-am): If -j% option is present in MFLAGS and if
10192 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
10193 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
10194 * testsuite/Makefile.in: Regenerated.
10195
10196 2018-11-26 Richard Biener <rguenther@suse.de>
10197
10198 PR tree-optimization/88182
10199 * testsuite/libgomp.c++/pr88182.C: New testcase.
10200
10201 2018-11-20 Jakub Jelinek <jakub@redhat.com>
10202
10203 PR bootstrap/88106
10204 * config/mingw32/affinity-fmt.c: New file.
10205
10206 2018-11-09 Jakub Jelinek <jakub@redhat.com>
10207
10208 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
10209 (gomp_display_affinity): Use __builtin_choose_expr to handle
10210 properly handle argument having integral, or pointer or some other
10211 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
10212 with uint64_t type instead of %llx and unsigned long long.
10213
10214 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
10215 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
10216
10217 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10218
10219 * affinity.c: Include <string.h>, <stdio.h>.
10220 (gomp_display_affinity_place): Remove cpusetp.
10221 * teams.c: Include <limits.h>.
10222
10223 2018-11-08 Jakub Jelinek <jakub@redhat.com>
10224
10225 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
10226 in_reduction clause for s[0].
10227
10228 * affinity.c (gomp_display_affinity_place): New function.
10229 * affinity-fmt.c: New file.
10230 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
10231 * config/linux/affinity.c (gomp_display_affinity_place): New function.
10232 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
10233 Move these functions to ...
10234 * config/nvptx/teams.c: ... here. New file.
10235 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
10236 New functions.
10237 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
10238 functions.
10239 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
10240 and _aligned_malloc.
10241 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
10242 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
10243 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
10244 gomp_affinity_format_len): New variables.
10245 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
10246 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
10247 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
10248 modifiers. Display (non-default) chunk sizes. Print
10249 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
10250 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
10251 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
10252 * fortran.c: Include stdio.h and string.h.
10253 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
10254 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
10255 (omp_set_affinity_format_, omp_get_affinity_format_,
10256 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
10257 omp_pause_resource_all_): New functions.
10258 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
10259 switch.
10260 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
10261 functions to ...
10262 * teams.c: ... here. New file.
10263 * libgomp_g.h: Include gstdint.h.
10264 (GOMP_loop_nonmonotonic_runtime_start,
10265 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
10266 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
10267 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
10268 GOMP_parallel_loop_nonmonotonic_runtime,
10269 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10270 GOMP_loop_ull_nonmonotonic_runtime_start,
10271 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
10272 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
10273 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10274 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
10275 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
10276 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10277 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
10278 GOMP_teams_reg): Declare.
10279 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
10280 gomp_aligned_alloc uses fallback implementation.
10281 (gomp_aligned_alloc, gomp_aligned_free): Declare.
10282 (enum gomp_schedule_type): Add GFS_MONOTONIC.
10283 (struct gomp_doacross_work_share): Add extra field.
10284 (struct gomp_work_share): Add task_reductions field.
10285 (struct gomp_taskgroup): Add workshare and reductions fields.
10286 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
10287 (gomp_thread_handle): New typedef.
10288 (gomp_display_affinity_place, gomp_set_affinity_format,
10289 gomp_display_string, gomp_display_affinity,
10290 gomp_display_affinity_thread): Declare.
10291 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
10292 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
10293 gomp_workshare_task_reduction_register): Declare.
10294 (gomp_team_start): Add taskgroup argument.
10295 (gomp_pause_host): Declare.
10296 (gomp_init_work_share, gomp_work_share_start): Change bool argument
10297 to size_t.
10298 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
10299 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
10300 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
10301 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
10302 GOMP_loop_ull_doacross_start,
10303 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
10304 GOMP_loop_maybe_nonmonotonic_runtime_next,
10305 GOMP_loop_maybe_nonmonotonic_runtime_start,
10306 GOMP_loop_nonmonotonic_runtime_next,
10307 GOMP_loop_nonmonotonic_runtime_start,
10308 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10309 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
10310 GOMP_loop_ull_nonmonotonic_runtime_next,
10311 GOMP_loop_ull_nonmonotonic_runtime_start,
10312 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10313 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
10314 GOMP_taskgroup_reduction_register,
10315 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10316 GOMP_teams_reg and GOMP_taskwait_depend.
10317 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
10318 omp_{capture,display}_affinity{,_}, and
10319 omp_[gs]et_affinity_format{,_}.
10320 * loop.c: Include string.h.
10321 (GOMP_loop_runtime_next): Add ialias.
10322 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10323 (gomp_loop_static_start, gomp_loop_dynamic_start,
10324 gomp_loop_guided_start, gomp_loop_ordered_static_start,
10325 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
10326 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
10327 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
10328 or gomp_doacross_init callers.
10329 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
10330 GOMP_loop_doacross_start): New functions.
10331 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
10332 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
10333 Mask off GFS_MONOTONIC bit.
10334 (GOMP_loop_maybe_nonmonotonic_runtime_next,
10335 GOMP_loop_maybe_nonmonotonic_runtime_start,
10336 GOMP_loop_nonmonotonic_runtime_next,
10337 GOMP_loop_nonmonotonic_runtime_start,
10338 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10339 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
10340 functions.
10341 (gomp_parallel_loop_start): Pass NULL as taskgroup to
10342 gomp_team_start.
10343 * loop_ull.c: Include string.h.
10344 (GOMP_loop_ull_runtime_next): Add ialias.
10345 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10346 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
10347 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
10348 gomp_loop_ull_ordered_dynamic_start,
10349 gomp_loop_ull_ordered_guided_start,
10350 gomp_loop_ull_doacross_static_start,
10351 gomp_loop_ull_doacross_dynamic_start,
10352 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
10353 and gomp_doacross_ull_init callers.
10354 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
10355 GOMP_loop_ull_doacross_start): New functions.
10356 (GOMP_loop_ull_runtime_start,
10357 GOMP_loop_ull_ordered_runtime_start,
10358 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
10359 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10360 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
10361 GOMP_loop_ull_nonmonotonic_runtime_next,
10362 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
10363 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
10364 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
10365 (omp_pause_resource_t, omp_depend_t): New typedefs.
10366 (enum omp_lock_hint_t): Renamed to ...
10367 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
10368 enumerators using numbers and omp_lock_hint_* as their aliases.
10369 (omp_lock_hint_t): New typedef. Rename to ...
10370 (omp_sync_hint_t): ... this.
10371 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
10372 omp_sync_hint_t instead of omp_lock_hint_t.
10373 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10374 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10375 Declare.
10376 (omp_target_is_present, omp_target_disassociate_ptr):
10377 Change first argument from void * to const void *.
10378 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
10379 from void * to const void *.
10380 (omp_target_associate_ptr): Change first and second arguments from
10381 void * to const void *.
10382 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
10383 omp_pause_hard): New parameters.
10384 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10385 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10386 New interfaces.
10387 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
10388 omp_pause_hard): New parameters.
10389 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10390 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10391 New externals.
10392 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
10393 EXTRA argument. If not needed to prepare array, if extra is 0,
10394 clear ws->doacross, otherwise allocate just doacross structure and
10395 extra payload. If array is needed, allocate also extra payload.
10396 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
10397 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
10398 doacross == NULL.
10399 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
10400 gomp_team_start.
10401 (GOMP_parallel): Likewise. Formatting fix.
10402 (GOMP_parallel_reductions): New function.
10403 (GOMP_cancellation_point): If taskgroup has workshare
10404 flag set, check cancelled of prev taskgroup if any.
10405 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
10406 on prev taskgroup if any.
10407 * sections.c: Include string.h.
10408 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10409 (GOMP_sections_start): Adjust gomp_work_share_start caller.
10410 (GOMP_sections2_start): New function.
10411 (GOMP_parallel_sections_start, GOMP_parallel_sections):
10412 Pass NULL as taskgroup to gomp_team_start.
10413 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
10414 gomp_work_share_start callers.
10415 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
10416 If taskgroup has workshare flag set, check cancelled on prev
10417 taskgroup if any. Guard all cancellation tests with
10418 gomp_cancel_var test.
10419 (omp_target_is_present, omp_target_disassociate_ptr):
10420 Change ptr argument from void * to const void *.
10421 (omp_target_memcpy): Change src argument from void * to const void *.
10422 (omp_target_memcpy_rect): Likewise.
10423 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
10424 instead of char * where needed.
10425 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
10426 from void * to const void *.
10427 (omp_pause_resource, omp_pause_resource_all): New functions.
10428 * task.c (gomp_task_handle_depend): Handle new depend array format
10429 in addition to the old. Handle mutexinoutset kinds the same as
10430 inout for now, handle unspecified kinds.
10431 (gomp_create_target_task): If taskgroup has workshare flag set, check
10432 cancelled on prev taskgroup if any. Guard all cancellation tests with
10433 gomp_cancel_var test. Handle new depend array format count in
10434 addition to the old.
10435 (GOMP_task): Likewise. Adjust function comment.
10436 (gomp_task_run_pre): If taskgroup has workshare flag set, check
10437 cancelled on prev taskgroup if any. Guard all cancellation tests with
10438 gomp_cancel_var test.
10439 (GOMP_taskwait_depend): New function.
10440 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
10441 format in addition to the old. Handle mutexinoutset kinds the same as
10442 inout for now, handle unspecified kinds. Fix a function comment typo.
10443 (gomp_taskgroup_init): New function.
10444 (GOMP_taskgroup_start): Use it.
10445 (gomp_reduction_register, gomp_create_artificial_team,
10446 GOMP_taskgroup_reduction_register,
10447 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10448 gomp_parallel_reduction_register,
10449 gomp_workshare_task_reduction_register,
10450 gomp_workshare_taskgroup_start,
10451 GOMP_workshare_task_reduction_unregister): New functions.
10452 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
10453 check cancelled on prev taskgroup if any. Guard all cancellation
10454 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
10455 by calling GOMP_taskgroup_reduction_register.
10456 * team.c (gomp_thread_attr): Remove comment.
10457 (struct gomp_thread_start_data): Add handle field.
10458 (gomp_thread_start): Call pthread_detach.
10459 (gomp_new_team): Adjust gomp_init_work_share caller.
10460 (gomp_free_pool_helper): Call pthread_detach.
10461 (gomp_team_start): Add taskgroup argument, initialize implicit
10462 tasks' taskgroup field to that. Don't call
10463 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
10464 (gomp_team_end): Determine nesting by thr->ts.level != 0
10465 rather than thr->ts.team != NULL.
10466 (gomp_pause_pool_helper, gomp_pause_host): New functions.
10467 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
10468 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
10469 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
10470 if more than 1 allocate also extra payload at the end of array. Never
10471 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
10472 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
10473 return true instead of ws.
10474 * Makefile.in: Regenerated.
10475 * configure: Regenerated.
10476 * config.h.in: Regenerated.
10477 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
10478 in some cases.
10479 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
10480 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
10481 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
10482 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
10483 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
10484 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
10485 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
10486 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
10487 * testsuite/libgomp.c-c++-common/for-10.c: New test.
10488 * testsuite/libgomp.c-c++-common/for-11.c: New test.
10489 * testsuite/libgomp.c-c++-common/for-12.c: New test.
10490 * testsuite/libgomp.c-c++-common/for-13.c: New test.
10491 * testsuite/libgomp.c-c++-common/for-14.c: New test.
10492 * testsuite/libgomp.c-c++-common/for-15.c: New test.
10493 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
10494 define a different N(test), don't define N(f0) to N(f14), but instead
10495 define N(f20) to N(f34) using != comparisons.
10496 * testsuite/libgomp.c-c++-common/for-7.c: New test.
10497 * testsuite/libgomp.c-c++-common/for-8.c: New test.
10498 * testsuite/libgomp.c-c++-common/for-9.c: New test.
10499 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
10500 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
10501 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
10502 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
10503 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
10504 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
10505 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
10506 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
10507 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
10508 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
10509 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
10510 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
10511 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
10512 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
10513 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
10514 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
10515 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
10516 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
10517 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
10518 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
10519 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
10520 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
10521 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
10522 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
10523 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
10524 * testsuite/libgomp.c++/depend-1.C: New test.
10525 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
10526 * testsuite/libgomp.c++/depobj-1.C: New test.
10527 * testsuite/libgomp.c++/for-16.C: New test.
10528 * testsuite/libgomp.c++/for-21.C: New test.
10529 * testsuite/libgomp.c++/for-22.C: New test.
10530 * testsuite/libgomp.c++/for-23.C: New test.
10531 * testsuite/libgomp.c++/for-24.C: New test.
10532 * testsuite/libgomp.c++/for-25.C: New test.
10533 * testsuite/libgomp.c++/for-26.C: New test.
10534 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
10535 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
10536 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
10537 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
10538 * testsuite/libgomp.c++/task-reduction-10.C: New test.
10539 * testsuite/libgomp.c++/task-reduction-11.C: New test.
10540 * testsuite/libgomp.c++/task-reduction-12.C: New test.
10541 * testsuite/libgomp.c++/task-reduction-13.C: New test.
10542 * testsuite/libgomp.c++/task-reduction-14.C: New test.
10543 * testsuite/libgomp.c++/task-reduction-15.C: New test.
10544 * testsuite/libgomp.c++/task-reduction-16.C: New test.
10545 * testsuite/libgomp.c++/task-reduction-17.C: New test.
10546 * testsuite/libgomp.c++/task-reduction-18.C: New test.
10547 * testsuite/libgomp.c++/task-reduction-19.C: New test.
10548 * testsuite/libgomp.c/task-reduction-1.c: New test.
10549 * testsuite/libgomp.c++/task-reduction-1.C: New test.
10550 * testsuite/libgomp.c/task-reduction-2.c: New test.
10551 * testsuite/libgomp.c++/task-reduction-2.C: New test.
10552 * testsuite/libgomp.c++/task-reduction-3.C: New test.
10553 * testsuite/libgomp.c++/task-reduction-4.C: New test.
10554 * testsuite/libgomp.c++/task-reduction-5.C: New test.
10555 * testsuite/libgomp.c++/task-reduction-6.C: New test.
10556 * testsuite/libgomp.c++/task-reduction-7.C: New test.
10557 * testsuite/libgomp.c++/task-reduction-8.C: New test.
10558 * testsuite/libgomp.c++/task-reduction-9.C: New test.
10559 * testsuite/libgomp.c/teams-1.c: New test.
10560 * testsuite/libgomp.c/teams-2.c: New test.
10561 * testsuite/libgomp.c/thread-limit-4.c: New test.
10562 * testsuite/libgomp.c/thread-limit-5.c: New test.
10563 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
10564
10565 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
10566
10567 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
10568 acc_memcpy_to/from_device functions, now with async parameter.
10569 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
10570 (acc_memcpy_from_device): Likewise.
10571 (acc_memcpy_to_device_async): New API function.
10572 (acc_memcpy_from_device_async): Likewise.
10573 (present_create_copy): Add async parameter and async setting/unsetting.
10574 (acc_create): Adjust present_create_copy call.
10575 (acc_copyin): Likewise.
10576 (acc_present_or_create): Likewise.
10577 (acc_present_or_copyin): Likewise.
10578 (acc_create_async): New API function.
10579 (acc_copyin_async): New API function.
10580 (delete_copyout): Add async parameter and async setting/unsetting.
10581 (acc_delete): Adjust delete_copyout call.
10582 (acc_copyout): Likewise.
10583 (acc_delete_async): New API function.
10584 (acc_copyout_async): Likewise.
10585 (update_dev_host): Add async parameter and async setting/unsetting.
10586 (acc_update_device): Adjust update_dev_host call.
10587 (acc_update_self): Likewise.
10588 (acc_update_device_async): New API function.
10589 (acc_update_self_async): Likewise.
10590 * openacc.h (acc_copyin_async): Declare new API function.
10591 (acc_create_async): Likewise.
10592 (acc_copyout_async): Likewise.
10593 (acc_delete_async): Likewise.
10594 (acc_update_device_async): Likewise.
10595 (acc_update_self_async): Likewise.
10596 (acc_memcpy_to_device_async): Likewise.
10597 (acc_memcpy_from_device_async): Likewise.
10598 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
10599 (acc_copyin_async_64_h): New subroutine.
10600 (acc_copyin_async_array_h): New subroutine.
10601 (acc_create_async_32_h): New subroutine.
10602 (acc_create_async_64_h): New subroutine.
10603 (acc_create_async_array_h): New subroutine.
10604 (acc_copyout_async_32_h): New subroutine.
10605 (acc_copyout_async_64_h): New subroutine.
10606 (acc_copyout_async_array_h): New subroutine.
10607 (acc_delete_async_32_h): New subroutine.
10608 (acc_delete_async_64_h): New subroutine.
10609 (acc_delete_async_array_h): New subroutine.
10610 (acc_update_device_async_32_h): New subroutine.
10611 (acc_update_device_async_64_h): New subroutine.
10612 (acc_update_device_async_array_h): New subroutine.
10613 (acc_update_self_async_32_h): New subroutine.
10614 (acc_update_self_async_64_h): New subroutine.
10615 (acc_update_self_async_array_h): New subroutine.
10616 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
10617 (acc_copyin_async_64_h): New subroutine.
10618 (acc_copyin_async_array_h): New subroutine.
10619 (acc_create_async_32_h): New subroutine.
10620 (acc_create_async_64_h): New subroutine.
10621 (acc_create_async_array_h): New subroutine.
10622 (acc_copyout_async_32_h): New subroutine.
10623 (acc_copyout_async_64_h): New subroutine.
10624 (acc_copyout_async_array_h): New subroutine.
10625 (acc_delete_async_32_h): New subroutine.
10626 (acc_delete_async_64_h): New subroutine.
10627 (acc_delete_async_array_h): New subroutine.
10628 (acc_update_device_async_32_h): New subroutine.
10629 (acc_update_device_async_64_h): New subroutine.
10630 (acc_update_device_async_array_h): New subroutine.
10631 (acc_update_self_async_32_h): New subroutine.
10632 (acc_update_self_async_64_h): New subroutine.
10633 (acc_update_self_async_array_h): New subroutine.
10634 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
10635 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
10636 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
10637 acc_memcpy_to_device_async*, acc_update_device_async*, and
10638 acc_update_self_async* entries.
10639 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
10640 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
10641 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
10642
10643 2018-10-31 Joseph Myers <joseph@codesourcery.com>
10644
10645 PR bootstrap/82856
10646 * Makefile.am: Include multilib.am
10647 (AUTOMAKE_OPTIONS): Add info-in-builddir.
10648 (CLEANFILES): Remove libgomp.info.
10649 * configure.ac: Remove AC_PREREQ.
10650 * testsuite/Makefile.am (RUNTEST): Remove quotes.
10651 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
10652 Regenerate.
10653
10654 2018-10-29 Joseph Myers <joseph@codesourcery.com>
10655 Julian Brown <julian@codesourcery.com>
10656
10657 * testsuite/libgomp.oacc-c++/this.C: New.
10658
10659 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
10660
10661 * plugin/plugin-nvptx.c (struct cuda_map): New.
10662 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
10663 h_tail with (cuda_map *) map.
10664 (cuda_map_create): New function.
10665 (cuda_map_destroy): New function.
10666 (map_init): Update to use a linked list of cuda_map objects.
10667 (map_fini): Likewise.
10668 (map_pop): Likewise.
10669 (map_push): Likewise. Return CUdeviceptr instead of void.
10670 (init_streams_for_device): Remove stales references to ptx_stream
10671 members.
10672 (select_stream_for_async): Likewise.
10673 (nvptx_exec): Update call to map_init.
10674
10675 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
10676 Julian Brown <julian@codesourcery.com>
10677
10678 PR middle-end/86336
10679 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
10680
10681 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
10682 Thomas Koenig <tkoenig@gcc.gnu.org>
10683
10684 PR fortran/25829
10685 * testsuite/libgomp.fortran/async_io_1.f90: New test.
10686 * testsuite/libgomp.fortran/async_io_2.f90: New test.
10687 * testsuite/libgomp.fortran/async_io_3.f90: New test.
10688 * testsuite/libgomp.fortran/async_io_4.f90: New test.
10689 * testsuite/libgomp.fortran/async_io_5.f90: New test.
10690 * testsuite/libgomp.fortran/async_io_6.f90: New test.
10691 * testsuite/libgomp.fortran/async_io_7.f90: New test.
10692
10693 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
10694 Tom de Vries <tdevries@suse.de>
10695
10696 PR target/85590
10697 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
10698 (cuOccupancyMaxPotentialBlockSize): Declare.
10699 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
10700 CUDA_ONE_CALL_MAYBE_NULL.
10701 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
10702 CUoccupancyB2DSize and declare
10703 cuOccupancyMaxPotentialBlockSize.
10704 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
10705 default num_gangs and num_workers when the driver supports it.
10706
10707 2018-08-08 Tom de Vries <tdevries@suse.de>
10708
10709 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
10710 CUDA_ONE_CALL_MAYBE_NULL.
10711 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
10712 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
10713 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
10714 are not found.
10715
10716 2018-08-08 Tom de Vries <tdevries@suse.de>
10717
10718 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
10719 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
10720 present.
10721
10722 2018-08-08 Tom de Vries <tdevries@suse.de>
10723
10724 * plugin/plugin-nvptx.c
10725 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
10726 (nvptx_open_device): Use
10727 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
10728
10729 2018-08-08 Tom de Vries <tdevries@suse.de>
10730
10731 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
10732 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
10733
10734 2018-08-07 Tom de Vries <tdevries@suse.de>
10735
10736 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
10737 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
10738 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
10739 corresponding call in CUDA_ONE_CALL. Add def/undef of
10740 CUDA_ONE_CALL_MAYBE_NULL.
10741 (CUDA_CALL_EXISTS): Define.
10742
10743 2018-08-07 Tom de Vries <tdevries@suse.de>
10744
10745 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
10746 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
10747 corresponding undefs right after.
10748
10749 2018-08-04 Tom de Vries <tdevries@suse.de>
10750
10751 * plugin/configfrag.ac: For --without-cuda-driver, set
10752 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
10753 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
10754 * configure: Regenerate.
10755
10756 2018-08-02 Tom de Vries <tdevries@suse.de>
10757
10758 PR target/86660
10759 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
10760 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
10761 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
10762 Same.
10763 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
10764 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
10765 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
10766
10767 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
10768 Thomas Schwinge <thomas@codesourcery.com>
10769
10770 * config/nvptx/oacc-parallel.c: Truncate.
10771
10772 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
10773 James Norris <jnorris@codesourcery.com>
10774
10775 * plugin/plugin-nvptx.c (struct map): Removed.
10776 (map_init, map_pop): Remove use of struct map.
10777 (map_push): Likewise and change argument list.
10778 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
10779
10780 2018-08-01 Tom de Vries <tdevries@suse.de>
10781
10782 * plugin/cuda-lib.def: New file. Factor out of ...
10783 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
10784 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
10785 using CUDA_CALLS.
10786
10787 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
10788
10789 Revert 'AsyncI/O patch committed'.
10790 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
10791 Thomas Koenig <tkoenig@gcc.gnu.org>
10792
10793 PR fortran/25829
10794 * testsuite/libgomp.fortran/async_io_1.f90: New test.
10795 * testsuite/libgomp.fortran/async_io_2.f90: New test.
10796 * testsuite/libgomp.fortran/async_io_3.f90: New test.
10797 * testsuite/libgomp.fortran/async_io_4.f90: New test.
10798 * testsuite/libgomp.fortran/async_io_5.f90: New test.
10799 * testsuite/libgomp.fortran/async_io_6.f90: New test.
10800 * testsuite/libgomp.fortran/async_io_7.f90: New test.
10801
10802 2018-07-30 Tom de Vries <tdevries@suse.de>
10803
10804 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
10805 (nvptx_exec): Ensure worker and vector default dims don't exceed
10806 targ_fn->max_threads_per_block.
10807
10808 2018-07-30 Tom de Vries <tdevries@suse.de>
10809
10810 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
10811 (nvptx_open_device): Init default_dims for device.
10812 (nvptx_exec): Use default_dims from device.
10813
10814 2018-07-26 Jakub Jelinek <jakub@redhat.com>
10815
10816 PR testsuite/86660
10817 * testsuite/libgomp.c++/for-15.C (results): Include it in
10818 omp declare target region.
10819 (main): Use map (always, tofrom: results) instead of
10820 map (tofrom: results).
10821
10822 PR middle-end/86660
10823 * testsuite/libgomp.c/pr86660.c: New test.
10824
10825 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
10826 Tom de Vries <tdevries@suse.de>
10827
10828 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
10829 sufficient resources to launch a kernel, and give a hint on how to fix
10830 it.
10831
10832 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
10833 Tom de Vries <tdevries@suse.de>
10834
10835 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
10836 max_threads_per_block and max_threads_per_multiprocessor fields.
10837 (nvptx_open_device): Initialize new fields.
10838 (nvptx_exec): Use num_sms, and new fields.
10839
10840 2018-07-26 Tom de Vries <tdevries@suse.de>
10841
10842 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
10843 to correct locations. Remove xfail.
10844
10845 2018-07-26 Tom de Vries <tdevries@suse.de>
10846
10847 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
10848 acc_wait. Move acc_async_test calls to correct locations. Remove
10849 xfail.
10850
10851 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
10852 Thomas Koenig <tkoenig@gcc.gnu.org>
10853
10854 PR fortran/25829
10855 * testsuite/libgomp.fortran/async_io_1.f90: New test.
10856 * testsuite/libgomp.fortran/async_io_2.f90: New test.
10857 * testsuite/libgomp.fortran/async_io_3.f90: New test.
10858 * testsuite/libgomp.fortran/async_io_4.f90: New test.
10859 * testsuite/libgomp.fortran/async_io_5.f90: New test.
10860 * testsuite/libgomp.fortran/async_io_6.f90: New test.
10861 * testsuite/libgomp.fortran/async_io_7.f90: New test.
10862
10863 2018-07-17 Jakub Jelinek <jakub@redhat.com>
10864
10865 PR middle-end/86542
10866 * testsuite/libgomp.c++/pr86542.C: New test.
10867
10868 PR middle-end/86539
10869 * testsuite/libgomp.c++/pr86539.C: New test.
10870
10871 2018-07-11 Jakub Jelinek <jakub@redhat.com>
10872
10873 PR c++/86443
10874 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
10875 (results): Make sure the variable is not inside declare target region.
10876 (qux): Remove unused function.
10877
10878 2018-07-10 Jakub Jelinek <jakub@redhat.com>
10879
10880 PR c++/86443
10881 * testsuite/libgomp.c++/for-15.C: New test.
10882
10883 2018-06-26 Jakub Jelinek <jakub@redhat.com>
10884
10885 PR c++/86291
10886 * testsuite/libgomp.c++/pr86291.C: New test.
10887
10888 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
10889
10890 * libgomp.texi (Top): Move www.openmp.org to https.
10891 (Enabling OpenMP): Ditto.
10892 (omp_get_active_level): Ditto.
10893 (omp_get_ancestor_thread_num): Ditto.
10894 (omp_get_cancellation): Ditto.
10895 (omp_get_default_device): Ditto.
10896 (omp_get_dynamic): Ditto.
10897 (omp_get_level): Ditto.
10898 (omp_get_max_active_levels): Ditto.
10899 (omp_get_max_task_priority): Ditto.
10900 (omp_get_max_threads): Ditto.
10901 (omp_get_nested): Ditto.
10902 (omp_get_num_devices): Ditto.
10903 (omp_get_num_procs): Ditto.
10904 (omp_get_num_teams): Ditto.
10905 (omp_get_num_threads): Ditto.
10906 (omp_get_proc_bind): Ditto.
10907 (omp_get_schedule): Ditto.
10908 (omp_get_team_num): Ditto.
10909 (omp_get_team_size): Ditto.
10910 (omp_get_thread_limit): Ditto.
10911 (omp_get_thread_num): Ditto.
10912 (omp_in_parallel): Ditto.
10913 (omp_in_final): Ditto.
10914 (omp_is_initial_device): Ditto.
10915 (omp_set_default_device): Ditto.
10916 (omp_set_dynamic): Ditto.
10917 (omp_set_max_active_levels): Ditto.
10918 (omp_set_nested): Ditto.
10919 (omp_set_num_threads): Ditto.
10920 (omp_set_schedule): Ditto.
10921 (omp_init_lock): Ditto.
10922 (omp_set_lock): Ditto.
10923 (omp_test_lock): Ditto.
10924 (omp_unset_lock): Ditto.
10925 (omp_destroy_lock): Ditto.
10926 (omp_init_nest_lock): Ditto.
10927 (omp_set_nest_lock): Ditto.
10928 (omp_test_nest_lock): Ditto.
10929 (omp_unset_nest_lock): Ditto.
10930 (omp_destroy_nest_lock): Ditto.
10931 (omp_get_wtick): Ditto.
10932 (omp_get_wtime): Ditto.
10933 (OMP_CANCELLATION): Ditto.
10934 (OMP_DISPLAY_ENV): Ditto.
10935 (OMP_DEFAULT_DEVICE): Ditto.
10936 (OMP_DYNAMIC): Ditto.
10937 (OMP_MAX_ACTIVE_LEVELS): Ditto.
10938 (OMP_MAX_TASK_PRIORITY): Ditto.
10939 (OMP_NESTED): Ditto.
10940 (OMP_NUM_THREADS): Ditto.
10941 (OMP_PROC_BIND): Ditto.
10942 (OMP_PLACES): Ditto.
10943 (OMP_STACKSIZE): Ditto.
10944 (OMP_SCHEDULE): Ditto.
10945 (OMP_THREAD_LIMIT): Ditto.
10946 (OMP_WAIT_POLICY): Ditto.
10947
10948 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
10949 James Norris <jnorris@codesourcery.com>
10950 Julian Brown <julian@codesourcery.com>
10951 Thomas Schwinge <thomas@codesourcery.com>
10952 Tom de Vries <tom@codesourcery.com>
10953
10954 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
10955 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
10956 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
10957 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
10958 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
10959 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
10960 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
10961 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
10962 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
10963 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
10964 Likewise.
10965 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
10966 Likewise.
10967 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
10968 Likewise.
10969 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
10970 Likewise.
10971 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
10972 Likewise.
10973 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
10974 Likewise.
10975 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
10976 Likewise.
10977 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
10978 Likewise.
10979 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
10980 Likewise.
10981 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
10982 Likewise.
10983 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
10984 Likewise.
10985 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
10986 Likewise.
10987 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
10988 Likewise.
10989 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
10990 Likewise.
10991 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
10992 Likewise.
10993 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
10994 Likewise.
10995 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
10996 Likewise.
10997 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
10998 Likewise.
10999 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
11000 Likewise.
11001 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
11002 Likewise.
11003 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
11004 Likewise.
11005 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
11006 Likewise.
11007 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
11008 Likewise.
11009 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
11010 Likewise.
11011 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
11012 Likewise.
11013 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
11014 Likewise.
11015 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
11016 Likewise.
11017 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
11018 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
11019 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
11020 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
11021 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
11022 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
11023 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
11024 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
11025 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
11026 Likewise.
11027 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
11028 Likewise.
11029 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
11030 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
11031 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
11032 Likewise.
11033 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
11034 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
11035 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
11036 Likewise.
11037 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
11038 Likewise.
11039 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
11040 Likewise.
11041 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
11042 Likewise.
11043 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
11044 Likewise.
11045 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
11046 Likewise.
11047 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
11048 Likewise.
11049 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
11050 Likewise.
11051 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
11052 Likewise.
11053 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
11054 Likewise.
11055 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
11056 Likewise.
11057 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
11058 Likewise.
11059 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
11060 Likewise.
11061 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
11062 Likewise.
11063 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
11064 Likewise.
11065 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
11066 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
11067 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
11068 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
11069 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
11070 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
11071 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
11072
11073 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
11074 Thomas Schwinge <thomas@codesourcery.com>
11075 Cesar Philippidis <cesar@codesourcery.com>
11076
11077 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
11078 (gomp_acc_remove_pointer): Update declaration.
11079 (gomp_acc_declare_allocate): Declare.
11080 (gomp_remove_var): Declare.
11081 * libgomp.map (OACC_2.5): Define.
11082 * oacc-mem.c (acc_map_data): Update refcount.
11083 (acc_unmap_data): Likewise.
11084 (present_create_copy): Likewise.
11085 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
11086 (acc_copyin): Likewise.
11087 (FLAG_FINALIZE): Define.
11088 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
11089 (acc_delete_finalize): New function.
11090 (acc_delete_finalize_async): New function.
11091 (acc_copyout_finalize): New function.
11092 (acc_copyout_finalize_async): New function.
11093 (gomp_acc_insert_pointer): Update refcounts.
11094 (gomp_acc_remove_pointer): Return if data is not present on the
11095 accelerator.
11096 * oacc-parallel.c (find_pset): Rename to find_pointer.
11097 (find_pointer): Add support for GOMP_MAP_POINTER.
11098 (handle_ftn_pointers): New function.
11099 (GOACC_parallel_keyed): Update refcounts of variables.
11100 (GOACC_enter_exit_data): Add support for finalized data mappings.
11101 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
11102 of fortran arrays.
11103 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
11104 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
11105 for GOMP_MAP_FORCE_FROM.
11106 * openacc.f90 (module openacc_internal): Add
11107 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
11108 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
11109 acc_copyout_finalize and acc_delete_finalize.
11110 (acc_copyout_finalize_32_h): New subroutine.
11111 (acc_copyout_finalize_64_h): New subroutine.
11112 (acc_copyout_finalize_array_h): New subroutine.
11113 (acc_delete_finalize_32_h): New subroutine.
11114 (acc_delete_finalize_64_h): New subroutine.
11115 (acc_delete_finalize_array_h): New subroutine.
11116 * openacc.h (acc_copyout_finalize): Declare.
11117 (acc_copyout_finalize_async): Declare.
11118 (acc_delete_finalize): Declare.
11119 (acc_delete_finalize_async): Declare.
11120 * openacc_lib.h (acc_copyout_finalize): New interface.
11121 (acc_delete_finalize): New interface.
11122 * target.c (gomp_map_vars): Update dynamic_refcount.
11123 (gomp_remove_var): New function.
11124 (gomp_unmap_vars): Use it.
11125 (gomp_unload_image_from_device): Likewise.
11126 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
11127 case to utilize OpenACC 2.5 data clause semantics.
11128 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11129 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
11130 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
11131 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
11132 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
11133 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
11134 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
11135 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11136 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11137 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
11138 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
11139 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
11140 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
11141 utilize OpenACC 2.5 data clause semantics.
11142 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
11143 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
11144 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
11145 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
11146 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
11147 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
11148 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
11149 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
11150 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11151
11152 2018-05-21 Janus Weil <janus@gcc.gnu.org>
11153
11154 PR fortran/85841
11155 PR testsuite/85865
11156 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
11157 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
11158 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
11159 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
11160 * testsuite/libgomp.fortran/task2.f90: Ditto.
11161 * testsuite/libgomp.fortran/vla1.f90: Ditto.
11162 * testsuite/libgomp.fortran/vla2.f90: Ditto.
11163 * testsuite/libgomp.fortran/vla3.f90: Ditto.
11164 * testsuite/libgomp.fortran/vla4.f90: Ditto.
11165 * testsuite/libgomp.fortran/vla5.f90: Ditto.
11166 * testsuite/libgomp.fortran/vla6.f90: Ditto.
11167 * testsuite/libgomp.fortran/vla8.f90: Ditto.
11168 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
11169 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
11170
11171 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
11172
11173 PR c++/85782
11174 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
11175
11176 2018-05-09 Tom de Vries <tom@codesourcery.com>
11177
11178 PR libgomp/82901
11179 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
11180 to GOACC_enter_exit_data.
11181
11182 2018-05-09 Tom de Vries <tom@codesourcery.com>
11183
11184 PR libgomp/83792
11185 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
11186 (async_synchronous_p): New function.
11187 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
11188 async_valid_p.
11189 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
11190 async_valid_stream_id_p.
11191 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
11192 * oacc-parallel.c (GOACC_parallel_keyed): Same.
11193
11194 2018-05-07 Tom de Vries <tom@codesourcery.com>
11195
11196 PR testsuite/85677
11197 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
11198 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
11199
11200 2018-05-03 Tom de Vries <tom@codesourcery.com>
11201
11202 PR testsuite/85106
11203 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
11204 extra_tool_flags if it contains an -foffload=-fdump-* flag.
11205 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
11206 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
11207
11208 2018-05-02 Tom de Vries <tom@codesourcery.com>
11209
11210 PR libgomp/85411
11211 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
11212 GOMP_OPENACC_DIM ...
11213 * env.c (parse_gomp_openacc_dim): ... here. New function.
11214 (initialize_env): Call parse_gomp_openacc_dim.
11215 (goacc_default_dims): Define.
11216 * libgomp.h (goacc_default_dims): Declare.
11217 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
11218 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
11219 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
11220 GOMP_PLUGIN_acc_default_dim.
11221 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
11222 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
11223
11224 2018-05-02 Tom de Vries <tom@codesourcery.com>
11225
11226 PR testsuite/83791
11227 * testsuite/libgomp.c++/udr-9.C: Update.
11228 * testsuite/libgomp.c++/atomic-16.C: Remove.
11229 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
11230 * testsuite/libgomp.c++/loop-13.C: Remove.
11231 * testsuite/libgomp.c++/loop-14.C: Remove.
11232 * testsuite/libgomp.c++/loop-15.C: Remove.
11233 * testsuite/libgomp.c++/monotonic-1.C: Remove.
11234 * testsuite/libgomp.c++/monotonic-2.C: Remove.
11235 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
11236 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
11237 * testsuite/libgomp.c++/ordered-1.C: Remove.
11238 * testsuite/libgomp.c++/pr45784.C: Remove.
11239 * testsuite/libgomp.c++/pr64824.C: Remove.
11240 * testsuite/libgomp.c++/pr64868.C: Remove.
11241 * testsuite/libgomp.c++/pr66199-1.C: Remove.
11242 * testsuite/libgomp.c++/pr66199-2.C: Remove.
11243 * testsuite/libgomp.c++/pr66199-3.C: Remove.
11244 * testsuite/libgomp.c++/pr66199-4.C: Remove.
11245 * testsuite/libgomp.c++/pr66199-5.C: Remove.
11246 * testsuite/libgomp.c++/pr66199-6.C: Remove.
11247 * testsuite/libgomp.c++/pr66199-7.C: Remove.
11248 * testsuite/libgomp.c++/pr66199-8.C: Remove.
11249 * testsuite/libgomp.c++/pr66199-9.C: Remove.
11250 * testsuite/libgomp.c++/pr69389.C: Remove.
11251 * testsuite/libgomp.c++/simd10.C: Remove.
11252 * testsuite/libgomp.c++/simd11.C: Remove.
11253 * testsuite/libgomp.c++/simd12.C: Remove.
11254 * testsuite/libgomp.c++/simd13.C: Remove.
11255 * testsuite/libgomp.c++/target-1.C: Remove.
11256 * testsuite/libgomp.c++/target-3.C: Remove.
11257 * testsuite/libgomp.c++/target-4.C: Remove.
11258 * testsuite/libgomp.c++/target-5.C: Remove.
11259 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
11260 * testsuite/libgomp.c++/taskloop-1.C: Remove.
11261 * testsuite/libgomp.c++/taskloop-2.C: Remove.
11262 * testsuite/libgomp.c++/taskloop-3.C: Remove.
11263 * testsuite/libgomp.c++/taskloop-4.C: Remove.
11264 * testsuite/libgomp.c++/udr-9.C: Remove.
11265 * testsuite/libgomp.c++/for-10.C: Remove.
11266 * testsuite/libgomp.c++/for-11.C: Remove.
11267 * testsuite/libgomp.c++/for-12.C: Remove.
11268 * testsuite/libgomp.c++/for-13.C: Remove.
11269 * testsuite/libgomp.c++/for-14.C: Remove.
11270 * testsuite/libgomp.c++/for-9.C: Remove.
11271 * testsuite/libgomp.c/atomic-18.c: Move ...
11272 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
11273 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
11274 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
11275 * testsuite/libgomp.c/loop-13.c: Move ...
11276 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
11277 * testsuite/libgomp.c/loop-14.c: Move ...
11278 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
11279 * testsuite/libgomp.c/loop-15.c: Remove.
11280 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
11281 * testsuite/libgomp.c/monotonic-1.c: Move ...
11282 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
11283 * testsuite/libgomp.c/monotonic-2.c: Move ...
11284 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
11285 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
11286 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
11287 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
11288 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
11289 * testsuite/libgomp.c/ordered-4.c: Move ...
11290 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
11291 * testsuite/libgomp.c/pr45784.c: Move ...
11292 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
11293 * testsuite/libgomp.c/pr64824.c: Move ...
11294 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
11295 * testsuite/libgomp.c/pr64868.c: Move ...
11296 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
11297 * testsuite/libgomp.c/pr66199-1.c: Move ...
11298 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
11299 * testsuite/libgomp.c/pr66199-2.c: Move ...
11300 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
11301 * testsuite/libgomp.c/pr66199-3.c: Move ...
11302 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
11303 * testsuite/libgomp.c/pr66199-4.c: Move ...
11304 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
11305 * testsuite/libgomp.c/pr66199-5.c: Move ...
11306 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
11307 * testsuite/libgomp.c/pr66199-6.c: Move ...
11308 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
11309 * testsuite/libgomp.c/pr66199-7.c: Move ...
11310 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
11311 * testsuite/libgomp.c/pr66199-8.c: Move ...
11312 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
11313 * testsuite/libgomp.c/pr66199-9.c: Move ...
11314 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
11315 * testsuite/libgomp.c/pr69389.c: Move ...
11316 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
11317 * testsuite/libgomp.c/simd-14.c: Move ...
11318 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
11319 * testsuite/libgomp.c/simd-15.c: Move ...
11320 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
11321 * testsuite/libgomp.c/simd-16.c: Move ...
11322 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
11323 * testsuite/libgomp.c/simd-17.c: Move ...
11324 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
11325 * testsuite/libgomp.c/target-1.c: Move ...
11326 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
11327 * testsuite/libgomp.c/target-10.c: Move ...
11328 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
11329 * testsuite/libgomp.c/target-13.c: Move ...
11330 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
11331 * testsuite/libgomp.c/target-2.c: Move ...
11332 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
11333 * testsuite/libgomp.c/taskgroup-1.c: Move ...
11334 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
11335 * testsuite/libgomp.c/taskloop-1.c: Move ...
11336 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
11337 * testsuite/libgomp.c/taskloop-2.c: Move ...
11338 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
11339 * testsuite/libgomp.c/taskloop-3.c: Move ...
11340 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
11341 * testsuite/libgomp.c/taskloop-4.c: Move ...
11342 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
11343 * testsuite/libgomp.c/udr-1.c: Move ...
11344 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
11345 * testsuite/libgomp.c/for-1.c: Move ...
11346 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
11347 * testsuite/libgomp.c/for-1.h: Move ...
11348 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
11349 * testsuite/libgomp.c/for-2.c: Move ...
11350 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
11351 * testsuite/libgomp.c/for-2.h: Move ...
11352 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
11353 * testsuite/libgomp.c/for-3.c: Move ...
11354 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
11355 * testsuite/libgomp.c/for-4.c: Move ...
11356 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
11357 * testsuite/libgomp.c/for-5.c: Move ...
11358 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
11359 * testsuite/libgomp.c/for-6.c: Move ...
11360 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
11361
11362 2018-05-02 Tom de Vries <tom@codesourcery.com>
11363
11364 PR libgomp/82428
11365 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
11366 __builtin_goacc_parlevel_{id,size}.
11367 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
11368 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
11369 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
11370 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
11371 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
11372 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
11373 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
11374 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
11375 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
11376 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
11377 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
11378 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
11379 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
11380 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
11381 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
11382 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
11383 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
11384 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
11385 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
11386 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
11387 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
11388 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
11389 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
11390
11391 2018-05-02 Tom de Vries <tom@codesourcery.com>
11392
11393 PR testsuite/85106
11394 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
11395
11396 2018-05-02 Tom de Vries <tom@codesourcery.com>
11397
11398 PR testsuite/85106
11399 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
11400
11401 2018-04-29 Julian Brown <julian@codesourcery.com>
11402 Tom de Vries <tom@codesourcery.com>
11403
11404 PR testsuite/85527
11405 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
11406 arbitrary order for iterations of atomic subtract check.
11407
11408 2018-04-28 Tom de Vries <tom@codesourcery.com>
11409
11410 PR testsuite/85527
11411 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
11412 atomic capture results obtained in parallel loop to an array, instead of
11413 to a scalar.
11414
11415 2018-04-26 Tom de Vries <tom@codesourcery.com>
11416
11417 PR libgomp/84020
11418 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
11419 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
11420 (process_GOMP_NVPTX_JIT): New function.
11421 (link_ptx): Use process_GOMP_NVPTX_JIT.
11422
11423 2018-04-26 Richard Biener <rguenther@suse.de>
11424 Tom de Vries <tom@codesourcery.com>
11425
11426 PR lto/85422
11427 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
11428
11429 2018-04-26 Tom de Vries <tom@codesourcery.com>
11430
11431 PR target/85519
11432 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
11433 recursion depth from 25 to 23.
11434 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
11435
11436 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
11437
11438 * configure: Regenerated.
11439
11440 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
11441 Tom de Vries <tom@codesourcery.com>
11442
11443 PR target/85445
11444 * testsuite/libgomp.oacc-c++/ref-1.C: New.
11445
11446 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
11447
11448 PR libgomp/85463
11449 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
11450 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
11451 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
11452 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
11453 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
11454 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
11455
11456 PR libfortran/85166
11457 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
11458 abort".
11459 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11460
11461 2018-04-19 Jakub Jelinek <jakub@redhat.com>
11462
11463 * configure: Regenerated.
11464
11465 2018-04-18 David Malcolm <dmalcolm@redhat.com>
11466
11467 PR jit/85384
11468 * configure: Regenerate.
11469
11470 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
11471 Tom de Vries <tom@codesourcery.com>
11472
11473 PR middle-end/84955
11474 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11475 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11476
11477 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
11478
11479 PR fortran/83064
11480 PR testsuite/85346
11481 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
11482 test from gfortran.dg to here.
11483
11484 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
11485
11486 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
11487 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
11488
11489 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
11490
11491 PR middle-end/84955
11492 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11493 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11494
11495 2018-04-05 Tom de Vries <tom@codesourcery.com>
11496
11497 PR target/85204
11498 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
11499
11500 2018-03-26 Tom de Vries <tom@codesourcery.com>
11501
11502 PR tree-optimization/85063
11503 * testsuite/libgomp.c/switch-conversion-2.c: New test.
11504 * testsuite/libgomp.c/switch-conversion.c: New test.
11505 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
11506 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
11507
11508 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
11509
11510 PR fortran/84381
11511 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
11512 call abort by STOP n.
11513 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
11514 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
11515 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
11516 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
11517 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
11518 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
11519 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
11520 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
11521 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
11522 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
11523 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
11524 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
11525 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
11526 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
11527 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
11528 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
11529 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
11530 * testsuite/libgomp.fortran/associate1.f90: Likewise.
11531 * testsuite/libgomp.fortran/associate2.f90: Likewise.
11532 * testsuite/libgomp.fortran/associate3.f90: Likewise.
11533 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
11534 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
11535 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
11536 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
11537 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
11538 * testsuite/libgomp.fortran/character1.f90: Likewise.
11539 * testsuite/libgomp.fortran/character2.f90: Likewise.
11540 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
11541 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
11542 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
11543 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
11544 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
11545 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
11546 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
11547 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
11548 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
11549 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
11550 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
11551 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
11552 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
11553 * testsuite/libgomp.fortran/do1.f90: Likewise.
11554 * testsuite/libgomp.fortran/do2.f90: Likewise.
11555 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
11556 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
11557 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
11558 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
11559 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
11560 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
11561 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
11562 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
11563 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
11564 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
11565 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
11566 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
11567 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
11568 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
11569 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
11570 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
11571 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
11572 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
11573 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
11574 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
11575 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
11576 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
11577 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
11578 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
11579 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
11580 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
11581 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
11582 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
11583 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
11584 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
11585 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
11586 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
11587 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
11588 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
11589 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
11590 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
11591 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
11592 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
11593 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
11594 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
11595 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
11596 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
11597 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
11598 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
11599 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
11600 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
11601 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
11602 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
11603 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
11604 * testsuite/libgomp.fortran/lib1.f90: Likewise.
11605 * testsuite/libgomp.fortran/lib2.f: Likewise.
11606 * testsuite/libgomp.fortran/lib3.f: Likewise.
11607 * testsuite/libgomp.fortran/lib4.f90: Likewise.
11608 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
11609 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
11610 * testsuite/libgomp.fortran/nested1.f90: Likewise.
11611 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
11612 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
11613 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
11614 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
11615 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
11616 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
11617 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
11618 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
11619 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
11620 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
11621 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
11622 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
11623 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
11624 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
11625 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
11626 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
11627 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
11628 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
11629 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
11630 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
11631 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
11632 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
11633 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
11634 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
11635 * testsuite/libgomp.fortran/pr25162.f: Likewise.
11636 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
11637 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
11638 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
11639 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
11640 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
11641 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
11642 * testsuite/libgomp.fortran/pr28390.f: Likewise.
11643 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
11644 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
11645 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
11646 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
11647 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
11648 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
11649 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
11650 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
11651 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
11652 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
11653 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
11654 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
11655 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
11656 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
11657 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
11658 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
11659 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
11660 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
11661 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
11662 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
11663 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
11664 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
11665 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
11666 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
11667 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
11668 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
11669 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
11670 * testsuite/libgomp.fortran/reference1.f90: Likewise.
11671 * testsuite/libgomp.fortran/reference2.f90: Likewise.
11672 * testsuite/libgomp.fortran/retval1.f90: Likewise.
11673 * testsuite/libgomp.fortran/retval2.f90: Likewise.
11674 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
11675 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
11676 * testsuite/libgomp.fortran/simd1.f90: Likewise.
11677 * testsuite/libgomp.fortran/simd2.f90: Likewise.
11678 * testsuite/libgomp.fortran/simd3.f90: Likewise.
11679 * testsuite/libgomp.fortran/simd4.f90: Likewise.
11680 * testsuite/libgomp.fortran/simd5.f90: Likewise.
11681 * testsuite/libgomp.fortran/simd6.f90: Likewise.
11682 * testsuite/libgomp.fortran/simd7.f90: Likewise.
11683 * testsuite/libgomp.fortran/stack.f90: Likewise.
11684 * testsuite/libgomp.fortran/strassen.f90: Likewise.
11685 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
11686 * testsuite/libgomp.fortran/tabs2.f: Likewise.
11687 * testsuite/libgomp.fortran/target1.f90: Likewise.
11688 * testsuite/libgomp.fortran/target2.f90: Likewise.
11689 * testsuite/libgomp.fortran/target3.f90: Likewise.
11690 * testsuite/libgomp.fortran/target4.f90: Likewise.
11691 * testsuite/libgomp.fortran/target5.f90: Likewise.
11692 * testsuite/libgomp.fortran/target6.f90: Likewise.
11693 * testsuite/libgomp.fortran/target7.f90: Likewise.
11694 * testsuite/libgomp.fortran/target8.f90: Likewise.
11695 * testsuite/libgomp.fortran/task1.f90: Likewise.
11696 * testsuite/libgomp.fortran/task2.f90: Likewise.
11697 * testsuite/libgomp.fortran/task3.f90: Likewise.
11698 * testsuite/libgomp.fortran/task4.f90: Likewise.
11699 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
11700 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
11701 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
11702 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
11703 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
11704 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
11705 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
11706 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
11707 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
11708 * testsuite/libgomp.fortran/udr1.f90: Likewise.
11709 * testsuite/libgomp.fortran/udr10.f90: Likewise.
11710 * testsuite/libgomp.fortran/udr11.f90: Likewise.
11711 * testsuite/libgomp.fortran/udr12.f90: Likewise.
11712 * testsuite/libgomp.fortran/udr13.f90: Likewise.
11713 * testsuite/libgomp.fortran/udr14.f90: Likewise.
11714 * testsuite/libgomp.fortran/udr15.f90: Likewise.
11715 * testsuite/libgomp.fortran/udr2.f90: Likewise.
11716 * testsuite/libgomp.fortran/udr3.f90: Likewise.
11717 * testsuite/libgomp.fortran/udr4.f90: Likewise.
11718 * testsuite/libgomp.fortran/udr5.f90: Likewise.
11719 * testsuite/libgomp.fortran/udr6.f90: Likewise.
11720 * testsuite/libgomp.fortran/udr7.f90: Likewise.
11721 * testsuite/libgomp.fortran/udr8.f90: Likewise.
11722 * testsuite/libgomp.fortran/udr9.f90: Likewise.
11723 * testsuite/libgomp.fortran/vla1.f90: Likewise.
11724 * testsuite/libgomp.fortran/vla2.f90: Likewise.
11725 * testsuite/libgomp.fortran/vla3.f90: Likewise.
11726 * testsuite/libgomp.fortran/vla4.f90: Likewise.
11727 * testsuite/libgomp.fortran/vla5.f90: Likewise.
11728 * testsuite/libgomp.fortran/vla6.f90: Likewise.
11729 * testsuite/libgomp.fortran/vla7.f90: Likewise.
11730 * testsuite/libgomp.fortran/vla8.f90: Likewise.
11731 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
11732 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
11733 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
11734 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11735 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
11736 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
11737 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
11738 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
11739 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
11740 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
11741 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
11742 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
11743 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
11744 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
11745 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
11746 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
11747 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
11748 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
11749 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
11750 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
11751 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
11752 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
11753 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
11754 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
11755 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
11756 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11757 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11758 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
11759 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11760 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
11761 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
11762 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11763 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11764 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11765 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11766 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11767 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
11768 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
11769 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
11770 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
11771 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
11772 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
11773 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
11774 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
11775 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
11776 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
11777 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
11778 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
11779 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
11780 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
11781 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
11782 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
11783 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
11784 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11785 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
11786 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
11787 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
11788 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
11789 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
11790 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
11791 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
11792 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
11793 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
11794 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
11795 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
11796 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
11797 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
11798 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
11799 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
11800 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
11801 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
11802 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
11803 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
11804 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
11805 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
11806 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
11807 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
11808 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11809 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11810 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11811 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
11812 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11813 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
11814 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
11815 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
11816 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
11817 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
11818 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
11819 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
11820 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
11821 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
11822 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
11823 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
11824 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
11825
11826 2018-03-20 Richard Biener <rguenther@suse.de>
11827
11828 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
11829 parallelizable loop.
11830
11831 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
11832
11833 PR target/84148
11834 * configure: Regenerate.
11835
11836 2018-02-16 Jakub Jelinek <jakub@redhat.com>
11837
11838 PR fortran/84418
11839 * libgomp.fortran/pr84418-1.f90: New test.
11840 * libgomp.fortran/pr84418-2.f90: New test.
11841
11842 2018-02-14 Jakub Jelinek <jakub@redhat.com>
11843
11844 PR fortran/84313
11845 * testsuite/libgomp.fortran/threadprivate4.f90: Add
11846 -std=f2003 -fall-intrinsics into dg-additional-options.
11847
11848 2018-02-08 Martin Jambor <mjambor@suse.cz>
11849
11850 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
11851 clonable.
11852
11853 2018-02-08 Martin Jambor <mjambor@suse.cz>
11854
11855 * testsuite/libgomp.hsa.c/staticvar.c: New test.
11856
11857 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11858
11859 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
11860 [__cplusplus]: Declare extern "C".
11861
11862 2018-02-07 Tom de Vries <tom@codesourcery.com>
11863
11864 PR libgomp/84217
11865 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
11866
11867 2018-01-29 Christoph Spiel <cspiel@freenet.de>
11868 Jakub Jelinek <jakub@redhat.com>
11869
11870 PR libgomp/84096
11871 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
11872 instead of omp_lock_t.
11873
11874 2018-01-25 Tom de Vries <tom@codesourcery.com>
11875
11876 PR target/84028
11877 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
11878
11879 2018-01-24 Tom de Vries <tom@codesourcery.com>
11880
11881 PR target/83589
11882 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
11883
11884 2018-01-24 Tom de Vries <tom@codesourcery.com>
11885
11886 PR target/81352
11887 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
11888
11889 2018-01-19 Tom de Vries <tom@codesourcery.com>
11890 Cesar Philippidis <cesar@codesourcery.com>
11891
11892 PR target/83920
11893 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
11894 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
11895
11896 2018-01-03 Jakub Jelinek <jakub@redhat.com>
11897
11898 Update copyright years.
11899
11900 * libgomp.texi: Bump @copying's copyright year.
11901
11902 2017-12-30 Tom de Vries <tom@codesourcery.com>
11903
11904 PR libgomp/83046
11905 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
11906 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
11907
11908 2017-12-27 Tom de Vries <tom@codesourcery.com>
11909
11910 PR c++/83046
11911 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
11912 (test_nonstatic): Fix return type to workaround PR83046.
11913
11914 2017-12-05 Jakub Jelinek <jakub@redhat.com>
11915
11916 PR testsuite/83281
11917 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
11918 j suffix instead of i.
11919 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
11920 Likewise.
11921
11922 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
11923
11924 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
11925 call to acc_wait (1).
11926
11927 2017-11-24 Jakub Jelinek <jakub@redhat.com>
11928
11929 PR fortran/81304
11930 * testsuite/libgomp.fortran/pr81304.f90: New test.
11931
11932 2017-11-23 Jakub Jelinek <jakub@redhat.com>
11933
11934 PR fortran/81841
11935 * libgomp.fortran/pr81841.f90: New test.
11936
11937 2017-11-22 Jakub Jelinek <jakub@redhat.com>
11938
11939 PR libgomp/83106
11940 * target.c (gomp_target_init): Compute lengths just once and
11941 use them in both malloc size and subsequent copying.
11942
11943 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
11944
11945 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
11946 * acinclude.m4: Add cet.m4.
11947 * configure: Regenerate.
11948 * Makefile.in: Likewise.
11949 * testsuite/Makefile.in: Likewise.
11950
11951 2017-11-15 Tom de Vries <tom@codesourcery.com>
11952
11953 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
11954 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
11955 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
11956 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
11957 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
11958 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
11959
11960 2017-11-14 Tom de Vries <tom@codesourcery.com>
11961
11962 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
11963 non-nvidia devices.
11964
11965 2017-11-07 Jakub Jelinek <jakub@redhat.com>
11966
11967 PR c++/82835
11968 * testsuite/libgomp.c++/pr82835.C: New test.
11969
11970 2017-11-06 Martin Liska <mliska@suse.cz>
11971
11972 * testsuite/libgomp.c++/loop-2.C: Return a value
11973 for functions with non-void return type, or change type to void,
11974 or add -Wno-return-type for test.
11975 * testsuite/libgomp.c++/loop-4.C: Likewise.
11976 * testsuite/libgomp.c++/parallel-1.C: Likewise.
11977 * testsuite/libgomp.c++/shared-1.C: Likewise.
11978 * testsuite/libgomp.c++/single-1.C: Likewise.
11979 * testsuite/libgomp.c++/single-2.C: Likewise.
11980
11981 2017-10-31 Tom de Vries <tom@codesourcery.com>
11982
11983 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
11984 "do {} while (false)".
11985 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
11986 after HSA_DEBUG call.
11987
11988 2017-10-28 Jakub Jelinek <jakub@redhat.com>
11989
11990 * target.c (struct gomp_coalesce_buf): New type.
11991 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
11992 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
11993 (gomp_copy_host2dev): Add CBUF argument, if copying into
11994 the cached ranges, memcpy into buffer instead of copying
11995 into device.
11996 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
11997 Add CBUF argument, pass it through to other calls.
11998 (gomp_map_vars): Aggregate copies from host to device if small enough
11999 and with small enough gaps in between into memcpy into a buffer and
12000 fewer host to device copies from the buffer.
12001 (gomp_update): Adjust gomp_copy_host2dev caller.
12002
12003 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
12004
12005 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
12006 run" directive.
12007 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
12008 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
12009 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
12010 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
12011
12012 2017-10-16 Tom de Vries <tom@codesourcery.com>
12013
12014 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
12015 openacc_nvidia_accel_selected.
12016 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
12017 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
12018 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
12019 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
12020 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
12021 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
12022 openacc_nvidia_accel_selected. Skip for shared memory device.
12023 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
12024 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
12025
12026 2017-10-09 Martin Jambor <mjambor@suse.cz>
12027
12028 PR hsa/82416
12029 * testsuite/libgomp.hsa.c/pr82416.c: New test.
12030
12031 2017-10-07 Tom de Vries <tom@codesourcery.com>
12032
12033 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
12034 Remove acc_device_nvidia references.
12035 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
12036 Same.
12037
12038 2017-10-05 Tom de Vries <tom@codesourcery.com>
12039
12040 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
12041 vector_length(32) clause from acc parallel directive.
12042 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
12043
12044 2017-10-04 Tom de Vries <tom@codesourcery.com>
12045
12046 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
12047 (main): Reduce sum of arr elements. Assert that hres is exactly
12048 representable in 32-bit floating point.
12049 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
12050 (main): Reduce sum of arr elements. Assert that hres and hmres are
12051 exactly representable in 32-bit floating point.
12052 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
12053
12054 2017-09-28 Tom de Vries <tom@codesourcery.com>
12055
12056 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
12057 setting.
12058 * testsuite/libgomp.c++/pr69393.C: Same.
12059 * testsuite/libgomp.c++/taskloop-1.C: Same.
12060 * testsuite/libgomp.c++/taskloop-3.C: Same.
12061 * testsuite/libgomp.c++/taskloop-4.C: Same.
12062 * testsuite/libgomp.c/for-4.c: Same.
12063 * testsuite/libgomp.c/pr66199-3.c: Same.
12064 * testsuite/libgomp.c/pr66199-4.c: Same.
12065 * testsuite/libgomp.c/pr66199-6.c: Same.
12066 * testsuite/libgomp.c/taskloop-1.c: Same.
12067 * testsuite/libgomp.c/taskloop-3.c: Same.
12068 * testsuite/libgomp.c/taskloop-4.c: Same.
12069 * testsuite/libgomp.fortran/aligned1.f03: Same.
12070 * testsuite/libgomp.fortran/condinc1.f: Same.
12071 * testsuite/libgomp.fortran/condinc3.f90: Same.
12072 * testsuite/libgomp.fortran/crayptr1.f90: Same.
12073 * testsuite/libgomp.fortran/crayptr2.f90: Same.
12074 * testsuite/libgomp.fortran/crayptr3.f90: Same.
12075 * testsuite/libgomp.fortran/omp_cond1.f: Same.
12076 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
12077 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
12078 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
12079 * testsuite/libgomp.fortran/recursion1.f90: Same.
12080 * testsuite/libgomp.fortran/target2.f90: Same.
12081 * testsuite/libgomp.fortran/target5.f90: Same.
12082 * testsuite/libgomp.fortran/task3.f90: Same.
12083
12084 2017-09-28 Tom de Vries <tom@codesourcery.com>
12085
12086 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
12087 vector_length(32) clause from acc parallel directive.
12088 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
12089
12090 2017-09-27 Tom de Vries <tom@codesourcery.com>
12091
12092 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
12093 Remove acc_device_nvidia references.
12094
12095 2017-09-16 Tom de Vries <tom@codesourcery.com>
12096
12097 PR c/81875
12098 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
12099
12100 2017-09-14 Tom de Vries <tom@codesourcery.com>
12101
12102 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
12103 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
12104 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
12105 * testsuite/libgomp.c/c.exp: Include test-cases from
12106 libgomp.c-c++-common.
12107 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
12108 files.
12109
12110 2017-09-14 Jakub Jelinek <jakub@redhat.com>
12111
12112 PR c++/81314
12113 * testsuite/libgomp.c++/pr81314.C: New test.
12114
12115 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
12116
12117 * libgomp.texi (Top): www.openacc.org now uses https.
12118 (Enabling OpenACC): Ditto.
12119 (acc_get_num_devices): Ditto.
12120 (acc_set_device_type): Ditto.
12121 (acc_get_device_type): Ditto.
12122 (acc_set_device_num): Ditto.
12123 (acc_get_device_num): Ditto.
12124 (acc_async_test): Ditto.
12125 (acc_async_test_all): Ditto.
12126 (acc_wait): Ditto.
12127 (acc_wait_all): Ditto.
12128 (acc_wait_all_async): Ditto.
12129 (acc_wait_async): Ditto.
12130 (acc_init): Ditto.
12131 (acc_shutdown): Ditto.
12132 (acc_on_device): Ditto.
12133 (acc_malloc): Ditto.
12134 (acc_free): Ditto.
12135 (acc_copyin): Ditto.
12136 (acc_present_or_copyin): Ditto.
12137 (acc_create): Ditto.
12138 (acc_present_or_create): Ditto.
12139 (acc_copyout): Ditto.
12140 (acc_delete): Ditto.
12141 (acc_update_device): Ditto.
12142 (acc_update_self): Ditto.
12143 (acc_map_data): Ditto.
12144 (acc_unmap_data): Ditto.
12145 (acc_deviceptr): Ditto.
12146 (acc_hostptr): Ditto.
12147 (acc_is_present): Ditto.
12148 (acc_memcpy_to_device): Ditto.
12149 (acc_memcpy_from_device): Ditto.
12150 (acc_get_current_cuda_device): Ditto.
12151 (acc_get_current_cuda_context): Ditto.
12152 (acc_get_cuda_stream): Ditto.
12153 (acc_set_cuda_stream): Ditto.
12154 (ACC_DEVICE_TYPE): Ditto.
12155 (ACC_DEVICE_NUM): Ditto.
12156 (OpenACC Library Interoperability): Ditto.
12157
12158 2017-08-09 Jakub Jelinek <jakub@redhat.com>
12159
12160 PR c/81687
12161 * testsuite/libgomp.c/pr81687-1.c: New test.
12162 * testsuite/libgomp.c/pr81687-2.c: New test.
12163
12164 2017-08-07 Jakub Jelinek <jakub@redhat.com>
12165
12166 PR c/69389
12167 * testsuite/libgomp.c/pr69389.c: New test.
12168 * testsuite/libgomp.c++/pr69389.C: New test.
12169
12170 2017-08-07 Tom de Vries <tom@codesourcery.com>
12171
12172 PR middle-end/78266
12173 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
12174 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
12175
12176 2017-07-27 Jakub Jelinek <jakub@redhat.com>
12177
12178 PR c/45784
12179 * testsuite/libgomp.c/pr45784.c: New test.
12180 * testsuite/libgomp.c++/pr45784.C: New test.
12181
12182 2017-07-19 Tom de Vries <tom@codesourcery.com>
12183
12184 * testsuite/libgomp.oacc-c/vec.c: New test.
12185
12186 2017-07-03 Tom de Vries <tom@codesourcery.com>
12187
12188 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
12189
12190 2017-06-27 Tom de Vries <tom@codesourcery.com>
12191
12192 * plugin/plugin-nvptx.c (notify_var): New function.
12193 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
12194
12195 2017-06-27 Tom de Vries <tom@codesourcery.com>
12196
12197 * env.c (parse_unsigned_long_1): Factor out of ...
12198 (parse_unsigned_long): ... here.
12199 (parse_int_1): Factor out of ...
12200 (parse_int): ... here.
12201 (parse_int_secure): New function.
12202 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
12203 * secure_getenv.h: Factor out of ...
12204 * plugin/plugin-hsa.c: ... here.
12205 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
12206
12207 2017-06-21 Jakub Jelinek <jakub@redhat.com>
12208
12209 PR c++/81130
12210 * testsuite/libgomp.c++/pr81130.C: New test.
12211
12212 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12213
12214 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
12215 default args.
12216 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
12217 dg-xfail-run-if default args.
12218
12219 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
12220
12221 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
12222 * testsuite/libgomp.c/pr39591-3.c: Likewise.
12223
12224 2017-05-30 Jakub Jelinek <jakub@redhat.com>
12225
12226 PR libgomp/80822
12227 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
12228 (gomp_affinity_init_level): Use it. Always analyze the core and thread
12229 sibling lists, depending on level just pick up what CPUs to put
12230 together into a place vs. whether add multiple ordered places.
12231
12232 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
12233
12234 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
12235 * libgomp.map (OACC_2.0.1): Add these.
12236 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
12237 for "acc_wait", and "acc_wait_all", respectively.
12238 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
12239 for "acc_wait", and "acc_wait_all", respectively.
12240 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
12241 * libgomp.texi (acc_wait, acc_wait_all): Update.
12242 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
12243 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
12244 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
12245
12246 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
12247 acc_present_or_copyin and acc_present_or_create procedures,
12248 respectively.
12249 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
12250 generally different variants of OpenACC Runtime Library functions.
12251 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
12252
12253 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
12254 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
12255
12256 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
12257 of preprocessor definitions.
12258 * libgomp.h (strong_alias): Guard by "#ifdef
12259 HAVE_ATTRIBUTE_ALIAS".
12260 * oacc-mem.c: Provide "acc_pcreate" as alias for
12261 "acc_present_or_create", and "acc_pcopyin" as alias for
12262 "acc_present_or_copyin".
12263 * libgomp.map: New version "OACC_2.0.1".
12264 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
12265 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
12266 its content into...
12267 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
12268 Extend testing.
12269
12270 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
12271 when disabling nvptx offloading.
12272
12273 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
12274
12275 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
12276 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
12277 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
12278
12279 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
12280 * testsuite/lib/libgomp.exp
12281 (check_effective_target_openacc_nvidia_accel_configured): New
12282 proc.
12283 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
12284 (check_effective_target_c++): New procs.
12285 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
12286 (check_effective_target_c++): Likewise.
12287
12288 2017-05-22 Jakub Jelinek <jakub@redhat.com>
12289
12290 PR middle-end/80809
12291 * testsuite/libgomp.c/pr80809-2.c: New test.
12292 * testsuite/libgomp.c/pr80809-3.c: New test.
12293
12294 PR middle-end/80809
12295 * testsuite/libgomp.c/pr80809-1.c: New test.
12296
12297 PR middle-end/80853
12298 * testsuite/libgomp.c/pr80853.c: New test.
12299
12300 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
12301
12302 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
12303 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
12304 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
12305 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
12306 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
12307
12308 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
12309 Debug output for failure.
12310
12311 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12312
12313 * testsuite/lib/libgomp.exp: Load scanlang.exp.
12314
12315 2017-04-27 Jakub Jelinek <jakub@redhat.com>
12316
12317 PR bootstrap/80531
12318 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
12319 bootstrap compare failures.
12320
12321 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
12322
12323 * testsuite/libgomp.c/target-36.c: New testcase.
12324
12325 2017-04-13 Jakub Jelinek <jakub@redhat.com>
12326
12327 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
12328 instead of char.
12329
12330 2017-04-11 Jakub Jelinek <jakub@redhat.com>
12331
12332 PR libgomp/80394
12333 * testsuite/libgomp.c/pr80394.c: New test.
12334
12335 2017-04-04 Jakub Jelinek <jakub@redhat.com>
12336
12337 PR libgomp/79876
12338 * config/posix/thread-stacksize.h: New file.
12339 * config/darwin/thread-stacksize.h: New file.
12340 * config/nvptx/thread-stacksize.h: New file.
12341 * env.c: Include thread-stacksize.h.
12342 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
12343 instead of 0. Call pthread_attr_setstacksize even if
12344 GOMP_DEFAULT_STACKSIZE is non-zero.
12345
12346 2017-03-30 Jakub Jelinek <jakub@redhat.com>
12347
12348 * env.c (initialize_env): Initialize stacksize to 0.
12349
12350 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
12351
12352 PR c++/80029
12353 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
12354
12355 2017-03-08 Jakub Jelinek <jakub@redhat.com>
12356
12357 PR c/79940
12358 * testsuite/libgomp.c/pr79940.c: New test.
12359
12360 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12361
12362 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
12363 targets.
12364 Add __float128 options.
12365
12366 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
12367
12368 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
12369 hppa*-*-* dg-skip-if directive.
12370
12371 2017-02-09 Jakub Jelinek <jakub@redhat.com>
12372
12373 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
12374 dg-skip-if directive into a comment.
12375
12376 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
12377 Chung-Lin Tang <cltang@codesourcery.com>
12378
12379 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
12380 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
12381 add additional case.
12382 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
12383 "openacc_nvidia_accel_selected".
12384 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
12385 Add num_workers(8) clause.
12386
12387 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
12388
12389 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
12390 hppa*-*-*.
12391 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
12392 include complex.h on hppa*-*-hpux*.
12393 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
12394
12395 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
12396
12397 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
12398
12399 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
12400 GOMP_OFFLOAD_openacc_exec. Adjust all users.
12401 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
12402 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
12403 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
12404 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
12405 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
12406 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
12407 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
12408 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
12409
12410 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
12411
12412 * libgomp-plugin.h: #include <stdbool.h>.
12413 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
12414 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
12415 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
12416 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
12417 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
12418 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
12419 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
12420 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
12421 (GOMP_OFFLOAD_openacc_register_async_cleanup)
12422 (GOMP_OFFLOAD_openacc_async_test)
12423 (GOMP_OFFLOAD_openacc_async_test_all)
12424 (GOMP_OFFLOAD_openacc_async_wait)
12425 (GOMP_OFFLOAD_openacc_async_wait_async)
12426 (GOMP_OFFLOAD_openacc_async_wait_all)
12427 (GOMP_OFFLOAD_openacc_async_wait_all_async)
12428 (GOMP_OFFLOAD_openacc_async_set_async)
12429 (GOMP_OFFLOAD_openacc_create_thread_data)
12430 (GOMP_OFFLOAD_openacc_destroy_thread_data)
12431 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
12432 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
12433 (GOMP_OFFLOAD_openacc_get_cuda_stream)
12434 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
12435 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
12436 these.
12437 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
12438 (GOMP_OFFLOAD_unload_image): Fix argument types.
12439
12440 2017-01-26 Jakub Jelinek <jakub@redhat.com>
12441
12442 * testsuite/lib/libgomp.exp
12443 (check_effective_target_hsa_offloading_selected_nocache): Fix up
12444 check_compile invocation. Fix up removal of executable. Drop
12445 bogus "2>&1" argument.
12446
12447 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
12448 directive.
12449
12450 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
12451 Martin Jambor <mjambor@suse.cz>
12452
12453 * plugin/hsa.h: Moved to top level include.
12454 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
12455
12456 2017-01-21 Jakub Jelinek <jakub@redhat.com>
12457
12458 PR other/79046
12459 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
12460 of cat to get version from BASE-VER file.
12461 * testsuite/Makefile.in: Regenerated.
12462
12463 2017-01-19 Jakub Jelinek <jakub@redhat.com>
12464
12465 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
12466 for _WIN64.
12467
12468 2017-01-17 Jakub Jelinek <jakub@redhat.com>
12469
12470 * plugin/hsa.h: Add GCC runtime library exception.
12471 * plugin/hsa_ext_finalize.h: Likewise.
12472
12473 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
12474 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
12475 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
12476 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
12477 plugin/include/cuda as include dir and -ldl instead of -lcuda as
12478 library to link ptx plugin against.
12479 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
12480 (CUDA_CALLS): Define.
12481 (cuda_lib, cuda_lib_inited): New variables.
12482 (init_cuda_lib): New function.
12483 (CUDA_CALL_PREFIX): Define.
12484 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
12485 (CUDA_CALL): Use FN instead of (FN).
12486 (CUDA_CALL_NOCHECK): Define.
12487 (cuda_error, fini_streams_for_device, select_stream_for_async,
12488 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
12489 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
12490 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
12491 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
12492 CUDA_CALL_NOCHECK.
12493 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
12494 CUDA_CALL_NOCHECK.
12495 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
12496 Use CUDA_CALL_NOCHECK.
12497 * plugin/cuda/cuda.h: New file.
12498 * config.h.in: Regenerated.
12499 * configure: Regenerated.
12500
12501 PR other/79046
12502 * configure.ac: Add GCC_BASE_VER.
12503 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
12504 get version from BASE-VER file.
12505 * testsuite/Makefile.in: Regenerated.
12506 * configure: Regenerated.
12507 * Makefile.in: Regenerated.
12508
12509 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12510
12511 PR libgomp/60670
12512 * Makefile.am: Make fincludedir multilib-aware.
12513 * Makefile.in: Regenerate.
12514
12515 2017-01-01 Jakub Jelinek <jakub@redhat.com>
12516
12517 Update copyright years.
12518
12519 * libgomp.texi: Bump @copying's copyright year.
12520
12521 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
12522
12523 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
12524 pthread_spinlock_t instead of gomp_mutex_t lock.
12525 (gomp_get_thread_pool): Likewise.
12526 (gomp_release_thread_pool): Likewise.
12527 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
12528 Likewise.
12529
12530 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
12531
12532 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
12533 thread pool in case nthreads == 1.
12534
12535 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
12536
12537 * config/nvptx/env.c: Delete.
12538 * icv.c: Move definitions of ICV variables back ...
12539 * env.c: ...here. Do not compile environment-related functionality if
12540 LIBGOMP_OFFLOADED_ONLY is set.
12541
12542 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
12543
12544 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
12545 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
12546 * configure: Regenerate.
12547 * config.h.in: Likewise.
12548
12549 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
12550
12551 * Makefile.in: Regenerate with automake-1.11.6.
12552 * aclocal.m4: Likewise.
12553 * configure: Likewise.
12554 * testsuite/Makefile.in: Likewise.
12555
12556 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
12557
12558 * config/nvptx/critical.c: Delete to use generic implementation.
12559
12560 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
12561
12562 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
12563 ../../affinity.c as fallback.
12564 * config/nvptx/affinity.c: Delete to use fallback implementation.
12565
12566 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
12567 Jakub Jelinek <jakub@redhat.com>
12568 Dmitry Melnik <dm@ispras.ru>
12569
12570 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
12571 * Makefile.in. Regenerate.
12572 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
12573 (LIBGOMP_USE_PTHREADS): ...here; new define.
12574 * configure: Regenerate.
12575 * config.h.in: Likewise.
12576 * config/posix/affinity.c: Move to...
12577 * affinity.c: ...here (new file). Guard use of Pthreads-specific
12578 interface by LIBGOMP_USE_PTHREADS.
12579 * critical.c: Split out GOMP_atomic_{start,end} into...
12580 * atomic.c: ...here (new file).
12581 * env.c: Split out ICV definitions into...
12582 * icv.c: ...here (new file) and...
12583 * icv-device.c: ...here. New file.
12584 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
12585 (gomp_destroy_lock_30): Ditto.
12586 (gomp_set_lock_30): Ditto.
12587 (gomp_unset_lock_30): Ditto.
12588 (gomp_test_lock_30): Ditto.
12589 (gomp_init_nest_lock_30): Ditto.
12590 (gomp_destroy_nest_lock_30): Ditto.
12591 (gomp_set_nest_lock_30): Ditto.
12592 (gomp_unset_nest_lock_30): Ditto.
12593 (gomp_test_nest_lock_30): Ditto.
12594 * lock.c: New.
12595 * config/nvptx/lock.c: New.
12596 * config/nvptx/bar.c: New.
12597 * config/nvptx/bar.h: New.
12598 * config/nvptx/doacross.h: New.
12599 * config/nvptx/error.c: New.
12600 * config/nvptx/icv-device.c: New.
12601 * config/nvptx/mutex.h: New.
12602 * config/nvptx/pool.h: New.
12603 * config/nvptx/proc.c: New.
12604 * config/nvptx/ptrlock.h: New.
12605 * config/nvptx/sem.h: New.
12606 * config/nvptx/simple-bar.h: New.
12607 * config/nvptx/target.c: New.
12608 * config/nvptx/task.c: New.
12609 * config/nvptx/team.c: New.
12610 * config/nvptx/time.c: New.
12611 * config/posix/simple-bar.h: New.
12612 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
12613 (gomp_num_teams_var): Declare.
12614 (struct gomp_thread_pool): Change threads_dock member to
12615 gomp_simple_barrier_t.
12616 [__nvptx__] (gomp_thread): New implementation.
12617 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
12618 (gomp_thread_destructor): Ditto.
12619 (gomp_init_thread_affinity): Ditto.
12620 * team.c: Guard uses of Pthreads-specific interfaces by
12621 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
12622 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
12623 * config/nvptx/alloc.c: Delete.
12624 * config/nvptx/barrier.c: Ditto.
12625 * config/nvptx/fortran.c: Ditto.
12626 * config/nvptx/iter.c: Ditto.
12627 * config/nvptx/iter_ull.c: Ditto.
12628 * config/nvptx/loop.c: Ditto.
12629 * config/nvptx/loop_ull.c: Ditto.
12630 * config/nvptx/ordered.c: Ditto.
12631 * config/nvptx/parallel.c: Ditto.
12632 * config/nvptx/priority_queue.c: Ditto.
12633 * config/nvptx/sections.c: Ditto.
12634 * config/nvptx/single.c: Ditto.
12635 * config/nvptx/splay-tree.c: Ditto.
12636 * config/nvptx/work.c: Ditto.
12637 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
12638 -foffload=-lgfortran in addition to -lgfortran.
12639 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
12640 * plugin/plugin-nvptx.c: Include <limits.h>.
12641 (struct targ_fn_descriptor): Add new fields.
12642 (struct ptx_device): Ditto. Set them...
12643 (nvptx_open_device): ...here.
12644 (nvptx_adjust_launch_bounds): New.
12645 (nvptx_host2dev): Allow NULL 'nvthd'.
12646 (nvptx_dev2host): Ditto.
12647 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
12648 (link_ptx): Adjust log sizes.
12649 (nvptx_host2dev): Allow NULL 'nvthd'.
12650 (nvptx_dev2host): Ditto.
12651 (nvptx_set_clocktick): New. Use it...
12652 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
12653 fields.
12654 (GOMP_OFFLOAD_dev2dev): New.
12655 (nvptx_adjust_launch_bounds): New.
12656 (nvptx_stacks_size): New.
12657 (nvptx_stacks_alloc): New.
12658 (nvptx_stacks_free): New.
12659 (GOMP_OFFLOAD_run): New.
12660 (GOMP_OFFLOAD_async_run): New (stub).
12661
12662 2016-11-23 Martin Jambor <mjambor@suse.cz>
12663
12664 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
12665 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
12666 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
12667
12668 2016-11-23 Martin Liska <mliska@suse.cz>
12669 Martin Jambor <mjambor@suse.cz>
12670
12671 * plugin/hsa.h: New file.
12672 * plugin/hsa_ext_finalize.h: New file.
12673 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
12674 header file unistd.h, and functions secure_getenv, __secure_getenv,
12675 getuid, geteuid, getgid and getegid.
12676 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
12677 -D_GNU_SOURCE.
12678 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
12679 Handle various cases of secure_getenv presence, add an implementation
12680 when we can test effective UID and GID.
12681 (struct hsa_runtime_fn_info): New structure.
12682 (hsa_runtime_fn_info hsa_fns): New variable.
12683 (hsa_runtime_lib): Likewise.
12684 (support_cpu_devices): Likewise.
12685 (init_enviroment_variables): Load newly introduced ENV
12686 variables.
12687 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
12688 (hsa_fatal): Likewise.
12689 (DLSYM_FN): New macro.
12690 (init_hsa_runtime_functions): New function.
12691 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
12692 structure. Depending on environment, also allow CPU devices.
12693 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
12694 (get_kernarg_memory_region): Likewise.
12695 (GOMP_OFFLOAD_init_device): Likewise.
12696 (destroy_hsa_program): Likewise.
12697 (init_basic_kernel_info): New function.
12698 (GOMP_OFFLOAD_load_image): Use it.
12699 (create_and_finalize_hsa_program): Call hsa run-time functions via
12700 hsa_fns structure.
12701 (create_single_kernel_dispatch): Likewise.
12702 (release_kernel_dispatch): Likewise.
12703 (init_single_kernel): Likewise.
12704 (parse_target_attributes): Allow up multiple HSA grid dimensions.
12705 (get_group_size): New function.
12706 (run_kernel): Likewise.
12707 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
12708 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
12709 structure.
12710 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
12711 * testsuite/libgomp-test-support.exp.in: Likewise.
12712 * Makefile.in: Regenerated.
12713 * aclocal.m4: Likewise.
12714 * config.h.in: Likewise.
12715 * configure: Likewise.
12716 * testsuite/Makefile.in: Likewise.
12717
12718 2016-11-15 Martin Jambor <mjambor@suse.cz>
12719 Alexander Monakov <amonakov@ispras.ru>
12720
12721 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
12722 mapping clauses to target constructs.
12723 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
12724
12725 2016-11-15 Matthias Klose <doko@ubuntu.com>
12726
12727 * configure: Regenerate.
12728
12729 2016-11-10 Jakub Jelinek <jakub@redhat.com>
12730
12731 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
12732 * omp_lib.h.in (openmp_version): Likewise.
12733 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
12734 of 201307.
12735 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12736
12737 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
12738 (fib_wrapper): Add map(from: x) clause.
12739 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
12740 (e_53_2): Likewise.
12741 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
12742 (accum): Add map(tmp) clause.
12743 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
12744 (accum): Add map(tofrom: tmp) clause.
12745 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
12746 (gramSchmidt): Likewise.
12747 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
12748 map(tofrom: sum) clause.
12749 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
12750 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
12751 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
12752 only allowed on the loop iterator.
12753 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
12754 * testsuite/libgomp.fortran/taskloop2.f90: New test.
12755 * testsuite/libgomp.fortran/taskloop4.f90: New test.
12756 * testsuite/libgomp.fortran/doacross1.f90: New test.
12757 * testsuite/libgomp.fortran/doacross3.f90: New test.
12758 * testsuite/libgomp.fortran/taskloop1.f90: New test.
12759 * testsuite/libgomp.fortran/taskloop3.f90: New test.
12760 * testsuite/libgomp.fortran/doacross2.f90: New test.
12761 * testsuite/libgomp.c/doacross-1.c (main): Add missing
12762 #pragma omp atomic read.
12763 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
12764 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
12765
12766 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
12767 Nathan Sidwell <nathan@acm.org>
12768
12769 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
12770 to determine default geometry.
12771 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
12772 dimension.
12773
12774 2016-11-01 Jakub Jelinek <jakub@redhat.com>
12775
12776 * hashtab.h: Use standard GPLv3 with runtime exception
12777 boilerplate.
12778
12779 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
12780
12781 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
12782 size when allocating new thread.
12783
12784 2016-09-14 Marek Polacek <polacek@redhat.com>
12785
12786 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
12787
12788 2016-08-19 Jakub Jelinek <jakub@redhat.com>
12789
12790 PR fortran/71014
12791 * testsuite/libgomp.fortran/pr71014.f90: New test.
12792
12793 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
12794
12795 PR middle-end/70895
12796 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
12797 firstprivate clauses.
12798 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
12799 copy clauses.
12800 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
12801 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
12802 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
12803 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
12804 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
12805 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
12806 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12807 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
12808 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12809 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12810 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12811 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
12812
12813 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
12814
12815 PR fortran/70598
12816 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
12817
12818 2016-08-08 Jakub Jelinek <jakub@redhat.com>
12819
12820 PR c++/58706
12821 * testsuite/libgomp.c++/pr58706.C: New test.
12822
12823 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
12824
12825 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
12826 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
12827 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
12828 Likewise.
12829 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
12830 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
12831 Likewise.
12832 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
12833
12834 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
12835 test, and don't hardcode -O0.
12836
12837 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
12838
12839 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
12840
12841 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
12842
12843 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
12844 test.
12845
12846 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
12847
12848 PR middle-end/71734
12849 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
12850 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
12851
12852 2016-07-01 Jakub Jelinek <jakub@redhat.com>
12853
12854 PR fortran/71717
12855 * testsuite/libgomp.fortran/associate3.f90: New test.
12856
12857 2016-06-17 Jakub Jelinek <jakub@redhat.com>
12858
12859 * testsuite/libgomp.c++/target-21.C: New test.
12860
12861 2016-06-16 Jakub Jelinek <jakub@redhat.com>
12862
12863 * testsuite/libgomp.c++/target-20.C: New test.
12864
12865 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
12866 Cesar Philippidis <cesar@codesourcery.com>
12867
12868 PR middle-end/71373
12869 * libgomp.oacc-c/nested-function-1.c: New file.
12870 * libgomp.oacc-c/nested-function-2.c: Likewise.
12871 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
12872 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
12873 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
12874
12875 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
12876
12877 PR c/71381
12878 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
12879 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
12880 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
12881
12882 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
12883
12884 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
12885 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
12886
12887 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
12888
12889 PR c/70688
12890 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
12891
12892 2016-05-26 Jakub Jelinek <jakub@redhat.com>
12893
12894 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
12895 instead of invalid schedule(static, 0).
12896 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
12897
12898 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
12899
12900 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
12901 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
12902 parameter, use to set async stream around call to gomp_unmap_vars,
12903 call gomp_unmap_vars() with 'do_copyfrom' set to true.
12904 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
12905 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
12906 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
12907 (event_add): Add int parameter, initialize 'val' field when
12908 adding new ptx_event struct.
12909 (nvptx_evec): Adjust event_add() call arguments.
12910 (nvptx_host2dev): Likewise.
12911 (nvptx_dev2host): Likewise.
12912 (nvptx_wait_async): Likewise.
12913 (nvptx_wait_all_async): Likewise.
12914 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
12915 pass to event_add() call.
12916 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
12917 parameter.
12918 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
12919 call openacc.register_async_cleanup_func() hook.
12920 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
12921 * target.c (gomp_copy_from_async): Delete function.
12922 (gomp_map_vars): Remove async_refcount.
12923 (gomp_unmap_vars): Likewise.
12924 (gomp_load_image_to_device): Likewise.
12925 (omp_target_associate_ptr): Likewise.
12926 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
12927 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
12928 (gomp_copy_from_async): Remove.
12929
12930 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
12931
12932 * target.c (gomp_device_copy): New function.
12933 (gomp_copy_host2dev): Likewise.
12934 (gomp_copy_dev2host): Likewise.
12935 (gomp_free_device_memory): Likewise.
12936 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
12937 (gomp_map_pointer): Likewise.
12938 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
12939 NULL value from alloc_func plugin hook.
12940 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
12941 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
12942 (gomp_unmap_vars): Likewise.
12943 (gomp_update): Adjust to call gomp_copy_dev2host and
12944 gomp_copy_host2dev functions.
12945 (gomp_unload_image_from_device): Handle false value from
12946 unload_image_func plugin hook.
12947 (gomp_init_device): Handle false value from init_device_func
12948 plugin hook.
12949 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
12950 (omp_target_free): Adjust to call gomp_free_device_memory.
12951 (omp_target_memcpy): Handle return values from host2dev_func,
12952 dev2host_func, and dev2dev_func plugin hooks.
12953 (omp_target_memcpy_rect_worker): Likewise.
12954 (gomp_target_fini): Handle false value from fini_device_func
12955 plugin hook.
12956 * libgomp.h (struct gomp_device_descr): Adjust return type of
12957 init_device_func, fini_device_func, unload_image_func, free_func,
12958 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
12959 * oacc-init.c (acc_shutdown_1): Handle false value from
12960 fini_device_func plugin hook.
12961 * oacc-host.c (host_init_device): Change return type to bool.
12962 (host_fini_device): Likewise.
12963 (host_unload_image): Likewise.
12964 (host_free): Likewise.
12965 (host_dev2host): Likewise.
12966 (host_host2dev): Likewise.
12967 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
12968 (acc_memcpy_to_device): Likewise.
12969 (acc_memcpy_from_device): Likewise.
12970 (delete_copyout): Add libfnname parameter, handle free_func
12971 hook fatal error case.
12972 (acc_delete): Adjust delete_copyout call.
12973 (acc_copyout): Likewise.
12974 (update_dev_host): Move gomp_mutex_unlock to after
12975 host2dev/dev2host hook calls.
12976
12977 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
12978 to 'hsa_error_msg', for clarity.
12979 (hsa_fatal): Likewise.
12980 (hsa_error): New function.
12981 (init_hsa_context): Change return type to bool, adjust to return
12982 false on error.
12983 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
12984 return value.
12985 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
12986 return false on error.
12987 (get_agent_info): Adjust to return NULL on error.
12988 (destroy_hsa_program): Change return type to bool, adjust to
12989 return false on error.
12990 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
12991 (destroy_module): Change return type to bool, adjust to
12992 return false on error.
12993 (GOMP_OFFLOAD_unload_image): Likewise.
12994 (GOMP_OFFLOAD_fini_device): Likewise.
12995 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
12996 (GOMP_OFFLOAD_free): Change to return false when called.
12997 (GOMP_OFFLOAD_dev2host): Likewise.
12998 (GOMP_OFFLOAD_host2dev): Likewise.
12999 (GOMP_OFFLOAD_dev2dev): Likewise.
13000
13001 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
13002 (CUDA_CALL): Likewise.
13003 (CUDA_CALL_ASSERT): Likewise.
13004 (map_init): Change return type to bool, use CUDA_CALL* macros.
13005 (map_fini): Likewise.
13006 (init_streams_for_device): Change return type to bool, adjust
13007 call to map_init.
13008 (fini_streams_for_device): Change return type to bool, adjust
13009 call to map_fini.
13010 (select_stream_for_async): Release stream_lock before calls to
13011 GOMP_PLUGIN_fatal, adjust call to map_init.
13012 (nvptx_init): Use CUDA_CALL* macros.
13013 (nvptx_attach_host_thread_to_device): Change return type to bool,
13014 use CUDA_CALL* macros.
13015 (nvptx_open_device): Use CUDA_CALL* macros.
13016 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
13017 macros.
13018 (nvptx_get_num_devices): Use CUDA_CALL* macros.
13019 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
13020 (nvptx_exec): Use CUDA_CALL* macros.
13021 (nvptx_alloc): Use CUDA_CALL* macros.
13022 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
13023 (nvptx_host2dev): Likewise.
13024 (nvptx_dev2host): Likewise.
13025 (nvptx_wait): Use CUDA_CALL* macros.
13026 (nvptx_wait_async): Likewise.
13027 (nvptx_wait_all): Likewise.
13028 (nvptx_wait_all_async): Likewise.
13029 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
13030 use CUDA_CALL* macros, adjust call to map_fini.
13031 (GOMP_OFFLOAD_init_device): Change return type to bool,
13032 adjust code accordingly.
13033 (GOMP_OFFLOAD_fini_device): Likewise.
13034 (GOMP_OFFLOAD_load_image): Adjust calls to
13035 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
13036 use CUDA_CALL* macros.
13037 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
13038 return code.
13039 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
13040 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
13041 handle error return.
13042 (GOMP_OFFLOAD_dev2host): Likewise.
13043 (GOMP_OFFLOAD_host2dev): Likewise.
13044 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
13045 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
13046
13047 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
13048
13049 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
13050 (acc_free): Likewise.
13051 (acc_memcpy_to_device): Likewise.
13052 (acc_memcpy_from_device): Likewise.
13053 (acc_deviceptr): Likewise.
13054 (acc_hostptr): Likewise.
13055 (acc_is_present): Likewise.
13056 (acc_map_data): Likewise.
13057 (acc_unmap_data): Likewise.
13058 (present_create_copy): Likewise.
13059 (delete_copyout): Likewise.
13060 (update_dev_host): Likewise.
13061 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
13062 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
13063 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
13064 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
13065 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
13066 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
13067 it only runs on nvptx targets.
13068 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
13069 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
13070 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
13071 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
13072 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
13073 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
13074 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
13075 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
13076 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
13077 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
13078 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
13079 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
13080 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
13081 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
13082 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
13083 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
13084 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
13085 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
13086 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
13087 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
13088 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
13089 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
13090 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
13091
13092 2016-05-23 Martin Jambor <mjambor@suse.cz>
13093
13094 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
13095
13096 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
13097
13098 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
13099 to gomp_init_targets_once.
13100 (acc_set_device_type): Remove !cached_base_dev condition on call to
13101 gomp_init_targets_once, move call to before acc_device_lock acquire,
13102 to avoid deadlock.
13103 (acc_get_device_num): Remove !cached_base_dev condition on call to
13104 gomp_init_targets_once.
13105 (acc_set_device_num): Likewise.
13106
13107 2016-05-16 Martin Jambor <mjambor@suse.cz>
13108
13109 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
13110
13111 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
13112
13113 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
13114 expected partitioning.
13115
13116 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
13117
13118 PR middle-end/70626
13119 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
13120 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
13121 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
13122
13123 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
13124
13125 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
13126 non-fatal.
13127
13128 2016-04-19 Jakub Jelinek <jakub@redhat.com>
13129
13130 PR middle-end/70680
13131 * testsuite/libgomp.c/pr70680-1.c: New test.
13132 * testsuite/libgomp.c/pr70680-2.c: New test.
13133
13134 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
13135
13136 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
13137 pass parameter variables to subroutines.
13138
13139 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
13140
13141 PR middle-end/70643
13142 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
13143
13144 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
13145
13146 PR testsuite/68242
13147 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
13148 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13149
13150 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
13151
13152 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
13153 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
13154 GOACC_declare prototype.
13155
13156 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
13157 Merge this file, and...
13158 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
13159 ... this file, and...
13160 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
13161 ... this file, and...
13162 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
13163 ... this file, and...
13164 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
13165 ... this file, and...
13166 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
13167 ... this file, and...
13168 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
13169 ... this file, and...
13170 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
13171 ... this file, and...
13172 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
13173 ... this file, and...
13174 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
13175 ... this file, and...
13176 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
13177 ... this file, and...
13178 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
13179 ... this file, and...
13180 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
13181 ... this file into...
13182 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
13183 file.
13184
13185 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
13186 Make failure observable.
13187
13188 2016-04-12 Jakub Jelinek <jakub@redhat.com>
13189
13190 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
13191 field.
13192 * target.c (gomp_target_fallback_firstprivate,
13193 gomp_target_unshare_firstprivate): Removed.
13194 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
13195 before waiting for dependencies.
13196 (gomp_target_task_fn): Don't copy firstprivate vars here.
13197 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
13198 firstprivate_copies here.
13199 (gomp_create_target_task): Don't initialize firstprivate_copies field.
13200 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
13201 explicit/implicit firstprivate.
13202
13203 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
13204
13205 PR lto/70289
13206 PR ipa/70348
13207 PR tree-optimization/70373
13208 PR middle-end/70533
13209 PR middle-end/70534
13210 PR middle-end/70535
13211 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
13212 test.
13213 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
13214 test.
13215 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
13216 test.
13217 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
13218 test.
13219 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
13220 test.
13221 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
13222 test.
13223 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
13224 test.
13225 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
13226 test.
13227 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
13228 test.
13229 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
13230 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
13231 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
13232 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
13233 test.
13234 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
13235 test.
13236 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
13237 test.
13238 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
13239 test.
13240 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
13241 coverage.
13242 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13243 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
13244 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
13245 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
13246 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
13247 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
13248 coverage.
13249 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13250 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13251 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13252 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
13253 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
13254 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
13255 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
13256 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
13257 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
13258 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
13259 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
13260 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
13261 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
13262 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13263 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
13264
13265 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
13266 James Norris <jnorris@codesourcery.com>
13267 Nathan Sidwell <nathan@codesourcery.com>
13268 Julian Brown <julian@codesourcery.com>
13269 Cesar Philippidis <cesar@codesourcery.com>
13270 Chung-Lin Tang <cltang@codesourcery.com>
13271 Tom de Vries <tom@codesourcery.com>
13272
13273 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
13274 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
13275 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
13276 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
13277 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
13278 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
13279 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
13280 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
13281 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
13282 XFAIL.
13283 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
13284 Incorporate...
13285 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
13286 file.
13287 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
13288 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
13289 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
13290 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
13291 Likewise.
13292 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
13293 Likewise.
13294 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
13295 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
13296 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
13297 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
13298 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
13299 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
13300 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
13301 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
13302 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
13303 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
13304 Likewise.
13305 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
13306 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
13307 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
13308 file...
13309 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
13310 file into...
13311 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
13312 file. Update.
13313 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
13314 file.
13315 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
13316 Likewise.
13317 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
13318 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
13319 ... this new file. Update.
13320 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
13321 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
13322 ... this new file. Update.
13323 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
13324 file. Incorporate...
13325 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
13326 file, and...
13327 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
13328 file, and...
13329 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
13330 file.
13331 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
13332
13333 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
13334
13335 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
13336 set-torture-options.
13337
13338 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
13339
13340 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
13341 gcc-dg-runtest.
13342 * testsuite/libgomp.oacc-c/c.exp: Likewise.
13343 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
13344 -fno-builtin-acc_on_device instead of -O0.
13345 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
13346 -O0.
13347 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
13348 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
13349 Likewise.
13350 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
13351 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
13352 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
13353 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13354 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13355 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13356 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
13357 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13358 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
13359 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
13360 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
13361 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
13362 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
13363 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
13364 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
13365 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
13366 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
13367 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
13368 Don't specify -O2.
13369 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
13370 Likewise.
13371 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
13372 Likewise.
13373
13374 2016-03-24 Martin Liska <mliska@suse.cz>
13375
13376 * plugin/plugin-hsa.c (packet_store_release): New function
13377 that is taken from the HSA runtime manual.
13378 (GOMP_OFFLOAD_run): Use the function.
13379
13380 2016-03-23 Jakub Jelinek <jakub@redhat.com>
13381
13382 PR c++/70376
13383 * testsuite/libgomp.c++/pr70376.C: New test.
13384
13385 2016-03-23 Tom de Vries <tom@codesourcery.com>
13386
13387 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
13388 initialization of lresult and lvresult.
13389 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
13390
13391 2016-03-23 James Norris <jnorris@codesourcery.com>
13392 Daichi Fukuoka <dc-fukuoka@sgi.com>
13393
13394 PR libgomp/69414
13395 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
13396 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
13397 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
13398 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
13399
13400 2016-03-23 Martin Liska <mliska@suse.cz>
13401
13402 PR hsa/70337
13403 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
13404 argument just in case a dispatched kernel uses that argument.
13405
13406 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
13407
13408 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
13409 -ftree-parallelize-loops/-fopenacc changes.
13410 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
13411 Likewise.
13412 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13413 Likewise.
13414 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
13415 Likewise.
13416 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
13417 Likewise.
13418 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
13419 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
13420
13421 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
13422
13423 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
13424 always_ld_library_path the path to libgcc_s.
13425
13426 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
13427
13428 PR testsuite/70009
13429 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
13430
13431 2016-03-09 Tom de Vries <tom@codesourcery.com>
13432
13433 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
13434 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
13435 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13436 Same.
13437 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
13438 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
13439 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
13440 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
13441
13442 2016-03-07 Martin Jambor <mjambor@suse.cz>
13443
13444 * testsuite/lib/libgomp.exp
13445 (check_effective_target_hsa_offloading_selected_nocache): New.
13446 (check_effective_target_hsa_offloading_selected): Likewise.
13447 * testsuite/libgomp.hsa.c/c.exp: Likewise.
13448 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
13449 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
13450 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
13451 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
13452 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
13453 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
13454 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
13455 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
13456 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
13457 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
13458 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
13459 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
13460 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
13461 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
13462 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
13463 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
13464
13465 2016-03-07 Martin Jambor <mjambor@suse.cz>
13466
13467 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
13468 non-shared memory accelerators.
13469 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
13470 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
13471 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
13472 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
13473 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
13474 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
13475 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
13476 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
13477 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
13478
13479 2016-03-07 Martin Jambor <mjambor@suse.cz>
13480
13481 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
13482 ALWAYS_CFLAGS.
13483
13484 2016-03-02 Jakub Jelinek <jakub@redhat.com>
13485
13486 PR libgomp/69555
13487 * testsuite/libgomp.c++/pr69555-1.C: New test.
13488 * testsuite/libgomp.c++/pr69555-2.C: New test.
13489
13490 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
13491 Martin Jambor <mjambor@suse.cz>
13492
13493 * testsuite/lib/libgomp.exp
13494 (check_effective_target_offload_device_shared_as): New proc.
13495 * testsuite/libgomp.c++/declare_target-1.C: New test.
13496
13497 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
13498
13499 PR driver/68463
13500 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
13501
13502 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
13503
13504 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
13505 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
13506 dims.
13507 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
13508 -ftree-parallelize-loops/-fopenacc changes.
13509 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
13510 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
13511 Likewise.
13512 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
13513 Likewise.
13514 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
13515 Likewise.
13516 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
13517 Likewise.
13518 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
13519 Likewise.
13520 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
13521 Likewise.
13522 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
13523 Likewise.
13524 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
13525 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
13526 Likewise.
13527 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
13528 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
13529 Likewise.
13530 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
13531 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
13532 Likewise.
13533
13534 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
13535
13536 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
13537
13538 2016-02-19 Jakub Jelinek <jakub@redhat.com>
13539
13540 PR driver/69805
13541 * testsuite/libgomp.c/pr69805.c: New test.
13542
13543 2016-02-16 Tom de Vries <tom@codesourcery.com>
13544
13545 PR lto/67709
13546 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
13547
13548 2016-02-09 Tom de Vries <tom@codesourcery.com>
13549
13550 PR tree-optimization/69599
13551 * testsuite/libgomp.c/omp-nested-3.c: New test.
13552 * testsuite/libgomp.c/pr46032-2.c: New test.
13553 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
13554 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
13555
13556 2016-02-09 Tom de Vries <tom@codesourcery.com>
13557
13558 PR lto/69707
13559 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
13560
13561 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
13562
13563 * testsuite/libgomp.c/target-31.c: Fix testcase.
13564
13565 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
13566
13567 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
13568 clause.
13569 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
13570 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
13571 reduction and map clauses.
13572 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
13573
13574 2016-02-02 James Norris <jnorris@codesourcery.com>
13575
13576 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
13577
13578 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
13579
13580 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
13581 * oacc-parallel.c (GOACC_host_data): Remove function definition.
13582
13583 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
13584 cases.
13585
13586 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
13587 variables.
13588 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
13589 (hsa_kmt_lib): Set variables.
13590 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
13591 always_ld_library_path.
13592 * Makefile.in: Regenerate.
13593 * configure: Likewise.
13594 * testsuite/Makefile.in: Likewise.
13595
13596 * plugin/configfrag.ac (offload_additional_options)
13597 (offload_additional_lib_paths): Don't amend for hsa offloading.
13598 * configure: Regenerate.
13599
13600 * plugin/configfrag.ac: Don't configure for offloading target if
13601 we don't build the corresponding plugin.
13602 * configure: Regenerate.
13603
13604 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
13605
13606 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
13607 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
13608
13609 2016-01-26 Tom de Vries <tom@codesourcery.com>
13610
13611 PR tree-optimization/69110
13612 * testsuite/libgomp.c/pr69110.c: New test.
13613
13614 2016-01-25 Richard Biener <rguenther@suse.de>
13615
13616 PR lto/69393
13617 * testsuite/libgomp.c++/pr69393.C: New testcase.
13618
13619 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
13620
13621 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
13622 function wasn't mapped to the device with non-shared memory.
13623
13624 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
13625
13626 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
13627
13628 2016-01-19 Martin Jambor <mjambor@suse.cz>
13629 Martin Liska <mliska@suse.cz>
13630
13631 * plugin/Makefrag.am: Add HSA plugin requirements.
13632 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
13633 (HSA_RUNTIME_LIB): Likewise.
13634 (HSA_RUNTIME_CPPFLAGS): Likewise.
13635 (HSA_RUNTIME_INCLUDE): New substitution.
13636 (HSA_RUNTIME_LIB): Likewise.
13637 (HSA_RUNTIME_LDFLAGS): Likewise.
13638 (hsa-runtime): New configure option.
13639 (hsa-runtime-include): Likewise.
13640 (hsa-runtime-lib): Likewise.
13641 (PLUGIN_HSA): New substitution variable.
13642 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
13643 configure options.
13644 (PLUGIN_HSA_CPPFLAGS): Likewise.
13645 (PLUGIN_HSA_LDFLAGS): Likewise.
13646 (PLUGIN_HSA_LIBS): Likewise.
13647 Check that we have access to HSA run-time.
13648 * libgomp-plugin.h (offload_target_type): New element
13649 OFFLOAD_TARGET_TYPE_HSA.
13650 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
13651 args.
13652 (bool gomp_create_target_task): Updated.
13653 (gomp_device_descr): Extra parameter of run_func and async_run_func,
13654 new field can_run_func.
13655 * libgomp_g.h (GOMP_target_ext): Update prototype.
13656 * oacc-host.c (host_run): Added a new parameter args.
13657 * target.c (calculate_firstprivate_requirements): New function.
13658 (copy_firstprivate_data): Likewise.
13659 (gomp_target_fallback_firstprivate): Use them.
13660 (gomp_target_unshare_firstprivate): New function.
13661 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
13662 devices.
13663 (GOMP_target): Do host fallback for all shared memory devices. Do not
13664 pass any args to plugins.
13665 (GOMP_target_ext): Introduce device-specific argument parameter args.
13666 Allow host fallback if device shares memory. Do not remap data if
13667 device has shared memory.
13668 (gomp_target_task_fn): Likewise. Also treat shared memory devices
13669 like host fallback for mappings.
13670 (GOMP_target_data): Treat shared memory devices like host fallback.
13671 (GOMP_target_data_ext): Likewise.
13672 (GOMP_target_update): Likewise.
13673 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
13674 gomp_create_target_task.
13675 (GOMP_target_enter_exit_data): Likewise.
13676 (omp_target_alloc): Treat shared memory devices like host fallback.
13677 (omp_target_free): Likewise.
13678 (omp_target_is_present): Likewise.
13679 (omp_target_memcpy): Likewise.
13680 (omp_target_memcpy_rect): Likewise.
13681 (omp_target_associate_ptr): Likewise.
13682 (gomp_load_plugin_for_device): Also load can_run.
13683 * task.c (GOMP_PLUGIN_target_task_completion): Free
13684 firstprivate_copies.
13685 (gomp_create_target_task): Accept new argument args and store it to
13686 ttask.
13687 * plugin/plugin-hsa.c: New file.
13688
13689 2016-01-18 Tom de Vries <tom@codesourcery.com>
13690
13691 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
13692 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
13693 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
13694 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
13695 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
13696 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
13697 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
13698 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
13699 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
13700 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
13701 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
13702 Same.
13703 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
13704 Same.
13705 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
13706 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
13707 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
13708 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
13709 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
13710 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
13711 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
13712 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
13713 Same.
13714 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
13715
13716 2016-01-15 Jakub Jelinek <jakub@redhat.com>
13717
13718 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
13719
13720 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
13721
13722 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
13723
13724 2016-01-12 James Norris <jnorris@codesourcery.com>
13725
13726 * libgomp.texi: Updates for OpenACC.
13727
13728 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
13729
13730 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
13731
13732 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
13733
13734 PR fortran/66680
13735 * testsuite/libgomp.fortran/pr66680.f90: New test.
13736
13737 2016-01-07 Jakub Jelinek <jakub@redhat.com>
13738
13739 PR middle-end/68960
13740 * testsuite/libgomp.c/pr68960.c: New test.
13741
13742 2016-01-06 Nathan Sidwell <nathan@acm.org>
13743
13744 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
13745 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
13746
13747 2016-01-04 Jakub Jelinek <jakub@redhat.com>
13748
13749 Update copyright years.
13750
13751 * libgomp.texi: Bump @copying's copyright year.
13752
13753 2015-12-31 Nathan Sidwell <nathan@acm.org>
13754
13755 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
13756 dg-additional-options syntax.
13757 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
13758 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
13759 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
13760 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13761 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
13762 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
13763 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
13764 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
13765 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
13766 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
13767 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13768 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
13769 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
13770 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
13771 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
13772 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
13773 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13774 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13775
13776 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
13777
13778 * libgomp.h (REFCOUNT_LINK): Define.
13779 (struct splay_tree_key_s): Add link_key.
13780 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
13781 Replace target address of the pointer with target address of newly
13782 mapped object in the splay tree. Set link pointer on target to the
13783 device address of the mapped object.
13784 (gomp_unmap_vars): Restore target address of the pointer in the splay
13785 tree for REFCOUNT_LINK objects after unmapping.
13786 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
13787 declare target link" objects.
13788 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
13789 "omp declare target link" objects, which were mapped for the image.
13790 (gomp_exit_data): Restore target address of the pointer in the splay
13791 tree for REFCOUNT_LINK objects after unmapping.
13792 * testsuite/libgomp.c/target-link-1.c: New file.
13793
13794 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
13795
13796 * libgomp.h (gomp_device_state): New enum.
13797 (struct gomp_device_descr): Replace is_initialized with state.
13798 (gomp_fini_device): Remove declaration.
13799 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
13800 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
13801 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
13802 (acc_set_device_type): Use state instead of is_initialized.
13803 (acc_set_device_num): Likewise.
13804 * target.c (resolve_device): Use state instead of is_initialized.
13805 Do not initialize finalized device.
13806 (gomp_map_vars): Do nothing if device is finalized.
13807 (gomp_unmap_vars): Likewise.
13808 (gomp_update): Likewise.
13809 (GOMP_offload_register_ver): Use state instead of is_initialized.
13810 (GOMP_offload_unregister_ver): Likewise.
13811 (gomp_init_device): Likewise.
13812 (gomp_unload_device): Likewise.
13813 (gomp_fini_device): Remove.
13814 (gomp_get_target_fn_addr): Do nothing if device is finalized.
13815 (GOMP_target): Go to host fallback if device is finalized.
13816 (GOMP_target_ext): Likewise.
13817 (gomp_exit_data): Do nothing if device is finalized.
13818 (gomp_target_task_fn): Go to host fallback if device is finalized.
13819 (gomp_target_fini): New static function.
13820 (gomp_target_init): Use state instead of is_initialized.
13821 Call gomp_target_fini at exit.
13822
13823 2015-12-09 Tom de Vries <tom@codesourcery.com>
13824
13825 PR tree-optimization/68716
13826 * testsuite/libgomp.c/omp-nested-2.c: New test.
13827
13828 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
13829
13830 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
13831 target openacc_nvidia_accel_selected.
13832 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
13833 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
13834 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
13835 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
13836
13837 2015-12-01 Julian Brown <julian@codesourcery.com>
13838 James Norris <James_Norris@mentor.com>
13839
13840 * oacc-parallel.c (GOACC_host_data): New function.
13841 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
13842 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
13843 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
13844 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
13845 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
13846 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
13847 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
13848
13849 2015-11-30 James Norris <jnorris@codesourcery.com>
13850 Cesar Philippidis <cesar@codesourcery.com>
13851
13852 libgomp/
13853 * libgomp.oacc-fortran/routine-5.f90: New test.
13854 * libgomp.oacc-fortran/routine-7.f90: New test.
13855 * libgomp.oacc-fortran/routine-9.f90: New test.
13856
13857 2015-11-30 Tom de Vries <tom@codesourcery.com>
13858
13859 PR tree-optimization/46032
13860 * testsuite/libgomp.c/pr46032.c: New test.
13861
13862 2015-11-27 Jakub Jelinek <jakub@redhat.com>
13863
13864 PR libgomp/68579
13865 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
13866 (gomp_create_target_task): Call it before freeing
13867 GOMP_TARGET_TASK_DATA tasks.
13868
13869 PR c/63326
13870 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
13871 in between case label and OpenMP standalone directives.
13872 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
13873
13874 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
13875
13876 * configure: Regenerate.
13877
13878 2015-11-26 Jakub Jelinek <jakub@redhat.com>
13879
13880 * testsuite/libgomp.c/target-35.c: New test.
13881
13882 2015-11-22 James Norris <jnorris@codesourcery.com>
13883 Cesar Philippidis <cesar@codesourcery.com>
13884
13885 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
13886 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
13887 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
13888 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
13889 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
13890
13891 2015-11-20 Jakub Jelinek <jakub@redhat.com>
13892
13893 PR middle-end/68221
13894 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
13895 * testsuite/libgomp.c/reduction-12.c: Likewise.
13896 * testsuite/libgomp.c++/reduction-11.C: Likewise.
13897 * testsuite/libgomp.c++/reduction-12.C: Likewise.
13898
13899 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
13900
13901 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
13902 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
13903 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
13904 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
13905 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
13906 and fix.
13907 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13908 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13909
13910 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
13911
13912 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
13913 worker & gang cases.
13914 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
13915
13916 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
13917
13918 * config/nvptx/priority_queue.c: New file.
13919
13920 2015-11-14 Jakub Jelinek <jakub@redhat.com>
13921
13922 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
13923 sections.
13924
13925 2015-11-14 Jakub Jelinek <jakub@redhat.com>
13926 Aldy Hernandez <aldyh@redhat.com>
13927 Ilya Verbin <ilya.verbin@intel.com>
13928
13929 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
13930 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
13931 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
13932 iterators or IV by chunk size.
13933 * parallel.c (gomp_resolve_num_threads): Don't assume that
13934 if thr->ts.team is non-NULL, then pool must be non-NULL.
13935 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
13936 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
13937 GOMP_PLUGIN_target_task_completion.
13938 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
13939 * Makefile.in: Regenerate.
13940 * libgomp.h: Shuffle prototypes and forward definitions around so
13941 priority queues can be defined.
13942 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
13943 (enum gomp_target_task_state): New enum.
13944 (struct gomp_target_task): Add state, tgt, task and team fields.
13945 (gomp_create_target_task): Change return type to bool, add
13946 state argument.
13947 (gomp_target_task_fn): Change return type to bool.
13948 (struct gomp_device_descr): Add async_run_func.
13949 (struct gomp_task): Remove children, next_child, prev_child,
13950 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
13951 Add pnode field.
13952 (struct gomp_taskgroup): Remove children.
13953 Add taskgroup_queue.
13954 (struct gomp_team): Change task_queue type to a priority queue.
13955 (splay_compare): Define inline.
13956 (priority_queue_offset): New.
13957 (priority_node_to_task): New.
13958 (task_to_priority_node): New.
13959 * oacc-mem.c: Do not include splay-tree.h.
13960 * priority_queue.c: New file.
13961 * priority_queue.h: New file.
13962 * splay-tree.c: Do not include splay-tree.h.
13963 (splay_tree_foreach_internal): New.
13964 (splay_tree_foreach): New.
13965 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
13966 (splay_tree_callback): Define typedef.
13967 * target.c (splay_compare): Move to libgomp.h.
13968 (GOMP_target): Don't adjust *thr in any way around running offloaded
13969 task.
13970 (GOMP_target_ext): Likewise. Handle target nowait.
13971 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
13972 return value from gomp_create_target_task, if false, fallthrough
13973 as if no dependencies exist.
13974 (gomp_target_task_fn): Change return type to bool, return true
13975 if the task should have another part scheduled later. Handle
13976 target nowait.
13977 (gomp_load_plugin_for_device): Initialize async_run.
13978 * task.c (gomp_init_task): Initialize children_queue.
13979 (gomp_clear_parent_in_list): New.
13980 (gomp_clear_parent_in_tree): New.
13981 (gomp_clear_parent): Handle priorities.
13982 (GOMP_task): Likewise.
13983 (priority_queue_move_task_first,
13984 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
13985 New functions.
13986 (gomp_create_target_task): Use priority queues. Change return type
13987 to bool, add state argument, return false if for async
13988 {{enter,exit} data,update} constructs no dependencies need to be
13989 waited for, handle target nowait. Set task->fn to NULL instead of
13990 gomp_target_task_fn.
13991 (verify_children_queue): Remove.
13992 (priority_list_upgrade_task): New.
13993 (priority_queue_upgrade_task): New.
13994 (verify_task_queue): Remove.
13995 (priority_list_downgrade_task): New.
13996 (priority_queue_downgrade_task): New.
13997 (gomp_task_run_pre): Use priority queues.
13998 Abstract code out to priority_queue_downgrade_task.
13999 (gomp_task_run_post_handle_dependers): Use priority queues.
14000 (gomp_task_run_post_remove_parent): Likewise.
14001 (gomp_task_run_post_remove_taskgroup): Likewise.
14002 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
14003 tasks specially.
14004 (GOMP_taskwait): Likewise.
14005 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
14006 priority-queue_upgrade_task.
14007 (GOMP_taskgroup_start): Use priority queues.
14008 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
14009 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
14010 barrier.
14011 * taskloop.c (GOMP_taskloop): Handle priorities.
14012 * team.c (gomp_new_team): Call priority_queue_init.
14013 (free_team): Call priority_queue_free.
14014 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
14015 team created for target nowait in implicit parallel region.
14016 (gomp_team_start): For nested check, test thr->ts.level instead of
14017 thr->ts.team != NULL.
14018 * testsuite/libgomp.c/doacross-3.c: New test.
14019 * testsuite/libgomp.c/ordered-5.c: New test.
14020 * testsuite/libgomp.c/priority.c: New test.
14021 * testsuite/libgomp.c/target-31.c: New test.
14022 * testsuite/libgomp.c/target-32.c: New test.
14023 * testsuite/libgomp.c/target-33.c: New test.
14024 * testsuite/libgomp.c/target-34.c: New test.
14025
14026 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
14027
14028 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
14029
14030 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
14031 loop is sequential.
14032
14033 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
14034
14035 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
14036 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
14037
14038 2015-11-12 James Norris <jnorris@codesourcery.com>
14039 Joseph Myers <joseph@codesourcery.com>
14040
14041 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
14042 * oacc-parallel.c (GOACC_declare): New function.
14043 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
14044 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
14045 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
14046 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
14047 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
14048
14049 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
14050
14051 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
14052
14053 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
14054
14055 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
14056 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
14057
14058 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
14059
14060 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
14061 inadvertent commit.
14062
14063 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
14064
14065 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
14066 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
14067 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
14068 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
14069 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
14070
14071 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
14072
14073 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
14074 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
14075
14076 2015-11-05 Jakub Jelinek <jakub@redhat.com>
14077 Ilya Verbin <ilya.verbin@intel.com>
14078
14079 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
14080 GOMP_loop_nonmonotonic_dynamic_start,
14081 GOMP_loop_nonmonotonic_guided_next,
14082 GOMP_loop_nonmonotonic_guided_start,
14083 GOMP_loop_ull_nonmonotonic_dynamic_next,
14084 GOMP_loop_ull_nonmonotonic_dynamic_start,
14085 GOMP_loop_ull_nonmonotonic_guided_next,
14086 GOMP_loop_ull_nonmonotonic_guided_start,
14087 GOMP_parallel_loop_nonmonotonic_dynamic,
14088 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
14089 (GOMP_target_41): Renamed to ...
14090 (GOMP_target_ext): ... this. Add num_teams and thread_limit
14091 arguments.
14092 (GOMP_target_data_41): Renamed to ...
14093 (GOMP_target_data_ext): ... this.
14094 (GOMP_target_update_41): Renamed to ...
14095 (GOMP_target_update_ext): ... this.
14096 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
14097 GOMP_target_data_ext and GOMP_target_update_ext instead of
14098 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
14099 Export GOMP_loop_nonmonotonic_dynamic_next,
14100 GOMP_loop_nonmonotonic_dynamic_start,
14101 GOMP_loop_nonmonotonic_guided_next,
14102 GOMP_loop_nonmonotonic_guided_start,
14103 GOMP_loop_ull_nonmonotonic_dynamic_next,
14104 GOMP_loop_ull_nonmonotonic_dynamic_start,
14105 GOMP_loop_ull_nonmonotonic_guided_next,
14106 GOMP_loop_ull_nonmonotonic_guided_start,
14107 GOMP_parallel_loop_nonmonotonic_dynamic and
14108 GOMP_parallel_loop_nonmonotonic_guided.
14109 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
14110 GOMP_parallel_loop_nonmonotonic_guided,
14111 GOMP_loop_nonmonotonic_dynamic_start,
14112 GOMP_loop_nonmonotonic_guided_start,
14113 GOMP_loop_nonmonotonic_dynamic_next,
14114 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
14115 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
14116 GOMP_loop_ull_nonmonotonic_guided_start,
14117 GOMP_loop_ull_nonmonotonic_dynamic_next,
14118 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
14119 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
14120 functions.
14121 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
14122 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
14123 Use gomp_map_val function.
14124 (gomp_target_fallback_firstprivate): New static function.
14125 (GOMP_target_41): Renamed to ...
14126 (GOMP_target_ext): ... this. Add num_teams and thread_limit
14127 arguments. Move firstprivate fallback handling into a new
14128 function.
14129 (GOMP_target_data_41): Renamed to ...
14130 (GOMP_target_data_ext): ... this.
14131 (GOMP_target_update_41): Renamed to ...
14132 (GOMP_target_update_ext): ... this.
14133 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
14134 gomp_map_0len_lookup instead of gomp_map_lookup.
14135 (omp_target_is_present): Use gomp_map_0len_lookup instead of
14136 gomp_map_lookup.
14137 * testsuite/libgomp.c/target-28.c: Likewise.
14138 * testsuite/libgomp.c/monotonic-1.c: New test.
14139 * testsuite/libgomp.c/monotonic-2.c: New test.
14140 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
14141 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
14142 * testsuite/libgomp.c/pr66199-5.c: New test.
14143 * testsuite/libgomp.c/pr66199-6.c: New test.
14144 * testsuite/libgomp.c/pr66199-7.c: New test.
14145 * testsuite/libgomp.c/pr66199-8.c: New test.
14146 * testsuite/libgomp.c/pr66199-9.c: New test.
14147 * testsuite/libgomp.c/reduction-11.c: New test.
14148 * testsuite/libgomp.c/reduction-12.c: New test.
14149 * testsuite/libgomp.c/reduction-13.c: New test.
14150 * testsuite/libgomp.c/reduction-14.c: New test.
14151 * testsuite/libgomp.c/reduction-15.c: New test.
14152 * testsuite/libgomp.c/target-12.c (main): Adjust for
14153 omp_target_is_present change for one-past-last element.
14154 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
14155 the same var is both mapped and privatized.
14156 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
14157 handling of zero-length array sections.
14158 * testsuite/libgomp.c/target-28.c: New test.
14159 * testsuite/libgomp.c/target-29.c: New test.
14160 * testsuite/libgomp.c/target-30.c: New test.
14161 * testsuite/libgomp.c/target-teams-1.c: New test.
14162 * testsuite/libgomp.c++/member-6.C: New test.
14163 * testsuite/libgomp.c++/member-7.C: New test.
14164 * testsuite/libgomp.c++/monotonic-1.C: New test.
14165 * testsuite/libgomp.c++/monotonic-2.C: New test.
14166 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
14167 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
14168 * testsuite/libgomp.c++/pr66199-3.C: New test.
14169 * testsuite/libgomp.c++/pr66199-4.C: New test.
14170 * testsuite/libgomp.c++/pr66199-5.C: New test.
14171 * testsuite/libgomp.c++/pr66199-6.C: New test.
14172 * testsuite/libgomp.c++/pr66199-7.C: New test.
14173 * testsuite/libgomp.c++/pr66199-8.C: New test.
14174 * testsuite/libgomp.c++/pr66199-9.C: New test.
14175 * testsuite/libgomp.c++/reduction-11.C: New test.
14176 * testsuite/libgomp.c++/reduction-12.C: New test.
14177 * testsuite/libgomp.c++/target-13.C: New test.
14178 * testsuite/libgomp.c++/target-14.C: New test.
14179 * testsuite/libgomp.c++/target-15.C: New test.
14180 * testsuite/libgomp.c++/target-16.C: New test.
14181 * testsuite/libgomp.c++/target-17.C: New test.
14182 * testsuite/libgomp.c++/target-18.C: New test.
14183 * testsuite/libgomp.c++/target-19.C: New test.
14184
14185 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
14186
14187 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
14188 and reduction copy.
14189 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
14190 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
14191 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
14192 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
14193 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
14194 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
14195 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
14196 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
14197 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
14198 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
14199 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
14200 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
14201 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
14202 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
14203
14204 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
14205
14206 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
14207 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
14208 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
14209 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
14210 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
14211 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
14212 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
14213 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
14214
14215 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
14216
14217 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
14218 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
14219 (GOMP_OFFLOAD_openacc_parallel): Likewise.
14220 * oacc-host.c (host_openacc_exec): Likewise.
14221 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
14222
14223 2015-11-03 Julian Brown <julian@codesourcery.com>
14224 Thomas Schwinge <thomas@codesourcery.com>
14225
14226 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
14227 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
14228 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
14229 Likewise.
14230 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
14231 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
14232
14233 2015-11-03 James Norris <jnorris@codesourcery.com>
14234
14235 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
14236 file.
14237 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
14238 Likewise.
14239 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
14240 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
14241 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
14242 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
14243 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
14244
14245 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
14246
14247 * openacc.h (enum acc_device_t): Reformat. Ensure layout
14248 compatibility.
14249 (enum acc_async_t): Reformat.
14250 (acc_on_device): Declare compatible with builtin and provide C++
14251 wrapper.
14252 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
14253
14254 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
14255 Cesar Philippidis <cesar@codesourcery.com>
14256
14257 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
14258 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
14259 ... this. Add a description of the test at the top of the file.
14260 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
14261 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
14262 ... this. Add a description of the test at the top of the file.
14263
14264 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
14265
14266 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
14267 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
14268 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
14269 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
14270 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
14271 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
14272
14273 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
14274
14275 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
14276 dimensions.
14277
14278 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
14279
14280 PR testsuite/68063
14281 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
14282
14283 2015-10-27 James Norris <jnorris@codesourcery.com>
14284
14285 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
14286 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
14287
14288 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
14289
14290 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
14291 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14292
14293 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
14294 acc_device_nvidia usage.
14295 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
14296 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14297 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
14298
14299 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
14300 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
14301
14302 PR libgomp/66518
14303 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
14304
14305 PR libgomp/65437
14306 PR libgomp/66518
14307 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
14308 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
14309
14310 2015-10-23 Tom de Vries <tom@codesourcery.com>
14311
14312 PR testsuite/68063
14313 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
14314
14315 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
14316
14317 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
14318 vector_length.
14319 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
14320
14321 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
14322 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
14323
14324 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
14325 to 0 when mapnum is 0.
14326
14327 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
14328
14329 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
14330 Cast to int from int32_t.
14331
14332 2015-10-13 Jakub Jelinek <jakub@redhat.com>
14333 Aldy Hernandez <aldyh@redhat.com>
14334 Ilya Verbin <ilya.verbin@intel.com>
14335
14336 * config/linux/affinity.c (omp_get_place_num_procs,
14337 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
14338 * config/linux/doacross.h: New file.
14339 * config/posix/affinity.c (omp_get_place_num_procs,
14340 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
14341 * config/posix/doacross.h: New file.
14342 * env.c: Include gomp-constants.h.
14343 (struct gomp_task_icv): Rename run_sched_modifier to
14344 run_sched_chunk_size.
14345 (gomp_max_task_priority_var): New variable.
14346 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
14347 (handle_omp_display_env): Change _OPENMP value from 201307 to
14348 201511. Print OMP_MAX_TASK_PRIORITY.
14349 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
14350 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
14351 chunk_size and run_sched_modifier to run_sched_chunk_size.
14352 (omp_get_max_task_priority, omp_get_initial_device,
14353 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
14354 omp_get_partition_place_nums): New functions.
14355 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
14356 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
14357 to chunk_size.
14358 (omp_get_num_places_, omp_get_place_num_procs_,
14359 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
14360 omp_get_place_proc_ids_8_, omp_get_place_num_,
14361 omp_get_partition_num_places_, omp_get_partition_place_nums_,
14362 omp_get_partition_place_nums_8_, omp_get_initial_device_,
14363 omp_get_max_task_priority_): New functions.
14364 * libgomp_g.h (GOMP_loop_doacross_static_start,
14365 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
14366 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
14367 GOMP_loop_ull_doacross_dynamic_start,
14368 GOMP_loop_ull_doacross_guided_start,
14369 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
14370 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
14371 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
14372 GOMP_target_data_41, GOMP_target_update_41,
14373 GOMP_target_enter_exit_data): New prototypes.
14374 (GOMP_task): Add prototype argument.
14375 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
14376 (struct gomp_doacross_work_share): New type.
14377 (struct gomp_work_share): Add doacross field.
14378 (struct gomp_task_icv): Rename run_sched_modifier to
14379 run_sched_chunk_size.
14380 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
14381 GOMP_TASK_UNDEFERRED. Add comments.
14382 (struct gomp_task_depend_entry): Add comments.
14383 (struct gomp_task): Likewise.
14384 (struct gomp_taskgroup): Likewise.
14385 (struct gomp_target_task): New type.
14386 (struct gomp_team): Add comment.
14387 (gomp_get_place_proc_ids_8, gomp_doacross_init,
14388 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
14389 gomp_create_target_task, gomp_target_task_fn): New prototypes.
14390 (struct target_var_desc): New type.
14391 (struct target_mem_desc): Adjust comment. Use struct
14392 target_var_desc instead of splay_tree_key for list.
14393 (REFCOUNT_INFINITY): Define.
14394 (struct splay_tree_key_s): Remove copy_from field.
14395 (struct gomp_device_descr): Add dev2dev_func field.
14396 (enum gomp_map_vars_kind): New enum.
14397 (gomp_map_vars): Add one argument.
14398 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
14399 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
14400 omp_get_place_num_procs, omp_get_place_num_procs_,
14401 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
14402 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
14403 omp_get_place_num_, omp_get_partition_num_places,
14404 omp_get_partition_num_places_, omp_get_partition_place_nums,
14405 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
14406 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
14407 omp_target_free, omp_target_is_present, omp_target_memcpy,
14408 omp_target_memcpy_rect, omp_target_associate_ptr and
14409 omp_target_disassociate_ptr.
14410 (GOMP_4.0.2): Renamed to ...
14411 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
14412 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
14413 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
14414 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14415 GOMP_loop_doacross_static_start, GOMP_doacross_post,
14416 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
14417 GOMP_loop_ull_doacross_guided_start,
14418 GOMP_loop_ull_doacross_runtime_start,
14419 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
14420 GOMP_doacross_ull_wait.
14421 * libgomp.texi: Document omp_get_max_task_priority.
14422 Rename modifier argument to chunk_size for omp_set_schedule and
14423 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
14424 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
14425 to run_sched_chunk_size renaming.
14426 (GOMP_loop_ordered_runtime_start): Likewise.
14427 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
14428 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14429 GOMP_parallel_loop_runtime_start): New functions.
14430 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
14431 to run_sched_chunk_size renaming.
14432 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
14433 GOMP_loop_doacross_guided_start): New functions or aliases.
14434 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
14435 run_sched_modifier to run_sched_chunk_size renaming.
14436 (GOMP_loop_ull_ordered_runtime_start): Likewise.
14437 (gomp_loop_ull_doacross_static_start,
14438 gomp_loop_ull_doacross_dynamic_start,
14439 gomp_loop_ull_doacross_guided_start,
14440 GOMP_loop_ull_doacross_runtime_start): New functions.
14441 (GOMP_loop_ull_doacross_static_start,
14442 GOMP_loop_ull_doacross_dynamic_start,
14443 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
14444 * oacc-mem.c (acc_map_data, present_create_copy,
14445 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
14446 to gomp_map_vars.
14447 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
14448 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
14449 instead of false to gomp_map_vars.
14450 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
14451 * omp.h.in (omp_lock_hint_t): New type.
14452 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14453 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14454 omp_get_place_num, omp_get_partition_num_places,
14455 omp_get_partition_place_nums, omp_get_initial_device,
14456 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
14457 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
14458 omp_target_associate_ptr, omp_target_disassociate_ptr): New
14459 prototypes.
14460 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
14461 (omp_lock_hint_none, omp_lock_hint_uncontended,
14462 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14463 omp_lock_hint_speculative): New parameters.
14464 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14465 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14466 omp_get_place_num, omp_get_partition_num_places,
14467 omp_get_partition_place_nums, omp_get_initial_device,
14468 omp_get_max_task_priority): New interfaces.
14469 (omp_set_schedule, omp_get_schedule): Rename modifier argument
14470 to chunk_size.
14471 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
14472 (omp_lock_hint_none, omp_lock_hint_uncontended,
14473 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14474 omp_lock_hint_speculative): New parameters.
14475 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14476 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14477 omp_get_place_num, omp_get_partition_num_places,
14478 omp_get_partition_place_nums, omp_get_initial_device,
14479 omp_get_max_task_priority): New functions and subroutines.
14480 * ordered.c: Include stdarg.h and string.h.
14481 (MAX_COLLAPSED_BITS): Define.
14482 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
14483 gomp_doacross_ull_init, GOMP_doacross_ull_post,
14484 GOMP_doacross_ull_wait): New functions.
14485 * target.c: Include errno.h.
14486 (resolve_device): If device is not initialized, call
14487 gomp_init_device on it.
14488 (gomp_map_lookup): New function.
14489 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
14490 Don't bump refcount if REFCOUNT_INFINITY. Handle
14491 GOMP_MAP_ALWAYS_TO_P.
14492 (get_kind): Rename is_openacc argument to short_mapkind.
14493 (gomp_map_pointer): Use gomp_map_lookup.
14494 (gomp_map_fields_existing): New function.
14495 (gomp_map_vars): Rename is_openacc argument to short_mapkind
14496 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
14497 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
14498 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
14499 Adjust for tgt->list changed type and copy_from living in there.
14500 (gomp_copy_from_async): Adjust for tgt->list changed type and
14501 copy_from living in there.
14502 (gomp_unmap_vars): Likewise.
14503 (gomp_update): Likewise. Rename is_openacc argument to
14504 short_mapkind. Don't fail if object is not mapped.
14505 (gomp_load_image_to_device): Initialize refcount to
14506 REFCOUNT_INFINITY.
14507 (gomp_target_fallback): New function.
14508 (gomp_get_target_fn_addr): Likewise.
14509 (GOMP_target): Adjust gomp_map_vars caller, use
14510 gomp_get_target_fn_addr and gomp_target_fallback.
14511 (GOMP_target_41): New function.
14512 (gomp_target_data_fallback): New function.
14513 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
14514 (GOMP_target_data_41): New function.
14515 (GOMP_target_update): Adjust gomp_update caller.
14516 (GOMP_target_update_41): New function.
14517 (gomp_exit_data, GOMP_target_enter_exit_data,
14518 gomp_target_task_fn, omp_target_alloc, omp_target_free,
14519 omp_target_is_present, omp_target_memcpy,
14520 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
14521 omp_target_associate_ptr, omp_target_disassociate_ptr,
14522 gomp_load_plugin_for_device): New functions.
14523 * task.c: Include gomp-constants.h. Include taskloop.c
14524 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
14525 (gomp_task_handle_depend): New function.
14526 (GOMP_task): Use it. Add priority argument. Use
14527 gomp-constant.h constants instead of hardcoded numbers.
14528 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
14529 (gomp_create_target_task): New function.
14530 (verify_children_queue, verify_taskgroup_queue,
14531 verify_task_queue): New functions.
14532 (gomp_task_run_pre): Call verify_*_queue functions.
14533 If an upcoming tied task is about to leave the sibling or
14534 taskgroup queues in an invalid state, adjust appropriately.
14535 Remove taskgroup argument. Add comments.
14536 (gomp_task_run_post_handle_dependers): Add comments.
14537 (gomp_task_run_post_remove_parent): Likewise.
14538 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
14539 (GOMP_taskwait): Likewise. Add comments.
14540 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
14541 problem such that the first non parent_depends_on task does not
14542 end up at the end of the children queue.
14543 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
14544 GOMP_TASK_UNDEFERRED.
14545 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
14546 * taskloop.c: New file.
14547 * testsuite/lib/libgomp.exp
14548 (check_effective_target_offload_device_nonshared_as): New proc.
14549 * testsuite/libgomp.c/affinity-2.c: New test.
14550 * testsuite/libgomp.c/doacross-1.c: New test.
14551 * testsuite/libgomp.c/doacross-2.c: New test.
14552 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
14553 Add map clause to target.
14554 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
14555 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
14556 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
14557 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
14558 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
14559 Likewise.
14560 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
14561 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
14562 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
14563 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
14564 not defined. Use those where needed.
14565 * testsuite/libgomp.c/for-4.c: New test.
14566 * testsuite/libgomp.c/for-5.c: New test.
14567 * testsuite/libgomp.c/for-6.c: New test.
14568 * testsuite/libgomp.c/linear-1.c: New test.
14569 * testsuite/libgomp.c/ordered-4.c: New test.
14570 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
14571 only allowed on the loop iterator.
14572 * testsuite/libgomp.c/pr66199-3.c: New test.
14573 * testsuite/libgomp.c/pr66199-4.c: New test.
14574 * testsuite/libgomp.c/reduction-7.c: New test.
14575 * testsuite/libgomp.c/reduction-8.c: New test.
14576 * testsuite/libgomp.c/reduction-9.c: New test.
14577 * testsuite/libgomp.c/reduction-10.c: New test.
14578 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
14579 map(tofrom:s).
14580 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
14581 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
14582 * testsuite/libgomp.c/target-11.c: New test.
14583 * testsuite/libgomp.c/target-12.c: New test.
14584 * testsuite/libgomp.c/target-13.c: New test.
14585 * testsuite/libgomp.c/target-14.c: New test.
14586 * testsuite/libgomp.c/target-15.c: New test.
14587 * testsuite/libgomp.c/target-16.c: New test.
14588 * testsuite/libgomp.c/target-17.c: New test.
14589 * testsuite/libgomp.c/target-18.c: New test.
14590 * testsuite/libgomp.c/target-19.c: New test.
14591 * testsuite/libgomp.c/target-20.c: New test.
14592 * testsuite/libgomp.c/target-21.c: New test.
14593 * testsuite/libgomp.c/target-22.c: New test.
14594 * testsuite/libgomp.c/target-23.c: New test.
14595 * testsuite/libgomp.c/target-24.c: New test.
14596 * testsuite/libgomp.c/target-25.c: New test.
14597 * testsuite/libgomp.c/target-26.c: New test.
14598 * testsuite/libgomp.c/target-27.c: New test.
14599 * testsuite/libgomp.c/taskloop-1.c: New test.
14600 * testsuite/libgomp.c/taskloop-2.c: New test.
14601 * testsuite/libgomp.c/taskloop-3.c: New test.
14602 * testsuite/libgomp.c/taskloop-4.c: New test.
14603 * testsuite/libgomp.c++/ctor-13.C: New test.
14604 * testsuite/libgomp.c++/doacross-1.C: New test.
14605 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
14606 Replace offload_device with offload_device_nonshared_as.
14607 * testsuite/libgomp.c++/for-12.C: New test.
14608 * testsuite/libgomp.c++/for-13.C: New test.
14609 * testsuite/libgomp.c++/for-14.C: New test.
14610 * testsuite/libgomp.c++/linear-1.C: New test.
14611 * testsuite/libgomp.c++/member-1.C: New test.
14612 * testsuite/libgomp.c++/member-2.C: New test.
14613 * testsuite/libgomp.c++/member-3.C: New test.
14614 * testsuite/libgomp.c++/member-4.C: New test.
14615 * testsuite/libgomp.c++/member-5.C: New test.
14616 * testsuite/libgomp.c++/ordered-1.C: New test.
14617 * testsuite/libgomp.c++/reduction-5.C: New test.
14618 * testsuite/libgomp.c++/reduction-6.C: New test.
14619 * testsuite/libgomp.c++/reduction-7.C: New test.
14620 * testsuite/libgomp.c++/reduction-8.C: New test.
14621 * testsuite/libgomp.c++/reduction-9.C: New test.
14622 * testsuite/libgomp.c++/reduction-10.C: New test.
14623 * testsuite/libgomp.c++/reference-1.C: New test.
14624 * testsuite/libgomp.c++/simd14.C: New test.
14625 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
14626 * testsuite/libgomp.c++/target-5.C: New test.
14627 * testsuite/libgomp.c++/target-6.C: New test.
14628 * testsuite/libgomp.c++/target-7.C: New test.
14629 * testsuite/libgomp.c++/target-8.C: New test.
14630 * testsuite/libgomp.c++/target-9.C: New test.
14631 * testsuite/libgomp.c++/target-10.C: New test.
14632 * testsuite/libgomp.c++/target-11.C: New test.
14633 * testsuite/libgomp.c++/target-12.C: New test.
14634 * testsuite/libgomp.c++/taskloop-1.C: New test.
14635 * testsuite/libgomp.c++/taskloop-2.C: New test.
14636 * testsuite/libgomp.c++/taskloop-3.C: New test.
14637 * testsuite/libgomp.c++/taskloop-4.C: New test.
14638 * testsuite/libgomp.c++/taskloop-5.C: New test.
14639 * testsuite/libgomp.c++/taskloop-6.C: New test.
14640 * testsuite/libgomp.c++/taskloop-7.C: New test.
14641 * testsuite/libgomp.c++/taskloop-8.C: New test.
14642 * testsuite/libgomp.c++/taskloop-9.C: New test.
14643 * testsuite/libgomp.fortran/affinity1.f90: New test.
14644 * testsuite/libgomp.fortran/affinity2.f90: New test.
14645
14646 2015-10-13 Tom de Vries <tom@codesourcery.com>
14647
14648 PR tree-optimization/67476
14649 * testsuite/libgomp.c/autopar-3.c: New test.
14650 * testsuite/libgomp.c/autopar-4.c: New test.
14651 * testsuite/libgomp.c/autopar-5.c: New test.
14652 * testsuite/libgomp.c/autopar-6.c: New test.
14653 * testsuite/libgomp.c/autopar-7.c: New test.
14654 * testsuite/libgomp.c/autopar-8.c: New test.
14655
14656 2015-10-12 James Norris <jnorris@codesourcery.com>
14657
14658 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
14659 initializer.
14660
14661 2015-10-09 David Malcolm <dmalcolm@redhat.com>
14662
14663 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
14664 using load_gcc_lib.
14665
14666 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
14667
14668 * oacc-ptx.h: Remove file, moving its content into...
14669 * config/nvptx/fortran.c: ... here...
14670 * config/nvptx/oacc-init.c: ..., here...
14671 * config/nvptx/oacc-parallel.c: ..., and here.
14672 * config/nvptx/openacc.f90: New file.
14673 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
14674 (link_ptx): Don't link in predefined bits of PTX code.
14675
14676 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
14677 Bernd Schmidt <bernds@codesourcery.com>
14678
14679 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
14680 (struct targ_ptx_obj): New.
14681 (nvptx_tdata): Move earlier, change data format.
14682 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
14683 objects.
14684 (GOMP_OFFLOAD_load_image): Adjust.
14685
14686 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
14687
14688 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
14689 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14690 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
14691 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
14692 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14693 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
14694 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
14695 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
14696 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
14697 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
14698 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14699 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14700 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14701 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14702 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14703 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14704 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14705 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14706 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14707 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14708 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14709 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14710 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14711 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14712 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14713 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14714 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
14715 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14716 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14717 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14718 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14719 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14720 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
14721 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14722 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14723 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14724 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14725 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14726 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14727 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14728 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14729 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14730 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14731 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14732 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
14733 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
14734 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
14735 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
14736 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
14737 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
14738 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
14739 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
14740 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
14741 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
14742 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
14743 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
14744 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
14745 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
14746 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
14747 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
14748 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
14749 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
14750 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
14751
14752 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
14753
14754 * oacc-init.c (acc_on_device): Force optimization level.
14755
14756 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
14757
14758 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
14759 (cuda_errlist): Delete.
14760 (cuda_error): Reimplement.
14761
14762 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
14763
14764 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
14765 array.
14766 * libgomp.map (GOACC_parallel_keyed): New.
14767 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
14768 all callers.
14769 (GOACC_parallel_keyed): New interface. Lose geometry arguments
14770 and take keyed varargs list. Adjust call to exec_func.
14771 (GOACC_parallel): Force host fallback.
14772 * libgomp_g.h (GOACC_parallel): Remove.
14773 (GOACC_parallel_keyed): Declare.
14774 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
14775 (struct targ_gn_descriptor): Replace name field with launch field.
14776 (nvptx_exec): Lose separate geometry args, take array. Process
14777 dynamic dimensions and adjust.
14778 (struct nvptx_tdata): Replace fn_names field with fn_descs.
14779 (GOMP_OFFLOAD_load_image): Adjust for change in function table
14780 data.
14781 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
14782 passing.
14783 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
14784 passing.
14785
14786 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
14787
14788 PR libgomp/67141
14789 * oacc-int.h (goacc_host_init): Add declaration.
14790 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
14791 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
14792
14793 2015-09-08 Aditya Kumar <hiraditya@msn.com>
14794 Sebastian Pop <s.pop@samsung.com>
14795
14796 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
14797 match o/p.
14798 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
14799 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
14800 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
14801 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
14802 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
14803
14804 2015-09-03 Jakub Jelinek <jakub@redhat.com>
14805
14806 * configure.tgt: Add missing ;; in between nvptx and rtems
14807 snippets.
14808
14809 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14810
14811 * config/posix/pool.h (gomp_adjust_thread_attr): New.
14812 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
14813 (gomp_thread_pool_reservoir): Add priority member.
14814 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
14815 priority.
14816 (parse_thread_pools): Likewise.
14817 * team.c (gomp_team_start): Call configuration provided
14818 gomp_adjust_thread_attr(). Destroy thread attributes if
14819 necessary.
14820 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
14821
14822 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14823
14824 * config/posix/pool.h: New.
14825 * config/rtems/pool.h: Likewise.
14826 * config/rtems/proc.c: Likewise.
14827 * libgomp.h (gomp_thread_destructor): Declare.
14828 * team.c: Include configuration provided "pool.h".
14829 (gomp_get_thread_pool): Define in configuration.
14830 (gomp_team_end): Call configuration defined
14831 gomp_release_thread_pool().
14832
14833 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14834
14835 * config/rtems/bar.c: New.
14836 * config/rtems/bar.h: Likewise.
14837 * config/rtems/mutex.c: Likewise.
14838 * config/rtems/mutex.h: Likewise.
14839 * config/rtems/sem.c: Likewise.
14840 * config/rtems/sem.h: Likewise.
14841 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
14842 <sys/lock.h> header file.
14843 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
14844 supported by Newlib.
14845 * configure: Regenerate.
14846
14847 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14848
14849 * team.c (gomp_new_thread_pool): Delete and move content to ...
14850 (gomp_get_thread_pool): ... new function. Allocate and
14851 initialize thread pool on demand.
14852 (get_last_team): Use gomp_get_thread_pool().
14853 (gomp_team_start): Delete thread pool initialization.
14854
14855 2015-09-03 Tom de Vries <tom@codesourcery.com>
14856
14857 PR tree-optimization/65637
14858 * testsuite/libgomp.c/autopar-2.c: New test.
14859
14860 2015-08-29 Tom de Vries <tom@codesourcery.com>
14861
14862 PR tree-optimization/46193
14863 * testsuite/libgomp.c/pr46193.c: New test.
14864
14865 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
14866
14867 libgomp/
14868 * libgomp.map: Add 4.0.2 version.
14869 * target.c (offload_image_descr): Add version field.
14870 (gomp_load_image_to_device): Add version argument. Adjust plugin
14871 call. Improve load mismatch diagnostic.
14872 (gomp_unload_image_from_device): Add version argument. Adjust plugin
14873 call.
14874 (GOMP_offload_regster): Make stub function, move bulk to ...
14875 (GOMP_offload_register_ver): ... here. Process version argument.
14876 (GOMP_offload_unregister): Make stub function, move bulk to ...
14877 (GOMP_offload_unregister_ver): ... here. Process version argument.
14878 (gomp_init_device): Process version field.
14879 (gomp_unload_device): Process version field.
14880 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
14881 macros. Check plugin version.
14882 * libgomp.h (gomp_device_descr): Add version function field. Adjust
14883 loader and unloader types.
14884 * oacc-host.c: Include gomp-constants.h.
14885 (host_version): New.
14886 (host_load_image, host_unload_image): Adjust.
14887 (host_dispatch): Add host_version.
14888 * plugin/plugin-nvptx.c: Include gomp-constants.h.
14889 (GOMP_OFFLOAD_version): New.
14890 (GOMP_OFFLOAD_load_image): Add version arg and check it.
14891 (GOMP_OFFLOAD_unload_image): Likewise.
14892 * plugin/plugin-host.c: Include gomp-constants.h.
14893 (GOMP_OFFLOAD_version): New.
14894 (GOMP_OFFLOAD_load_image): Add version arg.
14895 (GOMP_OFFLOAD_unload_image): Likewise.
14896
14897 2015-08-24 Tom de Vries <tom@codesourcery.com>
14898
14899 PR tree-optimization/65468
14900 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
14901
14902 2015-08-24 Tom de Vries <tom@codesourcery.com>
14903
14904 PR tree-optimization/65468
14905 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
14906
14907 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
14908
14909 PR libgomp/66761
14910 PR libgomp/67303
14911 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
14912 (gomp_iter_guided_next): Idem.
14913 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
14914 (gomp_iter_ull_guided_next): Idem.
14915 * config/linux/wait.h (do_spin): Idem.
14916
14917 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
14918
14919 * libgomp-plugin.h (enum offload_target_type): Remove
14920 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
14921 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
14922 * openacc.h (enum acc_device_t): Likewise.
14923 * openacc_lib.h: Likewise.
14924 * oacc-init.c (name_of_acc_device_t): Don't handle it.
14925 (acc_on_device): Just use __builtin_acc_on_device.
14926 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
14927 of acc_on_device builtin.
14928 * plugin/plugin-host.h: Remove file.
14929 * plugin/plugin-host.c: Likewise, but salvage some content into...
14930 * oacc-host.c: ... this file.
14931 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
14932 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
14933 * Makefile.in: Regenerate.
14934 * configure: Likewise.
14935 * testsuite/lib/libgomp.exp
14936 (check_effective_target_openacc_host_nonshm_selected): Remove.
14937 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
14938 ACC_DEVICE_TYPE=host_nonshm.
14939 * testsuite/libgomp.oacc-c/c.exp: Likewise.
14940 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14941 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
14942 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
14943 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
14944 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
14945
14946 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
14947 Jakub Jelinek <jakub@redhat.com>
14948
14949 * config/nvptx/affinity.c: New file.
14950 * config/nvptx/alloc.c: Likewise.
14951 * config/nvptx/bar.c: Likewise.
14952 * config/nvptx/barrier.c: Likewise.
14953 * config/nvptx/critical.c: Likewise.
14954 * config/nvptx/env.c: Likewise.
14955 * config/nvptx/error.c: Likewise.
14956 * config/nvptx/fortran.c: Likewise.
14957 * config/nvptx/iter.c: Likewise.
14958 * config/nvptx/iter_ull.c: Likewise.
14959 * config/nvptx/libgomp-plugin.c: Likewise.
14960 * config/nvptx/lock.c: Likewise.
14961 * config/nvptx/loop.c: Likewise.
14962 * config/nvptx/loop_ull.c: Likewise.
14963 * config/nvptx/mutex.c: Likewise.
14964 * config/nvptx/oacc-async.c: Likewise.
14965 * config/nvptx/oacc-cuda.c: Likewise.
14966 * config/nvptx/oacc-host.c: Likewise.
14967 * config/nvptx/oacc-init.c: Likewise.
14968 * config/nvptx/oacc-mem.c: Likewise.
14969 * config/nvptx/oacc-parallel.c: Likewise.
14970 * config/nvptx/oacc-plugin.c: Likewise.
14971 * config/nvptx/omp-lock.h: Likewise.
14972 * config/nvptx/ordered.c: Likewise.
14973 * config/nvptx/parallel.c: Likewise.
14974 * config/nvptx/proc.c: Likewise.
14975 * config/nvptx/ptrlock.c: Likewise.
14976 * config/nvptx/sections.c: Likewise.
14977 * config/nvptx/sem.c: Likewise.
14978 * config/nvptx/single.c: Likewise.
14979 * config/nvptx/splay-tree.c: Likewise.
14980 * config/nvptx/target.c: Likewise.
14981 * config/nvptx/task.c: Likewise.
14982 * config/nvptx/team.c: Likewise.
14983 * config/nvptx/time.c: Likewise.
14984 * config/nvptx/work.c: Likewise.
14985 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
14986 * configure: Regenerate.
14987 * configure.tgt (config_path): Set to "nvptx" for target
14988 nvptx*-*-*.
14989
14990 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
14991
14992 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
14993
14994 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
14995
14996 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
14997 (cuda_errlist): Constify.
14998 (errmsg): Move into ...
14999 (cuda_error): ... here. Make smaller.
15000 (_XSTR, _STR): Delete.
15001 (cuda_synames): Delete.
15002 (verify_device_library): Delete.
15003 (nvptx_init): Don't call it.
15004
15005 2015-07-28 Tom de Vries <tom@codesourcery.com>
15006
15007 * testsuite/libgomp.c/uns-outer-4.c: New test.
15008
15009 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
15010
15011 * testsuite/libgomp.c/pr66714.c: New test.
15012
15013 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
15014
15015 PR libgomp/66950
15016 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
15017 (fib_ref): New function.
15018 (fib): Correct corner cases in the recursion.
15019 (main): Replace the non-simd loop with fib_ref call.
15020 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
15021 subroutine.
15022 (fibonacci): Lower the parameter N to 30. Correct accordingly check
15023 for the last array element value. Replace the non-simd loop with
15024 fib_ref call. Remove redundant b_ref array. Remove the comparison
15025 of the last array element with according Fibonacci sequence element.
15026 (fib): Correct corner cases in the recursion.
15027
15028 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
15029
15030 * target.c (gomp_offload_image_to_device): Rename to ...
15031 (gomp_load_image_to_device): ... here.
15032 (GOMP_offload_register): Adjust call.
15033 (gomp_init_device): Likewise.
15034 (gomp_unload_image_from_device): New. Broken out of ...
15035 (GOMP_offload_unregister): ... here. Call it.
15036 (gomp_unload_device): New.
15037 * libgomp.h (gomp_unload_device): Declare.
15038 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
15039 mem maps.
15040
15041 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
15042
15043 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
15044 wait=-specific if.
15045 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
15046 !=0 condition.
15047 (goacc_waits): Move !num_waits handling to ...
15048 (GOACC_wait): ... here, the only caller that might have zero waits.
15049
15050 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
15051 (struct ptx_image_data): Move earlier, add fns field.
15052 (struct ptx_device): Add images and image_lock fields.
15053 (ptx_images, ptx_image_lock): Delete.
15054 (nvptx_open_device): Initialize images and image_lock fields.
15055 (nvptx_close_device): Destroy image_lock.
15056 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
15057 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
15058 fields.
15059
15060 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
15061
15062 * target.c (GOMP_offload_register): Use int for device type arg.
15063 (GOMP_offload_unregister): Likewise.
15064
15065 * target.c (struct_offload_image_descr): Constify host_table.
15066 (gomp_offload_image_to_device): Likewise.
15067 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
15068
15069 * libgomp.h (gomp_device_descr): Constify target data arguments.
15070 * target.c (struct offload_image_descr): Constify target_data.
15071 (gomp_offload_image_to_device): Likewise.
15072 (GOMP_offload_register): Likewise.
15073 (GOMP_offload_unregister): Likewise.
15074 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
15075 GOMP_OFFLOAD_unload_image): Constify target data.
15076 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
15077 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
15078
15079 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
15080
15081 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
15082 Workaround driver library const error.
15083 (struct nvptx_tdata, nvptx_tdata_t): New.
15084 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
15085 type.
15086
15087 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
15088
15089 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
15090 of EPS parameter from integer to real.
15091 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
15092 type of EPS parameter from integer to real.
15093
15094 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
15095
15096 * team.c (get_last_team): New.
15097 (gomp_new_team): Recycle last non-nested team if possible.
15098 (gomp_team_end): Move team work share list free lock destruction
15099 to ...
15100 (free_team): ... here.
15101
15102 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
15103
15104 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
15105 and ref from int to double. Replaced their comparison with
15106 an inequality of their difference and EPS.
15107 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
15108 comparison of pri and a reference number with an inequality of their
15109 difference and EPS.
15110 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
15111 the comparison of sum and sum_ref with an inequality of their
15112 difference and EPS.
15113 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
15114 the comparison of pri and a reference number with an inequality of
15115 their difference and EPS.
15116
15117 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
15118
15119 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
15120 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
15121 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
15122 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
15123 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
15124 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
15125 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
15126 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
15127 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
15128 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
15129 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
15130 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
15131 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
15132 variables.
15133 (vec_mult): Likewise. Add #pragma omp taskwait.
15134 (main): Adjust caller.
15135 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
15136 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
15137 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
15138 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
15139 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
15140 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
15141 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
15142 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
15143 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
15144 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
15145 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
15146 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
15147 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
15148 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
15149 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
15150 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
15151 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
15152 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
15153 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
15154 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
15155 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
15156 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
15157 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
15158 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
15159 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
15160 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
15161 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
15162 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
15163 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
15164 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
15165 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
15166 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
15167 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
15168 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
15169 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
15170 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
15171 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
15172 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
15173 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
15174 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
15175 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
15176 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
15177 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
15178 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
15179 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
15180 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
15181 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
15182 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
15183 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
15184 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
15185 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
15186 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
15187 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
15188 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
15189 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
15190 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
15191 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
15192 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
15193 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
15194 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
15195 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
15196 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
15197 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
15198 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
15199 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
15200 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
15201 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
15202 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
15203 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
15204 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
15205 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
15206 (vec_mult): Add !$omp taskwait.
15207 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
15208 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
15209 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
15210 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
15211 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
15212 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
15213 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
15214 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
15215 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
15216 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
15217 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
15218 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
15219 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
15220 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
15221 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
15222 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
15223 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
15224 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
15225 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
15226 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
15227 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
15228 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
15229 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
15230 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
15231 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
15232 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
15233 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
15234 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
15235 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
15236 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
15237 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
15238 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
15239 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
15240 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
15241 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
15242 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
15243 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
15244 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
15245 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
15246 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
15247 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
15248 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
15249 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
15250 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
15251 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
15252 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
15253 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
15254 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
15255 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
15256 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
15257 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
15258 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
15259 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
15260 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
15261 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
15262 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
15263 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
15264 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
15265 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
15266 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
15267 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
15268 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
15269 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
15270 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
15271 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
15272 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
15273 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
15274
15275 2015-07-10 Tom de Vries <tom@codesourcery.com>
15276
15277 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
15278 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
15279
15280 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
15281
15282 PR libgomp/65099
15283 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
15284 in a 64-bit configuration.
15285 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
15286 offloading testing if no such device is available.
15287 * testsuite/libgomp.oacc-c/c.exp: Likewise.
15288 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15289
15290 2015-07-08 Tom de Vries <tom@codesourcery.com>
15291
15292 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
15293 second call to f.
15294 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15295
15296 2015-07-07 Tom de Vries <tom@codesourcery.com>
15297
15298 PR tree-optimization/66642
15299 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
15300 iteration count case.
15301 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
15302 function, factor out of ...
15303 (main): ... here. Test low iteration count case.
15304
15305 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
15306
15307 * libgomp.h (gomp_thread_pool): Comment last_team field.
15308
15309 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
15310
15311 * testsuite/libgomp.c++/pr66702-1.C: Require
15312 vect_simd_clones effective target.
15313 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
15314
15315 2015-06-30 Tom de Vries <tom@codesourcery.com>
15316
15317 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
15318 already set. Use DEFAULT_CFLAGS in dg-runtest.
15319 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
15320 "-O2".
15321
15322 2015-06-30 Tom de Vries <tom@codesourcery.com>
15323
15324 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
15325 already set. Use DEFAULT_CFLAGS in dg-runtest.
15326 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
15327 * testsuite/libgomp.c++/pr64824.C: Same.
15328 * testsuite/libgomp.c++/pr64868.C: Same.
15329 * testsuite/libgomp.c++/pr66199-1.C: Same.
15330 * testsuite/libgomp.c++/pr66199-2.C: Same.
15331 * testsuite/libgomp.c++/target-2.C: Same.
15332 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
15333 -std=<standard> option.
15334 * testsuite/libgomp.c++/udr-11.C: Same.
15335 * testsuite/libgomp.c++/udr-12.C: Same.
15336 * testsuite/libgomp.c++/udr-13.C: Same.
15337 * testsuite/libgomp.c++/udr-14.C: Same.
15338 * testsuite/libgomp.c++/udr-15.C: Same.
15339 * testsuite/libgomp.c++/udr-16.C: Same.
15340 * testsuite/libgomp.c++/udr-17.C: Same.
15341 * testsuite/libgomp.c++/udr-18.C: Same.
15342 * testsuite/libgomp.c++/udr-19.C: Same.
15343 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
15344 * testsuite/libgomp.c++/simd-1.C: Same.
15345 * testsuite/libgomp.c++/simd-2.C: Same.
15346 * testsuite/libgomp.c++/simd-3.C: Same.
15347 * testsuite/libgomp.c++/simd-4.C: Same.
15348 * testsuite/libgomp.c++/simd-5.C: Same.
15349 * testsuite/libgomp.c++/simd-6.C: Same.
15350 * testsuite/libgomp.c++/simd-7.C: Same.
15351 * testsuite/libgomp.c++/simd-8.C: Same.
15352 * testsuite/libgomp.c++/simd-9.C: Same.
15353 * testsuite/libgomp.c++/simd10.C: Same.
15354 * testsuite/libgomp.c++/simd11.C: Same.
15355 * testsuite/libgomp.c++/simd12.C: Same.
15356 * testsuite/libgomp.c++/simd13.C: Same.
15357
15358 2015-06-30 Jakub Jelinek <jakub@redhat.com>
15359
15360 PR middle-end/66702
15361 * testsuite/libgomp.c++/pr66702-1.C: New test.
15362 * testsuite/libgomp.c++/pr66702-2.C: New test.
15363
15364 2015-06-30 Tom de Vries <tom@codesourcery.com>
15365
15366 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
15367 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
15368 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
15369 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
15370
15371 2015-06-30 Tom de Vries <tom@codesourcery.com>
15372
15373 PR tree-optimization/66652
15374 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
15375 using restrict pointers.
15376 (main): Add arguments to calls to f.
15377 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15378
15379 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
15380
15381 * configure.ac: Fix check for header <sys/sysctl.h>.
15382 * configure: Regenerate.
15383 * config.h.in: Likewise.
15384
15385 2015-06-23 Tom de Vries <tom@codesourcery.com>
15386
15387 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
15388 abort.
15389 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
15390
15391 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
15392
15393 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
15394 acc_device_nvidia.
15395
15396 PR libgomp/66518
15397 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
15398 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15399
15400 2015-06-15 Tom de Vries <tom@codesourcery.com>
15401
15402 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
15403 dg-additional-options for any remaining options.
15404 * testsuite/libgomp.c/atomic-2.c: Same.
15405 * testsuite/libgomp.c/atomic-4.c: Same.
15406 * testsuite/libgomp.c/atomic-5.c: Same.
15407 * testsuite/libgomp.c/atomic-6.c: Same.
15408 * testsuite/libgomp.c/autopar-1.c: Same.
15409 * testsuite/libgomp.c/copyin-1.c: Same.
15410 * testsuite/libgomp.c/copyin-2.c: Same.
15411 * testsuite/libgomp.c/copyin-3.c: Same.
15412 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
15413 * testsuite/libgomp.c/nestedfn-5.c: Same.
15414 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
15415 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
15416 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
15417 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15418 * testsuite/libgomp.c/pr32362-1.c: Same.
15419 * testsuite/libgomp.c/pr32362-2.c: Same.
15420 * testsuite/libgomp.c/pr32362-3.c: Same.
15421 * testsuite/libgomp.c/pr39591-1.c: Same.
15422 * testsuite/libgomp.c/pr39591-2.c: Same.
15423 * testsuite/libgomp.c/pr39591-3.c: Same.
15424 * testsuite/libgomp.c/pr58392.c: Same.
15425 * testsuite/libgomp.c/pr58756.c: Same.
15426 * testsuite/libgomp.c/simd-1.c: Same.
15427 * testsuite/libgomp.c/simd-10.c: Same.
15428 * testsuite/libgomp.c/simd-11.c: Same.
15429 * testsuite/libgomp.c/simd-12.c: Same.
15430 * testsuite/libgomp.c/simd-13.c: Same.
15431 * testsuite/libgomp.c/simd-14.c: Same.
15432 * testsuite/libgomp.c/simd-15.c: Same.
15433 * testsuite/libgomp.c/simd-2.c: Same.
15434 * testsuite/libgomp.c/simd-3.c: Same.
15435 * testsuite/libgomp.c/simd-4.c: Same.
15436 * testsuite/libgomp.c/simd-5.c: Same.
15437 * testsuite/libgomp.c/simd-6.c: Same.
15438 * testsuite/libgomp.c/simd-7.c: Same.
15439 * testsuite/libgomp.c/simd-8.c: Same.
15440 * testsuite/libgomp.c/simd-9.c: Same.
15441
15442 2015-06-15 Tom de Vries <tom@codesourcery.com>
15443
15444 * testsuite/libgomp.c/pr35625.c: Fix typo.
15445
15446 2015-06-15 Tom de Vries <tom@codesourcery.com>
15447
15448 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
15449 in dg-options.
15450 * testsuite/libgomp.c/atomic-3.c: Same.
15451 * testsuite/libgomp.c/debug-1.c: Same.
15452 * testsuite/libgomp.c/nqueens-1.c: Same.
15453 * testsuite/libgomp.c/pr26171.c: Same.
15454 * testsuite/libgomp.c/pr48591.c: Same.
15455 * testsuite/libgomp.c/pr64824.c: Same.
15456 * testsuite/libgomp.c/pr64868.c: Same.
15457 * testsuite/libgomp.c/pr66133.c: Same.
15458 * testsuite/libgomp.c/pr66199-1.c: Same.
15459 * testsuite/libgomp.c/pr66199-2.c: Same.
15460 * testsuite/libgomp.c/target-8.c: Same.
15461
15462 2015-06-15 Tom de Vries <tom@codesourcery.com>
15463
15464 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
15465 -std={gnu99,c99}.
15466 * testsuite/libgomp.c/for-1.c: Same.
15467 * testsuite/libgomp.c/for-2.c: Same.
15468 * testsuite/libgomp.c/for-3.c: Same.
15469 * testsuite/libgomp.c/pr35625.c: Same.
15470 * testsuite/libgomp.c/pr39154.c: Same.
15471 * testsuite/libgomp.c/simd-16.c: Same.
15472 * testsuite/libgomp.c/simd-17.c: Same.
15473
15474 2015-06-13 Tom de Vries <tom@codesourcery.com>
15475
15476 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
15477
15478 2015-06-13 Tom de Vries <tom@codesourcery.com>
15479
15480 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
15481 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15482 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
15483 (N): Define.
15484 (main): Use N instead of hardcoded constants.
15485
15486 2015-06-05 Tom de Vries <tom@codesourcery.com>
15487
15488 merge from gomp4 branch:
15489 2015-05-28 Tom de Vries <tom@codesourcery.com>
15490
15491 PR tree-optimization/65443
15492 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
15493 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
15494 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
15495
15496 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15497
15498 * testsuite/libgomp.graphite/bounds.c: Adjust for
15499 cleanup-tree-dump removal.
15500 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
15501 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
15502 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
15503 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
15504 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
15505 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
15506 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
15507 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
15508 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
15509 * testsuite/libgomp.graphite/pr41118.c: Likewise.
15510
15511 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
15512
15513 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
15514 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
15515 (futex_wake) [!__x86_64__]: Ditto.
15516
15517 2015-05-28 Julian Brown <julian@codesourcery.com>
15518
15519 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
15520 function comment. Only call gomp_fatal if new argument is true.
15521 (acc_dev_num_out_of_range): New function.
15522 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
15523 acc_dev_num_out_of_range as appropriate.
15524 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15525 (acc_get_device_num, acc_set_device_num): Update calls to
15526 resolve_device.
15527 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
15528 output.
15529
15530 2015-05-28 Julian Brown <julian@codesourcery.com>
15531
15532 PR libgomp/65742
15533 * oacc-init.c (plugin/plugin-host.h): Include.
15534 (acc_on_device): Check whether we're in an offloaded region for
15535 host_nonshm
15536 plugin. Don't use __builtin_acc_on_device.
15537 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
15538 nonshm_exec flag in thread-local data.
15539 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
15540 data for host_nonshm plugin.
15541 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
15542 for host_nonshm plugin.
15543 * plugin/plugin-host.h: New.
15544
15545 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
15546
15547 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
15548
15549 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
15550
15551 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
15552 Declare as int.
15553 (FUTEX_PRIVATE_FLAG): Remove L suffix.
15554 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
15555 Declare as int.
15556
15557 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
15558
15559 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
15560
15561 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
15562
15563 * target.c (gomp_map_pointer): New function abstracting out
15564 GOMP_MAP_POINTER handling.
15565 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
15566 gomp_map_pointer().
15567
15568 2015-05-19 Jakub Jelinek <jakub@redhat.com>
15569
15570 PR middle-end/66199
15571 * testsuite/libgomp.c/pr66199-1.c: New test.
15572 * testsuite/libgomp.c/pr66199-2.c: New test.
15573 * testsuite/libgomp.c++/pr66199-1.C: New test.
15574 * testsuite/libgomp.c++/pr66199-2.C: New test.
15575 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
15576 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
15577
15578 2015-05-19 Julian Brown <julian@codesourcery.com>
15579
15580 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
15581 on cuInit failure.
15582
15583 2015-05-13 Jakub Jelinek <jakub@redhat.com>
15584
15585 PR middle-end/66133
15586 * testsuite/libgomp.c/pr66133.c: New test.
15587
15588 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
15589
15590 * Makefile.in: Regenerated with automake-1.11.6.
15591 * aclocal.m4: Likewise.
15592 * config.h.in: Likewise.
15593 * configure: Likewise.
15594 * testsuite/Makefile.in: Likewise.
15595
15596 2015-05-08 Jason Merrill <jason@redhat.com>
15597
15598 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
15599 _Complex.
15600
15601 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
15602
15603 2015-05-06 Julian Brown <julian@codesourcery.com>
15604
15605 * oacc-init.c (acc_device_lock): Add explanatory comment.
15606 (resolve_device): Add comment about locking requirement.
15607 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
15608 gomp_init_device and gomp_fini_device calls.
15609 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15610 (acc_get_device_num, acc_set_device_num): Add locking around
15611 resolve_device and gomp_init_device calls.
15612
15613 2015-05-06 Julian Brown <julian@codesourcery.com>
15614
15615 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
15616 goacc_thread_lock on error paths.
15617 * oacc-mem.c (lookup_host): Remove locking from function. Note
15618 locking requirement for caller in function comment.
15619 (lookup_dev): Likewise.
15620 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
15621 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
15622 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
15623 Add locking.
15624
15625 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
15626
15627 PR testsuite/65205
15628 PR libgomp/65993
15629 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
15630 don't expect "0x" prefix for "%p" format specifier, don't expect
15631 "(nil)" for NULL pointer.
15632 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15633 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15634 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15635 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15636 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15637 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15638 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15639 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15640 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15641 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15642 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15643 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15644 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15645 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15646 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15647 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15648 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15649 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15650 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15651 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15652 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15653 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15654 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15655 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15656 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15657 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15658 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15659 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15660 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
15661 accurately specify what we're looking for.
15662 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15663 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15664 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
15665 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
15666 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
15667
15668 2015-04-30 James Norris <jnorris@codesourcery.com>
15669
15670 PR testsuite/65205
15671 * testsuite/lib/libgomp.exp
15672 (check_effective_target_openacc_host_selected)
15673 (check_effective_target_openacc_host_nonshm_selected): New
15674 procedures.
15675 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
15676 dg-shouldfail.
15677 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15678 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15679 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15680 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15681 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15682 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15683 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15684 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15685 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15686 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15687 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15688 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15689 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15690 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15691 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15692 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15693 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15694 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15695 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15696 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15697 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15698 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15699 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15700 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15701 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15702 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15703 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15704 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15705 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15706 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15707 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15708 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15709 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15710 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15711 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15712 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15713 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15714 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15715 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15716 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15717 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15718 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15719 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15720
15721 2015-04-08 Julian Brown <julian@codesourcery.com>
15722
15723 * libgomp.h (target_mem_desc: Remove mem_map field.
15724 (acc_dispatch_t): Remove open_device_func, close_device_func,
15725 get_device_num_func, set_device_num_func, target_data members.
15726 Change create_thread_data_func argument to device number instead of
15727 generic pointer.
15728 * oacc-async.c (assert.h): Include.
15729 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
15730 (acc_wait_all, acc_wait_all_async): Use current host thread's
15731 active device, not base_dev.
15732 * oacc-cuda.c (acc_get_current_cuda_device)
15733 (acc_get_current_cuda_context, acc_get_cuda_stream)
15734 (acc_set_cuda_stream): Likewise.
15735 * oacc-host.c (host_dispatch): Don't set open_device_func,
15736 close_device_func, get_device_num_func or set_device_num_func.
15737 * oacc-init.c (base_dev, init_key): Remove.
15738 (cached_base_dev): New.
15739 (name_of_acc_device_t): New.
15740 (acc_init_1): Initialise default-numbered device, not zeroth.
15741 (acc_shutdown_1): Close all devices of a given type.
15742 (goacc_destroy_thread): Don't use base_dev.
15743 (lazy_open, lazy_init, lazy_init_and_open): Remove.
15744 (goacc_attach_host_thread_to_device): New.
15745 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
15746 (acc_get_num_devices): Don't use base_dev.
15747 (acc_set_device_type): Reimplement.
15748 (acc_get_device_type): Don't use base_dev.
15749 (acc_get_device_num): Tweak logic.
15750 (acc_set_device_num): Likewise.
15751 (acc_on_device): Use acc_get_device_type.
15752 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
15753 (goacc_lazy_initialize): Reimplement with acc_init and
15754 goacc_attach_host_thread_to_device.
15755 * oacc-int.h (goacc_thread): Add base_dev field.
15756 (base_dev): Remove extern declaration.
15757 (goacc_attach_host_thread_to_device): Add prototype.
15758 * oacc-mem.c (acc_malloc): Use current thread's device instead of
15759 base_dev.
15760 (acc_free): Likewise.
15761 (acc_memcpy_to_device): Likewise.
15762 (acc_memcpy_from_device): Likewise.
15763 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
15764 goacc_lazy_initialize (throughout).
15765 (GOACC_parallel): Use tgt_offset to locate target functions.
15766 * target.c (gomp_map_vars): Don't set tgt->mem_map.
15767 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
15768 (gomp_load_plugin_for_device): Remove open_device, close_device,
15769 get_device_num, set_device_num openacc hook initialisation. Don't set
15770 openacc.target_data.
15771 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
15772 (GOMP_OFFLOAD_openacc_close_device)
15773 (GOMP_OFFLOAD_openacc_get_device_num)
15774 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
15775 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
15776 to int.
15777 * plugin/plugin-nvptx.c (ptx_inited): Remove.
15778 (instantiated_devices, ptx_dev_lock): New.
15779 (struct ptx_image_data): New.
15780 (ptx_devices, ptx_images, ptx_image_lock): New.
15781 (fini_streams_for_device): Reorder cuStreamDestroy call.
15782 (nvptx_get_num_devices): Remove forward declaration.
15783 (nvptx_init): Change return type to bool.
15784 (nvptx_fini): Remove.
15785 (nvptx_attach_host_thread_to_device): New.
15786 (nvptx_open_device): Return struct ptx_device* instead of void*.
15787 (nvptx_close_device): Change argument type to struct ptx_device*,
15788 return type to void.
15789 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
15790 (kernel_target_data, kernel_host_table): Remove static globals.
15791 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
15792 (GOMP_OFFLOAD_init_device): Reimplement.
15793 (GOMP_OFFLOAD_fini_device): Likewise.
15794 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
15795 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
15796 (GOMP_OFFLOAD_host2dev): Use ORD argument.
15797 (GOMP_OFFLOAD_openacc_open_device)
15798 (GOMP_OFFLOAD_openacc_close_device)
15799 (GOMP_OFFLOAD_openacc_set_device_num)
15800 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
15801 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
15802 (device number).
15803
15804 testsuite/
15805 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
15806
15807 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
15808
15809 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
15810 * libgomp.h (struct gomp_memory_mapping): Remove.
15811 (struct target_mem_desc): Change type of mem_map from
15812 gomp_memory_mapping * to splay_tree_s *.
15813 (struct gomp_device_descr): Remove register_image_func, get_table_func.
15814 Add load_image_func, unload_image_func.
15815 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
15816 Remove offload_regions_registered.
15817 (gomp_init_tables): Remove.
15818 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15819 to splay_tree_s *.
15820 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
15821 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
15822 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
15823 offload_regions_registered.
15824 Initialize load_image_func, unload_image_func, mem_map.root.
15825 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
15826 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
15827 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
15828 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
15829 gomp_memory_mapping *. Use dev's lock and splay_tree.
15830 (lookup_dev): Use dev's lock.
15831 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
15832 (acc_is_present): Likewise.
15833 (acc_map_data): Likewise.
15834 (acc_unmap_data): Likewise. Use dev's lock.
15835 (present_create_copy): Likewise.
15836 (delete_copyout): Pass dev to lookup_host instead of mem_map.
15837 (update_dev_host): Likewise.
15838 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
15839 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
15840 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
15841 (GOMP_OFFLOAD_get_table): Remove
15842 (GOMP_OFFLOAD_load_image): New function.
15843 (GOMP_OFFLOAD_unload_image): New function.
15844 * target.c (register_lock): New mutex for offload image registration.
15845 (num_devices): Do not guard with PLUGIN_SUPPORT.
15846 (gomp_realloc_unlock): New static function.
15847 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
15848 before gomp_fatal.
15849 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
15850 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
15851 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
15852 mem_map's.
15853 (gomp_unmap_vars): Likewise.
15854 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
15855 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
15856 (gomp_offload_image_to_device): New static function.
15857 (GOMP_offload_register): Add mutex lock.
15858 Call gomp_offload_image_to_device for all initialized devices.
15859 Replace gomp_realloc with gomp_realloc_unlock.
15860 (GOMP_offload_unregister): New function.
15861 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
15862 get_table_func from the plugin with calls to init_device_func and
15863 gomp_offload_image_to_device.
15864 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15865 to splay_tree_s *.
15866 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
15867 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
15868 (GOMP_target_data): Do not call gomp_init_tables.
15869 (GOMP_target_update): Likewise. Remove argument from gomp_update.
15870 (gomp_load_plugin_for_device): Replace register_image and get_table
15871 with load_image and unload_image in DLSYM ().
15872 (gomp_register_images_for_device): Remove function.
15873 (gomp_target_init): Do not initialize current_device.mem_map.*,
15874 current_device.offload_regions_registered.
15875 Remove call to gomp_register_images_for_device.
15876 Do not free offload_images and num_offload_images.
15877
15878 2015-03-30 Jakub Jelinek <jakub@redhat.com>
15879
15880 PR fortran/65597
15881 * testsuite/libgomp.fortran/pr65597.f90: New test.
15882
15883 2015-03-27 Tom de Vries <tom@codesourcery.com>
15884
15885 PR testsuite/65594
15886 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
15887 (init, check): New function.
15888 (foo): Change return type to void.
15889 (main): Call init and check.
15890
15891 2015-03-27 Tom de Vries <tom@codesourcery.com>
15892
15893 PR testsuite/65594
15894 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
15895 (foo): Use M for non-inner loops to scale down test-case.
15896
15897 2015-03-25 Kai Tietz <ktietz@redhat.com>
15898
15899 PR libgomp/64972
15900 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
15901 (GOACC_data_start): Likewise.
15902 * target.c (gomp_map_vars): Likewise.
15903
15904 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
15905
15906 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
15907 hppa*-*-hpux*.
15908
15909 2015-03-19 Jakub Jelinek <jakub@redhat.com>
15910
15911 * testsuite/libgomp.c/target-10.c: New test.
15912 * testsuite/libgomp.c++/target-4.C: New test.
15913
15914 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
15915
15916 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
15917 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
15918
15919 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
15920
15921 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
15922 * configure.ac (*-*-rtems*): Assume Pthread is supported.
15923 (pthread.h): Check for this header file.
15924 * configure: Regenerate.
15925
15926 2015-02-25 Tom de Vries <tom@codesourcery.com>
15927
15928 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
15929 (check_reduction_op, check_reduction_macro, max, min):
15930 Declare.
15931 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
15932 function.
15933 (main): Use new functions.
15934
15935 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
15936
15937 * target.c (gomp_load_plugin_for_device): Use const char * instead of
15938 char * for variables holding dlerror return values.
15939 (DLSYM_OPT): Ditto.
15940
15941 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
15942
15943 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
15944
15945 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
15946 Cesar Philippidis <cesar@codesourcery.com>
15947
15948 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
15949 GOACC_ctaid, and GOACC_nctaid routines.
15950
15951 2015-02-11 Jakub Jelinek <jakub@redhat.com>
15952
15953 PR c/64824
15954 * testsuite/libgomp.c/atomic-18.c: New test.
15955 * testsuite/libgomp.c++/atomic-16.C: New test.
15956
15957 2015-02-04 Jakub Jelinek <jakub@redhat.com>
15958
15959 PR c/64824
15960 PR c/64868
15961 * testsuite/libgomp.c/pr64824.c: New test.
15962 * testsuite/libgomp.c/pr64868.c: New test.
15963 * testsuite/libgomp.c++/pr64824.C: New test.
15964 * testsuite/libgomp.c++/pr64868.C: New test.
15965
15966 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
15967
15968 PR libgomp/64635
15969 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
15970 Link with -lpthread.
15971 * config/aix/plugin-suffix.h: Delete.
15972
15973 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
15974
15975 PR libgomp/64635
15976 * configure.tgt (*-*-aix*): Use config_path "aix posix".
15977 (*-*-darwin*): Use config_path "bsd darwin posix".
15978 (*-*-hpux*): Use config_path "hpux posix".
15979 * target.c: Add include of plugin-suffix.h and use
15980 SONAME_SUFFIX macro.
15981 * config/aix/plugin-suffix.h: New file.
15982 * config/darwin/plugin-suffix.h: New file.
15983 * config/hpux/plugin-suffix.h: New file.
15984 * config/posix/plugin-suffix.h: New file.
15985
15986 2015-01-23 Jakub Jelinek <jakub@redhat.com>
15987
15988 PR middle-end/64734
15989 * libgomp.c/pr64734.c: New test.
15990
15991 2015-01-23 Tom de Vries <tom@codesourcery.com>
15992
15993 PR libgomp/64672
15994 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
15995
15996 2015-01-23 Tom de Vries <tom@codesourcery.com>
15997
15998 PR libgomp/64707
15999 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
16000 dg-options.
16001
16002 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
16003
16004 PR libgomp/64625
16005 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
16006 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
16007 formal parameter. Update all users.
16008 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
16009 Document unused formal parameter.
16010
16011 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
16012
16013 * oacc-parallel.c: Don't include <alloca.h>.
16014 (GOACC_parallel): Use gomp_alloca instead of alloca.
16015
16016 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
16017
16018 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
16019
16020 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
16021 James Norris <jnorris@codesourcery.com>
16022 Tom de Vries <tom@codesourcery.com>
16023 Julian Brown <julian@codesourcery.com>
16024 Cesar Philippidis <cesar@codesourcery.com>
16025 Nathan Sidwell <nathan@codesourcery.com>
16026 Tobias Burnus <burnus@net-b.de>
16027
16028 * Makefile.am (search_path): Add $(top_srcdir)/../include.
16029 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
16030 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
16031 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
16032 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
16033 Include $(top_srcdir)/plugin/Makefrag.am.
16034 (nodist_libsubinclude_HEADERS): Add openacc.h.
16035 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
16036 openacc.f90, openacc.mod, openacc_kinds.mod.
16037 (omp_lib.mod): Generalize into...
16038 (%.mod): ... this new rule.
16039 (openacc_kinds.mod, openacc.mod): New rules.
16040 * plugin/configfrag.ac: New file.
16041 * configure.ac: Move plugin/offloading support into it. Include
16042 it. Instantiate testsuite/libgomp-test-support.pt.exp.
16043 * plugin/Makefrag.am: New file.
16044 * testsuite/Makefile.am (OFFLOAD_TARGETS)
16045 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
16046 export.
16047 (libgomp-test-support.exp): New rule.
16048 (all-local): Depend on it.
16049 * Makefile.in: Regenerate.
16050 * testsuite/Makefile.in: Regenerate.
16051 * config.h.in: Likewise.
16052 * configure: Likewise.
16053 * configure.tgt: Harden shell syntax.
16054 * env.c: Include "oacc-int.h".
16055 (parse_acc_device_type): New function.
16056 (gomp_debug_var, goacc_device_type, goacc_device_num): New
16057 variables.
16058 (initialize_env): Initialize those. Call
16059 goacc_runtime_initialize.
16060 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
16061 (gomp_fatal): Call gomp_vfatal.
16062 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
16063 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
16064 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
16065 (splay_tree_node, splay_tree, splay_tree_key)
16066 (struct target_mem_desc, struct splay_tree_key_s)
16067 (struct gomp_memory_mapping, struct acc_dispatch_t)
16068 (struct gomp_device_descr, gomp_acc_insert_pointer)
16069 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
16070 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
16071 (gomp_free_memmap, gomp_fini_device): New declarations.
16072 (gomp_vdebug, gomp_debug): New macros.
16073 Include "splay-tree.h".
16074 * libgomp.map (OACC_2.0): New symbol version. Use for
16075 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
16076 acc_set_device_type_h_, acc_get_device_type,
16077 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
16078 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
16079 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
16080 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
16081 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
16082 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
16083 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
16084 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
16085 acc_copyin_array_h_, acc_present_or_copyin,
16086 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
16087 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
16088 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
16089 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
16090 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
16091 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
16092 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
16093 acc_update_device, acc_update_device_32_h_,
16094 acc_update_device_64_h_, acc_update_device_array_h_,
16095 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
16096 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
16097 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
16098 acc_is_present_64_h_, acc_is_present_array_h_,
16099 acc_memcpy_to_device, acc_memcpy_from_device,
16100 acc_get_current_cuda_device, acc_get_current_cuda_context,
16101 acc_get_cuda_stream, acc_set_cuda_stream.
16102 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
16103 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
16104 GOACC_update, GOACC_wait, GOACC_get_thread_num,
16105 GOACC_get_num_threads.
16106 (GOMP_PLUGIN_1.0): New symbol version. Use for
16107 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
16108 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
16109 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
16110 GOMP_PLUGIN_acc_thread.
16111 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
16112 environment variable.
16113 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
16114 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
16115 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
16116 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
16117 (splay_tree_remove): New declarations.
16118 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
16119 (splay_tree_remove, splay_tree_lookup): Move into...
16120 * splay-tree.c: ... this new file.
16121 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
16122 (splay_tree_node, splay_tree, splay_tree_key)
16123 (struct target_mem_desc, struct splay_tree_key_s)
16124 (struct gomp_device_descr): Don't declare.
16125 (num_devices_openmp): New variable.
16126 (gomp_get_num_devices ): Use it.
16127 (gomp_init_targets_once): New function.
16128 (gomp_get_num_devices ): Use it.
16129 (get_kind, gomp_copy_from_async, gomp_free_memmap)
16130 (gomp_fini_device, gomp_register_image_for_device): New functions.
16131 (gomp_map_vars): Add devaddrs parameter.
16132 (gomp_update): Add mm parameter.
16133 (gomp_init_device): Move most of it into...
16134 (gomp_init_tables): ... this new function.
16135 (gomp_register_images_for_device): Remove function.
16136 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
16137 Make them hidden instead of static.
16138 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
16139 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
16140 (GOMP_target_end_data, GOMP_target_update)
16141 (gomp_load_plugin_for_device, gomp_target_init): Update for
16142 OpenACC changes.
16143 * oacc-async.c: New file.
16144 * oacc-cuda.c: Likewise.
16145 * oacc-host.c: Likewise.
16146 * oacc-init.c: Likewise.
16147 * oacc-int.h: Likewise.
16148 * oacc-mem.c: Likewise.
16149 * oacc-parallel.c: Likewise.
16150 * oacc-plugin.c: Likewise.
16151 * oacc-plugin.h: Likewise.
16152 * oacc-ptx.h: Likewise.
16153 * openacc.f90: Likewise.
16154 * openacc.h: Likewise.
16155 * openacc_lib.h: Likewise.
16156 * plugin/plugin-host.c: Likewise.
16157 * plugin/plugin-nvptx.c: Likewise.
16158 * libgomp-plugin.c: Likewise.
16159 * libgomp-plugin.h: Likewise.
16160 * libgomp_target.h: Remove file after merging content into the
16161 former file. Update all users.
16162 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
16163 (offload_targets_s, offload_targets_s_openacc): New variables.
16164 (check_effective_target_openacc_nvidia_accel_present)
16165 (check_effective_target_openacc_nvidia_accel_selected): New
16166 procedures.
16167 (libgomp_init): Update for OpenACC changes.
16168 * testsuite/libgomp-test-support.exp.in: New file.
16169 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
16170 * testsuite/libgomp.oacc-c/c.exp: Likewise.
16171 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
16172 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
16173 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
16174 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
16175 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
16176 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
16177 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
16178 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
16179 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
16180 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
16181 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
16182 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
16183 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
16184 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
16185 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
16186 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
16187 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
16188 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
16189 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
16190 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
16191 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
16192 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
16193 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
16194 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
16195 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
16196 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
16197 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
16198 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
16199 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
16200 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
16201 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
16202 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
16203 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
16204 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
16205 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
16206 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
16207 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
16208 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
16209 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
16210 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
16211 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
16212 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
16213 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
16214 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
16215 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
16216 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
16217 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
16218 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
16219 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
16220 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
16221 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
16222 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
16223 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
16224 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
16225 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
16226 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
16227 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
16228 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
16229 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
16230 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
16231 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
16232 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
16233 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
16234 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
16235 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
16236 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
16237 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
16238 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
16239 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
16240 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
16241 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
16242 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
16243 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
16244 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
16245 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
16246 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
16247 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
16248 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
16249 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
16250 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
16251 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
16252 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
16253 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
16254 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
16255 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
16256 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
16257 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
16258 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
16259 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
16260 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
16261 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
16262 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
16263 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
16264 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
16265 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
16266 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
16267 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
16268 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
16269 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
16270 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
16271 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
16272 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
16273 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
16274 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
16275 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
16276 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
16277 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
16278 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
16279 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
16280 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
16281 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
16282 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
16283 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
16284 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
16285 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
16286 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
16287 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
16288 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
16289 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
16290 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
16291 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
16292 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
16293 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
16294 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
16295 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
16296 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
16297 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
16298 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
16299 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
16300 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
16301 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
16302 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
16303 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
16304 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
16305 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
16306 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
16307 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
16308 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
16309 Likewise.
16310 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
16311 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
16312 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
16313 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
16314 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
16315 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
16316 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
16317 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
16318 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
16319 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
16320 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
16321 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
16322 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
16323 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
16324 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
16325 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
16326 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
16327 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
16328 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
16329 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
16330 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
16331 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
16332 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
16333 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
16334 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
16335 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
16336 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
16337 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
16338 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
16339 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
16340 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
16341 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
16342 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
16343 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
16344 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
16345 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
16346 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
16347 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
16348 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
16349 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
16350 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
16351 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
16352 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
16353 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
16354 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
16355 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
16356 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
16357 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
16358 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
16359 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
16360 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
16361 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
16362 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
16363 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
16364 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
16365 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
16366 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
16367 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
16368 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
16369 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
16370
16371 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
16372 Julian Brown <julian@codesourcery.com>
16373 David Malcolm <dmalcolm@redhat.com>
16374
16375 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
16376 to "GNU Offloading and Multi Processing Runtime Library". Change
16377 all users.
16378 * configure: Regenerate.
16379 * libgomp.texi: Update.
16380
16381 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
16382
16383 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
16384 "$tgt_dir/lib32".
16385 * configure: Regenerate.
16386
16387 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
16388 "intelmic" in $offload_targets.
16389
16390 2015-01-05 Jakub Jelinek <jakub@redhat.com>
16391
16392 Update copyright years.
16393
16394 * libgomp.texi: Bump @copying's copyright year.
16395
16396 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16397
16398 * testsuite/lib/libgomp.exp: Load target-utils.exp.
16399 Move load of target-supports.exp earlier.
16400
16401 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
16402
16403 * testsuite/libgomp.c/target-9.c: New test.
16404
16405 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
16406
16407 * config.h.in: Regenerate.
16408 * configure: Regenerate.
16409 * configure.ac: Add GCC_CHECK_EMUTLS.
16410 * libgomp.h: Add check for USE_EMUTLS: this case
16411 is equal to HAVE_TLS.
16412 * team.c: Likewise.
16413
16414 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
16415
16416 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
16417
16418 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
16419 Ilya Verbin <ilya.verbin@intel.com>
16420
16421 * testsuite/libgomp.c/target-critical-1.c: New test.
16422
16423 2014-11-26 Jakub Jelinek <jakub@redhat.com>
16424
16425 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
16426 to dg-options unless expensive testing is on.
16427 (TESTITERS): Define to N if not defined.
16428 (main): Use TESTITERS instead of N.
16429 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
16430 dg-additional-options depending on whether expensive testing is on.
16431 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
16432 Decrease N to 100000 and CHUNKSZ to 10000.
16433
16434 2014-11-24 Jakub Jelinek <jakub@redhat.com>
16435
16436 PR fortran/63938
16437 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
16438 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
16439
16440 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
16441
16442 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
16443
16444 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
16445
16446 PR bootstrap/63784
16447 * configure: Regenerated.
16448
16449 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
16450
16451 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
16452 vect_simd_clones effective target.
16453 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16454
16455 2014-11-14 Jakub Jelinek <jakub@redhat.com>
16456
16457 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
16458 of 32 as block_size.
16459 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
16460 instead of 32 as block_size.
16461
16462 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
16463 Ilya Verbin <ilya.verbin@intel.com>
16464
16465 * Makefile.in: Regenerate.
16466 * configure: Regenerate.
16467 * configure.ac: Set up offload_additional_options,
16468 offload_additional_lib_paths and offload_targets.
16469 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
16470 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
16471 * testsuite/Makefile.in: Regenerate.
16472 * testsuite/lib/libgomp.exp (libgomp_init): Append
16473 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
16474 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
16475 build directory to LD_LIBRARY_PATH for intelmic offload targets.
16476
16477 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
16478 Ilya Verbin <ilya.verbin@intel.com>
16479 Kirill Yukhin <kirill.yukhin@intel.com>
16480 Ilya Tocar <ilya.tocar@intel.com>
16481
16482 * testsuite/lib/libgomp.exp
16483 (check_effective_target_offload_device): New.
16484 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
16485 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
16486 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
16487 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
16488 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
16489 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
16490 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
16491 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
16492 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
16493 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
16494 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
16495 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
16496 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
16497 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
16498 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
16499 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
16500 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
16501 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
16502 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
16503 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
16504 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
16505 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
16506 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
16507 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
16508 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
16509 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
16510 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
16511 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
16512 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
16513 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
16514 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
16515 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
16516 * testsuite/libgomp.c/target-7.c: Fix test.
16517 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
16518 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
16519 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
16520 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
16521 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
16522 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
16523 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
16524 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
16525 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
16526 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
16527 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
16528 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
16529 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
16530 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
16531 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
16532 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
16533 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
16534 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
16535 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16536 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
16537 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
16538 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
16539 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
16540 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
16541 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
16542 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
16543 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
16544 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
16545 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
16546 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
16547 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
16548
16549 2014-11-13 Jakub Jelinek <jakub@redhat.com>
16550 Ilya Verbin <ilya.verbin@intel.com>
16551 Thomas Schwinge <thomas@codesourcery.com>
16552 Andrey Turetskiy <andrey.turetskiy@intel.com>
16553
16554 * libgomp.map (GOMP_4.0.1): New symbol version.
16555 Add GOMP_offload_register.
16556 * libgomp_target.h: New file.
16557 * splay-tree.h: New file.
16558 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
16559 (gomp_target_init): New forward declaration.
16560 (gomp_is_initialized): New static variable.
16561 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
16562 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
16563 New structures.
16564 (offload_images, num_offload_images, devices, num_devices): New static
16565 variables.
16566 (splay_compare): New static function.
16567 (struct gomp_device_descr): New structure.
16568 (gomp_get_num_devices): Call gomp_target_init.
16569 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
16570 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
16571 (GOMP_offload_register): New function.
16572 (GOMP_target): Arrange for host callback to be performed in a separate
16573 initial thread and contention group, inheriting ICVs from
16574 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
16575 Add device initialization and lookup for target function in splay tree.
16576 (GOMP_target_data): Add device initialization and call gomp_map_vars.
16577 (GOMP_target_end_data): Call gomp_unmap_vars.
16578 (GOMP_target_update): Add device initialization and call gomp_update.
16579 (gomp_load_plugin_for_device, gomp_register_images_for_device)
16580 (gomp_target_init): New static functions.
16581
16582 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
16583 Thomas Schwinge <thomas@codesourcery.com>
16584 Ilya Verbin <ilya.verbin@intel.com>
16585 Andrey Turetskiy <andrey.turetskiy@intel.com>
16586
16587 * config.h.in: Regenerate.
16588 * configure: Regenerate.
16589 * configure.ac: Check for libdl, required for plugin support.
16590 (PLUGIN_SUPPORT): Define if plugins are supported.
16591 (enable_offload_targets): Support Intel MIC targets.
16592 (OFFLOAD_TARGETS): List of target names suitable for offloading.
16593
16594 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16595
16596 PR target/63610
16597 * configure: Regenerate.
16598
16599 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16600
16601 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
16602
16603 2014-10-06 Marek Polacek <polacek@redhat.com>
16604
16605 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
16606 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
16607 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
16608 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16609
16610 2014-10-06 Marek Polacek <polacek@redhat.com>
16611
16612 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
16613 * testsuite/libgomp.c/nqueens-1.c: Likewise.
16614 * testsuite/libgomp.c/pr26943-3.c: Likewise.
16615 * testsuite/libgomp.c/pr26943-4.c: Likewise.
16616 * testsuite/libgomp.c/pr36802-2.c: Likewise.
16617 * testsuite/libgomp.c/pr36802-3.c: Likewise.
16618 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
16619 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16620 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
16621 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
16622 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
16623 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
16624 * testsuite/libgomp.c/omp-single-1.c: Likewise.
16625 * testsuite/libgomp.c/omp-single-2.c: Likewise.
16626 * testsuite/libgomp.c/omp_matvec.c: Likewise.
16627 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
16628 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
16629 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
16630 declarations.
16631
16632 2014-10-03 Jakub Jelinek <jakub@redhat.com>
16633
16634 PR libgomp/61200
16635 * testsuite/libgomp.c/pr61200.c: New test.
16636
16637 2014-09-18 Jakub Jelinek <jakub@redhat.com>
16638
16639 PR c++/63248
16640 * testsuite/libgomp.c++/pr63248.C: New test.
16641
16642 2014-08-04 Jakub Jelinek <jakub@redhat.com>
16643
16644 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
16645 is not zero, but taskgroup->children is NULL and there are
16646 any task->children, schedule those instead of waiting.
16647 * testsuite/libgomp.c/depend-6.c: New test.
16648 * testsuite/libgomp.c/depend-7.c: New test.
16649 * testsuite/libgomp.c/depend-8.c: New test.
16650 * testsuite/libgomp.c/depend-9.c: New test.
16651 * testsuite/libgomp.c/depend-10.c: New test.
16652
16653 2014-08-01 Jakub Jelinek <jakub@redhat.com>
16654
16655 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
16656 (struct gomp_taskwait): New type.
16657 (struct gomp_task): Add taskwait and parent_depends_on, remove
16658 in_taskwait and taskwait_sem fields.
16659 (gomp_finish_task): Don't destroy taskwait_sem.
16660 * task.c (gomp_init_task): Don't init in_taskwait, instead init
16661 taskwait and parent_depends_on.
16662 (GOMP_task): For if (0) tasks with depend clause that depend on
16663 earlier tasks don't defer them, instead call
16664 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
16665 Initialize redundant_out field, for redundant out entries just
16666 move them at the end of linked list instead of removing them
16667 completely, and set redundant_out flag instead of redundant.
16668 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
16669 that task.
16670 (gomp_task_run_post_handle_dependers): If parent is in
16671 gomp_task_maybe_wait_for_dependencies and newly runnable task
16672 is not parent_depends_on, queue it in parent->children linked
16673 list after all runnable tasks with parent_depends_on set.
16674 Adjust for addition of taskwait indirection.
16675 (gomp_task_run_post_remove_parent): If parent is in
16676 gomp_task_maybe_wait_for_dependencies and task to be removed
16677 is parent_depends_on, decrement n_depend and if needed awake
16678 parent. Adjust for addition of taskwait indirection.
16679 (GOMP_taskwait): Adjust for addition of taskwait indirection.
16680 (gomp_task_maybe_wait_for_dependencies): New function.
16681 * testsuite/libgomp.c/depend-5.c: New test.
16682
16683 2014-07-13 Tobias Burnus <burnus@net-b.de>
16684
16685 * testsuite/libgomp.fortran/pr34020.f90: Make compile
16686 with TS 18508/Fortran 2015.
16687
16688 2014-07-06 Marek Polacek <polacek@redhat.com>
16689
16690 PR c/6940
16691 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
16692
16693 2014-07-03 Jakub Jelinek <jakub@redhat.com>
16694
16695 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
16696 matches regex $lang_source_re, add $lang_include_flags to options.
16697 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
16698 * testsuite/libgomp.c++/c++.exp: Likewise.
16699 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
16700 and lang_include_flags instead of adding -fintrinsic-modules-path= to
16701 ALWAYS_CFLAGS.
16702 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
16703
16704 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
16705
16706 * testsuite/libgomp.fortran/fortran.exp: Explain
16707 gfortran-dg-runtest usage.
16708
16709 2014-06-25 Jakub Jelinek <jakub@redhat.com>
16710
16711 * testsuite/libgomp.fortran/simd5.f90: New test.
16712 * testsuite/libgomp.fortran/simd6.f90: New test.
16713 * testsuite/libgomp.fortran/simd7.f90: New test.
16714
16715 2014-06-24 Jakub Jelinek <jakub@redhat.com>
16716
16717 * testsuite/libgomp.c/for-2.c: Define SC to static for
16718 #pragma omp for simd testing.
16719 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
16720 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
16721 SC macro.
16722 * testsuite/libgomp.c/simd-14.c: New test.
16723 * testsuite/libgomp.c/simd-15.c: New test.
16724 * testsuite/libgomp.c/simd-16.c: New test.
16725 * testsuite/libgomp.c/simd-17.c: New test.
16726 * testsuite/libgomp.c++/for-10.C: Define SC to static for
16727 #pragma omp for simd testing.
16728 * testsuite/libgomp.c++/simd10.C: New test.
16729 * testsuite/libgomp.c++/simd11.C: New test.
16730 * testsuite/libgomp.c++/simd12.C: New test.
16731 * testsuite/libgomp.c++/simd13.C: New test.
16732
16733 * testsuite/libgomp.fortran/aligned1.f03: New test.
16734 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
16735 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
16736 tasks with !$omp parallel !$omp single.
16737 * testsuite/libgomp.fortran/target8.f90: New test.
16738 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
16739 not to use trim in the combiner, instead call elemental function.
16740 (fn): New elemental function.
16741 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
16742 Make elemental.
16743 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
16744 omp_in): Likewise.
16745 * testsuite/libgomp.fortran/udr12.f90: New test.
16746 * testsuite/libgomp.fortran/udr13.f90: New test.
16747 * testsuite/libgomp.fortran/udr14.f90: New test.
16748 * testsuite/libgomp.fortran/udr15.f90: New test.
16749
16750 2014-06-18 Jakub Jelinek <jakub@redhat.com>
16751
16752 * omp_lib.f90.in (openmp_version): Set to 201307.
16753 * omp_lib.h.in (openmp_version): Likewise.
16754 * testsuite/libgomp.c/target-8.c: New test.
16755 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
16756 and inbranch clauses.
16757 * testsuite/libgomp.fortran/depend-3.f90: New test.
16758 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
16759 openmp_version.
16760 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
16761 * testsuite/libgomp.fortran/target1.f90: New test.
16762 * testsuite/libgomp.fortran/target2.f90: New test.
16763 * testsuite/libgomp.fortran/target3.f90: New test.
16764 * testsuite/libgomp.fortran/target4.f90: New test.
16765 * testsuite/libgomp.fortran/target5.f90: New test.
16766 * testsuite/libgomp.fortran/target6.f90: New test.
16767 * testsuite/libgomp.fortran/target7.f90: New test.
16768
16769 2014-06-10 Jakub Jelinek <jakub@redhat.com>
16770
16771 PR fortran/60928
16772 * testsuite/libgomp.fortran/allocatable9.f90: New test.
16773 * testsuite/libgomp.fortran/allocatable10.f90: New test.
16774 * testsuite/libgomp.fortran/allocatable11.f90: New test.
16775 * testsuite/libgomp.fortran/allocatable12.f90: New test.
16776 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
16777 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
16778 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
16779 * testsuite/libgomp.fortran/associate1.f90: New test.
16780 * testsuite/libgomp.fortran/associate2.f90: New test.
16781 * testsuite/libgomp.fortran/procptr1.f90: New test.
16782
16783 2014-06-06 Jakub Jelinek <jakub@redhat.com>
16784
16785 * testsuite/libgomp.fortran/simd1.f90: New test.
16786 * testsuite/libgomp.fortran/udr1.f90: New test.
16787 * testsuite/libgomp.fortran/udr2.f90: New test.
16788 * testsuite/libgomp.fortran/udr3.f90: New test.
16789 * testsuite/libgomp.fortran/udr4.f90: New test.
16790 * testsuite/libgomp.fortran/udr5.f90: New test.
16791 * testsuite/libgomp.fortran/udr6.f90: New test.
16792 * testsuite/libgomp.fortran/udr7.f90: New test.
16793 * testsuite/libgomp.fortran/udr8.f90: New test.
16794 * testsuite/libgomp.fortran/udr9.f90: New test.
16795 * testsuite/libgomp.fortran/udr10.f90: New test.
16796 * testsuite/libgomp.fortran/udr11.f90: New test.
16797
16798 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
16799
16800 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
16801 vect_simd_clones effective target.
16802 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
16803
16804 2014-05-21 Jakub Jelinek <jakub@redhat.com>
16805
16806 PR middle-end/61252
16807 * testsuite/libgomp.c++/simd-9.C: New test.
16808
16809 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
16810
16811 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
16812 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
16813 texts according to their @menu entry positions.
16814
16815 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16816
16817 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
16818 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
16819 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
16820 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
16821 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
16822 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
16823 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
16824 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
16825 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
16826 * testsuite/libgomp.fortran/depend-1.f90: New test.
16827 * testsuite/libgomp.fortran/depend-2.f90: New test.
16828 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
16829 * testsuite/libgomp.fortran/simd1.f90: New test.
16830 * testsuite/libgomp.fortran/simd2.f90: New test.
16831 * testsuite/libgomp.fortran/simd3.f90: New test.
16832 * testsuite/libgomp.fortran/simd4.f90: New test.
16833 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
16834
16835 2014-05-02 Jakub Jelinek <jakub@redhat.com>
16836
16837 * testsuite/libgomp.c/simd-10.c: New test.
16838 * testsuite/libgomp.c/simd-11.c: New test.
16839 * testsuite/libgomp.c/simd-12.c: New test.
16840 * testsuite/libgomp.c/simd-13.c: New test.
16841
16842 2014-04-24 Jakub Jelinek <jakub@redhat.com>
16843
16844 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
16845 atomic type clauses in any order and optional comma in between.
16846 * testsuite/libgomp.c++/atomic-15.C: Likewise.
16847 * testsuite/libgomp.c/atomic-17.c: Likewise.
16848
16849 * testsuite/libgomp.c/simd-7.c: New test.
16850 * testsuite/libgomp.c/simd-8.c: New test.
16851 * testsuite/libgomp.c/simd-9.c: New test.
16852 * testsuite/libgomp.c/loop-16.c: New test.
16853
16854 2014-04-02 Richard Henderson <rth@redhat.com>
16855
16856 * config/linux/futex.h (futex_wait): Get error value from errno.
16857 (futex_wake): Likewise.
16858
16859 2014-03-25 Jakub Jelinek <jakub@redhat.com>
16860
16861 PR c++/60331
16862 * testsuite/libgomp.c++/udr-11.C: New test.
16863 * testsuite/libgomp.c++/udr-12.C: New test.
16864 * testsuite/libgomp.c++/udr-13.C: New test.
16865 * testsuite/libgomp.c++/udr-14.C: New test.
16866 * testsuite/libgomp.c++/udr-15.C: New test.
16867 * testsuite/libgomp.c++/udr-16.C: New test.
16868 * testsuite/libgomp.c++/udr-17.C: New test.
16869 * testsuite/libgomp.c++/udr-18.C: New test.
16870 * testsuite/libgomp.c++/udr-19.C: New test.
16871
16872 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
16873
16874 Update copyright years
16875
16876 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
16877
16878 * hashtab.h: Use the standard form for the copyright notice.
16879
16880 2014-01-02 Tobias Burnus <burnus@net-b.de>
16881
16882 * libgomp.texi: Bump @copying's copyright year.
16883
16884 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
16885
16886 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
16887 alloca () with __builtin_alloca ().
16888 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
16889 * testsuite/libgomp.c/lock-3.c: Likewise.
16890 * testsuite/libgomp.c/pr48591.c: Likewise.
16891
16892 2013-12-17 Jakub Jelinek <jakub@redhat.com>
16893
16894 PR testsuite/59534
16895 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
16896 comparisons.
16897
16898 2013-12-16 Jakub Jelinek <jakub@redhat.com>
16899
16900 PR libgomp/58756
16901 * testsuite/libgomp.c/pr58756.c: New test.
16902
16903 2013-12-12 Jakub Jelinek <jakub@redhat.com>
16904
16905 PR libgomp/59467
16906 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
16907 !$omp parallel.
16908
16909 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
16910
16911 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
16912 ALWAYS_CFLAGS.
16913 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
16914 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
16915 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
16916 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
16917 Likewise.
16918
16919 * libgomp_g.h: Include <stddef.h> for size_t.
16920
16921 * libgomp.spec.in: Update comment about libgomp's dependencies.
16922 * configure.ac: Likewise.
16923 * configure: Regenerate.
16924
16925 2013-10-16 Tobias Burnus <burnus@net-b.de>
16926
16927 * libgomp.texi: (Runtime Library Routines): Update references for
16928 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
16929 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
16930 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
16931 (Environment Variables): Update references for OpenMP 4.0. Add
16932 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
16933 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
16934 order.
16935
16936 2013-10-14 Jakub Jelinek <jakub@redhat.com>
16937
16938 * env.c (parse_bind_var): Initialize value to avoid
16939 (false positive) warning.
16940
16941 2013-10-12 Jakub Jelinek <jakub@redhat.com>
16942
16943 PR libgomp/58691
16944 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
16945 to check variable.
16946 (gomp_init_num_threads): Move i variable declaration into
16947 #ifdef CPU_ALLOC_SIZE block.
16948 * config/linux/affinity.c (gomp_affinity_init_level): Test
16949 gomp_places_list_len == 0 rather than gomp_places_list == 0
16950 when checking for topology reading error.
16951 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
16952 * env.c (parse_affinity): Add ignore argument, if true, don't populate
16953 gomp_places_list, only parse env var and always return false.
16954 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
16955 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
16956 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
16957 and either of these variables were parsed correctly into a places
16958 list.
16959
16960 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
16961 Jakub Jelinek <jakub@redhat.com>
16962
16963 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
16964 of 5 loopfn matches.
16965 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
16966 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
16967 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
16968 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
16969 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
16970 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16971 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16972 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
16973
16974 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
16975
16976 * Makefile.am (omp_lib.mod): Streamline rule.
16977 * Makefile.in: Regenerate.
16978
16979 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
16980 exceptions.
16981
16982 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
16983 * testsuite/libgomp.fortran/lib1.f90: Likewise.
16984 * testsuite/libgomp.fortran/lib2.f: Likewise.
16985 * testsuite/libgomp.fortran/lib3.f: Likewise.
16986
16987 * configure.ac: Typo fix.
16988 * configure: Regenerate.
16989
16990 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
16991 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
16992
16993 * omp.h.in: Don't touch the user's namespace.
16994
16995 2013-10-11 Jakub Jelinek <jakub@redhat.com>
16996 Tobias Burnus <burnus@net-b.de>
16997 Richard Henderson <rth@redhat.com>
16998
16999 * target.c: New file.
17000 * Makefile.am (libgomp_la_SOURCES): Add target.c.
17001 * Makefile.in: Regenerated.
17002 * libgomp_g.h (GOMP_task): Add depend argument.
17003 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
17004 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
17005 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
17006 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
17007 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
17008 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
17009 GOMP_taskgroup_start, GOMP_taskgroup_end,
17010 GOMP_parallel_sections): New prototypes.
17011 * fortran.c (omp_is_initial_device): Add ialias_redirect.
17012 (omp_is_initial_device_): New function.
17013 (ULP, STR1, STR2, ialias_redirect): Removed.
17014 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
17015 omp_set_default_device_8_, omp_get_default_device_,
17016 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
17017 functions.
17018 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
17019 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
17020 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
17021 @@GOMP_4.0.
17022 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
17023 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
17024 omp_set_default_device, omp_set_default_device_,
17025 omp_set_default_device_8_, omp_get_default_device,
17026 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
17027 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
17028 omp_get_team_num_): Export @@OMP_4.0.
17029 * team.c (struct gomp_thread_start_data): Add place field.
17030 (gomp_thread_start): Clear thr->thread_pool and
17031 thr->task before returning. Use gomp_team_barrier_wait_final
17032 instead of gomp_team_barrier_wait. Initialize thr->place.
17033 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
17034 team_cancelled and task_queued_count fields.
17035 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
17036 before calling pthread_exit.
17037 (gomp_free_thread): No longer static. Use
17038 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
17039 (gomp_team_start): Add flags argument. Set
17040 thr->thread_pool->threads_busy to nthreads immediately after creating
17041 new pool. Use gomp_managed_threads_lock instead of
17042 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
17043 (gomp_team_end): Use gomp_managed_threads_lock instead of
17044 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
17045 of gomp_team_barrier_wait. If team->team_cancelled, call
17046 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
17047 rather than thr->ts.work_share.
17048 (initialize_team): Don't call gomp_sem_init here.
17049 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
17050 caller.
17051 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
17052 * env.c (gomp_global_icv): Add default_device_var, target_data and
17053 bind_var initializers.
17054 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
17055 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
17056 gomp_places_list_len): New variables.
17057 (parse_bind_var, parse_one_place, parse_places_var): New functions.
17058 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
17059 sized places.
17060 (gomp_cancel_var): New global variable.
17061 (parse_int): New function.
17062 (handle_omp_display_env): New function.
17063 (initialize_env): Use it. Initialize default_device_var.
17064 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
17065 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
17066 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
17067 been successfully parsed (and call gomp_init_affinity in that case).
17068 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17069 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17070 omp_get_team_num, omp_is_initial_device): New functions.
17071 * libgomp.h: Include stdlib.h.
17072 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
17073 Define.
17074 (struct target_mem_desc): Forward declare.
17075 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
17076 and thread_limit_var fields.
17077 (gomp_get_num_devices): New prototype.
17078 (gomp_cancel_var): New extern decl.
17079 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
17080 team_cancelled and task_queued_count fields. Add comments about
17081 task_{,queued_,running_}count.
17082 (gomp_cancel_kind): New enum.
17083 (gomp_work_share_end_cancel): New prototype.
17084 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
17085 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
17086 and depend fields.
17087 (struct gomp_taskgroup): New type.
17088 (struct gomp_task_depend_entry,
17089 struct gomp_dependers_vec): New types.
17090 (gomp_finish_task): Free depend_hash if non-NULL.
17091 (struct gomp_team_state): Add place_partition_off
17092 and place_partition_len fields.
17093 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
17094 gomp_places_list_len): New extern decls.
17095 (struct gomp_thread): Add place field.
17096 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
17097 (gomp_init_thread_affinity): Add place argument.
17098 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
17099 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
17100 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
17101 gomp_affinity_init_level, gomp_affinity_print_place): New
17102 prototypes.
17103 (gomp_team_start): Add flags argument.
17104 (gomp_thread_limit_var, gomp_remaining_threads_count,
17105 gomp_remaining_threads_lock): Remove.
17106 (gomp_managed_threads_lock): New variable.
17107 (struct gomp_thread_pool): Add threads_busy field.
17108 (gomp_free_thread): New prototype.
17109 * task.c: Include hashtab.h.
17110 (hash_entry_type): New typedef.
17111 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
17112 (gomp_init_task): Clear dependers, depend_hash, depend_count,
17113 copy_ctors_done and taskgroup fields.
17114 (GOMP_task): Add depend argument, handle depend clauses. If
17115 gomp_team_barrier_cancelled or if it's taskgroup has been
17116 cancelled, don't queue or start new tasks. Set copy_ctors_done
17117 field if needed. Initialize taskgroup field. If copy_ctors_done
17118 and already cancelled, don't discard the task. If taskgroup is
17119 non-NULL, enqueue the task into taskgroup queue. Increment
17120 num_children field in taskgroup. Increment task_queued_count.
17121 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
17122 gomp_task_run_post_remove_taskgroup): New inline functions.
17123 (gomp_task_run_post_handle_depend_hash,
17124 gomp_task_run_post_handle_dependers,
17125 gomp_task_run_post_handle_depend): New functions.
17126 (GOMP_taskwait): Use them. If more than one new tasks
17127 have been queued, wake other threads if needed.
17128 (gomp_barrier_handle_tasks): Likewise. If
17129 gomp_team_barrier_cancelled, don't start any new tasks, just free
17130 all tasks.
17131 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
17132 * omp_lib.f90.in
17133 (omp_proc_bind_kind, omp_proc_bind_false,
17134 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
17135 omp_proc_bind_spread): New params.
17136 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17137 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17138 omp_get_team_num, omp_is_initial_device): New interfaces.
17139 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
17140 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
17141 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
17142 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
17143 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
17144 useless use omp_lib_kinds.
17145 * omp.h.in (omp_proc_bind_t): New typedef.
17146 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17147 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17148 omp_get_team_num, omp_is_initial_device): New prototypes.
17149 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
17150 through to gomp_team_start.
17151 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
17152 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
17153 Adjust gomp_parallel_loop_start callers.
17154 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
17155 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
17156 GOMP_loop_end_cancel): New functions.
17157 (GOMP_parallel_end): Add ialias_redirect.
17158 * hashtab.h: New file.
17159 * libgomp.texi (Environment Variables): Minor cleanup,
17160 update section refs to OpenMP 4.0rc2.
17161 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
17162 environment variables.
17163 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
17164 team->work_shares_to_free to thr->ts.work_share before calling
17165 free_work_share.
17166 (gomp_work_share_end_cancel): New function.
17167 * config/linux/proc.c: Include errno.h.
17168 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
17169 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
17170 sizeof (cpu_set_t) to determine number of iterations. Fix up check
17171 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
17172 gomp_cpuset_size is sizeof (cpu_set_t).
17173 (gomp_init_num_threads): Initialize gomp_cpuset_size,
17174 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
17175 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
17176 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
17177 contain any logical CPUs.
17178 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
17179 is NULL. Use gomp_cpusetp instead of &cpuset and pass
17180 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
17181 pthread_getaffinity_np. Check gomp_places_list instead of
17182 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
17183 * config/linux/bar.c (gomp_barrier_wait_end,
17184 gomp_barrier_wait_last): Use BAR_* defines.
17185 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
17186 from state where needed. Set work_share_cancelled to 0 on last
17187 thread.
17188 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
17189 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
17190 functions.
17191 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
17192 Add cpusetsize argument.
17193 (gomp_cpuset_size, gomp_cpusetp): Declare.
17194 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
17195 (affinity_counter): Remove.
17196 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
17197 if CPU_ALLOC_SIZE isn't defined.
17198 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
17199 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
17200 bind current thread to the first place.
17201 (gomp_init_thread_affinity): Rewritten. Add place argument, just
17202 pthread_setaffinity_np to gomp_places_list[place].
17203 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
17204 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
17205 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
17206 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
17207 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
17208 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
17209 (gomp_barrier_t): Add awaited_final field.
17210 (gomp_barrier_init): Initialize awaited_final field.
17211 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
17212 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
17213 prototypes.
17214 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
17215 defines.
17216 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
17217 gomp_team_barrier_cancelled): New inline functions.
17218 (gomp_barrier_last_thread,
17219 gomp_team_barrier_set_task_pending,
17220 gomp_team_barrier_clear_task_pending,
17221 gomp_team_barrier_set_waiting_for_tasks,
17222 gomp_team_barrier_waiting_for_tasks,
17223 gomp_team_barrier_done): Use BAR_* defines.
17224 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
17225 (gomp_barrier_wait_end): Use BAR_* defines.
17226 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
17227 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
17228 Use BAR_* defines.
17229 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
17230 gomp_team_barrier_cancel): New functions.
17231 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
17232 argument.
17233 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
17234 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
17235 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
17236 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
17237 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
17238 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
17239 (gomp_barrier_t): Add cancellable field.
17240 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
17241 gomp_team_barrier_cancel): New prototypes.
17242 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
17243 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
17244 gomp_team_barrier_cancelled): New inline functions.
17245 (gomp_barrier_wait_start, gomp_barrier_last_thread,
17246 gomp_team_barrier_set_task_pending,
17247 gomp_team_barrier_clear_task_pending,
17248 gomp_team_barrier_set_waiting_for_tasks,
17249 gomp_team_barrier_waiting_for_tasks,
17250 gomp_team_barrier_done): Use BAR_* defines.
17251 * barrier.c (GOMP_barrier_cancel): New function.
17252 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
17253 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
17254 omp_proc_bind_spread): New params.
17255 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17256 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17257 omp_get_team_num, omp_is_initial_device): New externals.
17258 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
17259 New functions.
17260 (gomp_resolve_num_threads): Adjust for thread_limit now being in
17261 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
17262 infinity. If not nested, just return minimum of max_num_threads
17263 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
17264 to the returned value. Otherwise, don't update atomically
17265 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
17266 (GOMP_parallel_end): Adjust for thread_limit now being in
17267 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
17268 infinity. Adjust threads_busy in the pool rather than
17269 gomp_remaining_threads_count. Remember team->nthreads and call
17270 gomp_team_end before adjusting threads_busy, if not nested
17271 afterwards, just set it to 1 non-atomically. Add ialias.
17272 (GOMP_parallel_start): Adjust gomp_team_start caller.
17273 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
17274 * testsuite/libgomp.c/affinity-1.c: New test.
17275 * testsuite/libgomp.c/atomic-15.c: New test.
17276 * testsuite/libgomp.c/atomic-16.c: New test.
17277 * testsuite/libgomp.c/atomic-17.c: New test.
17278 * testsuite/libgomp.c/cancel-for-1.c: New test.
17279 * testsuite/libgomp.c/cancel-for-2.c: New test.
17280 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
17281 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
17282 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
17283 * testsuite/libgomp.c/cancel-sections-1.c: New test.
17284 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
17285 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
17286 * testsuite/libgomp.c/depend-1.c: New test.
17287 * testsuite/libgomp.c/depend-2.c: New test.
17288 * testsuite/libgomp.c/depend-3.c: New test.
17289 * testsuite/libgomp.c/depend-4.c: New test.
17290 * testsuite/libgomp.c/for-1.c: New test.
17291 * testsuite/libgomp.c/for-1.h: New file.
17292 * testsuite/libgomp.c/for-2.c: New test.
17293 * testsuite/libgomp.c/for-2.h: New file.
17294 * testsuite/libgomp.c/for-3.c: New test.
17295 * testsuite/libgomp.c/pr58392.c: New test.
17296 * testsuite/libgomp.c/simd-1.c: New test.
17297 * testsuite/libgomp.c/simd-2.c: New test.
17298 * testsuite/libgomp.c/simd-3.c: New test.
17299 * testsuite/libgomp.c/simd-4.c: New test.
17300 * testsuite/libgomp.c/simd-5.c: New test.
17301 * testsuite/libgomp.c/simd-6.c: New test.
17302 * testsuite/libgomp.c/target-1.c: New test.
17303 * testsuite/libgomp.c/target-2.c: New test.
17304 * testsuite/libgomp.c/target-3.c: New test.
17305 * testsuite/libgomp.c/target-4.c: New test.
17306 * testsuite/libgomp.c/target-5.c: New test.
17307 * testsuite/libgomp.c/target-6.c: New test.
17308 * testsuite/libgomp.c/target-7.c: New test.
17309 * testsuite/libgomp.c/taskgroup-1.c: New test.
17310 * testsuite/libgomp.c/thread-limit-1.c: New test.
17311 * testsuite/libgomp.c/thread-limit-2.c: New test.
17312 * testsuite/libgomp.c/thread-limit-3.c: New test.
17313 * testsuite/libgomp.c/udr-1.c: New test.
17314 * testsuite/libgomp.c/udr-2.c: New test.
17315 * testsuite/libgomp.c/udr-3.c: New test.
17316 * testsuite/libgomp.c++/affinity-1.C: New test.
17317 * testsuite/libgomp.c++/atomic-10.C: New test.
17318 * testsuite/libgomp.c++/atomic-11.C: New test.
17319 * testsuite/libgomp.c++/atomic-12.C: New test.
17320 * testsuite/libgomp.c++/atomic-13.C: New test.
17321 * testsuite/libgomp.c++/atomic-14.C: New test.
17322 * testsuite/libgomp.c++/atomic-15.C: New test.
17323 * testsuite/libgomp.c++/cancel-for-1.C: New test.
17324 * testsuite/libgomp.c++/cancel-for-2.C: New test.
17325 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
17326 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
17327 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
17328 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
17329 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
17330 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
17331 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
17332 * testsuite/libgomp.c++/cancel-test.h: New file.
17333 * testsuite/libgomp.c++/for-9.C: New test.
17334 * testsuite/libgomp.c++/for-10.C: New test.
17335 * testsuite/libgomp.c++/for-11.C: New test.
17336 * testsuite/libgomp.c++/simd-1.C: New test.
17337 * testsuite/libgomp.c++/simd-2.C: New test.
17338 * testsuite/libgomp.c++/simd-3.C: New test.
17339 * testsuite/libgomp.c++/simd-4.C: New test.
17340 * testsuite/libgomp.c++/simd-5.C: New test.
17341 * testsuite/libgomp.c++/simd-6.C: New test.
17342 * testsuite/libgomp.c++/simd-7.C: New test.
17343 * testsuite/libgomp.c++/simd-8.C: New test.
17344 * testsuite/libgomp.c++/target-1.C: New test.
17345 * testsuite/libgomp.c++/target-2.C: New test.
17346 * testsuite/libgomp.c++/target-2-aux.cc: New file.
17347 * testsuite/libgomp.c++/target-3.C: New test.
17348 * testsuite/libgomp.c++/taskgroup-1.C: New test.
17349 * testsuite/libgomp.c++/udr-1.C: New test.
17350 * testsuite/libgomp.c++/udr-2.C: New test.
17351 * testsuite/libgomp.c++/udr-3.C: New test.
17352 * testsuite/libgomp.c++/udr-4.C: New test.
17353 * testsuite/libgomp.c++/udr-5.C: New test.
17354 * testsuite/libgomp.c++/udr-6.C: New test.
17355 * testsuite/libgomp.c++/udr-7.C: New test.
17356 * testsuite/libgomp.c++/udr-8.C: New test.
17357 * testsuite/libgomp.c++/udr-9.C: New test.
17358
17359 2013-09-20 Jakub Jelinek <jakub@redhat.com>
17360
17361 PR testsuite/57605
17362 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
17363 ALWAYS_CFLAGS.
17364
17365 2013-09-20 Alan Modra <amodra@gmail.com>
17366
17367 * configure: Regenerate.
17368
17369 2013-09-19 Jakub Jelinek <jakub@redhat.com>
17370
17371 * testsuite/libgomp.c/sections-2.c: New test.
17372
17373 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
17374
17375 * testsuite/libgomp.fortran/strassen.f90:
17376 Add dg-skip-if aarch64_tiny.
17377
17378 2013-06-20 Iain Sandoe <iain@codesourcery.com>
17379 Cesar Philippidis <cesar@codesourcery.com>
17380
17381 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
17382 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
17383 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
17384 * testsuite/libgomp.fortran/fortran.exp: Likewise.
17385 * testsuite/libgomp.graphite/graphite.exp: Likewise.
17386 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
17387 Use dg-runtest rather than gfortran-dg-runtest.
17388
17389 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
17390
17391 * testsuite/libgomp.c/icv-2.c: Extend current handling of
17392 Linux-based x86 systems to cover all GNU systems.
17393 * testsuite/libgomp.c/lock-3.c: Likewise.
17394 * testsuite/libgomp.c/pr48591.c: Likewise.
17395
17396 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
17397
17398 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
17399 GNU/Hurd, as done for Linux-based systems.
17400
17401 * config/posix/ptrlock.h: Fix comment.
17402
17403 2013-05-27 Tobias Burnus <burnus@net-b.de>
17404
17405 PR fortran/57423
17406 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
17407 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
17408 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
17409 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
17410 omp_destroy_nest_lock): Correct arguments to match the one in
17411 the OpenMP spec.
17412 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
17413 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
17414 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
17415 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
17416
17417 2013-05-16 Jakub Jelinek <jakub@redhat.com>
17418
17419 * testsuite/libgomp.c/loop-13.c: New test.
17420 * testsuite/libgomp.c/loop-14.c: New test.
17421 * testsuite/libgomp.c/loop-15.c: New test.
17422 * testsuite/libgomp.c++/loop-13.C: New test.
17423 * testsuite/libgomp.c++/loop-14.C: New test.
17424 * testsuite/libgomp.c++/loop-15.C: New test.
17425
17426 2013-02-06 Jakub Jelinek <jakub@redhat.com>
17427
17428 PR middle-end/56217
17429 * testsuite/libgomp.c++/pr56217.C: New test.
17430
17431 2013-02-01 Alan Modra <amodra@gmail.com>
17432
17433 * task.c (GOMP_task, GOMP_taskwait): Comment.
17434
17435 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
17436 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
17437
17438 PR libgomp/55561
17439 * config/linux/wait.h (do_spin): Use atomic load for addr.
17440 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
17441 for intptr and ptrlock.
17442 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
17443 for ptrlock.
17444
17445 2013-01-22 Alan Modra <amodra@gmail.com>
17446
17447 PR libgomp/51376
17448 PR libgomp/56073
17449 * task.c (GOMP_task): Revert 2011-12-09 change.
17450 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
17451 barrier to read task->children..
17452 (gomp_barrier_handle_tasks): ..and matching atomic store with
17453 release barrier here when setting parent->children to NULL.
17454
17455 2013-01-16 Jakub Jelinek <jakub@redhat.com>
17456 Tobias Burnus <burnus@net-b.de>
17457
17458 PR driver/55884
17459 * testsuite/libgomp.fortran/fortran.exp: Use
17460 -fintrinsic-modules-path= instead of
17461 -fintrinsic-modules-path.
17462
17463 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
17464
17465 Update copyright years.
17466
17467 2012-12-19 Tobias Burnus <burnus@net-b.de>
17468
17469 * testsuite/libgomp.fortran/fortran.exp: Set
17470 -fintrinsic-modules-path.
17471
17472 2012-12-19 Tobias Burnus <burnus@net-b.de>
17473
17474 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
17475 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
17476
17477 2012-11-21 Jakub Jelinek <jakub@redhat.com>
17478
17479 PR libgomp/55411
17480 * team.c (gomp_free_thread): Decrease gomp_managed_threads
17481 if pool had any threads_used.
17482
17483 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
17484
17485 * testsuite/libgomp.c++/pr24455.C: Use
17486 -Wl,-undefined,dynamic_lookup on darwin.
17487
17488 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
17489
17490 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
17491
17492 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
17493
17494 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
17495
17496 2012-10-23 Ian Bolton <ian.bolton@arm.com>
17497 Jim MacArthur <jim.macarthur@arm.com>
17498 Marcus Shawcroft <marcus.shawcroft@arm.com>
17499 Nigel Stephens <nigel.stephens@arm.com>
17500 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17501 Richard Earnshaw <rearnsha@arm.com>
17502 Sofiane Naci <sofiane.naci@arm.com>
17503 Stephen Thomas <stephen.thomas@arm.com>
17504 Tejas Belagod <tejas.belagod@arm.com>
17505 Yufeng Zhang <yufeng.zhang@arm.com>
17506
17507 * configure.tgt: Add AArch64.
17508
17509 2012-10-04 Jason Merrill <jason@redhat.com>
17510
17511 * testsuite/libgomp.c++/tls-init1.C: New.
17512
17513 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
17514
17515 * configure: Regenerated.
17516
17517 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
17518
17519 * config/linux/mips/futex.h (sys_futex0): Change to static
17520 function with noinline, nomips16 attributes under MIPS16. Adjust
17521 asm statement to place 'li v0,SYS_futex' immediately before
17522 syscall insn.
17523
17524 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
17525
17526 * libgomp.texi (Library Index): Renamed from "Index" to prevent
17527 conflict with index.html on case-insensitive file systems.
17528
17529 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
17530
17531 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
17532 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
17533
17534 2012-07-02 Richard Guenther <rguenther@suse.de>
17535 Michael Matz <matz@suse.de>
17536 Tobias Grosser <tobias@grosser.es>
17537 Sebastian Pop <sebpop@gmail.com>
17538
17539 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
17540 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
17541 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17542 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17543
17544 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
17545
17546 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
17547
17548 2012-06-22 Richard Guenther <rguenther@suse.de>
17549
17550 Merge from graphite branch
17551 2012-01-13 Tobias Grosser <tobias@grosser.es>
17552
17553 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17554 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
17555
17556 2012-06-07 Jakub Jelinek <jakub@redhat.com>
17557
17558 PR middle-end/53580
17559 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
17560 use GOMP_barrier () call instead.
17561 * testsuite/libgomp.c/pr26943-3.c: Likewise.
17562 * testsuite/libgomp.c/pr26943-4.c: Likewise.
17563 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
17564 call GOMP_barrier instead.
17565 * testsuite/libgomp.fortran/vla5.f90: Likewise.
17566
17567 2012-06-06 Jakub Jelinek <jakub@redhat.com>
17568
17569 PR libgomp/52993
17570 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
17571 argument to memset call.
17572
17573 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
17574
17575 * configure: Regenerated.
17576
17577 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
17578
17579 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
17580
17581 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
17582
17583 PR bootstrap/52812
17584 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
17585
17586 2012-03-22 Jakub Jelinek <jakub@redhat.com>
17587
17588 PR middle-end/52547
17589 * testsuite/libgomp.c/pr52547.c: New test.
17590
17591 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17592
17593 * testsuite/lib/libgomp.exp: load fortran-modules.exp
17594
17595 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17596
17597 * configure.tgt (mips-sgi-irix6*): Remove.
17598
17599 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17600
17601 * configure.tgt (alpha*-dec-osf*): Remove.
17602
17603 * config/osf/sem.h: Remove.
17604 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
17605
17606 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
17607
17608 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
17609
17610 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17611
17612 PR libstdc++/52188
17613 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
17614 Remove ENABLE_SYMVERS_SOL2.
17615 * configure: Regenerate.
17616 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
17617 (PREPROCESS): New variable.
17618 (libgomp.ver): New target.
17619 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
17620 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
17621 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
17622 Use libgomp.ver.
17623 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
17624 * Makefile.in: Regenerate.
17625
17626 2012-02-14 Walter Lee <walt@tilera.com>
17627
17628 * configure.tgt: Handle tilegx and tilepro.
17629 * config/linux/tile/futex.h: New file.
17630
17631 2012-02-08 Richard Guenther <rguenther@suse.de>
17632
17633 PR tree-optimization/46886
17634 * testsuite/libgomp.c/pr46886.c: New testcase.
17635
17636 2012-01-25 Matthias Klose <doko@ubuntu.com>
17637
17638 * config/linux/arm: Remove empty directory.
17639 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
17640
17641 2011-12-09 Alan Modra <amodra@gmail.com>
17642
17643 PR libgomp/51376
17644 * task.c (GOMP_taskwait): Don't access task->children outside of
17645 task_lock mutex region.
17646 (GOMP_task): Likewise.
17647
17648 2011-12-06 Jakub Jelinek <jakub@redhat.com>
17649
17650 PR libgomp/51132
17651 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
17652 to file scope.
17653 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
17654 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
17655 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17656 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17657 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
17658
17659 2011-12-02 Alan Modra <amodra@gmail.com>
17660
17661 * config/linux/affinity.c: Use atomic rather than sync builtin.
17662 * config/linux/lock.c: Likewise.
17663 * config/linux/ptrlock.h: Likewise.
17664 * config/linux/ptrlock.c: Likewise.
17665 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
17666 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
17667 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
17668 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
17669 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
17670 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
17671 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
17672 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
17673 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
17674 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
17675
17676 2011-11-30 Alan Modra <amodra@gmail.com>
17677
17678 PR libgomp/51298
17679 * config/linux/bar.h: Use atomic rather than sync builtins.
17680 * config/linux/bar.c: Likewise. Add missing acquire
17681 synchronisation on generation field.
17682 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
17683 double unlock.
17684
17685 2011-11-30 Alan Modra <amodra@gmail.com>
17686
17687 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
17688 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
17689 * config/linux/mutex.h: Use atomic rather than sync builtins.
17690 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
17691 * config/linux/omp-lock.h: Comment fix.
17692 * config/linux/arm/mutex.h: Delete.
17693 * config/linux/powerpc/mutex.h: Delete.
17694 * config/linux/ia64/mutex.h: Delete.
17695 * config/linux/mips/mutex.h: Delete.
17696
17697 2011-11-30 Alan Modra <amodra@gmail.com>
17698
17699 PR libgomp/51249
17700 * config/linux/sem.h: Rewrite.
17701 * config/linux/sem.c: Rewrite.
17702
17703 2011-11-28 Richard Henderson <rth@redhat.com>
17704
17705 * libgomp.h (enum memmodel): New.
17706
17707 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
17708
17709 * configure: Regenerate.
17710
17711 2011-10-10 Matthias Klose <doko@ubuntu.com>
17712
17713 * config/posix95: Remove empty directory.
17714
17715 2011-08-26 Jakub Jelinek <jakub@redhat.com>
17716
17717 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
17718
17719 2011-08-19 Jakub Jelinek <jakub@redhat.com>
17720
17721 PR fortran/49792
17722 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
17723 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
17724
17725 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17726
17727 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
17728
17729 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17730
17731 PR libgomp/49965
17732 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
17733
17734 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
17735
17736 * config/linux/proc.h: New.
17737 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
17738 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
17739 (gomp_init_num_threads): Update call to cpuset_popcount.
17740 (get_num_procs): Ditto.
17741 * config/linux/affinity.c (gomp_init_affinity): Call
17742 gomp_cpuset_popcount.
17743
17744 2011-08-02 Jakub Jelinek <jakub@redhat.com>
17745
17746 PR fortran/42041
17747 PR fortran/46752
17748 * omp.h.in (omp_in_final): New prototype.
17749 * omp_lib.f90.in (omp_in_final): New interface.
17750 (omp_integer_kind, omp_logical_kind): Remove
17751 and replace all its uses in the module with 4.
17752 (openmp_version): Change to 201107.
17753 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
17754 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
17755 kind for the parameters.
17756 (omp_in_final): New external.
17757 (openmp_version): Change to 201107.
17758 * task.c (omp_in_final): New function.
17759 (gomp_init_task): Initialize final_task.
17760 (GOMP_task): Remove unused attribute from flags. Handle final
17761 tasks.
17762 (GOMP_taskyield): New function.
17763 (omp_in_final): Return true if if (false) or final (true) task
17764 or descendant of final (true).
17765 * fortran.c (omp_in_final_): New function.
17766 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
17767 (GOMP_3.0): Export GOMP_taskyield.
17768 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
17769 variables.
17770 (parse_unsigned_long_list): New function.
17771 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
17772 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
17773 even if parse_affinity returned false.
17774 * config/linux/affinity.c (gomp_init_affinity): Handle
17775 gomp_cpu_affinity_len == 0.
17776 * libgomp_g.h (GOMP_taskyield): New prototype.
17777 * libgomp.h (struct gomp_task): Add final_task field.
17778 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
17779 * team.c (gomp_team_start): Override new task's nthreads_var icv
17780 if list form OMP_NUM_THREADS has been used and it has value for
17781 the new nesting level.
17782
17783 * testsuite/libgomp.c/atomic-11.c: New test.
17784 * testsuite/libgomp.c/atomic-12.c: New test.
17785 * testsuite/libgomp.c/atomic-13.c: New test.
17786 * testsuite/libgomp.c/atomic-14.c: New test.
17787 * testsuite/libgomp.c/reduction-6.c: New test.
17788 * testsuite/libgomp.c/task-5.c: New test.
17789 * testsuite/libgomp.c++/atomic-2.C: New test.
17790 * testsuite/libgomp.c++/atomic-3.C: New test.
17791 * testsuite/libgomp.c++/atomic-4.C: New test.
17792 * testsuite/libgomp.c++/atomic-5.C: New test.
17793 * testsuite/libgomp.c++/atomic-6.C: New test.
17794 * testsuite/libgomp.c++/atomic-7.C: New test.
17795 * testsuite/libgomp.c++/atomic-8.C: New test.
17796 * testsuite/libgomp.c++/atomic-9.C: New test.
17797 * testsuite/libgomp.c++/task-8.C: New test.
17798 * testsuite/libgomp.c++/reduction-4.C: New test.
17799 * testsuite/libgomp.fortran/allocatable7.f90: New test.
17800 * testsuite/libgomp.fortran/allocatable8.f90: New test.
17801 * testsuite/libgomp.fortran/crayptr3.f90: New test.
17802 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
17803 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
17804 * testsuite/libgomp.fortran/pointer1.f90: New test.
17805 * testsuite/libgomp.fortran/pointer2.f90: New test.
17806 * testsuite/libgomp.fortran/task4.f90: New test.
17807
17808 2011-08-02 Tobias Burnus <burnus@net-b.de>
17809
17810 * libgomp.texi: Update OpenMP spec references to 3.1.
17811 (omp_in_final,OMP_PROC_BIND): New sections.
17812 (OMP_NUM_THREADS): Document that the value can be now a list.
17813 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
17814
17815 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
17816
17817 * config/linux/x86/futex.h: Check __x86_64__ instead of
17818 __LP64__.
17819
17820 2011-07-29 Jakub Jelinek <jakub@redhat.com>
17821
17822 PR middle-end/49897
17823 PR middle-end/49898
17824 * testsuite/libgomp.c/pr49897-1.c: New test.
17825 * testsuite/libgomp.c/pr49897-2.c: New test.
17826 * testsuite/libgomp.c/pr49898-1.c: New test.
17827 * testsuite/libgomp.c/pr49898-2.c: New test.
17828
17829 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
17830
17831 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
17832 for ia32 instead of ilp32.
17833
17834 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
17835 * testsuite/libgomp.c/atomic-6.c: Likewise.
17836
17837 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
17838
17839 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
17840 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
17841
17842 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17843
17844 PR libgomp/45351
17845 * config/osf/sem.h: New file.
17846 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
17847
17848 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17849
17850 PR target/49541
17851 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
17852 ldflags.
17853
17854 2011-07-15 Jakub Jelinek <jakub@redhat.com>
17855
17856 * config/linux/wait.h (do_spin): New inline, largely copied
17857 from do_wait, just don't do futex_wait here, instead return true if
17858 it should be done.
17859 (do_wait): Implement using do_spin.
17860 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
17861 to prototype.
17862 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
17863 __sync_bool_compare_and_swap, pass the oldval to
17864 gomp_mutex_lock_slow.
17865 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
17866 If all mutex contenders are just spinning and not sleeping, don't
17867 change state to 2 unnecessarily. Optimize the loop when state has
17868 already become 2 to use just one atomic operation per loop instead
17869 of two.
17870 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
17871 to prototype.
17872 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
17873 __sync_bool_compare_and_swap, pass the oldval to
17874 gomp_mutex_lock_slow.
17875
17876 2011-06-22 Jakub Jelinek <jakub@redhat.com>
17877
17878 PR libgomp/49490
17879 * iter.c (gomp_iter_static_next): For chunk size 0
17880 only use n ceil/ nthreads size for the first
17881 n % nthreads threads in the team instead of
17882 all threads except for the last few ones which
17883 get less work or none at all.
17884 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
17885 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
17886 chunk argument, set run_sched_modifier to 0 for static
17887 resp. 1 for other kinds. If chunk argument is 0
17888 and not static, set value to 1.
17889
17890 2011-05-19 Jakub Jelinek <jakub@redhat.com>
17891
17892 PR c++/49043
17893 * testsuite/libgomp.c++/pr49043.C: New test.
17894
17895 PR c++/48869
17896 * testsuite/libgomp.c++/pr48869.C: New test.
17897
17898 2011-05-06 Jakub Jelinek <jakub@redhat.com>
17899
17900 PR fortran/48894
17901 * fortran.c: Include limits.h.
17902 (TO_INT): Define.
17903 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
17904 *set.
17905 (omp_set_num_threads_8_, omp_set_schedule_8_,
17906 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
17907 omp_get_team_size_8_): Use TO_INT macro.
17908 * testsuite/libgomp.fortran/pr48894.f90: New test.
17909
17910 2011-04-13 Jakub Jelinek <jakub@redhat.com>
17911
17912 PR middle-end/48591
17913 * testsuite/libgomp.c/pr48591.c: New test.
17914
17915 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17916
17917 PR bootstrap/48135
17918 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
17919 * configure: Regenerate.
17920
17921 2011-02-27 Jakub Jelinek <jakub@redhat.com>
17922
17923 PR fortran/47886
17924 * testsuite/libgomp.fortran/task3.f90: New test.
17925
17926 2011-02-24 Tobias Burnus <burnus@net-b.de>
17927
17928 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
17929
17930 2011-02-23 Jakub Jelinek <jakub@redhat.com>
17931
17932 PR libgomp/47854
17933 * libgomp.texi (omp_get_wtime): Don't say time in the past
17934 must be Unix Epoch.
17935
17936 2011-02-18 Jakub Jelinek <jakub@redhat.com>
17937
17938 PR libgomp/47804
17939 * testsuite/libgomp.fortran/fortran.exp: Check for both
17940 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
17941 but $blddir != "", still append ${blddir}/${lang_library_path}
17942 to ld_library_path.
17943
17944 2011-02-16 Tobias Burnus <burnus@net-b.de>
17945
17946 PR libgomp/47758
17947 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
17948 of libquadmath.a before adding its libpath to ldflags.
17949
17950 2011-02-14 Jakub Jelinek <jakub@redhat.com>
17951
17952 PR libgomp/47731
17953 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
17954 to FUTEX_WAIT futex syscall.
17955 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
17956
17957 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17958
17959 * configure: Regenerate.
17960
17961 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
17962
17963 PR libstdc++/36104
17964 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
17965
17966 2011-01-16 Gerald Pfeifer
17967
17968 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
17969
17970 2010-12-14 Jakub Jelinek <jakub@redhat.com>
17971
17972 PR fortran/46874
17973 * libgomp.fortran/allocatable6.f90: New test.
17974
17975 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17976
17977 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
17978 * configure: Regenerate.
17979
17980 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
17981
17982 PR target/40125
17983 PR lto/46695
17984 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
17985 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
17986 * aclocal.m4: Regenerate.
17987 * configure: Regenerate.
17988 * Makefile.in: Regenerate.
17989 * testsuite/Makefile.in: Regenerate.
17990
17991 2010-12-02 Jakub Jelinek <jakub@redhat.com>
17992
17993 PR fortran/46753
17994 * libgomp.fortran/pr46753.f90: New test.
17995
17996 PR libgomp/43706
17997 * env.c (initialize_env): Default to spin count 300000
17998 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
17999 is specified.
18000
18001 PR libgomp/45240
18002 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
18003 at the end if sync builtins aren't supported.
18004
18005 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18006
18007 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
18008
18009 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18010
18011 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
18012
18013 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
18014
18015 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
18016
18017 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18018 Tobias Burnus <burnus@net-b.de>
18019
18020 PR fortran/32049
18021 * configure.ac:
18022 * configure: Regenerate.
18023
18024 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
18025
18026 * config/linux/futex.h: New.
18027 * config/linux/arm/mutex.h: New.
18028 * configure.tgt (arm*-*-linux*): Add config path.
18029
18030 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
18031
18032 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
18033
18034 2010-09-23 Tobias Burnus <burnus@net-b.de>
18035
18036 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
18037 Change Fortran datatype to LOGICAL.
18038 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
18039 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
18040
18041 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18042
18043 * configure: Regenerate.
18044
18045 2010-07-26 Jakub Jelinek <jakub@redhat.com>
18046
18047 * libgomp.texi: Add function keyword to a couple of Fortran
18048 interfaces, use integer instead of int for Fortran.
18049
18050 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
18051
18052 * libgomp.texi: Fix spelling and pasto problems throughout.
18053 Adjust prototypes to match code.
18054
18055 2010-07-24 Tobias Burnus <burnus@net-b.de>
18056
18057 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
18058 silence -fwhole-file warning.
18059
18060 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18061
18062 * configure.tgt (*-*-solaris2.[56]*): Removed.
18063
18064 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18065
18066 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
18067 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
18068 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
18069 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
18070 targetting solaris2*.
18071 * configure: Regenerate.
18072 * config.h.in: Regenerate.
18073
18074 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
18075 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
18076 Add libgomp_version_dep.
18077 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
18078 versioning.
18079 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
18080 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
18081 * Makefile.in: Regenerate.
18082
18083 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
18084 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
18085 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
18086 to common block, protected by
18087 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
18088
18089 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
18090
18091 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
18092
18093 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
18094
18095 PR bootstrap/43170
18096 * configure: Regenerate.
18097
18098 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18099
18100 PR other/43620
18101 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
18102 * configure: Regenerate.
18103 * Makefile.in: Regenerate.
18104 * testsuite/Makefile.in: Regenerate.
18105
18106 2010-04-26 Jakub Jelinek <jakub@redhat.com>
18107
18108 PR c/43893
18109 * testsuite/libgomp.c/pr43893.c: New test.
18110 * testsuite/libgomp.c++/pr43893.C: New test.
18111
18112 2010-04-21 Jakub Jelinek <jakub@redhat.com>
18113
18114 PR middle-end/43570
18115 * testsuite/libgomp.fortran/vla8.f90: New test.
18116
18117 2010-04-20 Jakub Jelinek <jakub@redhat.com>
18118
18119 PR libgomp/43706
18120 * config/linux/affinity.c (gomp_init_affinity): Decrease
18121 gomp_available_cpus if affinity mask confines the process to fewer
18122 CPUs.
18123 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
18124 non-NULL, just return gomp_available_cpus.
18125
18126 PR libgomp/43569
18127 * sections.c (gomp_sections_init): Initialize ws->mode.
18128
18129 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
18130
18131 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
18132 not unused bar variable.
18133 * configure: Regenerate.
18134
18135 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18136
18137 * Makefile.in: Regenerate.
18138 * aclocal.m4: Regenerate.
18139 * testsuite/Makefile.in: Regenerate.
18140
18141 2010-03-22 Jakub Jelinek <jakub@redhat.com>
18142
18143 PR libgomp/42942
18144 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
18145 (initialize_env): Adjust callers.
18146 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
18147 when the argument is 0.
18148
18149 * testsuite/libgomp.c/pr42942.c: New test.
18150
18151 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
18152
18153 PR middle-end/42644
18154 PR middle-end/42130
18155 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
18156 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
18157
18158 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18159
18160 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
18161 * testsuite/libgomp.c++/task-6.C: Likewise.
18162
18163 2010-01-28 Steve Ellcey <sje@cup.hp.com>
18164
18165 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
18166
18167 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
18168
18169 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
18170 * configure: Regenerate.
18171
18172 2010-01-26 Jakub Jelinek <jakub@redhat.com>
18173
18174 PR fortran/42866
18175 * testsuite/libgomp.fortran/allocatable5.f90: New test.
18176
18177 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
18178
18179 * configure.ac: Test for executability of GFORTRAN.
18180 * configure: Regenerate.
18181
18182 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18183
18184 * configure: Regenerate.
18185
18186 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
18187
18188 PR libgomp/42602
18189 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
18190
18191 2010-01-03 Richard Guenther <rguenther@suse.de>
18192
18193 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
18194
18195 2009-12-23 Sebastian Pop <sebpop@gmail.com>
18196
18197 * testsuite/libgomp.graphite/pr4118.c: New.
18198
18199 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
18200
18201 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
18202 for darwin, protect the test with require-effective-target tls_runtime.
18203 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
18204
18205 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
18206
18207 PR target/41605
18208 * testsuite/lib/libgomp.exp: Provide -B options to allow for
18209 link spec %s substitutions for static libraries.
18210
18211 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
18212
18213 PR testsuite/42135
18214 * libgomp.graphite/force-parallel-2.c: Reduce array size.
18215
18216 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18217
18218 * Makefile.in: Regenerate.
18219 * configure: Regenerate.
18220 * testsuite/Makefile.in: Regenerate.
18221
18222 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
18223
18224 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
18225 settings for LC_ALL and LANG.
18226
18227 2009-11-25 Jakub Jelinek <jakub@redhat.com>
18228
18229 PR fortran/42162
18230 * testsuite/libgomp.fortran/pr42162.f90: New test.
18231
18232 2009-11-13 Jakub Jelinek <jakub@redhat.com>
18233
18234 PR middle-end/42029
18235 * testsuite/libgomp.c/pr42029.c: New test.
18236
18237 2009-10-26 Jakub Jelinek <jakub@redhat.com>
18238
18239 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
18240 *s. Accept ld version without text in ()s.
18241 * configure: Regenerated.
18242
18243 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
18244
18245 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
18246
18247 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18248
18249 PR libgomp/41418
18250 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
18251 or a hyphen (happens with fortran language disabled).
18252 * configure: Regenerate.
18253
18254 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18255
18256 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
18257 use sed script portable to Solaris /bin/sed for extracting ld
18258 version.
18259 * configure: Regenerate.
18260
18261 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
18262
18263 * testsuite/libgomp.graphite/bounds.c: New test.
18264
18265 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18266
18267 * Makefile.am (libgomp_la_LINK): New.
18268 * Makefile.in: Regenerate.
18269
18270 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18271
18272 * configure.ac (AC_PREREQ): Bump to 2.64.
18273
18274 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18275
18276 * Makefile.am (install-html, install-pdf): Remove.
18277 * Makefile.in: Regenerate.
18278
18279 * Makefile.in: Regenerate.
18280 * aclocal.m4: Regenerate.
18281 * config.h.in: Regenerate.
18282 * configure: Regenerate.
18283 * testsuite/Makefile.in: Regenerate.
18284
18285 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18286
18287 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
18288 * Makefile.in: Regenerate.
18289
18290 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
18291
18292 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
18293 * Makefile.in: Regenerate.
18294
18295 2009-08-19 Tobias Burnus <burnus@net-b.de>
18296
18297 PR fortran/41102
18298 omp_lib.h.in: Fix -std=f95 errors.
18299
18300 2009-08-14 David Edelsohn <edelsohn@gnu.org>
18301
18302 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
18303 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
18304 * testsuite/libgomp.graphite/graphite.exp: New.
18305
18306 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
18307
18308 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
18309 only build.
18310
18311 2009-08-04 David Daney <ddaney@caviumnetworks.com>
18312
18313 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
18314 needed memory barrier semantics.
18315 * config/linux/mips/mutex.h: New file.
18316
18317 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18318
18319 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
18320
18321 2009-07-16 Joseph Myers <joseph@codesourcery.com>
18322
18323 * configure: Regenerate.
18324
18325 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
18326
18327 PR testsuite/40699
18328 PR testsuite/40707
18329 PR testsuite/40709
18330 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
18331 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
18332 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
18333
18334 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
18335
18336 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
18337 options when choosing a multilib.
18338
18339 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
18340
18341 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
18342 ld_library_path. Use add_path. Add just find_libgcc_s to
18343 ld_library_path, not every libgcc multilib directory.
18344 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
18345 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
18346 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
18347 Use add_path.
18348 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
18349
18350 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
18351
18352 * Makefile.am (LTLDFLAGS): Define.
18353 (LINK): Define.
18354 * Makefile.in: Regenerate.
18355
18356 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
18357
18358 PR fortran/39718
18359 * testsuite/libgomp.fortran/fortran.exp: Don't link with
18360 libgfortranbegin, check existence of libgfortran.a instead of
18361 libgfortranbegin.a.
18362
18363 2009-05-20 Jakub Jelinek <jakub@redhat.com>
18364
18365 PR libgomp/40174
18366 * team.c (gomp_thread_start): Destroy thr->release semaphore.
18367 (gomp_free_pool_helper): Likewise.
18368
18369 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
18370 Jakub Jelinek <jakub@redhat.com>
18371
18372 PR fortran/35423
18373 * testsuite/libgomp.fortran/workshare2.f90: New test.
18374
18375 2009-04-09 Nick Clifton <nickc@redhat.com>
18376
18377 * iter.c: Change copyright header to refer to version 3 of the
18378 GNU General Public License with version 3.1 of the GCC Runtime
18379 Library Exception and to point readers at the COPYING3 and
18380 COPYING3.RUNTIME files and the FSF's license web page.
18381 * alloc.c: Likewise.
18382 * barrier.c: Likewise.
18383 * config/bsd/proc.c: Likewise.
18384 * config/linux/affinity.c: Likewise.
18385 * config/linux/alpha/futex.h: Likewise.
18386 * config/linux/bar.c: Likewise.
18387 * config/linux/bar.h: Likewise.
18388 * config/linux/ia64/futex.h: Likewise.
18389 * config/linux/ia64/mutex.h: Likewise.
18390 * config/linux/lock.c: Likewise.
18391 * config/linux/mips/futex.h: Likewise.
18392 * config/linux/mutex.c: Likewise.
18393 * config/linux/mutex.h: Likewise.
18394 * config/linux/powerpc/futex.h: Likewise.
18395 * config/linux/proc.c: Likewise.
18396 * config/linux/ptrlock.c: Likewise.
18397 * config/linux/ptrlock.h: Likewise.
18398 * config/linux/s390/futex.h: Likewise.
18399 * config/linux/sem.c: Likewise.
18400 * config/linux/sem.h: Likewise.
18401 * config/linux/sparc/futex.h: Likewise.
18402 * config/linux/wait.h: Likewise.
18403 * config/linux/x86/futex.h: Likewise.
18404 * config/mingw32/proc.c: Likewise.
18405 * config/mingw32/time.c: Likewise.
18406 * config/posix/affinity.c: Likewise.
18407 * config/posix/bar.c: Likewise.
18408 * config/posix/bar.h: Likewise.
18409 * config/posix/lock.c: Likewise.
18410 * config/posix/mutex.h: Likewise.
18411 * config/posix/proc.c: Likewise.
18412 * config/posix/ptrlock.h: Likewise.
18413 * config/posix/sem.c: Likewise.
18414 * config/posix/sem.h: Likewise.
18415 * config/posix/time.c: Likewise.
18416 * config/posix95/lock.c: Likewise.
18417 * critical.c: Likewise.
18418 * env.c: Likewise.
18419 * error.c: Likewise.
18420 * fortran.c: Likewise.
18421 * iter_ull.c: Likewise.
18422 * libgomp.h: Likewise.
18423 * libgomp_f.h.in: Likewise.
18424 * libgomp_g.h: Likewise.
18425 * loop.c: Likewise.
18426 * loop_ull.c: Likewise.
18427 * omp.h.in: Likewise.
18428 * omp_lib.f90.in: Likewise.
18429 * omp_lib.h.in: Likewise.
18430 * ordered.c: Likewise.
18431 * parallel.c: Likewise.
18432 * sections.c: Likewise.
18433 * single.c: Likewise.
18434 * task.c: Likewise.
18435 * team.c: Likewise.
18436 * work.c: Likewise.
18437
18438 2009-04-09 Jakub Jelinek <jakub@redhat.com>
18439
18440 * testsuite/config/default.exp: Change copyright header to refer to
18441 version 3 of the GNU General Public License and to point readers
18442 at the COPYING3 file and the FSF's license web page.
18443
18444 2009-04-08 Jakub Jelinek <jakub@redhat.com>
18445
18446 PR middle-end/39573
18447 * libgomp.c++/pr39573.C: New test.
18448
18449 2009-04-01 Jakub Jelinek <jakub@redhat.com>
18450
18451 PR other/39591
18452 * testsuite/libgomp.c/pr39591-1.c: New test.
18453 * testsuite/libgomp.c/pr39591-2.c: New test.
18454 * testsuite/libgomp.c/pr39591-3.c: New test.
18455
18456 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
18457
18458 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
18459 * testsuite/libgomp.c/atomic-6.c: Ditto.
18460
18461 2009-03-23 Jakub Jelinek <jakub@redhat.com>
18462
18463 PR c/39495
18464 * testsuite/libgomp.c/loop-12.c: New test.
18465 * testsuite/libgomp.c/loop-11.c: New test.
18466 * testsuite/libgomp.c++/loop-11.C: New test.
18467 * testsuite/libgomp.c++/loop-12.C: New test.
18468 * testsuite/libgomp.c++/for-8.C: New test.
18469
18470 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18471
18472 * configure: Regenerate.
18473
18474 2009-02-11 Jakub Jelinek <jakub@redhat.com>
18475
18476 PR middle-end/39154
18477 * testsuite/libgomp.c/pr39154.c: New test.
18478
18479 2009-01-30 Ian Lance Taylor <iant@google.com>
18480
18481 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
18482 libgomp_ld_is_gold. Get gold version number.
18483 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
18484 * configure: Rebuild.
18485
18486 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
18487
18488 * testsuite/lib/libgomp.exp: Add -B option for targets that
18489 use libgfortran.a%s in their specs.
18490
18491 2009-01-07 Jakub Jelinek <jakub@redhat.com>
18492
18493 PR libgomp/38086
18494 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
18495 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
18496 HAVE_AS_SYMVER_DIRECTIVE is not defined.
18497 * configure: Regenerated.
18498 * config.h.in: Likewise.
18499
18500 2008-12-28 Jakub Jelinek <jakub@redhat.com>
18501
18502 PR c++/38650
18503 * testsuite/libgomp.c/pr38650.c: New test.
18504 * testsuite/libgomp.c++/pr38650.C: New test.
18505
18506 2008-12-27 Jakub Jelinek <jakub@redhat.com>
18507
18508 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
18509
18510 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
18511
18512 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
18513
18514 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18515
18516 * configure: Regenerate.
18517
18518 2008-12-08 Jakub Jelinek <jakub@redhat.com>
18519
18520 PR middle-end/36802
18521 * testsuite/libgomp.c/pr36802-1.c: New test.
18522 * testsuite/libgomp.c/pr36802-2.c: New test.
18523 * testsuite/libgomp.c/pr36802-3.c: New test.
18524
18525 2008-12-01 Janis Johnson <janis187@us.ibm.com>
18526
18527 PR libgomp/38270
18528 * config/linux/powerpc/mutex.h: New.
18529
18530 2008-12-01 Jakub Jelinek <jakub@redhat.com>
18531
18532 PR c++/38257
18533 * testsuite/libgomp.c++/for-7.C: New test.
18534
18535 PR c++/38348
18536 * testsuite/libgomp.c++/for-6.C: New test.
18537
18538 2008-11-26 Janis Johnson <janis187@us.ibm.com>
18539
18540 PR testsuite/28870
18541 * testsuite/lib/libgomp.exp: Include new timeout library files.
18542 (libgomp_target_compile): Set timeout value from new proc.
18543
18544 2008-11-13 Steve Ellcey <sje@cup.hp.com>
18545
18546 PR libgomp/37938
18547 * config/linux/ia64/mutex.h: New.
18548
18549 2008-11-04 Tobias Burnus <burnus@net-b.de>
18550
18551 PR libgomp/37935
18552 * libgomp.texi (Runtime library routines, environment variables):
18553 Update for OpenMP version 3.0.
18554
18555 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
18556 Steve Ellcey <sje@cup.hp.com>
18557
18558 * configure: Regenerate for new libtool.
18559 * Makefile.in: Ditto.
18560 * testsuite/Makefile.in: Ditto.
18561
18562 2008-09-19 Jakub Jelinek <jakub@redhat.com>
18563 Andreas Tobler <a.tobler@schweiz.org>
18564
18565 * config/bsd/proc.c: New file.
18566 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
18567 * configure.ac: Check for header <sys/sysctl.h>
18568 * configure: Regenerate.
18569 * config.h.in: Likewise.
18570
18571 2008-09-05 Janis Johnson <janis187@us.ibm.com>
18572
18573 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
18574
18575 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
18576
18577 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
18578 * Makefile.in: Regenerated.
18579 * testsuite/Makefile.in: Regenerated.
18580
18581 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
18582
18583 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
18584 depend on blddir if blddir exists.
18585 (libgomp_target_compile): Likewise.
18586 * testsuite/libgomp.c++/c++.exp: Likewise.
18587 * testsuite/libgomp.fortran/fortran.exp: Likewise.
18588
18589 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18590
18591 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
18592 Do not list GPL as Invariant Section.
18593
18594 2008-07-28 Ilie Garbacea <ilie@mips.com>
18595 Chao-ying Fu <fu@mips.com>
18596
18597 * configure.tgt: Enable futex for MIPS.
18598 * config/linux/mips/futex.h: New file.
18599
18600 2008-07-16 Jakub Jelinek <jakub@redhat.com>
18601
18602 * team.c (gomp_team_end): Free team immediately if it has
18603 just one thread.
18604
18605 2008-07-08 David Edelsohn <edelsohn@gnu.org>
18606
18607 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
18608 * testsuite/libgomp.fortran/fortran.exp: Same.
18609 * testsuite/libgomp.c/c.exp: Same.
18610 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
18611 directory to library path first.
18612
18613 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
18614
18615 * env.c (parse_stacksize): Add cast to avoid warning.
18616 (parse_spincount): Likewise.
18617
18618 2008-06-27 Jakub Jelinek <jakub@redhat.com>
18619
18620 * testsuite/libgomp.c/loop-10.c: New test.
18621 * libgomp.c/loop-3.c (main): Add lastprivate clause.
18622 * libgomp.c++/loop-6.C (main): Likewise.
18623
18624 PR debug/36617
18625 * testsuite/libgomp.c/debug-1.c: New test.
18626
18627 2008-06-19 Jakub Jelinek <jakub@redhat.com>
18628
18629 * testsuite/libgomp.c/nqueens-1.c: New test.
18630
18631 PR c++/36523
18632 * testsuite/libgomp.c++/task-7.C: New function.
18633
18634 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18635
18636 * configure: Regenerate.
18637
18638 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18639
18640 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
18641 mutex when HAVE_SYNC_BUILTINS isn't defined.
18642
18643 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18644
18645 * libgomp.texi (omp_test_lock): Fix typo.
18646
18647 2008-06-12 Tobias Burnus <burnus@net-b.de>
18648
18649 * omp_lib.f90.in: Add "implicit none".
18650
18651 2008-06-12 Jakub Jelinek <jakub@redhat.com>
18652
18653 PR middle-end/36506
18654 * testsuite/libgomp.c/reduction-5.c: New test.
18655
18656 2008-06-11 Jakub Jelinek <jakub@redhat.com>
18657
18658 * libgomp.h (struct gomp_task): Add in_tied_task field.
18659 * task.c (gomp_init_task): Initialize it.
18660 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
18661 unconditionally. Don't call gomp_team_barrier_wake if
18662 current task is implicit or if(0) from implicit and number of
18663 running tasks is equal to nthreads - 1.
18664
18665 PR libgomp/36471
18666 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
18667 omp_get_team_size_8): Fix pastos.
18668
18669 PR libgomp/36469
18670 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
18671 * configure: Regenerated.
18672 * config.h.in: Regenerated.
18673 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
18674 defined.
18675
18676 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
18677
18678 PR bootstrap/36452
18679 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
18680 (GOMP_loop_ull_dynamic_start): Likewise.
18681 (GOMP_loop_ull_guided_start): Likewise.
18682 (GOMP_loop_ull_ordered_static_start): Likewise.
18683 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
18684 (GOMP_loop_ull_ordered_guided_start): Likewise.
18685
18686 2008-06-06 Jakub Jelinek <jakub@redhat.com>
18687 Richard Henderson <rth@redhat.com>
18688 Ulrich Drepper <drepper@redhat.com>
18689 Jakob Blomer <jakob.blomer@ira.uka.de>
18690
18691 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
18692 Substitute also OMP_*LOCK_25*.
18693 * configure: Regenerated.
18694 * config.h.in: Regenerated.
18695 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
18696 ptrlock.c and task.c.
18697 * Makefile.in: Regenerated.
18698 * testsuite/Makefile.in: Regenerated.
18699 * task.c: New file.
18700 * loop_ull.c: New file.
18701 * iter_ull.c: New file.
18702 * libgomp.h: Include ptrlock.h.
18703 (enum gomp_task_kind): New type.
18704 (struct gomp_team): Add task_lock, task_queue, task_count,
18705 task_running_count, single_count fields. Add
18706 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
18707 Remove work_share_lock, generation_mask,
18708 oldest_live_gen, num_live_gen and init_work_shares fields, add
18709 work work_share_list_alloc, work_share_list_free and work_share_chunk
18710 fields. Change work_shares from pointer to pointers into an array.
18711 Change ordered_release field into gomp_sem_t ** from flexible array
18712 member. Add implicit_task and initial_work_shares fields.
18713 Move close to the end of the struct.
18714 (struct gomp_team_state): Add single_count, last_work_share,
18715 active_level and level fields, remove work_share_generation.
18716 (gomp_barrier_handle_tasks): New prototype.
18717 (gomp_finish_task): New inline function.
18718 (struct gomp_work_share): Move chunk_size, end, incr into
18719 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
18720 next_ll fields. Reshuffle fields. Add next_alloc,
18721 next_ws, next_free and inline_ordered_team_ids fields, change
18722 ordered_team_ids into pointer from flexible array member.
18723 Add mode field. Put lock and next into a different cache line
18724 from most of the write-once fields.
18725 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
18726 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
18727 gomp_iter_ull_guided_next): New prototypes.
18728 (gomp_new_icv): New prototype.
18729 (struct gomp_thread): Add thread_pool and task fields.
18730 (struct gomp_thread_pool): New type.
18731 (gomp_new_team): New prototype.
18732 (gomp_team_start): Change type of last argument.
18733 (gomp_new_work_share): Removed.
18734 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
18735 (gomp_work_share_init_done): New static inline.
18736 (gomp_throttled_spin_count_var, gomp_available_cpus,
18737 gomp_managed_threads): New extern decls.
18738 (gomp_init_task): New prototype.
18739 (gomp_spin_count_var): New extern var decl.
18740 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
18741 or no alias support, or if not PIC.
18742 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
18743 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
18744 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
18745 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
18746 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
18747 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
18748 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
18749 gomp_test_nest_lock_25): New prototypes.
18750 (omp_lock_symver, strong_alias): Define.
18751 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
18752 decls.
18753 (gomp_end_task): New.
18754 (struct gomp_task_icv, gomp_global_icv): New.
18755 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
18756 (struct gomp_task): New.
18757 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
18758 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
18759 (gomp_icv): New.
18760 (gomp_schedule_type): Reorder enum to match
18761 omp_sched_t.
18762 * team.c (struct gomp_thread_start_data): Add thread_pool and task
18763 fields.
18764 (gomp_thread_start): Add gomp_team_barrier_wait call.
18765 For non-nested case remove clearing of docked thread thr fields.
18766 Use pool fields instead of global gomp_* variables. Use
18767 gomp_barrier_wait_last when needed. Initialize ts.active_level.
18768 Create tasks for each member thread.
18769 (free_team): Only destroy team barrier, task_lock here and free it.
18770 (gomp_free_thread): Free last_team if non-NULL.
18771 (gomp_team_end): Call gomp_team_barrier_wait instead of
18772 gomp_barrier_wait. For nested case call one extra
18773 gomp_barrier_wait. Move here some destruction from free_team.
18774 Call free_team on pool->last_team if any, rather than freeing
18775 current team. Destroy work_share_list_free_lock ifndef
18776 HAVE_SYNC_BUILTINS.
18777 (gomp_new_icv): New function.
18778 (gomp_threads, gomp_threads_size, gomp_threads_used,
18779 gomp_threads_dock): Removed.
18780 (gomp_thread_destructor): New variable.
18781 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
18782 functions.
18783 (gomp_team_start): Create new pool if current thread doesn't have
18784 one. Use pool fields instead of global gomp_* variables.
18785 Initialize thread_pool field for new threads. Clear single_count.
18786 Change last argument from ws to team, don't create
18787 new team, set ts.work_share to &team->work_shares[0] and clear
18788 ts.last_work_share. Don't clear ts.work_share_generation.
18789 If number of threads changed, adjust atomically gomp_managed_threads.
18790 Use gomp_init_task instead of gomp_new_task,
18791 set thr->task to the corresponding implicit_task array entry.
18792 Create tasks for each member thread. Initialize ts.level.
18793 (initialize_team): Call pthread_key_create on
18794 gomp_thread_destructor.
18795 (team_destructor): New function.
18796 (new_team): Removed.
18797 (gomp_new_team): New function.
18798 (free_team): Free gomp_work_share blocks chained through next_alloc,
18799 instead of freeing work_shares and destroying work_share_lock.
18800 (gomp_team_end): Call gomp_fini_work_share. If number of threads
18801 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
18802 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
18803 of gomp_barrier_wait.
18804 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
18805 instead of gomp_barrier_wait. Call gomp_work_share_init_done
18806 if gomp_work_share_start returned true. Don't unlock ws->lock.
18807 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
18808 of gomp_barrier_wait.
18809 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
18810 gomp_work_share_init_done if gomp_work_share_start returned true.
18811 Don't unlock ws->lock.
18812 * work.c: Include stddef.h.
18813 (free_work_share): Use work_share_list_free_lock instead
18814 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
18815 Call gomp_fini_work_share and then either free ws if orphaned, or
18816 put it into work_share_list_free list of the current team.
18817 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
18818 functions.
18819 (gomp_work_share_start, gomp_work_share_end,
18820 gomp_work_share_end_nowait): Rewritten.
18821 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
18822 (openmp_version): Set to 200805.
18823 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18824 omp_sched_guided, omp_sched_auto): New parameters.
18825 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18826 omp_set_max_active_levels, omp_get_max_active_levels,
18827 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18828 omp_get_active_level): New interfaces.
18829 * omp_lib.h.in (openmp_version): Set to 200805.
18830 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18831 omp_sched_guided, omp_sched_auto): New parameters.
18832 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18833 omp_set_max_active_levels, omp_get_max_active_levels,
18834 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18835 omp_get_active_level): New externals.
18836 * loop.c: Include limits.h.
18837 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
18838 GFS_AUTO.
18839 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
18840 Likewise. Use gomp_icv.
18841 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
18842 ts.static_trip here.
18843 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
18844 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
18845 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
18846 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
18847 don't unlock ws->lock, otherwise lock it.
18848 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
18849 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
18850 (gomp_parallel_loop_start): Call gomp_new_team instead of
18851 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
18852 Adjust gomp_team_start caller. Pass 0 as second argument to
18853 gomp_resolve_num_threads.
18854 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
18855 If adding ws->chunk_size nthreads + 1 times after end won't
18856 overflow, set ws->mode to 1.
18857 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
18858 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
18859 GOMP_loop_ull_ordered_static_start,
18860 GOMP_loop_ull_ordered_dynamic_start,
18861 GOMP_loop_ull_ordered_guided_start,
18862 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
18863 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
18864 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
18865 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
18866 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
18867 prototypes.
18868 * libgomp.map: Export lock routines also @@OMP_2.0.
18869 (GOMP_loop_ordered_dynamic_first,
18870 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
18871 GOMP_loop_ordered_static_first): Remove.
18872 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
18873 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
18874 GOMP_loop_ull_ordered_dynamic_next,
18875 GOMP_loop_ull_ordered_dynamic_start,
18876 GOMP_loop_ull_ordered_guided_next,
18877 GOMP_loop_ull_ordered_guided_start,
18878 GOMP_loop_ull_ordered_runtime_next,
18879 GOMP_loop_ull_ordered_runtime_start,
18880 GOMP_loop_ull_ordered_static_next,
18881 GOMP_loop_ull_ordered_static_start,
18882 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
18883 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
18884 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
18885 (omp_set_schedule, omp_get_schedule,
18886 omp_get_thread_limit, omp_set_max_active_levels,
18887 omp_get_max_active_levels, omp_get_level,
18888 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
18889 omp_set_schedule_, omp_set_schedule_8_,
18890 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
18891 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
18892 omp_get_max_active_levels_, omp_get_level_,
18893 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
18894 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
18895 New exports @@OMP_3.0.
18896 * omp.h.in (omp_sched_t): New type.
18897 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18898 omp_set_max_active_levels, omp_get_max_active_levels,
18899 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18900 omp_get_active_level): New prototypes.
18901 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
18902 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
18903 gomp_thread_limit_var, gomp_remaining_threads_count,
18904 gomp_remaining_threads_lock): New variables.
18905 (parse_spincount): New function.
18906 (initialize_env): Call gomp_init_num_threads unconditionally.
18907 Initialize gomp_available_cpus. Call parse_spincount,
18908 initialize gomp_{,throttled_}spin_count_var
18909 depending on presence and value of OMP_WAIT_POLICY and
18910 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
18911 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
18912 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
18913 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
18914 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
18915 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
18916 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
18917 (gomp_global_icv): New.
18918 (parse_schedule): Use it. Parse "auto".
18919 (omp_set_num_threads): Use gomp_icv.
18920 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
18921 Likewise.
18922 (omp_get_max_threads): Move from parallel.c.
18923 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18924 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
18925 add ialias.
18926 (parse_stacksize, parse_wait_policy): New functions.
18927 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
18928 both wrappers for compatibility and new locks.
18929 (omp_set_schedule, omp_get_schedule,
18930 omp_get_thread_limit, omp_set_max_active_levels,
18931 omp_get_max_active_levels, omp_get_level,
18932 omp_get_ancestor_thread_num, omp_get_team_size,
18933 omp_get_active_level): New ialias_redirect.
18934 (omp_set_schedule_, omp_set_schedule_8_,
18935 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
18936 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
18937 omp_get_max_active_levels_, omp_get_level_,
18938 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
18939 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
18940 New functions.
18941 * parallel.c: Include limits.h.
18942 (gomp_resolve_num_threads): Add count argument. Rewritten.
18943 (GOMP_parallel_start): Call gomp_new_team and pass that as last
18944 argument to gomp_team_start. Pass 0 as second argument to
18945 gomp_resolve_num_threads.
18946 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
18947 if gomp_thread_limit_var != ULONG_MAX.
18948 (omp_in_parallel): Implement using ts.active_level.
18949 (omp_get_max_threads): Move to env.c.
18950 (omp_get_level, omp_get_ancestor_thread_num,
18951 omp_get_team_size, omp_get_active_level): New functions,
18952 add ialias.
18953 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
18954 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
18955 gomp_iter_dynamic_next instead of the _locked variant and don't take
18956 lock around it, otherwise acquire it before calling
18957 gomp_iter_dynamic_next_locked.
18958 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
18959 gomp_iter_dynamic_next instead of the _locked variant and don't take
18960 lock around it.
18961 (GOMP_parallel_sections_start): Call gomp_new_team instead of
18962 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
18963 Adjust gomp_team_start caller. Pass count as second argument to
18964 gomp_resolve_num_threads, don't adjust num_threads after the call.
18965 Use gomp_icv.
18966 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
18967 ws->chunk_size by incr.
18968 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
18969 code.
18970 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
18971 types.
18972 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
18973 (omp_check_defines): Check even the compat defines.
18974 * config/linux/ptrlock.c: New file.
18975 * config/linux/ptrlock.h: New file.
18976 * config/linux/wait.h: New file.
18977 * config/posix/ptrlock.c: New file.
18978 * config/posix/ptrlock.h: New file.
18979 * config/linux/bar.h (gomp_team_barrier_wait,
18980 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
18981 (gomp_team_barrier_set_task_pending,
18982 gomp_team_barrier_clear_task_pending,
18983 gomp_team_barrier_set_waiting_for_tasks,
18984 gomp_team_barrier_waiting_for_tasks,
18985 gomp_team_barrier_done): New inlines.
18986 (gomp_barrier_t): Rewritten.
18987 (gomp_barrier_state_t): New typedef.
18988 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
18989 gomp_barrier_wait_start): Rewritten.
18990 (gomp_barrier_wait_end): Change second argument to
18991 gomp_barrier_state_t.
18992 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
18993 inlines.
18994 * config/linux/bar.c: Include wait.h instead of libgomp.h and
18995 futex.h.
18996 (gomp_barrier_wait_end): Rewritten.
18997 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
18998 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
18999 * config/posix/bar.h (gomp_barrier_t): Add generation field.
19000 (gomp_barrier_state_t): New typedef.
19001 (gomp_team_barrier_wait,
19002 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
19003 (gomp_barrier_wait_start): Or all but low 2 bits from generation
19004 into the return value. Return gomp_barrier_state_t.
19005 (gomp_team_barrier_set_task_pending,
19006 gomp_team_barrier_clear_task_pending,
19007 gomp_team_barrier_set_waiting_for_tasks,
19008 gomp_team_barrier_waiting_for_tasks,
19009 gomp_team_barrier_done): New inlines.
19010 (gomp_barrier_wait_end): Change second argument to
19011 gomp_barrier_state_t.
19012 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
19013 inlines.
19014 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
19015 (gomp_barrier_wait_end): Change second argument to
19016 gomp_barrier_state_t.
19017 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
19018 gomp_team_barrier_wake): New functions.
19019 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
19020 futex.h.
19021 (gomp_futex_wake, gomp_futex_wait): New variables.
19022 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
19023 * config/linux/lock.c: Rewrite to make locks task owned,
19024 for backwards compatibility provide the old entrypoints
19025 if symbol versioning. Include wait.h instead of libgomp.h and
19026 futex.h.
19027 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
19028 * config/posix95/lock.c: Rewrite to make locks task owned,
19029 for backwards compatibility provide the old entrypoints
19030 if symbol versioning.
19031 * config/posix/lock.c: Rewrite to make locks task owned,
19032 for backwards compatibility provide the old entrypoints
19033 if symbol versioning.
19034 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
19035 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
19036 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
19037 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19038 (sys_futex0): Return error code.
19039 (futex_wake, futex_wait): If ENOSYS was returned, clear
19040 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19041 (cpu_relax, atomic_write_barrier): New static inlines.
19042 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19043 (futex_wake, futex_wait): If ENOSYS was returned, clear
19044 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19045 (cpu_relax, atomic_write_barrier): New static inlines.
19046 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19047 (sys_futex0): Return error code.
19048 (futex_wake, futex_wait): If ENOSYS was returned, clear
19049 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19050 (cpu_relax, atomic_write_barrier): New static inlines.
19051 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19052 (sys_futex0): Return error code.
19053 (futex_wake, futex_wait): If ENOSYS was returned, clear
19054 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19055 (cpu_relax, atomic_write_barrier): New static inlines.
19056 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19057 (sys_futex0): Return error code.
19058 (futex_wake, futex_wait): If ENOSYS was returned, clear
19059 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19060 (cpu_relax, atomic_write_barrier): New static inlines.
19061 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19062 (sys_futex0): Return error code.
19063 (futex_wake, futex_wait): If ENOSYS was returned, clear
19064 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19065 (cpu_relax, atomic_write_barrier): New static inlines.
19066 * config/linux/sem.c: Include wait.h instead of libgomp.h and
19067 futex.h.
19068 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
19069 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
19070 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
19071 types.
19072 (omp_nest_lock_t): Change owner into void *, add lock field.
19073 * config/posix95/omp-lock.h: Include semaphore.h.
19074 (omp_lock_25_t, omp_nest_lock_25_t): New types.
19075 (omp_lock_t): Use sem_t instead of mutex if semaphores
19076 aren't broken.
19077 (omp_nest_lock_t): Likewise. Change owner to void *.
19078 * config/posix/omp-lock.h: Include semaphore.h.
19079 (omp_lock_25_t, omp_nest_lock_25_t): New types.
19080 (omp_lock_t): Use sem_t instead of mutex if semaphores
19081 aren't broken.
19082 (omp_nest_lock_t): Likewise. Add owner field.
19083
19084 2008-06-06 Jakub Jelinek <jakub@redhat.com>
19085
19086 * testsuite/libgomp.c/collapse-1.c: New test.
19087 * testsuite/libgomp.c/collapse-2.c: New test.
19088 * testsuite/libgomp.c/collapse-3.c: New test.
19089 * testsuite/libgomp.c/icv-1.c: New test.
19090 * testsuite/libgomp.c/icv-2.c: New test.
19091 * testsuite/libgomp.c/lib-2.c: New test.
19092 * testsuite/libgomp.c/lock-1.c: New test.
19093 * testsuite/libgomp.c/lock-2.c: New test.
19094 * testsuite/libgomp.c/lock-3.c: New test.
19095 * testsuite/libgomp.c/loop-4.c: New test.
19096 * testsuite/libgomp.c/loop-5.c: New test.
19097 * testsuite/libgomp.c/loop-6.c: New test.
19098 * testsuite/libgomp.c/loop-7.c: New test.
19099 * testsuite/libgomp.c/loop-8.c: New test.
19100 * testsuite/libgomp.c/loop-9.c: New test.
19101 * testsuite/libgomp.c/nested-3.c: New test.
19102 * testsuite/libgomp.c/nestedfn-6.c: New test.
19103 * testsuite/libgomp.c/sort-1.c: New test.
19104 * testsuite/libgomp.c/task-1.c: New test.
19105 * testsuite/libgomp.c/task-2.c: New test.
19106 * testsuite/libgomp.c/task-3.c: New test.
19107 * testsuite/libgomp.c/task-4.c: New test.
19108 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
19109 to C++ testsuite default compiler options.
19110 * testsuite/libgomp.c++/collapse-1.C: New test.
19111 * testsuite/libgomp.c++/collapse-2.C: New test.
19112 * testsuite/libgomp.c++/ctor-10.C: New test.
19113 * testsuite/libgomp.c++/for-1.C: New test.
19114 * testsuite/libgomp.c++/for-2.C: New test.
19115 * testsuite/libgomp.c++/for-3.C: New test.
19116 * testsuite/libgomp.c++/for-4.C: New test.
19117 * testsuite/libgomp.c++/for-5.C: New test.
19118 * testsuite/libgomp.c++/loop-8.C: New test.
19119 * testsuite/libgomp.c++/loop-9.C: New test.
19120 * testsuite/libgomp.c++/loop-10.C: New test.
19121 * testsuite/libgomp.c++/task-1.C: New test.
19122 * testsuite/libgomp.c++/task-2.C: New test.
19123 * testsuite/libgomp.c++/task-3.C: New test.
19124 * testsuite/libgomp.c++/task-4.C: New test.
19125 * testsuite/libgomp.c++/task-5.C: New test.
19126 * testsuite/libgomp.c++/task-6.C: New test.
19127 * testsuite/libgomp.fortran/allocatable1.f90: New test.
19128 * testsuite/libgomp.fortran/allocatable2.f90: New test.
19129 * testsuite/libgomp.fortran/allocatable3.f90: New test.
19130 * testsuite/libgomp.fortran/allocatable4.f90: New test.
19131 * testsuite/libgomp.fortran/collapse1.f90: New test.
19132 * testsuite/libgomp.fortran/collapse2.f90: New test.
19133 * testsuite/libgomp.fortran/collapse3.f90: New test.
19134 * testsuite/libgomp.fortran/collapse4.f90: New test.
19135 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
19136 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
19137 * testsuite/libgomp.fortran/lib4.f90: New test.
19138 * testsuite/libgomp.fortran/lock-1.f90: New test.
19139 * testsuite/libgomp.fortran/lock-2.f90: New test.
19140 * testsuite/libgomp.fortran/nested1.f90: New test.
19141 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
19142 * testsuite/libgomp.fortran/strassen.f90: New test.
19143 * testsuite/libgomp.fortran/tabs1.f90: New test.
19144 * testsuite/libgomp.fortran/tabs2.f: New test.
19145 * testsuite/libgomp.fortran/task1.f90: New test.
19146 * testsuite/libgomp.fortran/task2.f90: New test.
19147 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
19148 * testsuite/libgomp.fortran/vla5.f90: Likewise.
19149 * testsuite/libgomp.c/pr26943-2.c: Likewise.
19150 * testsuite/libgomp.c/pr26943-3.c: Likewise.
19151 * testsuite/libgomp.c/pr26943-4.c: Likewise.
19152
19153 2008-05-23 Jakub Jelinek <jakub@redhat.com>
19154
19155 PR c++/36308
19156 * testsuite/libgomp.c++/ctor-11.C: New test.
19157 * testsuite/libgomp.c++/ctor-12.C: New test.
19158
19159 2008-05-15 Janis Johnson <janis187@us.ibm.com>
19160
19161 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
19162
19163 2008-05-07 Jakub Jelinek <jakub@redhat.com>
19164
19165 PR middle-end/36106
19166 * testsuite/libgomp.c/atomic-5.c: New test.
19167 * testsuite/libgomp.c/atomic-6.c: New test.
19168 * testsuite/libgomp.c/autopar-1.c: New test.
19169
19170 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19171
19172 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
19173 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
19174 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
19175 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
19176 * configure: Regenerate.
19177 * Makefile.in, testsuite/Makefile.in: Likewise.
19178
19179 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
19180
19181 PR bootstrap/35457
19182 * aclocal.m4: Regenerate.
19183 * configure: Regenerate.
19184
19185 2008-03-18 Jakub Jelinek <jakub@redhat.com>
19186
19187 PR middle-end/35611
19188 * testsuite/libgomp.c/atomic-4.c: New test.
19189
19190 PR libgomp/35625
19191 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
19192 (gomp_iter_guided_next): Likewise.
19193 * testsuite/libgomp.c/pr35625.c: New test.
19194
19195 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19196
19197 * aclocal.m4: Regenerate.
19198 * configure: Likewise.
19199 * Makefile.in: Likewise.
19200 * testsuite/Makefile.in: Likewise.
19201
19202 2008-03-13 Jakub Jelinek <jakub@redhat.com>
19203
19204 PR middle-end/35185
19205 * testsuite/libgomp.c++/pr35185.C: New test.
19206
19207 2008-03-12 Jakub Jelinek <jakub@redhat.com>
19208
19209 PR middle-end/35549
19210 * testsuite/libgomp.c/pr35549.c: New test.
19211
19212 2008-03-06 Jakub Jelinek <jakub@redhat.com>
19213
19214 * testsuite/libgomp.c/atomic-3.c: New test.
19215
19216 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
19217
19218 PR fortran/33197
19219 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
19220 .F08 file suffixes.
19221
19222 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
19223
19224 PR libgomp/33131
19225 * configure.ac: Add ACX_HEADER_STRING.
19226 * env.c: Include strings.h.
19227 * aclocal.m4: Regenerate.
19228 * config.h.in: Regenerate.
19229 * configure: Regenerate.
19230 * Makefile.in: Regenerate.
19231 * testsuite/Makefile.in: Regenerate.
19232
19233 2008-02-15 Jakub Jelinek <jakub@redhat.com>
19234
19235 PR middle-end/35196
19236 * testsuite/libgomp.c/pr35196.c: New test.
19237
19238 PR middle-end/35130
19239 * testsuite/libgomp.fortran/pr35130.f90: New test.
19240 * testsuite/libgomp.c/pr35130.c: New test.
19241
19242 2008-01-25 Jakub Jelinek <jakub@redhat.com>
19243
19244 PR middle-end/33880
19245 * testsuite/libgomp.c/pr33880.c: New test.
19246 * testsuite/libgomp.fortran/pr33880.f90: New test.
19247
19248 2008-01-24 David Edelsohn <edelsohn@gnu.org>
19249
19250 * configure: Regenerate.
19251
19252 2008-01-08 Jakub Jelinek <jakub@redhat.com>
19253
19254 * configure.ac: Move futex checking into ../config/futex.m4.
19255 * configure: Rebuilt.
19256 * aclocal.m4: Rebuilt.
19257 * Makefile.in: Rebuilt.
19258
19259 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
19260 2007-10-15 ../config/tls.m4 change.
19261
19262 2007-12-19 Jakub Jelinek <jakub@redhat.com>
19263
19264 PR c++/34513
19265 * testsuite/libgomp.c/pr34513.c: New test.
19266 * testsuite/libgomp.c++/pr34513.C: New test.
19267
19268 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
19269
19270 PR target/32765
19271 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
19272
19273 2007-12-04 Jakub Jelinek <jakub@redhat.com>
19274
19275 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
19276
19277 2007-12-03 Jakub Jelinek <jakub@redhat.com>
19278
19279 * testsuite/libgomp.c/private-1.c: New test.
19280
19281 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
19282 Paolo Bonzini <bonzini@gnu.org>
19283
19284 * Makefile.am: Use space as vpath separator. Use 'vpath %'
19285 instead of 'VPATH ='.
19286 * Makefile.in: Regenerate.
19287
19288 2007-11-23 Matthias Klose <doko@ubuntu.com>
19289
19290 * configure.ac: Adjust makeinfo version check.
19291 * configure: Regenerate.
19292
19293 2007-11-10 Jakub Jelinek <jakub@redhat.com>
19294
19295 PR fortran/34020
19296 * testsuite/libgomp.fortran/pr34020.f90: New test.
19297
19298 2007-11-06 Jakub Jelinek <jakub@redhat.com>
19299
19300 PR c++/33894
19301 * testsuite/libgomp.c++/atomic-1.C: New test.
19302
19303 2007-10-25 Jakub Jelinek <jakub@redhat.com>
19304
19305 PR libgomp/33275
19306 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
19307 Make x and y integers rather than (implicit) reals. Add private (j)
19308 clause to the last omp parallel.
19309
19310 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
19311
19312 * configure: Regenerate following changes to ../config/tls.m4.
19313
19314 2007-09-28 Jakub Jelinek <jakub@redhat.com>
19315
19316 * testsuite/libgomp.fortran/stack.f90: New test.
19317
19318 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
19319
19320 * config/mingw32/proc.c: New file.
19321
19322 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
19323
19324 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
19325 (main): Use __get_cpuid to get i386 target fetaures.
19326 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
19327 (main): Use __get_cpuid to get x86_64 target fetaures.
19328
19329 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
19330
19331 PR target/32765
19332 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
19333 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
19334
19335 2007-07-12 Jakub Jelinek <jakub@redhat.com>
19336
19337 PR fortran/32550
19338 * testsuite/libgomp.fortran/pr32550.f90: New test.
19339 * testsuite/libgomp.fortran/crayptr2.f90: New test.
19340
19341 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
19342
19343 * aclocal.m4: Regenerated.
19344
19345 2007-07-05 Tobias Burnus <burnus@net-b.de>
19346
19347 PR fortran/32359
19348 * testsuite/libgomp.fortran/pr32359.f90: New.
19349
19350 2007-07-02 Jakub Jelinek <jakub@redhat.com>
19351
19352 PR libgomp/32468
19353 * sections.c (GOMP_parallel_sections_start): Only decrease
19354 number of threads to COUNT if dyn_var is true.
19355 * testsuite/libgomp.c/pr32468.c: New test.
19356
19357 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
19358
19359 PR libgomp/26308
19360 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
19361
19362 2007-06-21 Jakub Jelinek <jakub@redhat.com>
19363
19364 PR middle-end/32362
19365 * testsuite/libgomp.c/pr32362-1.c: New test.
19366 * testsuite/libgomp.c/pr32362-2.c: New test.
19367 * testsuite/libgomp.c/pr32362-3.c: New test.
19368
19369 2007-06-07 Jakub Jelinek <jakub@redhat.com>
19370
19371 * team.c (gomp_team_start): Fix setting up thread_attr
19372 stack size.
19373
19374 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
19375
19376 * configure: Regenerate.
19377
19378 2007-05-23 Steve Ellcey <sje@cup.hp.com>
19379
19380 * Makefile.in: Regenerate.
19381 * configure: Regenerate.
19382 * aclocal.m4: Regenerate.
19383 * testsuite/Makefile.in: Regenerate.
19384
19385 2007-05-04 Jakub Jelinek <jakub@redhat.com>
19386
19387 * config/linux/proc.c: New file.
19388
19389 PR libgomp/28482
19390 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
19391
19392 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
19393
19394 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
19395
19396 2007-04-16 Matthias Klose <doko@debian.org>
19397
19398 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
19399 flags if not building with -m64.
19400 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
19401 flag for i?86-*-* targets, if current target matches -m64.
19402
19403 2007-04-14 Steve Ellcey <sje@cup.hp.com>
19404
19405 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
19406 * Makefile.in: Regenerate.
19407
19408 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19409
19410 PR testsuite/31369
19411 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
19412 ld_library_path.
19413 * testsuite/libgomp.fortran/fortran.exp: Likewise.
19414
19415 2007-04-04 Jakub Jelinek <jakub@redhat.com>
19416
19417 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
19418 decls.
19419 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
19420 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
19421 (parse_affinity): New function.
19422 (initialize_env): Call it and gomp_init_affinity.
19423 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
19424 create new pthread_attr_t and call gomp_init_thread_affinity
19425 on it for each thread before passing the attribute to pthread_create.
19426 * config/linux/affinity.c: New file.
19427 * config/posix/affinity.c: New file.
19428 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
19429 * configure: Rebuilt.
19430 * config.h.in: Rebuilt.
19431 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
19432 * Makefile.in: Rebuilt.
19433
19434 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
19435
19436 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
19437 *-*-darwin*.
19438 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
19439 and use it if found.
19440
19441 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
19442
19443 * testsuite/config/default.exp: New file.
19444 * testsuite/lib/libgomp.exp: New file.
19445 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
19446 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
19447 load_lib *, load_gcc_lib *): Move to libgomp.exp.
19448 (libgomp_load): Remove.
19449 * testsuite/lib/libgomp.exp (libgomp_init): Compute
19450 always_ld_library_path, not ld_library_path. Set additional_flags
19451 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
19452 (target_compile): Do not call libgomp_init. Append lang_library_path
19453 and lang_link_flags to options.
19454 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
19455 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
19456 here.
19457 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
19458 always_ld_library_path. Set LD_LIBRARY_PATH here.
19459 * testsuite/libgomp.fortran/fortran.exp: Ditto.
19460 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
19461 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
19462 CX8 flag.
19463 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
19464 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
19465 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
19466 * testsuite/libgomp.c/pr29947-1.c: Ditto.
19467 * testsuite/libgomp.c/atomic-10.c: Ditto.
19468
19469 2007-03-21 Jakub Jelinek <jakub@redhat.com>
19470
19471 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
19472 dg-final cleanup-modules line.
19473 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
19474 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
19475 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
19476 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
19477 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
19478 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
19479 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
19480
19481 2007-03-18 Andreas Schwab <schwab@suse.de>
19482
19483 * acinclude.m4: Adjust regular expression for ld version
19484 extraction.
19485 * configure: Regenerate.
19486
19487 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
19488
19489 * Makefile.am: Add install-pdf target as copied from
19490 automake v1.10 rules.
19491 * Makefile.in: Regenerate
19492
19493 2007-02-07 Jakub Jelinek <jakub@redhat.com>
19494
19495 PR libgomp/28486
19496 * configure: Regenerate.
19497
19498 PR c++/30703
19499 * testsuite/libgomp.c++/pr30703.C: New test.
19500
19501 2007-02-02 Jakub Jelinek <jakub@redhat.com>
19502
19503 Revert:
19504 2006-07-05 Eric Christopher <echristo@apple.com>
19505 * configure.ac: Depend addition of -pthread on host OS.
19506 * configure: Regenerate.
19507
19508 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19509
19510 * libgomp.texi: Fix spacing after abbreviations.
19511
19512 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
19513
19514 PR libgomp/30546
19515 * configure.ac: Add check for makeinfo
19516 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
19517 if an appropriate version of makeinfo is found.
19518 * aclocal.m4: Regenerated.
19519 * configure: Regenerated.
19520 * Makefile.in: Regenerated.
19521 * testsuite/Makefile.in: Regenerated.
19522
19523 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
19524
19525 PR libgomp/30540
19526 * libgomp.texi: More about implementation-dependent settings.
19527
19528 2007-01-26 Tobias Burnus <burnus@net-b.de>
19529
19530 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
19531
19532 2007-01-24 Jakub Jelinek <jakub@redhat.com>
19533
19534 PR middle-end/30494
19535 * testsuite/libgomp.c/pr30494.c: New test.
19536
19537 2007-01-15 Tom Tromey <tromey@redhat.com>
19538
19539 * configure: Rebuilt.
19540 * configure.ac: Fixed comment.
19541
19542 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
19543
19544 * libgomp.texi: Document implementation specific default values of
19545 environment variables.
19546
19547 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
19548
19549 PR libgomp/28209
19550 * libgomp.texi: New file.
19551 * configure.ac: Add --enable-generated-files-in-srcdir option.
19552 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
19553 files to srcdir.
19554 * Makefile.in: Regenerated.
19555 * config.h.in: Regenerated.
19556 * testsuite/Makefile.in: Regenerated.
19557 * NOTES: Removed.
19558
19559 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
19560
19561 PR libgomp/29949
19562 * env.c (omp_set_num_threads): Set illegal thread count to 1.
19563
19564 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
19565
19566 * configure: Regenerate.
19567
19568 2006-12-04 Jakub Jelinek <jakub@redhat.com>
19569
19570 PR libgomp/29947
19571 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
19572 start if there shouldn't be any loop iterations.
19573 (gomp_loop_ordered_static_start): Remove start == end test.
19574 * testsuite/libgomp.c/pr29947-1.c: New test.
19575 * testsuite/libgomp.c/pr29947-2.c: New test.
19576
19577 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
19578
19579 * configure.tgt: Force initial-exec TLS model on Linux only.
19580
19581 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
19582
19583 * configure: Regenerated.
19584
19585 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
19586
19587 * env.c (parse_schedule): Reject out of range values.
19588 (parse_unsigned_long): Reject out of range, negative or zero values.
19589
19590 2006-10-29 Jakub Jelinek <jakub@redhat.com>
19591
19592 PR fortran/29629
19593 * testsuite/libgomp.fortran/pr29629.f90: New test.
19594
19595 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
19596
19597 PR libgomp/29494
19598 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
19599 * config/posix95: New directory.
19600 * config/posix95/omp-lock.h: New file.
19601 * config/posix95/lock.c: Likewise.
19602
19603 2006-10-14 Geoffrey Keating <geoffk@apple.com>
19604
19605 * aclocal.m4: Regenerate.
19606 * configure: Regenerate.
19607
19608 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
19609
19610 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
19611 '<' to '<='.
19612
19613 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
19614
19615 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
19616 test.
19617 * configure: Regenerate.
19618 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
19619
19620 2006-09-26 Jakub Jelinek <jakub@redhat.com>
19621
19622 PR middle-end/25261
19623 PR middle-end/28790
19624 * testsuite/libgomp.c/nestedfn-4.c: New test.
19625 * testsuite/libgomp.c/nestedfn-5.c: New test.
19626 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
19627
19628 PR fortran/29097
19629 * testsuite/libgomp.fortran/condinc1.f: New test.
19630 * testsuite/libgomp.fortran/condinc2.f: New test.
19631 * testsuite/libgomp.fortran/condinc3.f90: New test.
19632 * testsuite/libgomp.fortran/condinc4.f90: New test.
19633 * testsuite/libgomp.fortran/condinc1.inc: New file.
19634
19635 2006-09-18 Tom Tromey <tromey@redhat.com>
19636
19637 * configure: Rebuilt.
19638
19639 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
19640
19641 PR c/28768
19642 PR preprocessor/14634
19643 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
19644 to AC_DEFINE.
19645 * configure: Regenerate.
19646
19647 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
19648
19649 * testsuite/libgomp.fortran/reduction3.f90: Change
19650 -2147483648 to -huge(i)-1 to avoid overflow.
19651 * testsuite/libgomp.fortran/reduction4.f90: Change
19652 Z'ffffffff' to not(0) to avoid overflow.
19653
19654 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
19655
19656 PR libgomp/25938
19657 * Makefile.am (libsubincludedir): New.
19658 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
19659 * Makefile.in: Regenerate.
19660
19661 2006-08-17 Jakub Jelinek <jakub@redhat.com>
19662
19663 PR libgomp/28725
19664 * env.c: Include ctype.h.
19665 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
19666 leading and/or trailing whitespace and compare strings case
19667 insensitively.
19668
19669 2006-07-16 Jakub Jelinek <jakub@redhat.com>
19670
19671 PR fortran/28390
19672 * testsuite/libgomp.fortran/pr28390.f: New test.
19673
19674 2006-07-05 Eric Christopher <echristo@apple.com>
19675
19676 * configure.ac: Depend addition of -pthread on host OS.
19677 * configure: Regenerate.
19678
19679 2006-06-21 Jakub Jelinek <jakub@redhat.com>
19680
19681 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
19682 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
19683 defined.
19684
19685 2006-06-20 Jakub Jelinek <jakub@redhat.com>
19686
19687 PR libgomp/26175
19688 PR libgomp/26477
19689 * configure.ac: If neither --enable-linux-futex nor
19690 --disable-linux-futex is passed, determine the default by checking
19691 for compiling and/or running against NPTL. With --enable-linux-futex,
19692 check if SYS_gettid and SYS_futex are defined.
19693 * configure: Rebuilt.
19694
19695 2006-06-14 Richard Henderson <rth@redhat.com>
19696
19697 PR libgomp/28008
19698 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
19699 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
19700
19701 2006-06-09 Richard Henderson <rth@redhat.com>
19702
19703 * env.c (gomp_nthreads_var): Change to unsigned long.
19704 (gomp_run_sched_chunk): Likewise.
19705 (parse_unsigned_long): Rename from parse_num_threads and generalize.
19706 (initialize_env): Initialize gomp_thread_attr.
19707 * libgomp.h (gomp_nthreads_var): Update decl.
19708 (gomp_run_sched_chunk): Likewise.
19709 (gomp_thread_attr): Declare.
19710 * team.c (gomp_thread_attr): Export.
19711 (initialize_team): Don't initialize it.
19712
19713 2006-06-09 Jakub Jelinek <jakub@redhat.com>
19714
19715 PR fortran/27916
19716 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
19717 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
19718
19719 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
19720
19721 * config/mingw32/time.c: New file.
19722 * configure.tgt: Use it.
19723
19724 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
19725
19726 * Makefile.am: Add install-html target. Add install-html to .PHONY
19727 * Makefile.in: Regenerate.
19728
19729 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19730
19731 PR libgomp/27612
19732 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
19733 * testsuite/libgomp.c/critical-1.c: Likewise.
19734 * testsuite/libgomp.c/loop-1.c: Likewise.
19735 * testsuite/libgomp.c/loop-2.c: Likewise.
19736 * testsuite/libgomp.c/single-1.c: Likewise.
19737 * testsuite/libgomp.c/ordered-1.c: Likewise.
19738 * testsuite/libgomp.c/ordered-2.c: Likewise.
19739
19740 2006-05-15 Jakub Jelinek <jakub@redhat.com>
19741
19742 PR middle-end/27416
19743 * libgomp.fortran/pr27416-1.f90: New test.
19744
19745 2006-05-03 Jakub Jelinek <jakub@redhat.com>
19746
19747 PR fortran/27395
19748 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
19749 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
19750
19751 2006-05-02 Jakub Jelinek <jakub@redhat.com>
19752
19753 PR c++/26943
19754 * testsuite/libgomp.c/pr26943-1.c: New test.
19755 * testsuite/libgomp.c/pr26943-2.c: New test.
19756 * testsuite/libgomp.c/pr26943-3.c: New test.
19757 * testsuite/libgomp.c/pr26943-4.c: New test.
19758 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
19759 * testsuite/libgomp.c++/pr26943.C: New test.
19760
19761 2006-05-02 Jakub Jelinek <jakub@redhat.com>
19762
19763 PR middle-end/27337
19764 * testsuite/libgomp.c++/pr27337.C: New test.
19765
19766 2006-04-26 Jakub Jelinek <jakub@redhat.com>
19767
19768 PR c/26171
19769 * testsuite/libgomp.c/pr26171.c: New test.
19770
19771 2006-04-25 Richard Henderson <rth@redhat.com>
19772
19773 PR libgomp/25865
19774 * configure.ac: Use GCC_CHECK_TLS.
19775 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
19776 * Makefile.in, aclocal.m4, configure: Regenerate.
19777
19778 2006-04-10 Matthias Klose <doko@debian.org>
19779
19780 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
19781 directory names containing underscores.
19782
19783 2006-03-21 Jakub Jelinek <jakub@redhat.com>
19784
19785 PR c++/26691
19786 * testsuite/libgomp.c++/pr26691.C: New test.
19787
19788 2006-03-13 Jakub Jelinek <jakub@redhat.com>
19789
19790 * testsuite/libgomp.fortran/retval2.f90: New test.
19791
19792 2006-03-09 Diego Novillo <dnovillo@redhat.com>
19793
19794 * testsuite/libgomp.c++: New directory.
19795
19796 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
19797
19798 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
19799 * config/posix/sem.c: Implement the above.
19800
19801 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
19802
19803 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
19804 define HAVE_BROKEN_POSIX_SEMAPHORES.
19805 * configure: Rebuilt.
19806 * config.h.in: Rebuilt.
19807
19808 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
19809
19810 PR bootstrap/26161
19811 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
19812 for the other pthread check.
19813 * configure: Regenerate.
19814 * config.h.in: Regenerate.
19815
19816 2006-02-15 Jakub Jelinek <jakub@redhat.com>
19817
19818 PR libgomp/25938
19819 PR libgomp/25984
19820 * Makefile.am (fincludedir): New variable.
19821 (nodist_include_HEADERS): Remove Fortran files.
19822 (nodist_finclude_HEADERS): New variable.
19823 * Makefile.in: Regenerated.
19824
19825 2006-02-13 Jakub Jelinek <jakub@redhat.com>
19826
19827 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
19828 Remove tests for returning assumed character length arrays.
19829
19830 2006-02-12 Roger Sayle <roger@eyesopen.com>
19831 John David Anglin <dave@hiauly1.hia.nrc.ca>
19832
19833 PR libgomp/25936
19834 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
19835
19836 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
19837
19838 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
19839
19840 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
19841
19842 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
19843 part of LD_LIBRARY_PATH manually.
19844
19845 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
19846
19847 PR libgomp/25852
19848 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
19849 libgomp_init.
19850
19851 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
19852
19853 PR libgomp/25884
19854 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
19855 * configure.ac (PERL): Don't set.
19856 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
19857 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
19858 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
19859 * omp.h.in: Wrap the new configure substitutions with @ characters.
19860 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
19861 * aclocal.m4, configure, Makefile.in: Regenerate.
19862 * mkomp_h.pl: Delete.
19863
19864 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
19865
19866 PR libgomp/25259
19867 * configure.ac: Use GCC_HEADER_STDINT.
19868 * libgomp.h: Include gstdint.h.
19869 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
19870 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
19871
19872 2006-01-24 Richard Henderson <rth@redhat.com>
19873
19874 PR libgomp/25942
19875 * configure.ac: Add AM_MAINTAINER_MODE.
19876 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
19877
19878 2006-01-24 Diego Novillo <dnovillo@redhat.com>
19879
19880 * Makefile.in: Regenerate.
19881 * testsuite/Makefile.in: Regenerate.
19882 * aclocal.m4: Regenerate.
19883
19884 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
19885
19886 * config/posix/proc.c: Conditional include of sys/loadavg.h for
19887 Solaris.
19888 * configure.ac: Add check for loadavg.h.
19889 (link_gomp): Adjust comment.
19890 * configure: Regenerate.
19891 * config.h.in: Regenerate.
19892
19893 2006-01-21 Steve Ellcey <sje@cup.hp.com>
19894
19895 PR libgomp/25877
19896 * configure.ac: Remove check for alloca.h.
19897 * configure: Regenerate.
19898 * config.h.in: Regenerate.
19899 * libgomp.h: define gomp_alloca to be __builtin_alloca.
19900 * team.c: Remove use of alloca.h.
19901 Call gomp_alloca instead of alloca.
19902
19903 2006-01-20 Steve Ellcey <sje@cup.hp.com>
19904
19905 PR libgomp/25877
19906 * team.c: Add include of alloca.h.
19907 * configure.ac: Add check for alloca.h.
19908 * configure: Regenerate.
19909 * config.h.in: Regenerate.
19910
19911 2006-01-17 Jakub Jelinek <jakub@redhat.com>
19912
19913 PR fortran/25219
19914 * testsuite/libgomp.fortran/pr25219.f90: New test.
19915
19916 2005-12-05 Uros Bizjak <uros@kss-loka.si>
19917
19918 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
19919 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
19920 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
19921 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
19922 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
19923 testsuite/libgomp.fortran/threadprivate1.f90,
19924 testsuite/libgomp.fortran/threadprivate2.f90,
19925 testsuite/libgomp.fortran/threadprivate3.f90,
19926 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
19927 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
19928 testsuite/libgomp.fortran/omp_parse3.f90: Change required
19929 effective-target to TLS runtime.
19930
19931 * testsuite/libgomp.fortran/pr25162.f: Require
19932 effective-target TLS runtime.
19933
19934 2005-12-01 Jakub Jelinek <jakub@redhat.com>
19935
19936 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
19937 * testsuite/libgomp.c/nestedfn-3.c: New test.
19938
19939 2005-11-30 Jakub Jelinek <jakub@redhat.com>
19940
19941 PR fortran/25162
19942 * testsuite/libgomp.fortran/pr25162.f: New test.
19943
19944 2005-11-28 Jakub Jelinek <jakub@redhat.com>
19945
19946 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
19947 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
19948
19949 2005-11-25 Jakub Jelinek <jakub@redhat.com>
19950
19951 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
19952 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
19953 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
19954 single.c, team.c, work.c, config/linux/alpha/futex.h,
19955 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
19956 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
19957 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
19958 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
19959 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
19960 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
19961 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
19962 FSF address.
19963
19964 2005-11-18 Jakub Jelinek <jakub@redhat.com>
19965
19966 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
19967 to nodist_noinst_HEADERS.
19968 * Makefile.in: Rebuilt.
19969
19970 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
19971 add integer count field.
19972 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
19973 omp_nest_lock_t type change.
19974 (omp_init_nest_lock): Likewise. Initialize count to 0.
19975 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
19976 Increment count.
19977 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
19978 Decrement count.
19979 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
19980 Increment count if successful and return the new nesting level.
19981 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
19982 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
19983 * testsuite/libgomp.c/lib-1.c: New test.
19984 * testsuite/libgomp.fortran/lib1.f90: New test.
19985 * testsuite/libgomp.fortran/lib2.f: New test.
19986 * testsuite/libgomp.fortran/lib3.f: New test.
19987
19988 2005-11-17 Richard Henderson <rth@redhat.com>
19989
19990 PR 24845
19991 * Makefile.am (nodist_toolexeclib_HEADERS): New.
19992 * configure.ac (link_gomp): New. Substitute it.
19993 (AC_CONFIG_FILES): Add libgomp.spec.
19994 * libgomp.spec.in: New file.
19995 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
19996 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
19997
19998 2005-11-18 Jakub Jelinek <jakub@redhat.com>
19999
20000 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
20001 reduction(-:var) behaving the same as reduction(+:var).
20002 * testsuite/libgomp.c/reduction-4.c: New test.
20003
20004 2005-11-15 Uros Bizjak <uros@kss-loka.si>
20005
20006 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
20007 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
20008 testsuite/libgomp.c/copyin-3.c,
20009 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
20010 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
20011 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
20012 testsuite/libgomp.c++/pr24455.C,
20013 testsuite/libgomp.fortran/threadprivate1.f90,
20014 testsuite/libgomp.fortran/threadprivate2.f90,
20015 testsuite/libgomp.fortran/threadprivate3.f90,
20016 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
20017 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
20018 testsuite/libgomp.fortran/omp_parse3.f90: Require
20019 effective-target TLS.
20020
20021 2005-11-14 Diego Novillo <dnovillo@redhat.com>
20022
20023 * HEADER: Remove.
20024
20025 2005-11-13 Jakub Jelinek <jakub@redhat.com>
20026
20027 PR libgomp/24797
20028 * team.c (initialize_team): Pass NULL rather than free as
20029 pthread_key_create destructor. Initialize thread specific data
20030 pointer in initial thread to a static local variable rather than
20031 malloced memory.
20032
20033 2005-11-11 Uros Bizjak <uros@kss-loka.si>
20034
20035 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
20036 its location to ld_library_path.
20037
20038 2005-11-10 Diego Novillo <dnovillo@redhat.com>
20039
20040 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
20041
20042 2005-11-10 Diego Novillo <dnovillo@redhat.com>
20043
20044 * testsuite/libgomp.c: Rename from libgomp.dg.
20045
20046 2005-11-09 Diego Novillo <dnovillo@redhat.com>
20047
20048 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
20049 threadprivate variable 'i'.
20050
20051 2005-11-09 Jakub Jelinek <jakub@redhat.com>
20052
20053 * config/linux/s390/futex.h: New file.
20054 * configure.tgt: Use it.
20055
20056 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
20057 before the parallel.
20058
20059 2005-11-08 Jakub Jelinek <jakub@redhat.com>
20060
20061 PR c++/24734
20062 * testsuite/libgomp.c++/master-1.C: New test.
20063
20064 2005-11-07 Jakub Jelinek <jakub@redhat.com>
20065
20066 * testsuite/libgomp.dg/copyin-3.c: New test.
20067
20068 2005-11-07 Jakub Jelinek <jakub@redhat.com>
20069
20070 * testsuite/libgomp.fortran/retval1.f90: New test.
20071 * testsuite/libgomp.fortran/vla7.f90: New test.
20072
20073 2005-11-06 Jakub Jelinek <jakub@redhat.com>
20074
20075 * testsuite/libgomp.fortran/vla2.f90: New test.
20076 * testsuite/libgomp.fortran/vla3.f90: New test.
20077 * testsuite/libgomp.fortran/vla4.f90: New test.
20078 * testsuite/libgomp.fortran/vla5.f90: New test.
20079 * testsuite/libgomp.fortran/vla6.f90: New test.
20080
20081 2005-11-01 Jakub Jelinek <jakub@redhat.com>
20082
20083 * config/linux/sparc/futex.h: New file.
20084 * configure.tgt: Use it.
20085 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
20086
20087 * critical.c: Include stdlib.h.
20088 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
20089 ignoring return value.
20090 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
20091 LIBGOMP_CHECK_SYNC_BUILTINS check.
20092 * configure: Rebuilt.
20093
20094 2005-10-31 Jakub Jelinek <jakub@redhat.com>
20095
20096 * testsuite/libgomp.fortran/vla1.f90: New test.
20097
20098 2005-10-31 Richard Henderson <rth@redhat.com>
20099
20100 * testsuite/libgomp.fortran/character2.f90: Fix race condition
20101 setting 's' in different threads.
20102
20103 2005-10-31 Jakub Jelinek <jakub@redhat.com>
20104
20105 * libgomp.h (attribute_hidden, ialias): Define.
20106 * config/posix/proc.c (omp_get_num_procs): Add ialias.
20107 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
20108 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
20109 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
20110 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
20111 omp_test_lock, omp_test_nest_lock): Likewise.
20112 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
20113 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
20114 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
20115 omp_test_lock, omp_test_nest_lock): Likewise.
20116 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
20117 omp_get_dynamic, omp_get_nested): Likewise.
20118 * parallel.c (omp_get_num_threads, omp_get_max_threads,
20119 omp_get_thread_num, omp_in_parallel): Likewise.
20120 * fortran.c (ialias_redirect): Define.
20121 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
20122 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
20123 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
20124 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
20125 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
20126 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
20127 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
20128 omp_get_wtime): Add ialias_redirect.
20129
20130 2005-10-30 Jakub Jelinek <jakub@redhat.com>
20131
20132 * fortran.c: Include stdlib.h.
20133
20134 2005-10-29 Jakub Jelinek <jakub@redhat.com>
20135
20136 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
20137 * Makefile.in: Regenerated.
20138
20139 2005-10-28 Jakub Jelinek <jakub@redhat.com>
20140
20141 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
20142 * libgomp_f.h.in (omp_check_defines): New function.
20143 * env.c: Include libgomp_f.h.
20144 (initialize_env): Call omp_check_defines.
20145
20146 * testsuite/libgomp.dg/copyin-2.c: New test.
20147 * testsuite/libgomp.c++/copyin-2.C: New test.
20148 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
20149
20150 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
20151 * testsuite/libgomp.fortran/sharing2.f90: New test.
20152
20153 * testsuite/libgomp.dg/copyin-1.c: New test.
20154 * testsuite/libgomp.c++/copyin-1.C: New test.
20155
20156 2005-10-26 Jakub Jelinek <jakub@redhat.com>
20157
20158 * testsuite/libgomp.fortran/crayptr1.f90: New test.
20159
20160 * testsuite/libgomp.fortran/workshare1.f90: New test.
20161
20162 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
20163 only test.
20164 * libgomp.fortran/sharing1.f90: New test.
20165
20166 2005-10-24 Jakub Jelinek <jakub@redhat.com>
20167
20168 PR c++/24502
20169 * testsuite/libgomp.c++/loop-7.C: New test.
20170
20171 * testsuite/libgomp.dg/nestedfn-2.c: New test.
20172
20173 * testsuite/libgomp.dg/nestedfn-1.c: New test.
20174 * testsuite/libgomp.fortran/reduction6.f90: New test.
20175 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
20176
20177 2005-10-23 Richard Henderson <rth@redhat.com>
20178
20179 * testsuite/libgomp.c++/ctor-1.C: New.
20180 * testsuite/libgomp.c++/ctor-2.C: New.
20181 * testsuite/libgomp.c++/ctor-3.C: New.
20182 * testsuite/libgomp.c++/ctor-4.C: New.
20183 * testsuite/libgomp.c++/ctor-5.C: New.
20184 * testsuite/libgomp.c++/ctor-6.C: New.
20185 * testsuite/libgomp.c++/ctor-7.C: New.
20186 * testsuite/libgomp.c++/ctor-8.C: New.
20187 * testsuite/libgomp.c++/ctor-9.C: New.
20188
20189 2005-10-21 Diego Novillo <dnovillo@redhat.com>
20190
20191 PR 24455
20192 * testsuite/libgomp.c++/pr24455-1.C: New test.
20193 * testsuite/libgomp.c++/pr24455.C: New test.
20194 * testsuite/libgomp.dg/pr24455-1.c: New test.
20195 * testsuite/libgomp.dg/pr24455.c: New test.
20196
20197 2005-10-20 Richard Henderson <rth@redhat.com>
20198
20199 * testsuite/libgomp.c++/loop-6.C: New.
20200 * testsuite/libgomp.dg/loop-3.c: New.
20201
20202 2005-10-20 Jakub Jelinek <jakub@redhat.com>
20203
20204 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
20205 explicitly private.
20206 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
20207 explicitly shared.
20208
20209 2005-10-19 Diego Novillo <dnovillo@redhat.com>
20210
20211 * testsuite/libgomp.fortran/jacobi.f: New test.
20212
20213 2005-10-19 Richard Henderson <rth@redhat.com>
20214
20215 * configure.tgt (i?86-linux): Default to with_arch instead of
20216 CFLAGS. Add -mtune to match target_cpu.
20217 (x86_64-linux): Tune to i686.
20218
20219 * fortran.c (omp_test_nest_lock_): Fix typo.
20220
20221 2005-10-19 Jakub Jelinek <jakub@redhat.com>
20222
20223 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
20224 gomp_ordered_sync): Do nothing if team->nthreads == 1.
20225 * testsuite/libgomp.dg/ordered-3.c: New test.
20226
20227 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
20228 Remove volatile keyword.
20229
20230 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
20231 in COMMON block to avoid warnings on 64-bit targets.
20232
20233 2005-10-18 Diego Novillo <dnovillo@redhat.com>
20234
20235 * testsuite/libgomp.dg/shared-3.c: New test.
20236
20237 2005-10-18 Jakub Jelinek <jakub@redhat.com>
20238
20239 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
20240 * testsuite/libgomp.fortran/reduction5.f90: New test.
20241
20242 2005-10-18 Jakub Jelinek <jakub@redhat.com>
20243
20244 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
20245 dg-options.
20246 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
20247 flush loop now that __sync_synchronize has proper memory barrier.
20248 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
20249 Add -ffixed-form to dg-options.
20250
20251 2005-10-17 Diego Novillo <dnovillo@redhat.com>
20252
20253 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
20254 from subdirectories.
20255 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
20256 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
20257 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
20258 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
20259 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
20260 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
20261 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
20262 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
20263 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
20264 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
20265 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
20266 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
20267 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
20268 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
20269 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
20270 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
20271 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
20272 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
20273 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
20274 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
20275 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
20276 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
20277 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
20278 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
20279 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
20280
20281 2005-10-17 Jakub Jelinek <jakub@redhat.com>
20282
20283 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
20284 lang_library_path exists. Use find instead of glob to gather tests.
20285 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
20286
20287 2005-10-17 Diego Novillo <dnovillo@redhat.com>
20288
20289 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
20290 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
20291 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
20292 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
20293 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
20294 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
20295 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
20296 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
20297 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
20298 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
20299 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
20300 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
20301 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
20302
20303 2005-10-15 Jakub Jelinek <jakub@redhat.com>
20304
20305 * testsuite/libgomp.dg/vla-1.c: New test.
20306
20307 * testsuite/libgomp.fortran/reference2.f90: New test.
20308
20309 * testsuite/libgomp.fortran/character2.f90: Remove explicit
20310 declaration of omp_get_thread_num.
20311 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
20312 use omp_lib.
20313
20314 * testsuite/libgomp.fortran/reduction1.f90: New test.
20315 * testsuite/libgomp.fortran/reduction2.f90: New test.
20316 * testsuite/libgomp.fortran/reduction3.f90: New test.
20317 * testsuite/libgomp.fortran/reduction4.f90: New test.
20318
20319 2005-10-13 Richard Henderson <rth@redhat.com>
20320
20321 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
20322 * Makefile.in: Regenerate.
20323 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
20324 * libgomp.h: Include bar.h.
20325 (struct gomp_barrier): Remove.
20326 (struct gomp_team): Add barrier. Replace master_barrier with
20327 master_release. Replace threads with ordered_release.
20328 (struct gomp_thread): Replace barrier with release.
20329 * ordered.c (gomp_ordered_first): Update for ordered_release change.
20330 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
20331 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
20332 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
20333 (GOMP_single_copy_end): Likewise.
20334 * team.c (gomp_threads_dock): New.
20335 (gomp_barrier_init, gomp_barrier_destroy): Remove.
20336 (gomp_thread_start): Use gomp_barrier_wait.
20337 (new_team, free_team): Update for gomp_team changes.
20338 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
20339 (gomp_team_end): Use gomp_barrier_wait.
20340 (initialize_team): Update for gomp_thread changes.
20341 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
20342 (gomp_work_share_end_nowait): Use atomic ops when available.
20343 * config/linux/bar.c, config/linux/bar.h: New files.
20344 * config/posix/bar.c, config/posix/bar.h: New files.
20345
20346 2005-10-13 Jakub Jelinek <jakub@redhat.com>
20347
20348 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
20349 * testsuite/libgomp.dg/single-2.c: New test.
20350
20351 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
20352 lang_link_flags): Unset, so that they aren't inherited from previously
20353 sourced *.exp.
20354
20355 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
20356
20357 2005-10-12 Richard Henderson <rth@redhat.com>
20358
20359 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
20360 (libgomp_init): Use lang_test_file, lang_library_path, and
20361 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
20362
20363 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
20364 (lang_test_file, lang_link_flags): New.
20365 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
20366
20367 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
20368 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
20369 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
20370 testsuite/libgomp.c++/parallel-1.C,
20371 testsuite/libgomp.c++/reduction-1.C,
20372 testsuite/libgomp.c++/reduction-2.C,
20373 testsuite/libgomp.c++/reduction-3.C,
20374 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
20375 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
20376 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
20377 New files, largely cribbed from the C testsuite.
20378
20379 2005-10-12 Jakub Jelinek <jakub@redhat.com>
20380
20381 * testsuite/libgomp.fortran/character1.f90: New test.
20382 * testsuite/libgomp.fortran/character2.f90: New test.
20383
20384 * testsuite/libgomp.dg/nested-1.c: New test.
20385 * testsuite/libgomp.dg/nested-2.c: New test.
20386 * testsuite/libgomp.fortran/do1.f90: New test.
20387 * testsuite/libgomp.fortran/do2.f90: New test.
20388
20389 * testsuite/libgomp.fortran/reference1.f90: New test.
20390
20391 2005-10-11 Jakub Jelinek <jakub@redhat.com>
20392
20393 * testsuite/libgomp.dg/reduction-1.c: New test.
20394 * testsuite/libgomp.dg/reduction-2.c: New test.
20395 * testsuite/libgomp.dg/reduction-3.c: New test.
20396
20397 2005-10-10 Jakub Jelinek <jakub@redhat.com>
20398
20399 * testsuite/libgomp.dg/atomic-1.c: New test.
20400 * testsuite/libgomp.dg/atomic-2.c: New test.
20401
20402 2005-10-09 Richard Henderson <rth@redhat.com>
20403
20404 * critical.c (atomic_lock): New.
20405 (initialize_critical): Initialize it.
20406 (GOMP_atomic_start, GOMP_atomic_end): New.
20407 * libgomp.map: Export them.
20408 * libgomp_g.h: Declare them.
20409
20410 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
20411
20412 2005-10-02 Richard Henderson <rth@redhat.com>
20413
20414 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
20415 to XCFLAGS instead of CFLAGS.
20416
20417 2005-09-30 Richard Henderson <rth@redhat.com>
20418
20419 * configure.ac: Determine whether -pthread or -lpthread is needed.
20420 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
20421 * Makefile.in, configure: Rebuild.
20422
20423 2005-09-28 Richard Henderson <rth@redhat.com>
20424
20425 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
20426 * testsuite/libgomp.dg/omp-single-3.c: New test.
20427
20428 2005-09-28 Diego Novillo <dnovillo@redhat.com>
20429
20430 * testsuite/libgomp.dg/omp-single-2.c: New test.
20431 * testsuite/libgomp.dg/shared-2.c: Fix return code.
20432
20433 2005-09-27 Richard Henderson <rth@redhat.com>
20434
20435 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
20436 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
20437
20438 2005-09-27 Jakub Jelinek <jakub@redhat.com>
20439
20440 * testsuite/libgomp.dg/omp-loop03.c: New test.
20441
20442 2005-09-27 Diego Novillo <dnovillo@redhat.com>
20443
20444 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
20445
20446 2005-09-27 Diego Novillo <dnovillo@redhat.com>
20447
20448 * testsuite/libgomp.dg/omp-single-1.c: New test.
20449 * testsuite/libgomp.dg/shared-1.c: Return 0.
20450 Add prototype for abort.
20451 * testsuite/libgomp.dg/shared-2.c: Likewise.
20452
20453 2005-09-26 Jakub Jelinek <jakub@redhat.com>
20454
20455 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
20456 constructs.
20457
20458 2005-09-26 Diego Novillo <dnovillo@redhat.com>
20459
20460 * testsuite/libgomp.dg/shared-1.c: New test.
20461 * testsuite/libgomp.dg/shared-2.c: New test.
20462
20463 2005-09-24 Richard Henderson <rth@redhat.com>
20464
20465 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
20466
20467 2005-09-24 Richard Henderson <rth@redhat.com>
20468
20469 * iter.c (gomp_iter_static_next): Round up when computing number
20470 of iterations. Don't bother distributing a remainder equally.
20471
20472 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
20473 Don't call srand. Zero b before testing.
20474 (main): New.
20475
20476 2005-09-24 Jakub Jelinek <jakub@redhat.com>
20477
20478 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
20479 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
20480
20481 2005-09-23 Jakub Jelinek <jakub@redhat.com>
20482
20483 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
20484 without !$omp end do, followed immediately by subroutine end.
20485
20486 2005-09-23 Diego Novillo <dnovillo@redhat.com>
20487
20488 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
20489
20490 2005-09-22 Richard Henderson <rth@redhat.com>
20491
20492 * critical.c (GOMP_critical_name_start): Change argument to void**.
20493 Reuse the pointer space if the mutex fits.
20494 (GOMP_critical_name_end): Likewise.
20495 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
20496 * libgomp_g.h (GOMP_critical_name_start): Update decl.
20497 (GOMP_critical_name_end): Likewise.
20498 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
20499 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
20500
20501 2005-09-20 Richard Henderson <rth@redhat.com>
20502
20503 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
20504 (create_lock_lock): New.
20505 (initialize_critical): Initialize it.
20506 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
20507 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
20508
20509 2005-09-20 Diego Novillo <dnovillo@redhat.com>
20510
20511 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
20512
20513 2005-09-20 Diego Novillo <dnovillo@redhat.com>
20514
20515 * testsuite/libgomp.dg/omp-loop01.c: New test.
20516 * testsuite/libgomp.dg/omp-loop02.c: New test.
20517
20518 2005-09-20 Jakub Jelinek <jakub@redhat.com>
20519
20520 * configure.ac (AC_PROG_FC): Add.
20521 (USE_FORTRAN): New automake conditional.
20522 * configure: Rebuilt.
20523 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
20524 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
20525 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
20526 Add rules to build them.
20527 * Makefile.in: Rebuilt.
20528 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
20529 OMP_NEST_LOCK_KIND.
20530 * libgomp.map: Add Fortran wrappers.
20531 * libgomp_f.h.in: New file.
20532 * omp_lib.h.in: New file.
20533 * omp_lib.f90.in: New file.
20534 * fortran.c: New file.
20535 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
20536 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
20537 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
20538 libgfortran has been built.
20539 * testsuite/libgomp.fortran/fortran.exp: New file.
20540 * testsuite/libgomp.fortran/omp_cond1.f: New test.
20541 * testsuite/libgomp.fortran/omp_cond2.f: New test.
20542 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
20543 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
20544 * testsuite/libgomp.fortran/omp_hello.f: New test.
20545 * testsuite/libgomp.fortran/omp_orphan.f: New test.
20546 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
20547 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
20548 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
20549 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
20550 * testsuite/libgomp.fortran/omp_reduction.f: New test.
20551 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
20552 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
20553
20554 2005-08-30 Richard Henderson <rth@redhat.com>
20555
20556 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
20557 function for when aliases are not usable.
20558 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
20559 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20560 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
20561 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
20562 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
20563 GOMP_loop_ordered_guided_next): Likewise.
20564 * ordered.c (GOMP_ordered_start): Likewise.
20565
20566 2005-08-01 Diego Novillo <dnovillo@redhat.com>
20567
20568 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
20569 * testsuite/libgomp.dg/omp_hello.c: Fix return code
20570 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
20571 * testsuite/libgomp.dg/omp_orphan.c: Likewise
20572 * testsuite/libgomp.dg/omp_reduction.c: Likewise
20573 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
20574 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
20575 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
20576 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
20577
20578 2005-07-07 Eric Christopher <echristo@redhat.com>
20579 Diego Novillo <dnovillo@redhat.com>
20580
20581 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
20582 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
20583 up code.
20584 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
20585 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
20586 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
20587 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
20588 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
20589 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
20590 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
20591
20592 2005-06-13 Diego Novillo <dnovillo@redhat.com>
20593
20594 * TOPLEVEL.patch: Remove.
20595
20596 2005-05-16 Richard Henderson <rth@redhat.com>
20597
20598 * configure.ac: Test for clock_gettime.
20599 * config.h.in, configure: Rebuild.
20600 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
20601 (omp_get_wtime): Use clock_gettime if available.
20602 (omp_get_wtick): Use clock_getres if available.
20603
20604 2005-05-11 Richard Henderson <rth@redhat.com>
20605
20606 * config/linux/ia64/futex.h: New file.
20607 * configure.tgt: Use it.
20608
20609 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
20610
20611 2005-05-07 Richard Henderson <rth@redhat.com>
20612
20613 * config/linux/powerpc/futex.h: New file.
20614 * configure.tgt: Use it.
20615
20616 * config/linux/i486/futex.h: Merge ...
20617 * config/linux/x86_64/futex.h: ... into ...
20618 * config/linux/x86/futex.h: ... here.
20619 * configure.tgt: Update to match.
20620
20621 2005-05-06 Richard Henderson <rth@redhat.com>
20622
20623 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
20624 * config/linux/i486/futex.h: Likewise.
20625 * config/linux/x86_64/futex.h: Likewise.
20626
20627 * config/linux/lock.c: New file.
20628 * config/linux/omp-lock.h: New file.
20629
20630 * critical.c, env.h: Don't include omp.h
20631 * config/posix/lock.c: Include libgomp.h instead of omp.h.
20632 * config/posix/time.c: Likewise.
20633 * config/posix/omp-lock.h: New file.
20634 * libgomp.h: Include omp-lock.h and omp.h.
20635 * Makefile.am (nodist_include_HEADERS): New.
20636 (omp.h): New rule.
20637 * configure.ac (PERL): New.
20638 * mkomp_h.pl: New file.
20639 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
20640 with templates.
20641 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
20642
20643 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
20644 build directory. Re-add -march=i486 hack.
20645
20646 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
20647 (libgomp_link_flags): Remove.
20648 (libgomp_initialized): Remove.
20649 (libgomp_init): Don't protect from reinitialization. Copy code
20650 from libstdc++ for getting the multilib set correctly.
20651
20652 2005-05-05 Richard Henderson <rth@redhat.com>
20653
20654 * config/linux/alpha/futex.h: New file.
20655 * configure.tgt (alpha*-*-linux*): Use it.
20656
20657 * config/posix/mutex.c: New file.
20658 * config/posix/sem.c: Use libgomp.h.
20659
20660 * configure.tgt (x86_64-linux): Also test CC for -m32.
20661 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
20662
20663 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
20664 after $gccpath.
20665
20666 * Makefile.am (SUBDIRS): New.
20667 (libgomp_la_LDFLAGS): Add -lpthread.
20668 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
20669 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
20670
20671 * libgomp_g.h: New file.
20672 * libgomp.h: Split out all public declarations to libgomp_g.h.
20673 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
20674 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
20675 * config/linux/sem.h: Likewise.
20676 * config/posix/sem.h: Likewise.
20677
20678 * Makefile.am (AM_LDFLAGS): New.
20679 (libgomp_version_script): Split out from ...
20680 (libgomp_la_LDFLAGS): ... here.
20681 (libgomp_version_info): New.
20682 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
20683 (LIBGOMP_ENABLE): New.
20684 (LIBGOMP_CHECK_LINKER_FEATURES): New.
20685 (LIBGOMP_ENABLE_SYMVERS): New.
20686 * configure.ac (AC_INIT): Version 1.0.
20687 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
20688 (enable-linux-futex): Likewise. Rename from enable-futex.
20689 (libtool_VERSION): New.
20690 (LIBGOMP_ENABLE_SYMVERS): Use it.
20691 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
20692 * Makefile.in, aclocal.m4, configure: Rebuild.
20693
20694 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
20695 (gomp_mutex_unlock_slow): Fix typo.
20696 * config/linux/sem.c: Similarly.
20697 (gomp_sem_post_slow): Fix typo.
20698 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
20699 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
20700 [__PIC__] (sys_futex0): Don't use tmp output in asm.
20701
20702 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
20703 (libgomp_la_LDFLAGS): Add top_srcdir to path.
20704 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
20705 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
20706 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
20707 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
20708 LDFLAGS. Pull enable_futex check to top-level.
20709 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
20710 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
20711
20712 First attempt at real configury.
20713 * Makefile, config.h: Remove file.
20714 * Makefile.am, Makefile.in: New file.
20715 * acinclude.m4 aclocal.m4: New file.
20716 * configure.ac, configure.tgt, configure: New file.
20717
20718 * config/posix/lock.c: Rename from sys-lock.c.
20719 * config/posix/mutex.h: Rename from sys-mutex.h.
20720 * config/posix/sem.c: Rename from sys-sem.c.
20721 * config/posix/sem.h: Rename from sys-sem.h.
20722 * config/posix/proc.c: Rename from sys-proc.c.
20723 * config/posix/time.c: Rename from sys-proc.c.
20724
20725 * config/linux/mutex.c: New file.
20726 * config/linux/mutex.h: New file.
20727 * config/linux/sem.c: New file.
20728 * config/linux/sem.h: New file.
20729 * config/linux/i486/futex.h: New file.
20730 * config/linux/x86_64/futex.h: New file.
20731
20732 2005-05-04 Richard Henderson <rth@redhat.com>
20733
20734 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
20735 * libgomp.h: Declare them.
20736 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
20737 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
20738
20739 2005-05-04 Richard Henderson <rth@redhat.com>
20740
20741 * libgomp-1 code drop
20742
20743 2005-05-04 Richard Henderson <rth@redhat.com>
20744
20745 * iter.c (gomp_iter_static_next): Return tri-state on 0.
20746 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
20747 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
20748 (gomp_iter_static_next): Update.
20749 (gomp_ordered_static_next): Update.
20750 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
20751 (gomp_loop_ordered_static_start): Likewise. Exit early for a
20752 totally empty range.
20753 (gomp_loop_ordered_static_next): Refine test for calling
20754 gomp_ordered_static_next.
20755 * testsuite/ordered-1.c: Add case for more threads than iterations.
20756
20757 * iter.c (gomp_iter_runtime_next_locked): Remove.
20758 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
20759 gomp_loop_guided_start, gomp_loop_ordered_static_start,
20760 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
20761 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
20762 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
20763 gomp_loop_ordered_guided_next): Downcase name, make static, add
20764 an external alias with the old name.
20765 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
20766 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
20767 switch and call one of the above static functions.
20768 * libgomp.h: Update.
20769
20770 * work.c (gomp_work_share_start): Lock the mutex for !first too.
20771 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
20772 GOMP_loop_guided_start, GOMP_loop_runtime_start,
20773 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20774 GOMP_loop_ordered_guided_start): Update to match.
20775 * sections.c (GOMP_sections_start): Likewise.
20776 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
20777
20778 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
20779 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
20780 Use bounds check instead of modulus.
20781 (gomp_ordered_sync): Split out of GOMP_ordered_start.
20782 (gomp_ordered_last): Don't sync with ordered_owner here.
20783 (gomp_ordered_next): Likewise.
20784 (gomp_ordered_static_loop_next): Likewise.
20785 * loop.c, libgomp.h: Update to match.
20786
20787 * libgomp.h (GOMP_barrier): Declare.
20788
20789 * testsuite/barrier-1.c: New file.
20790 * testsuite/critical-1.c: New file.
20791 * testsuite/ordered-2.c: New file.
20792 * testsuite/ordered-1.c: New file.
20793 * testsuite/sections-1.c: New file.
20794 * testsuite/single-1.c: New file.
20795 * testsuite/Makefile (TESTS): Add them.
20796
20797 2005-05-04 Richard Henderson <rth@redhat.com>
20798
20799 * libgomp.h (struct gomp_work_share): Add ordered_owner.
20800 * loop.c (GOMP_loop_static_start): If not the startup thread,
20801 acquire the mutex to wait for initialization complete.
20802 (GOMP_loop_ordered_static_start): Likewise.
20803 (GOMP_loop_ordered_runtime_start): Likewise.
20804 (GOMP_loop_ordered_static_first): Remove.
20805 (GOMP_loop_ordered_dynamic_first): Remove.
20806 (GOMP_loop_ordered_guided_first): Remove.
20807 (GOMP_loop_ordered_runtime_first): Remove.
20808 * ordered.c (gomp_ordered_loop_first): Post to own release when
20809 we're the first thread.
20810 (gomp_ordered_loop_last): Wait on release if not owner.
20811 (gomp_ordered_loop_next): Likewise.
20812 (gomp_ordered_static_loop_init): New.
20813 (gomp_ordered_static_loop_next): Use ordered_owner.
20814 (GOMP_ordered_start): Likewise.
20815 * work.c (gomp_new_work_share): Initialize ordered_owner.
20816
20817 2005-05-03 Richard Henderson <rth@redhat.com>
20818
20819 * Makefile (OPT): New.
20820 (CFLAGS): Use it.
20821
20822 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
20823 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
20824 * libgomp.h, libgomp.map, NOTES: Update to match.
20825
20826 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
20827 Add initialized and thr members.
20828 (gomp_thread_start): Pause when initially spawned to wait for
20829 the whole team to be created.
20830 (gomp_team_start): Release team members at the end.
20831
20832 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
20833 (f_foo_1): Use GOMP_loop_end.
20834 (f_foo_2): Use GOMP_loop_end_nowait.
20835
20836 * testsuite/loop-2.c: New file.
20837 * testsuite/Makefile (TESTS): Add it.
20838
20839 2005-05-03 Richard Henderson <rth@redhat.com>
20840
20841 * iter.c (gomp_iter_static_next): Fix overflow check typo.
20842 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
20843 * team.c (new_team): Initialize oldest_live_gen to 1 if no
20844 initial work_share.
20845
20846 * testsuite/Makefile: New file.
20847 * testsuite/loop-1.c: New file.
20848
20849 2005-05-03 Richard Henderson <rth@redhat.com>
20850
20851 Initial implementation and checkin.
20852 \f
20853 Copyright (C) 2005-2023 Free Software Foundation, Inc.
20854
20855 Copying and distribution of this file, with or without modification,
20856 are permitted in any medium without royalty provided the copyright
20857 notice and this notice are preserved.